/* ========================================
   Jachai-Style Ecommerce Theme
   Inspired by: Jachai.com, Daraz, Pickaboo
   Primary Color: #E52727 (Jachai Red)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #E52727;
  --primary-dark: #C41E1E;
  --primary-light: #FF4444;
  --secondary: #1A1A2E;
  --accent: #FF6B00;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --bg-gray: #F0F2F5;
  --text-dark: #1A1A2E;
  --text-muted: #6C757D;
  --text-light: #FFFFFF;
  --border-color: #E8E8E8;
  --border-light: #F0F0F0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--bg-gray);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-contain {
  object-fit: contain;
}

.img-cover {
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1200px) {
  .container { padding: 0 32px; }
}

/* ========================================
   1. TOP HEADER BAR
   ======================================== */
.top-header {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  line-height: 1;
  display: none;
}

@media (min-width: 992px) {
  .top-header { display: block; }
}

.top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.top-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-header-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-header-left i {
  font-size: 11px;
  color: var(--primary-light);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-header-right a {
  color: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.top-header-right a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.top-header-right a i {
  font-size: 11px;
}

.top-header-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  margin: 0 4px;
}

/* ========================================
   2. MAIN HEADER
   ======================================== */
.main-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

@media (max-width: 991px) {
  .main-header .container {
    min-height: 60px;
    gap: 12px;
    padding: 8px 16px;
    flex-wrap: wrap;
  }
}

/* Logo */
.header-logo {
  flex-shrink: 0;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
}

@media (max-width: 991px) {
  .header-logo img {
    height: 32px;
  }
}

/* Hamburger - Mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991px) {
  .mobile-menu-toggle { display: flex; }
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

@media (max-width: 991px) {
  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-gray);
  border: 2px solid transparent;
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(229, 39, 39, 0.1);
}

.search-form select {
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  min-width: 120px;
  border-right: 1px solid var(--border-color);
  font-family: var(--font-family);
  max-width: 13rem;
}

@media (max-width: 575px) {
  .search-form select { display: none; }
}

.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  font-family: var(--font-family);
  color: var(--text-dark);
  min-width: 0;
}

.search-form input::placeholder {
  color: #999;
}

.search-form button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.9rem 22px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 50px 50px 0;
}

.search-form button:hover {
  background: var(--primary-dark);
}

@media (max-width: 991px) {
  .search-form button {
    padding: 9px 18px;
  }
  .search-form input {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* Header Right Icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .header-right {
    gap: 2px;
    margin-left: auto;
  }
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 18px;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.header-icon:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

@media (max-width: 991px) {
  .header-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

.header-icon .badge-count,
.header-cart-icon .badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid white;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(229,39,39,0.3);
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
}

.header-btn-primary {
  background: var(--primary);
  color: white;
}

.header-btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.header-btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}

.header-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 575px) {
  .header-btn { display: none; }
}

/* Header Cart */
.header-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  height: 44px;
}

.header-cart:hover {
  background: var(--bg-gray);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-cart-icon {
  position: relative;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.header-cart-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: unset;
}

@media (max-width: 767px) {
  .header-cart-info { display: none; }
}

.header-cart-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-cart-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ========================================
   3. NAVIGATION BAR
   ======================================== */
.nav-bar {
  background: var(--primary);
  position: relative;
  z-index: 999;
}

.nav-bar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-bar .container {
  display: flex;
  align-items: center;
  min-height: 46px;
}

@media (max-width: 991px) {
  .nav-bar .container {
    min-height: 42px;
  }
  .nav-bar { display: none; }
}

.nav-bar .nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.nav-bar .nav-list > li {
  position: relative;
}

.nav-bar .nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.nav-bar .nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: white;
  border-radius: 3px 3px 0 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar .nav-list > li > a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-bar .nav-list > li > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-bar .nav-list > li.active > a {
  color: #fff;
}

.nav-bar .nav-list > li.active > a::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-bar .nav-list > li > a i:first-child {
  font-size: 14px;
}

.nav-bar .nav-list > li > a .arrow {
  font-size: 10px;
  margin-left: 4px;
}

/* Category trigger in nav */
.nav-category-trigger {
  background: rgba(0,0,0,0.15);
  padding: 12px 22px !important;
  font-weight: 600 !important;
  border-radius: 0;
  margin-right: 4px;
}

.nav-category-trigger:hover {
  background: rgba(0,0,0,0.25) !important;
}

.nav-category-trigger::after {
  display: none !important;
}

/* ========================================
   4. MEGA MENU
   ======================================== */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 780px;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-list > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mega-menu-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-menu-col h4 img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.mega-menu-col ul li {
  margin-bottom: 4px;
  width: 100%;
}

.mega-menu-col ul li a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
  padding-left: 36px;
}

.mega-menu-col ul li a:hover {
  color: var(--primary);
  padding-left: 40px;
}

.mega-menu-col ul li.sub-label a {
  font-weight: 600;
  color: var(--text-dark);
  padding-left: 36px;
}

.mega-menu-col ul li.sub-label a:hover {
  color: var(--primary);
  padding-left: 40px;
}

/* All Categories Mega Menu */
.all-categories-mega {
  width: 900px;
}

/* ========================================
   5. HERO SECTION
   ======================================== */
.hero-section {
  background: var(--bg-gray);
  padding: 12px 0;
}

.hero-section .container {
  display: block;
}

.hero-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 380px;
  height: 23rem;
}

.hero-row .hero-categories {
  width: 260px;
  flex-shrink: 0;
}

.hero-row .hero-slider {
  flex: 1;
  min-width: 0;
  display: flex;
}

.hero-row .hero-slider .slider-container {
  display: flex;
  width: 100%;
}

.hero-row .hero-slider .slider-slide-inner {
  height: 100% !important;
}

.hero-row .hero-support {
  width: 260px;
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  .hero-row .hero-categories {
    width: 220px;
  }
  .hero-row .hero-support {
    display: none;
  }
}

@media (max-width: 991px) {
  .hero-row {
    display: block;
    gap: 0;
    overflow: visible;
    min-height: auto;
  }
  .hero-row .hero-categories {
    display: none;
  }
  .hero-section { padding: 0; }
}

/* Hero Sidebar Categories */
.hero-categories {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-categories-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-categories-header {
  flex-shrink: 0;
}

.hero-categories-list-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.hero-categories-list-wrap::-webkit-scrollbar {
  width: 3px;
}

.hero-categories-list-wrap::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.hero-categories-list-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.hero-categories-list-wrap::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.hero-categories-list-wrap.scrollbar-visible::-webkit-scrollbar-thumb,
.hero-categories-list-wrap:hover::-webkit-scrollbar-thumb {
  background: rgba(229, 39, 39, 0.6);
}

.hero-categories-list-wrap.scrollbar-visible,
.hero-categories-list-wrap:hover {
  scrollbar-color: rgba(229, 39, 39, 0.6) transparent;
}

.hero-categories-list-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 39, 39, 1);
}

@media (max-width: 991px) {
  .hero-categories { display: none; }
}

.hero-categories-header {
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.hero-categories-list > li {
  border-bottom: 1px solid var(--border-light);
  width: 100%;
}

.hero-categories-list > li:last-child {
  border-bottom: none;
}

.hero-categories-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-dark);
  transition: var(--transition);
  gap: 10px;
  min-height: 44px;
}

.hero-categories-list > li > a:hover {
  background: rgba(229, 39, 39, 0.06);
  color: var(--primary);
  padding-left: 20px;
}

.hero-categories-list > li > a:active,
.hero-categories-list > li.active > a {
  background: rgba(229, 39, 39, 0.08);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.hero-categories-list > li > a .cat-icon {
  width: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-categories-list > li > a .cat-name {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-categories-list > li > a .cat-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.hero-categories-list > li > a:hover .cat-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.hero-categories.mega-visible {
  overflow: visible !important;
}

/* Category sidebar nested menu */
.cat-sub-menu {
  display: none;
  background: var(--bg-light);
  padding: 6px 0;
  overflow-y: auto;
  max-height: 320px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.cat-sub-menu::-webkit-scrollbar {
  width: 3px;
}

.cat-sub-menu::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.cat-sub-menu::-webkit-scrollbar-track {
  background: transparent;
}

.cat-sub-menu::-webkit-scrollbar-thumb {
  background: rgba(229, 39, 39, 0);
  border-radius: 3px;
  transition: background 0.25s ease;
}

.cat-sub-menu:hover::-webkit-scrollbar-thumb,
.cat-sub-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 39, 39, 1);
}

.cat-sub-menu:hover {
  scrollbar-color: #E52727 transparent;
}

.cat-sub-menu li a {
  display: block;
  padding: 7px 16px 7px 44px;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-sub-menu li a:hover {
  color: var(--primary);
  background: rgba(229, 39, 39, 0.06);
  padding-left: 48px;
}

.cat-sub-sub-menu {
  display: none;
  background: rgba(0,0,0,0.02);
  overflow-y: auto;
  max-height: 240px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.cat-sub-sub-menu::-webkit-scrollbar {
  width: 3px;
}

.cat-sub-sub-menu::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.cat-sub-sub-menu::-webkit-scrollbar-track {
  background: transparent;
}

.cat-sub-sub-menu::-webkit-scrollbar-thumb {
  background: rgba(229, 39, 39, 0);
  border-radius: 3px;
  transition: background 0.25s ease;
}

.cat-sub-sub-menu:hover::-webkit-scrollbar-thumb,
.cat-sub-sub-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(229, 39, 39, 1);
}

.cat-sub-sub-menu:hover {
  scrollbar-color: #E52727 transparent;
}

.cat-sub-sub-menu li a {
  padding-left: 58px;
  font-size: 12px;
}

.cat-sub-sub-menu .cat-sub-sub-menu li a {
  padding-left: 72px;
  font-size: 11.5px;
}

.cat-sub-sub-menu .cat-sub-sub-menu .cat-sub-sub-menu li a {
  padding-left: 86px;
  font-size: 11px;
}

/* Show sub-menus on hover (cascading flyout within sidebar) */
.hero-categories-list > li:hover > .cat-sub-menu,
.cat-sub-menu > li:hover > .cat-sub-sub-menu,
.cat-sub-sub-menu > li:hover > .cat-sub-sub-menu {
  display: block;
}

/* ========================================
    5A. HERO MEGA MENU PANEL
    ======================================== */
.hero-categories:has(.hero-mega-panel.active) .hero-categories-inner {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.hero-mega-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 680px;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.hero-mega-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-mega-content {
  max-height: 480px;
  overflow-y: auto;
  padding: 20px 24px 16px;
}

.hero-mega-content {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
  opacity: 1;
}

.hero-mega-content{
   max-height:100%;
   overflow:auto;
}

.hero-mega-content::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.hero-mega-content::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

.hero-mega-content::-webkit-scrollbar-track {
  background: transparent;
}

.hero-mega-content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 20px;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.hero-mega-panel:hover .hero-mega-content::-webkit-scrollbar-thumb,
.hero-mega-content:hover::-webkit-scrollbar-thumb,
.hero-mega-content::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.hero-mega-content {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.hero-mega-panel:hover .hero-mega-content {
  scrollbar-color: var(--primary) transparent;
}

.hero-mega-scrollbar {
    overflow: auto !important;
}

/* Chrome, Edge, Safari */
.hero-mega-scrollbar::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.hero-mega-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.hero-mega-scrollbar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 50px;
}

/* Show scrollbar on hover */
.hero-mega-scrollbar:hover::-webkit-scrollbar-thumb {
    background: var(--primary-color, #ef233c);
}

/* Optional: show while scrolling/clicking */
.hero-mega-scrollbar:active::-webkit-scrollbar-thumb {
    background: var(--primary-color, #ef233c);
}

/* Firefox */
.hero-mega-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.hero-mega-scrollbar:hover {
    scrollbar-color: var(--primary-color, #ef233c) transparent;
}

.mega-section {
  margin-bottom: 20px;
}

.mega-section:last-child {
  margin-bottom: 0;
}

.mega-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-section-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mega-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  width: 82px;
  flex-shrink: 0;
  transition: var(--transition);
}

.mega-item:hover {
  transform: translateY(-2px);
}

.mega-item-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-white);
  transition: var(--transition);
  position: relative;
}

.mega-item:hover .mega-item-circle {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(229, 39, 39, 0.15);
}

.mega-item-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mega-item-circle .mega-item-icon {
  font-size: 24px;
  color: var(--primary);
  opacity: 0.6;
}

.mega-item-circle .view-all-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(229, 39, 39, 0.05);
  border-radius: 50%;
}

.mega-item-circle .view-all-icon i {
  font-size: 24px;
  color: var(--primary);
}

.mega-item-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
  max-width: 82px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.mega-item-label.view-all-label {
  font-weight: 600;
}

.mega-item:hover .mega-item-label {
  color: var(--primary);
}

@media (max-width: 1199px) {
  .hero-mega-panel {
    width: 520px;
  }
}

@media (max-width: 991px) {
  .hero-mega-panel {
    display: none !important;
  }
}

/* Hero Slider */
.hero-slider {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 991px) {
  .hero-slider {
    border-radius: 0;
    box-shadow: none;
  }
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
  min-width: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.slider-slide picture img {
  height: 380px;
}

@media (max-width: 991px) {
  .slider-slide img { height: 200px; }
  .slider-slide picture img { height: 200px; }
  .slider-slide-inner { height: 200px !important; }
}

@media (max-width: 575px) {
  .slider-slide img { height: 160px; }
  .slider-slide picture img { height: 160px; }
  .slider-slide-inner { height: 160px !important; }
}

.slider-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.slider-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 30px 40px 30px 180px;
  pointer-events: none;
}

.slider-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
  max-width: 600px;
}

.slider-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  line-height: 1.5;
}

.slider-btn {
  display: inline-block;
  margin-top: 10px;
  background: white;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  pointer-events: auto;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.slider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
  .slider-content { padding: 20px 20px 20px 30px; }
  .slider-title { font-size: 1.3rem; max-width: 100%; }
  .slider-subtitle { font-size: 0.9rem; max-width: 100%; }
  .slider-btn { padding: 10px 24px; font-size: 13px; }
}

@media (max-width: 575px) {
  .slider-title { font-size: 1.1rem; }
  .slider-subtitle { font-size: 0.8rem; }
  .slider-btn { padding: 8px 20px; font-size: 12px; }
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

@media (max-width: 991px) {
  .slider-dots { bottom: 10px; gap: 6px; }
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  opacity: 0;
  backdrop-filter: blur(4px);
}

.slider-container:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(229,39,39,0.3);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

@media (max-width: 991px) {
  .slider-arrow { display: none; }
}

/* Hero Support Card */
.hero-support {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hero-support-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
}

.hero-support-inner::-webkit-scrollbar {
  width: 3px;
}

.hero-support-inner::-webkit-scrollbar-track {
  background: transparent;
}

.hero-support-inner::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background 0.25s ease;
}

.hero-support-inner:hover::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}

.hero-support-inner {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.support-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 18px 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.support-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.support-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
}

.support-card h4 i {
  color: var(--primary);
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.support-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.support-card .phone {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.support-card .email {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* ========================================
   6a. HERO CAMPAIGNS SIDEBAR (Desktop)
   ======================================== */
.hero-campaigns {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-campaigns::-webkit-scrollbar {
  display: none;
  width: 0;
}

.hcc-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
  margin-bottom: 0.5rem !important;
}

.hcc-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.hcc-image-wrap {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.hcc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hcc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), #2D2D5E);
  color: rgba(255,255,255,0.2);
  font-size: 36px;
}

/* Countdown overlay */
.hero-campaigns .cmp-single-countdown {
    position: absolute;
    top: 35%;
    left: 20%;
    z-index: 2;
}

.cmp-single-countdown .cmp-countdown {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.55);
  border-radius: 5px;
  padding: 3px 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.cmp-single-countdown .cmp-cd-block {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.cmp-single-countdown .cmp-cd-block span {
  font-variant-numeric: tabular-nums;
  min-width: 14px;
  text-align: center;
}

.cmp-single-countdown .cmp-cd-block small {
  font-size: 7px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.65;
}

.cmp-single-countdown .cmp-cd-sep {
  opacity: 0.4;
  font-size: 9px;
}

/* Bottom row: title + badge */
.hcc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  background: #fff;
}

.hcc-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcc-bottom .cmp-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  line-height: 1.3;
}

.hcc-bottom .cmp-card-badge i { font-size: 9px; }

.hcc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.hcc-empty i { font-size: 32px; opacity: 0.3; }

/* Responsive */
@media (max-width: 1199px) {
  .hero-campaigns { display: none !important; }
}

/* ========================================
   6. CATEGORIES SECTION (Mobile)
   ======================================== */
.mobile-categories {
  display: none;
  padding: 12px 0;
  background: var(--bg-white);
}

@media (max-width: 991px) {
  .mobile-categories { display: block; }
}

.mobile-categories .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.mobile-categories .section-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
}

.mobile-categories .section-header h3 i {
  color: var(--primary);
}

.mobile-categories .section-header a {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.mobile-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}

@media (max-width: 420px) {
  .mobile-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mobile-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}

.mobile-cat-item:active {
  transform: scale(0.96);
}

.mobile-cat-item .cat-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mobile-cat-item .cat-img img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-cat-item span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  color: var(--text-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   6c. CATEGORY GRID SECTION
   ======================================== */
.section-category-grid {
  background: var(--bg-gray);
}

.cg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cg-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
}

.cg-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.cg-card-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

.cg-card-link i {
  font-size: 9px;
  margin-top: 1px;
}

.cg-card-link:hover {
  text-decoration: underline;
}

.cg-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 2px 10px 10px;
}

.cg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.cg-item:hover {
  background: var(--bg-light);
}

.cg-item-img {
  width: 100%;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(0,0,0,0.35);
  margin-bottom: 5px;
  background: var(--bg-light);
  flex-shrink: 0;
}

.cg-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cg-item-letter {
  font-size: 20px;
  font-weight: 800;
  color: rgba(0,0,0,0.25);
}

.cg-item-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-word;
}

@media (max-width: 991px) {
  .cg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .cg-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   7. SECTION TITLES
   ======================================== */
.section-wrap {
  padding: 20px 0;
}

.section-wrap-sm {
  padding: 12px 0;
}

/* Section gap utility - adds consistent vertical rhythm */
.section-gap {
  margin-bottom: 8px;
}

.section-gap-sm {
  margin-bottom: 4px;
}

/* Consistent background for content sections */
.section-content {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
  .section-wrap {
    padding: 12px 0;
  }
  .section-wrap-sm {
    padding: 8px 0;
  }
  .section-content {
    padding: 12px;
    border-radius: 0;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin: 0px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 16px;
  }
  .section-title::before {
    height: 20px;
  }
}

.section-view-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-view-all:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ========================================
   8. PRODUCT CARDS
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 991px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

@media (max-width: 575px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-light);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card .badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  line-height: 1.2;
}

.product-card .badge-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  line-height: 1.2;
}

.product-card .wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-card .wishlist-btn:hover {
  background: var(--primary);
  color: white;
}

.product-card .product-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 12px;
  background: var(--bg-white);
  transition: var(--transition);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-card .product-body {
  padding: 10px 12px 14px;
}

.product-card .product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  margin-bottom: 6px;
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.product-card .product-rating .stars {
  color: #FFB800;
  font-size: 11px;
  letter-spacing: 1px;
}

.product-card .product-rating .count {
  font-size: 10px;
  color: var(--text-muted);
}

.product-card .product-pricing {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-card .current-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.product-card .old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .product-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.product-card .add-cart-btn {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-card .add-cart-btn:hover {
  background: var(--primary-dark);
}

@media (max-width: 575px) {
  .product-card .product-body { padding: 8px; }
  .product-card .product-name { font-size: 12px; min-height: 32px; }
  .product-card .current-price { font-size: 14px; }
  .product-card .old-price { font-size: 11px; }
  .product-card .add-cart-btn {
    font-size: 11px;
    padding: 6px 10px;
  }
  .product-card .product-img { padding: 8px; }
  .product-card .badge-discount { font-size: 9px; padding: 2px 6px; }
}

/* ========================================
   9. BANNER
   ======================================== */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 767px) {
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.banner-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.banner-card:hover {
  box-shadow: var(--shadow-md);
}

.banner-card img {
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  transition: var(--transition);
}

.banner-card:hover img {
  transform: scale(1.02);
}

.banner-full {
  grid-column: 1 / -1;
}

/* ========================================
   10. BRAND / CONCERN CARDS
   ======================================== */
.brand-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scrollbar-width: none;
}

.brand-slider::-webkit-scrollbar { display: none; }

.brand-item {
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.brand-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.brand-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-item span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--text-dark);
}

@media (max-width: 575px) {
  .brand-item {
    flex: 0 0 90px;
    padding: 10px 8px;
  }
  .brand-item img { width: 44px; height: 44px; }
  .brand-item span { font-size: 11px; }
}

/* ========================================
   11. PROMO BANNERS (Row of small banners)
   ======================================== */
.promo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 991px) {
  .promo-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .promo-row { grid-template-columns: 1fr 1fr; gap: 8px; }
}

.promo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

@media (max-width: 767px) {
  .promo-card img { height: 120px; }
}

.promo-card:hover img {
  transform: scale(1.03);
}

/* ========================================
   12. FEATURES / SERVICE BANNER
   ======================================== */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
  .features-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 0;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.feature-item .feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 39, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item .feat-text h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-item .feat-text p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* ========================================
   13. MOBILE BOTTOM NAV
   ======================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  padding: 0;
}

@media (max-width: 991px) {
  .mobile-bottom-nav { display: block; }
}

.mobile-bottom-nav ul {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mobile-bottom-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition);
  min-width: 56px;
}

.mobile-bottom-nav ul li a i {
  font-size: 20px;
  line-height: 1;
}

.mobile-bottom-nav ul li a.active {
  color: var(--primary);
}

.mobile-bottom-nav ul li a .nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(16px);
  background: var(--primary);
  color: white;
  font-size: 8px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid white;
}

.mobile-bottom-nav ul li {
  position: relative;
  flex: 1;
}

/* ========================================
   14. MOBILE SIDEBAR OVERLAY
   ======================================== */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.show {
  opacity: 1;
}

.mobile-sidebar-overlay.active {
  display: block;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-white);
  z-index: 10000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-sidebar.open {
  left: 0;
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  background: var(--primary);
  color: white;
}

.mobile-sidebar-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sidebar-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.mobile-sidebar-close:hover {
  background: rgba(255,255,255,0.3);
}

.mobile-sidebar-user {
  padding: 16px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-sidebar-user .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.mobile-sidebar-user .user-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.mobile-sidebar-user .user-info a {
  font-size: 12px;
  color: var(--primary);
}

.mobile-sidebar-menu {
  padding: 8px 0;
}

.mobile-sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  font-weight: 450;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.mobile-sidebar-menu li a i {
  width: 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.mobile-sidebar-menu li a:hover {
  background: rgba(229, 39, 39, 0.05);
  color: var(--primary);
}

.mobile-sidebar-menu li a .arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Sidebar Submenu */
.mobile-submenu {
  display: none;
  background: var(--bg-light);
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu li a {
  padding-left: 44px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  border-bottom: none !important;
}

.mobile-sub-submenu {
  display: none;
  background: rgba(0,0,0,0.02);
}

.mobile-sub-submenu.open {
  display: block;
}

.mobile-sub-submenu li a {
  padding-left: 60px !important;
  font-size: 12px !important;
}

/* ========================================
   15. FOOTER
   ======================================== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  margin-top: 32px;
  padding-bottom: 70px;
}

@media (min-width: 992px) {
  .site-footer { padding-bottom: 0; }
}

.footer-main {
  padding: 48px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
}

@media (max-width: 1199px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.footer-contact li i {
  color: var(--primary);
  margin-top: 4px;
  width: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-app-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.footer-app-buttons a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-app-buttons a:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--primary);
}

.footer-app-buttons a i {
  font-size: 24px;
  color: var(--primary);
}

.footer-app-buttons a .app-text {
  display: flex;
  flex-direction: column;
}

.footer-app-buttons a .app-text small {
  font-size: 9px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-app-buttons a .app-text span {
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom .payment-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-bottom .payment-icons img {
  height: 24px;
  opacity: 0.5;
  transition: var(--transition);
}

.footer-bottom .payment-icons img:hover {
  opacity: 1;
}

/* ========================================
   16. FLASH SALE / COUNTDOWN
   ======================================== */
.flash-sale-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flash-sale-header .countdown {
  display: flex;
  gap: 6px;
  align-items: center;
}

.flash-sale-header .countdown .time-block {
  background: var(--text-dark);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
}

.flash-sale-header .countdown .time-block span {
  display: block;
  font-size: 8px;
  font-weight: 400;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flash-sale-header .countdown .time-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* ========================================
   17. RESPONSIVE HELPERS
   ======================================== */
.d-mobile-only {
  display: none !important;
}

@media (max-width: 991px) {
  .d-mobile-only { display: block !important; }
  .d-desktop-only { display: none !important; }
}

@media (min-width: 992px) {
  .d-mobile-only { display: none !important; }
  .d-desktop-only { display: block !important; }
}

/* ========================================
   18. UTILITY
   ======================================== */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-white { background: var(--bg-white) !important; }
.bg-light { background: var(--bg-light) !important; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ========================================
   19. SCROLL TO TOP
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

@media (min-width: 992px) {
  .scroll-top { bottom: 32px; }
}

/* ========================================
   20. LOADING SKELETON
   ======================================== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ========================================
    21. CATEGORY ACCORDION (Mobile)
    ======================================== */
.cat-accordion {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 12px;
  border: 1px solid var(--border-light);
}

.cat-accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.cat-accordion-item:last-child {
  border-bottom: none;
}

.cat-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition);
  gap: 10px;
}

.cat-accordion-header:hover {
  background: var(--bg-light);
}

.cat-accordion-header .cat-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
}

.cat-accordion-header .cat-info i:first-child {
  color: var(--primary);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.cat-accordion-header .accordion-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}

.cat-accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.cat-accordion-body {
  display: none;
  background: var(--bg-light);
  padding: 4px 0;
}

.cat-accordion-body.open {
  display: block;
}

.cat-accordion-body a {
  display: block;
  padding: 9px 14px 9px 44px;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.cat-accordion-body a:last-child {
  border-bottom: none;
}

.cat-accordion-body a:hover {
  color: var(--primary);
  background: rgba(229, 39, 39, 0.04);
}

/* Sub-subcategory in accordion */
.sub-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 9px 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.sub-accordion-header .sub-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}

.sub-accordion-header.active .sub-arrow {
  transform: rotate(180deg);
}

.sub-accordion-body {
  display: none;
  background: rgba(0,0,0,0.02);
}

.sub-accordion-body.open {
  display: block;
}

.sub-accordion-body a {
  padding-left: 60px !important;
  font-size: 12.5px !important;
}

/* ========================================
    22. WHATSAPP BUTTON OVERRIDE
    ======================================== */
.side-whatsapp-buttons {
  z-index: 9999 !important;
  right: 22px !important;
  bottom: 90px !important;
  width: 2.7rem;
  height: 2.7rem;
}

@media (max-width: 991px) {
  .side-whatsapp-buttons {
    bottom: 76px !important;
    right: 14px !important;
  }
  .side-whatsapp-buttons a img {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ========================================
    23. SLIDER CONTENT OVERFLOW FIX
    ======================================== */
.slider-slide-inner {
  overflow: hidden !important;
}

.slider-content {
  overflow: hidden;
}

/* ========================================
    24. CUSTOM SCROLLBAR STYLES
    ======================================== */
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.2);
}

/* ========================================
    25. RESPONSIVE TABLET IMPROVEMENTS
    ======================================== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-slider {
    border-radius: var(--radius-md) !important;
    margin: 0 8px;
  }
  
  .features-row {
    margin: 0 8px;
  }
  
  .mobile-categories {
    padding: 12px 8px;
  }
}

/* ========================================
    26. HERO SECTION RESPONSIVE IMPROVEMENTS
    ======================================== */
@media (max-width: 1199px) and (min-width: 992px) {
  .hero-row {
    gap: 10px;
  }
  .hero-row .hero-categories {
    width: 220px;
  }
  .hero-categories-header {
    padding: 12px 14px;
    font-size: 13px;
  }
  .hero-categories-list > li > a {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 38px;
  }
  .support-card {
    padding: 14px 16px;
  }
  .support-card h4 {
    font-size: 13px;
  }
  .support-card p {
    font-size: 11.5px;
  }
}

/* ========================================
    27. PRODUCT GRID RESPONSIVE FIXES
    ======================================== */
@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  }
}

/* ========================================
    28. SECTION HEADER CONSISTENCY
    ======================================== */
.section-header {
  padding: 0 4px;
}

@media (max-width: 575px) {
  .section-title {
    font-size: 15px;
  }
  .section-view-all {
    font-size: 12px;
  }
}

/* ========================================
    29. BRAND SECTION (Choose By Brand)
    ======================================== */
.brand-section {
  background: var(--bg-gray);
}

.brand-section-inner {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.brand-header .section-title {
  margin: 0;
}

.brand-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  text-decoration: none;
}

.brand-view-all:hover {
  gap: 8px;
  color: var(--primary-dark);
}

.brand-track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  flex: 1;
}

.brand-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.brand-card {
  flex: 0 0 auto;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px 20px;
  background: var(--bg-white);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  cursor: pointer;
}

.brand-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.brand-card-img {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  margin: 24px 0 0;
  line-height: 1.3;
}

.brand-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.brand-nav:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.brand-nav-prev {
  left: -20px;
}

.brand-nav-next {
  right: -20px;
}

@media (max-width: 767px) {
  .brand-nav {
    display: none;
  }

  .brand-section-inner {
    padding: 16px 12px;
  }

  .brand-card {
    width: 110px;
    padding: 12px 8px 16px;
  }

  .brand-card-img {
    width: 60px;
    height: 60px;
  }

  .brand-card-name {
    font-size: 12px;
    margin-top: 16px;
  }

  .brand-track {
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .brand-card {
    width: 100px;
  }

  .brand-card-img {
    width: 50px;
    height: 50px;
  }

  .brand-card-name {
    font-size: 11px;
    margin-top: 12px;
  }
}

/* ========================================
    30. CATEGORY PAGE HEADER SECTION
    ======================================== */
.category-header-section {
  margin-bottom: 16px;
}

/* --- 1. Banner Image Section --- */
.category-banner-wrap {
  position: relative;
  width: 100%;
}

.category-banner {
  position: relative;
  min-height: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--secondary);
  margin-bottom: 14px;
}

.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.5) 60%, rgba(26,26,46,0.25) 100%);
  z-index: 1;
}

.category-banner .container {
  position: relative;
  z-index: 2;
  padding: 24px 16px;
}

.category-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-banner-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-light);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-align: center;
}

.category-banner-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

/* --- 2. Breadcrumb (standalone below banner) --- */
.category-breadcrumb-wrap {
  display: flex;
  margin-bottom: 14px;
  padding: 0;
}

.category-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--primary);
  line-height: 1;
}

.category-breadcrumb-item + .category-breadcrumb-item::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: var(--text-muted);
  margin: 0 10px;
  opacity: 0.35;
  line-height: 1;
}

.category-breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.category-breadcrumb-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.category-breadcrumb-item.active span {
  color: var(--text-dark);
  font-weight: 500;
}

/* --- 3. Subcategory Slider --- */
.subcategory-slider-section {
  margin-bottom: 20px;
}

.subcategory-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.sub-slider-container {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.sub-slider-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sub-slider-card {
  flex: 0 0 calc((100% - 84px) / 10);
  min-width: 0;
}

.sub-slider-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding-top: 4px;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
}

.sub-slider-card-link:hover {
  transform: translateY(-2px);
}

.sub-slider-card-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  margin-bottom: 10px;
  flex-shrink: 0;
  transition: var(--transition);
}

.sub-slider-card-link:hover .sub-slider-card-img {
  box-shadow: 0 3px 10px rgba(229,39,39,0.15);
}

.sub-slider-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sub-slider-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  opacity: 0.2;
}

.sub-slider-card-body {
  text-align: center;
  width: 100%;
  min-width: 0;
}

.sub-slider-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  transition: var(--transition);
}

.sub-slider-card-link:hover .sub-slider-card-name {
  color: var(--primary);
}

.sub-slider-card-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}

/* Slider Navigation Arrows */
.sub-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dark);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  line-height: 1;
}

.sub-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(229,39,39,0.3);
  transform: translateY(-50%) scale(1.05);
}

.sub-slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.sub-slider-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sub-slider-prev {
  left: -18px;
}

.sub-slider-next {
  right: -18px;
}

/* Responsive banner */
@media (max-width: 991px) {
  .category-banner {
    min-height: 96px;
    margin-bottom: 10px;
  }
  .category-banner .container {
    padding: 18px 16px;
  }
  .category-banner-title {
    font-size: 22px;
  }
  .category-banner-desc {
    font-size: 13px;
  }
  .category-breadcrumb-wrap {
    margin-bottom: 10px;
  }
  .category-breadcrumb-item {
    font-size: 10px;
  }
  .category-breadcrumb-item + .category-breadcrumb-item::before {
    font-size: 7px;
    margin: 0 7px;
  }
}

@media (max-width: 575px) {
  .category-banner {
    min-height: 80px;
    margin-bottom: 8px;
  }
  .category-banner .container {
    padding: 14px 16px;
  }
  .category-banner-inner {
    gap: 4px;
  }
  .category-banner-title {
    font-size: 18px;
  }
  .category-banner-desc {
    font-size: 12px;
  }
  .category-breadcrumb-wrap {
    margin-bottom: 8px;
  }
  .category-breadcrumb-item {
    font-size: 10px;
  }
  .category-breadcrumb-item + .category-breadcrumb-item::before {
    font-size: 7px;
    margin: 0 6px;
  }
}

/* Responsive slider sizing */
@media (max-width: 1199px) {
  .sub-slider-card {
    flex: 0 0 calc((100% - 60px) / 6);
  }
}

@media (max-width: 991px) {
  .sub-slider-card {
    flex: 0 0 calc((100% - 48px) / 5);
  }
  .sub-slider-card-img {
    width: 48px;
    height: 48px;
  }
  .sub-slider-card-link {
    padding: 12px 6px 8px;
  }
}

@media (max-width: 767px) {
  .sub-slider-card {
    flex: 0 0 calc((100% - 36px) / 4);
  }
  .sub-slider-card-img {
    width: 44px;
    height: 44px;
  }
  .sub-slider-btn {
    display: none;
  }
  .sub-slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: none !important;
  }
  .sub-slider-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .sub-slider-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 575px) {
  .sub-slider-card {
    flex: 0 0 calc((100% - 24px) / 3);
  }
  .sub-slider-card-img {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }
  .sub-slider-card-link {
    padding: 10px 6px 8px;
  }
  .sub-slider-card-name {
    font-size: 11px;
  }
  .sub-slider-card-count {
    font-size: 9px;
  }
  .sub-slider-track {
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .sub-slider-card {
    flex: 0 0 calc((100% - 16px) / 2.5);
  }
}


