  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: #f5f7fb;
      color: #1e293b;
      line-height: 1.5;
      padding-bottom: 80px;
    }

    /* DARK MODE */
    body.dark {
      background-color: #0f172a;
      color: #e2e8f0;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Header & Top Bar - modern compact */
    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      padding: 16px 0 12px;
      border-bottom: 1px solid rgba(0,0,0,0.08);
      gap: 16px;
	   position: sticky;
    top: 0;
    background: #f5f7fb;
    z-index: 100;
	width:100%;
    }
    body.dark .top-bar {
      border-bottom-color: #334155;
    }
    .logo h1 {
      font-size: 1.8rem;
      font-weight: 800;
      background: linear-gradient(135deg, #2c7a47, #4c9a2e);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.5px;
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
    }
    .logo .herbal-tag {
      font-size: 0.85rem;
      font-weight: 500;
      background: #e9f5e9;
      color: #2c7a47;
      padding: 2px 8px;
      border-radius: 40px;
      letter-spacing: normal;
      margin-left: 6px;
    }
    body.dark .logo .herbal-tag {
      background: #1e3a2f;
      color: #a3e0a3;
    }

    /* Desktop Navigation */
    .desktop-nav {
      display: flex;
      gap: 24px;
      align-items: center;
    }
    .desktop-nav .nav-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.75rem;
      font-weight: 500;
      cursor: pointer;
      transition: 0.1s;
      color: inherit;
      text-decoration: none;
    }
    .desktop-nav .nav-link i {
      font-size: 1.2rem;
      margin-bottom: 4px;
    }
    .desktop-nav .nav-link:hover {
      color: #ff6b35;
      transform: translateY(-2px);
    }

    /* Modern Compact Dark Mode Toggle (icon only) */
    .dark-mode-toggle {
      background: #eef2ff;
      border: none;
      border-radius: 40px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.3rem;
      transition: all 0.2s;
      color: #1e293b;
    }
    body.dark .dark-mode-toggle {
      background: #1e293b;
      color: #facc15;
    }
    .dark-mode-toggle:hover {
      transform: scale(0.96);
      background: #e0e7ff;
    }
    body.dark .dark-mode-toggle:hover {
      background: #2d3a4e;
    }

    /* Mobile Bottom Navigation (hidden on desktop) */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(8px);
      display: flex;
      justify-content: space-around;
      padding: 8px 0 16px;
      border-top: 1px solid #e2e8f0;
      z-index: 100;
      box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    }
    body.dark .bottom-nav {
      background: #0f172ae6;
      border-top-color: #334155;
    }
    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 0.7rem;
      font-weight: 500;
      cursor: pointer;
      transition: 0.1s;
    }
    .nav-item i {
      font-size: 1.3rem;
    }
    .nav-item:hover { color: #ff6b35; transform: translateY(-2px);}

    /* Hero + Countdown Grid */
    .hero {
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      background: white;
      margin: 32px 0;
      border-radius: 32px;
      padding: 24px 28px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.02);
      align-items: center;
    }
    body.dark .hero {
      background: #1e293b;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .hero-product {
      flex: 1.2;
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      align-items: center;
    }
    .product-img {
      width: 140px;
      height: 140px;
      object-fit: contain;
      background: #f8fafc;
      border-radius: 24px;
      padding: 8px;
    }
    body.dark .product-img {
      background: #0f172a;
    }
    .product-info h2 {
      font-size: 1.7rem;
      font-weight: 700;
    }
    .product-info p {
      color: #475569;
      margin: 8px 0;
    }
    body.dark .product-info p {
      color: #cbd5e1;
    }
    .price {
      font-size: 1.8rem;
      font-weight: 800;
      color: #0f172a;
    }
    body.dark .price {
      color: #facc15;
    }
    .btn-buy {
      background: #ff6b35;
      border: none;
      padding: 12px 28px;
      border-radius: 40px;
      font-weight: 700;
      color: white;
      margin-top: 12px;
      cursor: pointer;
      font-size: 1rem;
      transition: 0.2s;
    }
    .btn-buy:hover {
      background: #e05a2a;
      transform: scale(1.02);
    }
    .countdown-card {
      flex: 0.9;
      background: #fffbeb;
      padding: 20px;
      border-radius: 28px;
      text-align: center;
      border: 1px solid #ffe6b3;
    }
    body.dark .countdown-card {
      background: #2d3a4e;
      border-color: #475569;
    }
    .countdown-label {
      font-weight: 700;
      font-size: 1.3rem;
      margin-bottom: 12px;
    }
    .timer {
      font-family: monospace;
      font-size: 2rem;
      font-weight: 800;
      letter-spacing: 2px;
      background: #0f172a;
      color: #facc15;
      display: inline-block;
      padding: 8px 24px;
      border-radius: 60px;
    }
    body.dark .timer {
      background: #00000066;
      color: #ffd966;http://127.0.0.1/ecommerce/category.php?slug=sports-outdoors
    }

    /* ===== SLIDABLE COMPONENTS ===== */
    .slider-container {
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      scrollbar-width: thin;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      padding-bottom: 12px;
      margin-bottom: 8px;
    }
    .slider-container::-webkit-scrollbar {
      height: 5px;
    }
    .slider-container::-webkit-scrollbar-track {
      background: #e2e8f0;
      border-radius: 10px;
    }
    .slider-container::-webkit-scrollbar-thumb {
      background: #ff6b35;
      border-radius: 10px;
    }
    body.dark .slider-container::-webkit-scrollbar-track {
      background: #334155;
    }
    .categories-slider {
      display: flex;
      gap: 18px;
      white-space: normal;
    }
    .category-card {
      flex: 0 0 auto;
      width: 150px;
      background: white;
      padding: 18px 12px;
      text-align: center;
      border-radius: 28px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0,0,0,0.03);
      transition: all 0.2s;
      border: 1px solid #eef2ff;
      white-space: normal;
    }
    body.dark .category-card {
      background: #1e293b;
      border-color: #334155;
    }
    .category-card i {
      font-size: 2rem;
      display: block;
      margin-bottom: 10px;
      color: #ff6b35;
    }
    .category-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    }

    /* Products scroll */
    .top-products-row {
      display: flex;
      flex-wrap: nowrap;
      gap: 28px;
      overflow-x: auto;
      scrollbar-width: thin;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 12px;
    }
    .product-card {
      flex: 0 0 auto;
      width: 260px;
      background: white;
      border-radius: 28px;
      padding: 20px;
      text-align: center;
      transition: 0.2s;
      color: #1e293b;
      position: relative;
    }
    body.dark .product-card {
      background: #0f172a;
      color: #f1f5f9;
    }
    @media (max-width: 700px) {
      .product-card { width: 240px; }
    }
    .badge {
      position: absolute;
      top: 16px;
      left: 16px;
      background: #ff4444;
      color: white;
      font-size: 0.7rem;
      font-weight: bold;
      padding: 4px 12px;
      border-radius: 30px;
    }
    .badge.new {
      background: #2b9e5e;
    }
    .badge.herbal {
      background: #3c9e3c;
    }
    .product-card img {
      width: 120px;
      height: 110px;
      object-fit: contain;
      margin: 10px auto;
    }
    .product-title {
      font-weight: 800;
      font-size: 1.1rem;
    }
    .price-strike {
      text-decoration: line-through;
      color: #888;
      font-size: 0.9rem;
      margin-right: 8px;
    }
    .sale-price {
      font-weight: 800;
      color: #ff6b35;
      font-size: 1.3rem;
    }
    .sold-progress {
      margin: 12px 0 8px;
    }
    .progress-bar-bg {
      background: #e2e8f0;
      border-radius: 20px;
      height: 8px;
      width: 100%;
      overflow: hidden;
    }
    .progress-fill {
      background: #ff6b35;
      height: 8px;
      border-radius: 20px;
      width: 0%;
    }
    .btn-small {
      background: transparent;
      border: 1.5px solid #ff6b35;
      padding: 6px 18px;
      border-radius: 40px;
      font-weight: 600;
      margin-top: 12px;
      cursor: pointer;
      transition: 0.2s;
    }
    .btn-small:hover {
      background: #ff6b35;
      color: white;
    }
    .flash-sale {
      background: #fff0db;
      border-radius: 30px;
      padding: 18px 24px;
      margin: 35px 0 30px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 15px;
    }
    body.dark .flash-sale {
      background: #2d2a1f;
    }
    .flash-sale span {
      font-weight: 800;
      font-size: 1.3rem;
    }
    .flash-timer {
      font-family: monospace;
      font-size: 1.7rem;
      font-weight: 800;
      background: #0f172a;
      color: #ffc107;
      padding: 6px 20px;
      border-radius: 50px;
    }

    /* Responsive: hide desktop nav on mobile, show bottom nav */
    @media (max-width: 880px) {
      .desktop-nav {
        display: none;
      }
      .bottom-nav {
        display: flex;
      }
      body {
        padding-bottom: 80px;
      }
    }
    @media (min-width: 881px) {
      .bottom-nav {
        display: none;
      }
      body {
        padding-bottom: 0;
      }
    }

    /* Section titles & misc */
    .section-title {
      font-size: 1.6rem;
      font-weight: 700;
      margin: 40px 0 20px 0;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
    }
    footer { margin-top: 30px; text-align: center; font-size: 0.75rem; opacity: 0.6; padding: 20px 0; }
    .drag-active { user-select: none; cursor: grab; }
    .product-card-slide {
      flex: 0 0 auto;
      width: 220px;
      background: white;
      border-radius: 28px;
      padding: 20px;
      text-align: center;
      transition: 0.2s;
      color: #1e293b;
      position: relative;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    body.dark .product-card-slide {
      background: #0f172a;
      color: #f1f5f9;
    }
    .products-slider {
      display: flex;
      gap: 24px;
    }


    .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
}
.nav-link {
    position: relative;
    text-decoration: none;
    color: inherit;
}
/* Dropdown styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-trigger {
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
}
.nav-dropdown.open .dropdown-menu {
    display: block;
}
.dropdown-item {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.85rem;
}
.dropdown-item i {
    width: 20px;
    margin-right: 8px;
}
.dropdown-item:hover {
    background: #f1f5f9;
}
body.dark .dropdown-menu {
    background: #1e293b;
}
body.dark .dropdown-item {
    color: #e2e8f0;
}
body.dark .dropdown-item:hover {
    background: #334155;
}

/* Bottom Navigation Colors */
.bottom-nav .nav-item {
    color: #64748b;  /* slate-500 – subtle grey */
    transition: color 0.2s, transform 0.1s;
    text-decoration: none;
}
.bottom-nav .nav-item:hover {
    color: #ff6b35;  /* brand orange */
    transform: translateY(-2px);
}
.bottom-nav .nav-item:active {
    transform: translateY(0px);
}

/* Dark mode bottom nav colors */
body.dark .bottom-nav .nav-item {
    color: #94a3b8;  /* slate-400 – lighter grey for dark background */
}
body.dark .bottom-nav .nav-item:hover {
    color: #ff8c5a;  /* slightly lighter orange on dark */
}

/* Optional: active/current page indicator (add class 'active' to nav-item) */
.bottom-nav .nav-item.active {
    color: #ff6b35;
}
body.dark .bottom-nav .nav-item.active {
    color: #ff8c5a;
}


@media (max-width: 768px) {
    .category-page .category-sidebar {
        flex: 0 0 100% !important;
    }
    .category-sidebar .filter-box {
        padding: 8px 12px;
    }
    .sort-options {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .sort-link {
        display: inline-block;
        background: #f1f5f9;
        border-radius: 40px;
        font-size: 0.8rem;
    }
    body.dark .sort-link {
        background: #334155;
    }
    .sort-link.active {
        background: #ff6b35;
        color: white;
    }
}