/* Header & Navigation color overrides */
.masthead.masthead-v1,
.masthead:not(.masthead-v3) {
    background-color: #1e3a5f !important;
}

.primary-nav {
    background-color: #152a45 !important;
}

.primary-nav-menu > li > a,
.primary-nav .primary-nav-menu > .menu-item > a,
.secondary-nav-menu > li > a {
    color: #fff !important;
}

.primary-nav-menu > li > a:hover,
.primary-nav-menu > li > a:focus,
.primary-nav .primary-nav-menu > .menu-item > a:hover,
.primary-nav .primary-nav-menu > .menu-item > a:focus {
    color: #fff !important;
    opacity: 0.9;
}

.departments-menu-title,
.departments-menu-title span,
.header-icon i,
.site-branding .site-title,
.site-branding a {
    color: #fff !important;
}

.header-user-account-dropdown li > a,
.header-user-account-dropdown .user-email {
    color: #fff !important;
}

.is-invalid {
    border-color: red !important;
    box-shadow: 0 0 5px red !important;
}


.custom-active{
    background-color: #4CAF50 !important;
    color: #fefefefe !important;
    border-radius: 0.5rem;
    padding: 0.2rem;
}


.onsale_custom {
    height: 44px !important;
    width: 102px !important;
    display: inline-block;
    border-radius: 48px !important;
    font-size: 15px !important;
    font-weight: 500;
    line-height: 44px !important;
    text-align: center;
}
.onsale_custom_hightlighted {
    height: 27px !important;
    width: 82px !important;
    display: inline-block;
    border-radius: 22px !important;
    font-size: 15px !important;
    font-weight: 500;
    line-height: 25px !important;
    text-align: center;
  }
.cart {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0;
    padding-bottom: 20px;
    position: relative;
  }

/*Details section*/
.seller-details {
    display: flex;
    align-items: center;
    padding: 10px;
}

.seller-info {
    flex: 1;
    padding: 5px;
}

.seller-info i {
    color: #007bff;
}

.seller-joined {
    color: #777;
}

.rating {
    text-align: center;
}

.rating a {
    color: #007bff;
    text-decoration: none;
}



.seller-contacts {
    margin-left: 0;
    padding-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    justify-content: space-between;
}

.contact-item p {
    font-size: 16px;
}

.phone-icon {
    color: #444;
    font-size: 18px;
}

.whatsapp-icon {
    color: #131921;
    font-size: 1.5rem !important;
}

.show-phone-btn {
    background: #444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.show-whatsapp-btn {
    background: #131921;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
button{
    cursor: pointer !important;
}

/* CSS */
.button-3 {
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  margin-bottom: 2px;
}

.button-3:focus:not(:focus-visible):not(.focus-visible) {
  box-shadow: none;
  outline: none;
}

.button-3:hover {
  background-color: #2c974b;
}

.button-3:focus {
  box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px;
  outline: none;
}

.button-3:disabled {
  background-color: #94d3a2;
  border-color: rgba(27, 31, 35, .1);
  color: rgba(255, 255, 255, .8);
  cursor: default;
}

.button-3:active {
  background-color: #298e46;
  box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset;
}


/* CSS */
.button-42 {
  background-color: initial;
  background-image: linear-gradient(-180deg, #FF7E31, #E62C03);
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: Inter,-apple-system,system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  height: 40px;
  line-height: 40px;
  outline: 0;
  overflow: hidden;
  padding: 0 20px;
  pointer-events: auto;
  position: relative;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: top;
  white-space: nowrap;
  /* width:20%; */
  z-index: 9;
  border: 0;
  transition: box-shadow .2s;
}

.button-42:hover {
  box-shadow: rgba(253, 76, 0, 0.5) 0 3px 8px;
}

/*CUSTOM PRODUCT LIST CARD CSS*/


/* Ensure consistent product card sizing */
.product-outer {
    height: 400px !important;
    position: relative !important;
}

.product-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Constrain header section */
.product-header {
    flex: 0 0 200px !important; /* Fixed height */
    overflow: hidden !important;
    position: relative !important;
}

/* Control body section growth */
.product-body {
    flex: 1 0 auto !important;
    min-height: 120px !important;
    max-height: 150px !important;
    overflow: hidden !important;
    padding: 15px !important;
}

/* Fix footer behavior on hover */
.product-footer {
    flex: 0 0 auto !important;
    padding: 0 15px 15px 15px !important;
    min-height: 80px !important; /* Reserve space for button */
    display: none !important;
}

/*Custom*/
.product-outer_custom {
    height: 250 !important;
    position: relative !important;
}

.product-inner_custom {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-inner_custom {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-header_custom {
    flex: 0 0 200px !important; /* Fixed height */
    overflow: hidden !important;
    position: relative !important;
}
/*Custom*/

/* Hover state adjustments */
@media (min-width: 1200px) {
.products > .product:hover .product-inner {
    position: relative !important;
    width: 100% !important;
    min-height: 400px !important;
    background-color: #fff !important;
    box-shadow: 0 7px 17px 0 rgba(23, 84, 116, 0.18) !important;
    z-index: 10 !important;
}

.products > .product:hover .product-footer {
    display: block !important;
}

}

/* Button styling */
.btn-action {
    min-height: 40px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
}

/* Text truncation */
.woocommerce-loop-product__title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 8px 0 !important;
    font-size: 14px !important;
}

.price {
    font-size: 14px !important;
    margin: 5px 0 !important;
    display: block !important;
}


/* Category cards styling */
.home-product-categories .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-category {
    background-color: transparent !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.product-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.product-category a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
}

.product-category img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 10px !important;
}

.woocommerce-loop-category__title {
    background: transparent !important;
    color: #333 !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.woocommerce-loop-category__title mark.count {
    display: block !important;
    background: transparent !important;
    color: #666 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    margin-top: 5px !important;
}

/*PRODUCT DETAIL TABLE*/

.product-details-container {
    max-width: 900px;
    margin: 5px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-details-container h2 {
    margin-bottom: 20px;
    color: #0077b6;
    text-align: center;
}

.product-details-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.product-details-table th, .product-details-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.product-details-table th {
    background-color: #0077b6;
    color: white;
}

.product-details-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.product-details-table tr:hover {
    background-color: #e9f5ff;
}

@media (max-width: 600px) {
    .product-details-container {
        padding: 15px;
    }

    .product-details-table th, .product-details-table td {
        padding: 8px;
    }
}
