/*
Theme Name: Organic
Theme URI: https://templatesjungle.com/
Author: TemplatesJungle
Author URI: https://templatesjungle.com/
Description: Organic is specially designed product packaged for eCommerce store websites.
Version: 1.1
*/

/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/
/*--------------------------------------------------------------
/** VARIABLES
--------------------------------------------------------------*/
body {
  --heading-font        : "Inter", sans-serif;
  --bs-link-color: #333;
  --bs-link-hover-color:#333;

  --bs-link-color-rgb: 40,40,40;
  --bs-link-hover-color-rgb: 0,0,0;

  --bs-light-rgb: 248, 248, 248;

  --bs-font-sans-serif: "Inter", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 2;
  --bs-body-color: #747474;

  --bs-primary: #6BB252;
  --bs-primary-rgb: 107, 178, 82;
  
  --bs-secondary: #364127;
  --bs-secondary-rgb: 54, 65, 39;
  
  --bs-danger: #F95F09;
  --bs-danger-rgb: 249, 95, 9;

  --bs-success: #a3be4c;
  --bs-success-rgb: 163, 190, 76;
  
  --bs-primary-bg-subtle: #FFF9EB;
  --bs-success-bg-subtle: #eef5e5;
  
  --bs-border-color: #F7F7F7;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #f7a422;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d3d7dd;
  --bs-btn-disabled-border-color: transparent;
}
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ffc107;
  --bs-btn-hover-border-color: #ffc107;
  --bs-btn-focus-shadow-rgb: 13,110,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ffc107;
  --bs-btn-active-border-color: #ffc107;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff3cd;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #fff3cd;
  --bs-gradient: none;
}
.btn-outline-light {
  --bs-btn-color: #747474;
  --bs-btn-border-color: #EFEFEF;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #EFEFEF;
  --bs-btn-hover-border-color: #EFEFEF;
  --bs-btn-focus-shadow-rgb: 248,249,250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #EFEFEF;
  --bs-btn-active-border-color: #EFEFEF;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #EFEFEF;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #EFEFEF;
  --bs-gradient: none;
}
.btn-warning {
  --bs-btn-color: #747474;
  --bs-btn-bg: #FCF7EB;
  --bs-btn-border-color: #FCF7EB;
  --bs-btn-hover-color: #747474;
  --bs-btn-hover-bg: #FFECBE;
  --bs-btn-hover-border-color: #FFECBE;
  --bs-btn-focus-shadow-rgb: 217,164,6;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #FFECBE;
  --bs-btn-active-border-color: #FFECBE;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #FCF7EB;
  --bs-btn-disabled-border-color: #FCF7EB;
}
.btn-success {
  --bs-btn-color: #222;
  --bs-btn-bg: #EEF5E4;
  --bs-btn-border-color: #EEF5E4;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #9de3c2;
  --bs-btn-hover-border-color: #9de3c2;
  --bs-btn-focus-shadow-rgb: 60,153,110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #9de3c2;
  --bs-btn-active-border-color: #9de3c2;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #EEF5E4;
  --bs-btn-disabled-border-color: #EEF5E4;
}
.btn-danger {
  --bs-btn-color: #222;
  --bs-btn-bg: #FFEADA;
  --bs-btn-border-color: #FFEADA;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #ecc9af;
  --bs-btn-hover-border-color: #ecc9af;
  --bs-btn-focus-shadow-rgb: 60,153,110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #ecc9af;
  --bs-btn-active-border-color: #ecc9af;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #FFEADA;
  --bs-btn-disabled-border-color: #FFEADA;
}
body {
  letter-spacing: 0.03em;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--heading-font);
  color: var(--bs-dark);
  font-weight: 700;
}
.breadcrumb.text-white {
  --bs-breadcrumb-divider-color: #fff;
  --bs-breadcrumb-item-active-color: var(--bs-primary);
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--bs-primary);
}
.nav-pills .nav-link {
  --bs-nav-pills-link-active-color: #111;
  --bs-nav-pills-link-active-bg: #f1f1f1;
}
.pagination {
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  --bs-gutter-x: 3rem;
}
/*----------------------------------------------*/
/* 6. SITE STRUCTURE */
/*----------------------------------------------*/
/* 6.1 Header
--------------------------------------------------------------*/
/* Preloader */
.preloader-wrapper {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
  background: #fff;
}

.preloader-wrapper .preloader {
  margin: 20% auto 0;
  transform: translateZ(0);
}

.preloader:before,
.preloader:after {
  content: '';
  position: absolute;
  top: 0;
}

.preloader:before,
.preloader:after,
.preloader {
  border-radius: 50%;
  width: 2em;
  height: 2em;
  animation: animation 1.2s infinite ease-in-out;
}

.preloader {
  animation-delay: -0.16s;
}

.preloader:before {
  left: -3.5em;
  animation-delay: -0.32s;
}

.preloader:after {
  left: 3.5em;
}

@keyframes animation {
  0%,
  80%,
  100% {
    box-shadow: 0 2em 0 -1em var(--bs-primary);
  }
  40% {
    box-shadow: 0 2em 0 0 var(--bs-primary);
  }
}

/* *** Start editing below this line *** */
/* .container-fluid {
  max-width: 1600px;
}
*/
@media (min-width: 1400px) {
  .container-lg {
      max-width: 1600px;
  }
} 

.banner-blocks {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 2rem;
}
.block-1 { grid-area: 1 / 1 / 3 / 8; }
.block-2 { grid-area: 1 / 8 / 2 / 13; }
.block-3 { grid-area: 2 / 8 / 3 / 13; }

@media screen and (max-width:1140px) {
  .banner-blocks {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
  .block-1 { grid-area: 1 / 1 / 3 / 2; }
  .block-2 { grid-area: 3 / 1 / 4 / 2; }
  .block-3 { grid-area: 4 / 1 / 5 / 2; }
  
}

/* Swiper carousel */
.swiper-prev,
.swiper-next {
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: #F1F1F1;
  color: #222222;
  padding: 0;
  text-align: center;
  border-radius: 10px;
  --bs-btn-border-color: transparent;
  --bs-btn-active-bg: #ec9b22;
  --bs-btn-active-border-color: transparent;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-disabled-color: #ccc;
  --bs-btn-disabled-bg: #eaeaea;
  --bs-btn-disabled-border-color: #eaeaea
}
.swiper-prev:hover,
.swiper-next:hover {
  background: var(--bs-primary);
}

/* category carousel */
.category-carousel .category-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  text-align: center;
  padding: 60px 20px;
  margin: 20px 0;
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}
.category-carousel .category-item:hover {
  transform: translate3d(0,-10px,0);
  box-shadow: 0px 21px 44px rgba(0, 0, 0, 0.08);
}
.category-carousel .category-item .category-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #222222;
  margin-top: 20px;
}

/* brand carousel */
.brand-carousel .brand-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 16px;
}
.brand-carousel .brand-item img {
  width: 100%;
  border-radius: 12px;
}
.brand-carousel .brand-item .brand-details {
  margin-left: 15px;
}
.brand-carousel .brand-item .brand-title {
  margin: 0;
}

/* product tabs */
.product-tabs .nav-tabs {
  justify-content: flex-end;
  border: none;
  
  --bs-nav-link-hover-color: #111;
  --bs-nav-link-color: #555;
  --bs-nav-tabs-link-border-color: #fff;
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-tabs-link-active-border-color: #fff;
}
.product-tabs .nav-tabs .nav-link.active, 
.product-tabs .nav-tabs .nav-item.show .nav-link {
  /* border: none; */
  border-bottom: 3px solid var(--bs-primary);
}

/* products-carousel */
.products-carousel .swiper, .products-carousel .swiper-container {
  overflow: visible;
}

/* product-grid */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {  
   opacity: 1;
}
.product-item .button-area .quantity {
  padding: 0.5rem;
}
.product-item .button-area {
  display: none;
  position: absolute;
  text-align: center;
  background: #fff;
  width: 100%;
  left: 0;
  bottom: -55px;
  z-index: 1;
  box-shadow: 0px 20px 44px rgba(0, 0, 0, 0.08);
  /* transition: box-shadow 0.3s ease-out; */
}
.product-item {
  position: relative;
  padding: 16px;
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0px 0px 22px rgba(0, 0, 0, 0);
  /* transition: box-shadow 0.3s ease-out, margin 0.3s ease-out; */
}
.product-item:hover .button-area {
  display: block;
}
.product-item:hover {
  /* z-index: 1; */
  /* margin-bottom: -50px; */
  /* max-height: 500px; */
  box-shadow: 0px 0px 44px rgba(0, 0, 0, 0.08);
}
.product-item figure {
  text-align: center;
}
.product-item figure img {
  max-height: 210px;
  height: auto;
}
.product-item .product-qty {
  width: 85px;
}
.product-item .btn-link {
  text-decoration: none;
}
.product-item #quantity {
  height: auto;
  width: 28px;
  text-align: center;
  border: none;
  margin: 0;
  padding: 0;
}
.product-item .btn-number {
  width: 26px;
  height: 26px;
  line-height: 1;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  color: #222;
  padding: 0;
}

/* FIX PRODUCT GRID FOR MOBILE */
@media (max-width: 576px) {
  .product-item {
    padding: 10px;
    margin: 0 auto;
    border-radius: 10px;
  }
  .product-item figure img {
    max-height: 160px !important;
    width: auto !important;
  }
  .product-item .button-area {
    bottom: -45px;
  }
  .product-item:hover {
    box-shadow: 0px 0px 18px rgba(0,0,0,0.05);
  }

  h3.fs-6 {
    font-size: 0.85rem;
  }
  .product-item del,
  .product-item span {
    font-size: 0.8rem;
  }
  .badge {
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
  }
}

/* ENSURE GRID SPACES STAY EVEN */
.product-grid > .col {
  display: flex;
}
.product-item {
  width: 100%;
}

/* cart */
.cart .product-qty {
  min-width: 130px;
}

/* floating image */
.image-float {
  margin-top: -140px;
  margin-bottom: -140px;
}
@media screen and (max-width:991px) {
  .image-float {
    margin: 0;
  }
}
 /* post item */
.post-item .post-meta {
  font-size: 0.8rem;
  line-height: 1;
}
.post-item .post-meta svg {
  margin-right: 5px;
}

@media screen and (max-width: 991px) {
  /* offcanvas menu */
  .offcanvas-body .nav-item {
    font-weight: 700;
    border-bottom: 1px solid #d1d1d1;
  }
  .offcanvas-body .filter-categories {
    width: 100%;
    margin-bottom: 20px !important;
    border: 1px solid #d1d1d1 !important;
    padding: 14px;
    border-radius: 8px;
  }
  /* dropdown-menu */
  .dropdown-menu {
    padding: 0;
    border: none;
    line-height: 1.4;
    font-size: 0.9em;
  }
  .dropdown-menu a {
    padding-left: 0;
  }
  .dropdown-toggle::after {
    position: absolute;
    right: 0;
    top: 21px;
  }
}

/* single product */
/* product-thumbnail-slider */
.product-thumbnail-slider {
  height: 740px;
}
@media screen and (max-width:992px) {
  .product-thumbnail-slider {
    margin-top: 20px;
    height: auto;
  }
}
@media screen and (min-width:992px) {
  .product-thumbnail-slider {
    height: 420px;
  }
}
@media screen and (min-width:1200px) {
  .product-thumbnail-slider {
    height: 540px;
  }
}
@media screen and (min-width:1400px) {
  .product-thumbnail-slider {
    height: 740px;
  }
}

/* bootstrap extended */
.border-dashed {
  border-bottom: 1px dashed #d1d1d1;
}
.ls-1 {
  letter-spacing: -0.04em;
}
.button-area .btn-cart {
  text-wrap: nowrap;
  height: 3.3em;
  line-height: 2em;
  width: 100%;
}
.fs-7 {
  font-size: 0.8rem!important;
}

/* button */
.btn-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: bold;
  font-family: var(--bs-body-font-family);
  letter-spacing: 0.0875rem;
  text-transform: uppercase;
  text-decoration: none;
}

a.btn-link,
a.btn-link:after {
  transition: all .5s;
}

a.btn-link {
  position: relative;
}

a.btn-link:before,
a.btn-link:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  background-color: var(--bs-dark);
  height: 2px;
}

[data-bs-theme=dark] a.btn-link:after {
  background-color: var(--bs-light);
}

a.btn-link:before {
  background-color: rgba( var(--bs-light-rgb), 0.2 );
  width: 100%;
}

a.btn-link.is-checked:after,
a.btn-link:hover:after {
  width: 100%;
}

a.btn-link.text-white:after {
  background-color: var(--bs-light);
}

a.btn-link.text-light:after {
  background-color: var(--bs-light);
}

.navbar .megamenu{ padding: 1rem; }
/* ============ desktop view ============ */
@media all and (min-width: 992px) {
	
	.navbar .has-megamenu{position:static!important;}
	.navbar .megamenu{left:0; right:0; width:100%; margin-top:0;  }
	
}	
/* ============ desktop view .end// ============ */


/* ============ mobile view ============ */
@media(max-width: 991px){
	.navbar.fixed-top .navbar-collapse, .navbar.sticky-top .navbar-collapse{
		overflow-y: auto;
	    max-height: 90vh;
	    margin-top:10px;
	}
}
/* ============ mobile view .end// ============ */

   /* ===== USER DROPDOWN STYLES ===== */
        .user-dropdown {
            position: relative;
        }

        .user-dropdown #userDropdownToggle {
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 12px !important;
            border-radius: 6px;
            transition: all 0.2s ease;
        }

        .user-dropdown #userDropdownToggle:hover {
            background-color: rgba(107, 178, 82, 0.1);
        }

        .user-dropdown-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 12px);
            min-width: 260px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            z-index: 1050;
            padding: 0;
            border: 1px solid #e0e0e0;
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            visibility: hidden;
            display: none;
        }

        .user-dropdown-menu.show {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
            visibility: visible;
        }

        .user-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 20px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
        }

        .user-dropdown-header {
            padding: 18px 18px;
            border-bottom: 2px solid #f95f09;
            background: linear-gradient(135deg, rgba(107, 178, 82, 0.05) 0%, rgba(249, 95, 9, 0.05) 100%);
            border-radius: 10px 10px 0 0;
        }

        .user-dropdown-header strong {
            display: block;
            color: #333;
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .dropdown-item {
            display: block;
            padding: 14px 18px;
            text-decoration: none;
            color: #333;
            transition: all 0.2s ease;
            font-size: 14px;
            font-weight: 500;
            border-left: 3px solid transparent;
            cursor: pointer;
        }

        .dropdown-item:first-of-type {
            border-top: 1px solid #f0f0f0;
        }

        .dropdown-item:hover {
            background-color: rgba(107, 178, 82, 0.1);
            color: #f95f09;
            border-left-color: #f95f09;
            padding-left: 15px;
        }

        .dropdown-item:active {
            background-color: rgba(107, 178, 82, 0.15);
        }
        
         .product-hero {
            background: linear-gradient(135deg, rgba(107, 178, 82, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
            padding: 2.5rem 0;
            border-radius: 1rem;
        }

        .main-product-img {
            max-height: 520px;
            object-fit: contain;
            transition: all 0.45s ease;
            border-radius: 1rem;
            box-shadow: 0 8px 30px rgba(107, 178, 82, 0.15);
        }

        .main-product-img:hover {
            transform: scale(1.03);
            box-shadow: 0 12px 40px rgba(249, 95, 9, 0.15);
        }

        .thumbnail-img {
            height: 90px;
            object-fit: cover;
            border-radius: 0.75rem;
            cursor: pointer;
            opacity: 0.75;
            transition: all 0.3s ease;
            border: 3px solid transparent;
        }

        .thumbnail-img.active,
        .thumbnail-img:hover {
            opacity: 1;
            border-color: #f95f09;
            transform: scale(1.08);
        }

        .price-block {
            font-size: 2.4rem;
            font-weight: 700;
            color: #6bb252;
        }

        .original-price {
            font-size: 1.4rem;
            text-decoration: line-through;
            color: #999;
            opacity: 0.9;
        }

        .add-to-cart-btn {
            padding: 0.9rem 2.2rem;
            font-size: 1.15rem;
            transition: all 0.35s ease;
            background-color: #f95f09;
            border-color: #f95f09;
            color: white !important;
        }

        .add-to-cart-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(249, 95, 9, 0.35);
            background-color: #e55100;
            border-color: #e55100;
            color: white !important;
        }

        .nutrition-fact {
            background: white;
            border-radius: 1rem;
            padding: 1.25rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
            transition: transform 0.3s ease;
        }

        .nutrition-fact:hover {
            transform: translateY(-6px);
        }

        .key-features li {
            font-size: 1.05rem;
            margin-bottom: 0.9rem;
            position: relative;
            padding-left: 1.8rem;
        }

        .key-features li::before {
            content: "✓";
            color: #6bb252;
            position: absolute;
            left: 0;
            font-weight: bold;
        }

        .seller-info {
            background: rgba(107, 178, 82, 0.1);
            border-left: 4px solid #6bb252;
            border-radius: 1rem;
            padding: 1.25rem;
        }

        .seller-info strong {
            color: #6bb252;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .quantity-selector button {
            width: 40px;
            height: 40px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            border: 1px solid #ddd;
            background: white;
            color: #333;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .quantity-selector button:hover {
            background-color: #f5f5f5;
            border-color: #bbb;
        }

        .quantity-selector input {
            width: 60px;
            text-align: center;
            font-weight: 600;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 8px;
        }

        /* ===== VARIANT BADGE STYLES ===== */
        .variant-badge {
            display: inline-block;
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-top: 8px;
            text-transform: capitalize;
            box-shadow: 0 2px 8px rgba(0, 91, 179, 0.2);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #dc3545;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 11px;
            font-weight: bold;
            min-width: 20px;
            text-align: center;
        }

        .category-image {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }

        @media (max-width: 576px) {
            .price-block { font-size: 2rem; }
            .main-product-img { max-height: 380px; }
            .thumbnail-img { height: 70px; }
            .add-to-cart-btn { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
            
            .user-dropdown-menu {
                right: -50px;
                min-width: 240px;
            }
        }
        
        /*adding new css for product.php */
         /* ===== HEADER IMPROVEMENTS FOR MOBILE ===== */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: white;
        }

        .header-mobile {
            display: none;
        }

        .header-desktop {
            display: block;
        }

        /* ===== DESKTOP HAMBURGER MENU ===== */
        .desktop-hamburger {
            display: none;
        }

        @media (min-width: 769px) {
            .desktop-hamburger {
                display: inline-flex;
                border: none;
                background: none;
                cursor: pointer;
                align-items: center;
                gap: 10px;
                padding: 5px;
            }

            .desktop-hamburger:hover {
                color: #f95f09;
            }
        }

        @media (max-width: 768px) {
            .header-desktop {
                display: none;
            }

            .header-mobile {
                display: block !important;
            }

            /* Mobile Header Layout: Hamburger | Logo | User Icons */
            .mobile-header-top {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 12px 15px;
                border-bottom: 1px solid #eee;
            }

            .mobile-header-left {
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .mobile-header-center {
                flex: 1;
                text-align: center;
            }

            /* ===== LARGER LOGO ON MOBILE ===== */
            .mobile-header-center img {
                max-height: 50px;
                max-width: 140px;
            }

            .mobile-header-right {
                display: flex;
                align-items: center;
                gap: 8px;
            }

            .navbar-toggler {
                border: none;
                padding: 5px;
            }

            .navbar-toggler:focus {
                box-shadow: none;
            }

            /* Mobile Search Bar */
            .mobile-search-container {
                padding: 10px 15px;
                border-bottom: 1px solid #eee;
            }

            .mobile-search-bar {
                width: 100%;
                padding: 10px 15px;
                border: 1px solid #ddd;
                border-radius: 20px;
                font-size: 13px;
            }

            .mobile-search-bar:focus {
                outline: none;
                border-color: #f95f09;
            }
        }
         /* ===== USER DROPDOWN ===== */
        .user-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            min-width: 200px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            display: none;
            z-index: 1000;
            margin-top: 5px;
        }

        .user-dropdown-menu.show {
            display: block;
        }

        .user-dropdown-header {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            text-align: center;
        }

        .user-dropdown-menu .dropdown-item {
            display: block;
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
        }

        .user-dropdown-menu .dropdown-item:hover {
            background-color: #f8f9fa;
        }

        .cart-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #dc3545;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
        }

        .submenu {
            display: none;
            padding-left: 15px;
            background-color: #f8f9fa;
            list-style: none;
        }

        .submenu.show {
            display: block;
        }

        .submenu li {
            margin: 0;
        }

        .submenu a {
            font-size: 14px;
            font-weight: 500;
            word-break: break-word;
        }

        /* ===== BACK BUTTON ===== */
        .back-button {
            display: inline-block;
            margin-bottom: 20px;
            padding: 8px 16px;
            background-color: #f95f09;
            color: white;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .back-button:hover {
            background-color: #e85d08;
            color: white;
        }

        /* ===== RESPONSIVE DESIGN - ALL DEVICES ===== */
        
        /* ===== TABLET & LARGE MOBILE (600px - 768px) ===== */
        @media (max-width: 768px) and (min-width: 600px) {
            .category-header h2 {
                font-size: 22px;
            }

            .category-filter {
                gap: 10px;
            }

            .category-filter-btn {
                padding: 8px 12px;
                font-size: 12px;
            }

            .subcategory-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
                margin-bottom: 15px;
            }

            .product-item {
                border: none;
            }

            .product-item h3 {
                font-size: 12px;
                margin: 8px;
                min-height: 24px;
            }

            .product-price {
                font-size: 11px;
                margin: 0 8px 6px 8px;
                gap: 4px;
            }

            .product-price del {
                font-size: 10px;
            }

            .product-price .discounted {
                font-size: 12px;
            }

            .product-discount-badge {
                padding: 2px 4px;
                font-size: 9px;
            }

            .button-area {
                padding: 0 8px 8px 8px !important;
            }

            .quantity-input {
                padding: 5px;
                font-size: 10px;
            }

            .btn-cart {
                font-size: 10px !important;
                padding: 5px 6px !important;
            }

            .small {
                font-size: 9px !important;
            }

            .subcategory-image {
                width: 60px;
                height: 60px;
            }

            .subcategory-card-inner {
                padding: 10px;
            }

            .subcategory-name {
                font-size: 12px;
            }
        }

        /* ===== STANDARD MOBILE (480px - 599px) ===== */
        @media (max-width: 599px) and (min-width: 480px) {
            .container-lg {
                padding-left: 8px;
                padding-right: 8px;
            }

            .category-header {
                padding: 12px;
                margin-bottom: 15px;
            }

            .category-header h2 {
                font-size: 18px;
            }

            .category-header p {
                font-size: 12px;
            }

            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .product-item h3 {
                font-size: 11px;
                margin: 6px;
            }

            .product-price {
                font-size: 10px;
                margin: 0 6px 4px 6px;
            }

            .button-area {
                padding: 0 6px 6px 6px !important;
            }

            .subcategory-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }

            .subcategory-image {
                width: 55px;
                height: 55px;
            }
        }

        /* ===== SMALL MOBILE (375px - 479px) ===== */
        @media (max-width: 479px) {
            .container-lg {
                padding-left: 6px;
                padding-right: 6px;
            }

            .category-header {
                padding: 10px 8px;
                margin-bottom: 12px;
            }

            .category-header h2 {
                font-size: 15px;
            }

            .category-header p {
                font-size: 11px;
            }

            /* ===== PRODUCT GRID: 2 COLUMNS FOR ALL SMALL WIDTHS ===== */
            .product-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 6px !important;
                margin-bottom: 12px;
            }

            .product-item {
                border: none !important;
                background: white;
                border-radius: 4px;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

            .product-item figure {
                margin: 0;
                padding: 0;
                overflow: hidden;
                border-radius: 0;
                flex-shrink: 0;
                width: 100%;
                height: auto;
            }

            .product-item img {
                width: 100%;
                height: 100%;
                display: block;
                aspect-ratio: 1 / 1;
                object-fit: cover;
            }

            .product-item h3 {
                font-size: 10px;
                min-height: 18px;
                margin: 5px 4px 2px 4px !important;
                -webkit-line-clamp: 2;
                line-height: 1.2;
            }

            .product-price {
                font-size: 9px;
                gap: 2px;
                margin: 0 4px 2px 4px !important;
            }

            .product-price del {
                font-size: 8px;
            }

            .product-price .discounted {
                font-size: 10px;
            }

            .product-discount-badge {
                padding: 1px 2px;
                font-size: 7px;
            }

            .button-area {
                padding: 0 4px 4px 4px !important;
                margin-top: auto;
            }

            .button-area .row {
                gap: 4px !important;
                margin: 0 !important;
            }

            .button-area .col-5,
            .button-area .col-7 {
                padding: 0 !important;
            }

            .quantity-input {
                width: 100%;
                padding: 3px 4px;
                font-size: 9px;
                border: 1px solid #ddd;
                border-radius: 3px;
                box-sizing: border-box;
                height: 26px;
            }

            .btn-cart {
                font-size: 8px !important;
                padding: 3px 4px !important;
                height: 26px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .small {
                font-size: 8px !important;
                margin: 1px 0 0 0;
                line-height: 1.1;
            }

            .back-button {
                font-size: 11px;
                padding: 5px 10px;
                margin-bottom: 10px;
            }

            .category-filter {
                gap: 5px;
                margin-bottom: 10px;
                padding-bottom: 8px;
            }

            .category-filter-btn {
                padding: 5px 10px;
                font-size: 10px;
            }

            .subcategory-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 6px;
            }

            .subcategory-image {
                width: 50px;
                height: 50px;
                margin-bottom: 3px;
            }

            .subcategory-card-inner {
                padding: 5px;
            }

            .subcategory-name {
                font-size: 10px;
            }

            .mobile-header-center img {
                max-height: 45px;
            }
        }

        /* ===== EXTRA SMALL MOBILE (< 375px) ===== */
        @media (max-width: 374px) {
            .container-lg {
                padding-left: 4px;
                padding-right: 4px;
            }

            .category-header {
                padding: 8px 6px;
                margin-bottom: 10px;
            }

            .category-header h2 {
                font-size: 13px;
            }

            .category-header p {
                font-size: 10px;
            }

            .product-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 4px !important;
            }

            .product-item h3 {
                font-size: 9px;
                margin: 3px !important;
            }

            .product-price {
                font-size: 8px;
                margin: 0 3px 2px 3px !important;
            }

            .product-price del {
                font-size: 7px;
            }

            .product-price .discounted {
                font-size: 9px;
            }

            .button-area {
                padding: 0 3px 3px 3px !important;
            }

            .quantity-input {
                padding: 2px 3px;
                font-size: 8px;
                height: 24px;
            }

            .btn-cart {
                font-size: 7px !important;
                padding: 2px 3px !important;
                height: 24px;
            }

            .small {
                font-size: 7px !important;
            }

            .mobile-header-center img {
                max-height: 45px;
            }
        }
          /* ===== NO PRODUCTS MESSAGE ===== */
        .no-products {
            text-align: center;
            padding: 60px 20px;
            background: #f8f9fa;
            border-radius: 8px;
            margin: 40px 0;
        }

        .no-products h3 {
            color: #333;
            font-size: 24px;
            margin-bottom: 10px;
        }

        .no-products p {
            color: #666;
            font-size: 16px;
        }

       