[x-cloak] { display: none !important; }

:root {
  --primary: #F05A1E;
  --primary-dark: #D4420A;
  --secondary: #E83E6C;
  --gradient: linear-gradient(135deg, #F05A1E 0%, #E83E6C 100%);
  --gradient-soft: linear-gradient(135deg, #fff5f0 0%, #fff0f5 100%);
  --accent: #F5A623;
  --dark: #1A1A2E;
  --dark2: #2D2D44;
  --text: #2C2C3A;
  --text-muted: #7A7A8C;
  --text-light: #ADB5BD;
  --bg: #F7F8FC;
  --bg2: #FFFFFF;
  --border: #EAECF0;
  --success: #22C55E;
  --danger: #EF4444;
  --card-shadow: 0 2px 12px rgba(240, 90, 30, 0.08);
  --card-shadow-hover: 0 8px 32px rgba(240, 90, 30, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --topbar-h: 38px;
  --header-h: 76px;
  --nav-h: 48px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── TOP BAR ─── */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar .inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar-right a {
  color: #ccc;
  text-decoration: none;
  transition: color .2s;
}

.topbar-right a:hover {
  color: var(--primary);
}

.topbar-right .logout-form {
  display: inline;
  margin: 0;
}

.topbar-right .logout-btn {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  padding: 0;
  transition: color .2s;
}

.topbar-right .logout-btn:hover {
  color: var(--primary);
}

.tb-icon {
  font-size: 14px;
}

/* ─── HEADER ─── */
.header {
  background: #fff;
  height: var(--header-h);
  max-height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
  overflow: visible;
  /* allow dropdowns to escape the header area */
}

.header .inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  height: var(--header-h);
  max-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .5px;
}

.search-bar {
  flex: 1;
  max-width: 560px;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color .2s;
}

.search-bar:focus-within {
  border-color: var(--primary);
}

.search-select {
  background: var(--bg);
  border: none;
  outline: none;
  padding: 12px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  border-right: 1px solid var(--border);
  min-width: 120px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: var(--text);
}

.search-btn {
  background: var(--gradient);
  border: none;
  cursor: pointer;
  padding: 0 20px;
  color: #fff;
  font-size: 16px;
  transition: opacity .2s;
}

.search-btn:hover {
  opacity: .9;
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 10px;
  font-family: 'Poppins', sans-serif;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  position: relative;
}

.action-btn:hover {
  background: var(--gradient-soft);
  color: var(--primary);
}

.action-btn .a-icon {
  font-size: 22px;
}

.action-btn .badge {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── NAVBAR ─── */
.navbar {
  background: var(--gradient);
  height: var(--nav-h);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.navbar .inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.all-cats-btn {
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  transition: background .2s;
}

.all-cats-btn:hover {
  background: rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  gap: 0;
}

.nav-links li a {
  display: block;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}

.nav-links li a:hover {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.nav-links li a.flash {
  color: #FFE55C;
  font-weight: 700;
}

.nav-links li a.flash::before {
  content: '🔥 ';
}

/* ─── SECTION WRAPPER ─── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.section {
  padding: 28px 0;
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .dot {
  width: 4px;
  height: 22px;
  background: var(--gradient);
  border-radius: 3px;
}

.view-all {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
  text-decoration: none;
}

.view-all:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ─── HERO SECTION ─── */
.hero {
  background: var(--bg2);
  padding: 16px 0 0;
}

.hero .inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
}

.hero-slider {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 40px 48px;
  opacity: 0;
  transition: opacity .5s;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-content {
  color: #fff;
  z-index: 2;
  max-width: 280px;
}

.hero-slide-content .eyebrow {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.hero-slide-content h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-slide-content p {
  font-size: 14px;
  opacity: .9;
  margin-bottom: 20px;
}

.hero-cta {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform .2s, box-shadow .2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-img {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-inner {
  font-size: 180px;
  line-height: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-14px)
  }
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all .2s;
}

.slider-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: background .2s;
  z-index: 5;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

/* HERO SIDEBAR */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
}

.promo-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow);
}

.promo-card-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.promo-card-text .label {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.promo-card-text .title {
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0;
}

.promo-card-text .sub {
  font-size: 11px;
  color: var(--text-muted);
}

.promo-shop-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

/* ─── CATEGORIES ─── */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.cat-card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: background .2s;
}

.cat-card:hover .cat-icon {
  background: var(--gradient);
}

.cat-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

/* ─── FLASH SALE ─── */
.flash-sale {
  background: var(--bg2);
}

.flash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.flash-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}

.flash-badge {
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.countdown-block {
  background: var(--dark);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 10px;
  min-width: 44px;
}

.countdown-block .num {
  font-size: 18px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.countdown-block .lbl {
  font-size: 9px;
  color: #aaa;
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* ─── PRODUCT GRID ─── */
.product-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  padding: 0 20px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.product-scroll::-webkit-scrollbar {
  height: 4px;
}

.product-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.product-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  flex-shrink: 0;
  width: 190px;
}

.products-grid .product-card {
  width: auto;
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.product-img {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
  transition: transform .3s;
}

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

.quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(240, 90, 30, 0.92);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  transform: translateY(100%);
  transition: transform .2s;
}

.product-card:hover .quick-view {
  transform: translateY(0);
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
}
.w-100{
  width: 100%;
}
.mt-2{
  margin-top: 8px !important;
}
.wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.wish-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.product-body {
  padding: 12px;
}

.product-brand {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.product-name {
  font-size: 12px;
  font-weight: 600;
  margin: 3px 0 6px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-stars {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-bottom: 6px;
}

.star {
  color: #FFC107;
  font-size: 11px;
}

.star-count {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-sale {
  font-size: 15px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-orig {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.stock-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 5px;
}

.in-stock {
  background: #D1FAE5;
  color: #047857;
}

.out-stock {
  background: #FEE2E2;
  color: #B91C1C;
}

.add-cart {
  width: 100%;
  margin-top: 8px;
  background: var(--gradient);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: opacity .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.add-cart:hover {
  opacity: .9;
}

.add-cart:active {
  transform: scale(0.98);
}

/* ─── CATEGORY SECTIONS ─── */
.cat-section {
  background: var(--bg2);
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cat-section-header {
  padding: 18px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

/* ─── SPECIAL DEAL ─── */
.special-deal-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}

.deal-card {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 32px;
  display: flex;
  gap: 30px;
  align-items: center;
  position: relative;
}

.deal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  z-index: 0;
}

.deal-card>* {
  position: relative;
  z-index: 1;
}

.deal-img {
  font-size: 110px;
  animation: float 3s ease-in-out infinite;
  flex-shrink: 0;
}

.deal-label {
  font-size: 11px;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.deal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.deal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.deal-price-sale {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deal-price-orig {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-discount {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}

.buy-now {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 13px 36px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform .2s, box-shadow .2s;
}

.buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 90, 30, 0.4);
}

.deal-progress {
  margin-bottom: 14px;
}

.deal-progress p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.prog-bar {
  background: var(--border);
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 6px;
  width: 73%;
  animation: prog-anim 1.5s ease;
}

@keyframes prog-anim {
  from {
    width: 0
  }

  to {
    width: 73%
  }
}

.mini-deals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-deal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: all .2s;
}

.mini-deal-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-shadow);
}

.mini-deal-img {
  font-size: 44px;
  flex-shrink: 0;
}

.mini-deal-body .name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-deal-body .mprice {
  font-size: 13px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-deal-body .morig {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.mini-deal-body .mbadge {
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

/* ─── BANNERS ─── */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 150px;
  cursor: pointer;
  transition: transform .2s;
  display: flex;
  align-items: center;
  padding: 24px;
}

.banner-card:hover {
  transform: translateY(-3px);
}

.banner-card.b1 {
  background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

.banner-card.b2 {
  background: linear-gradient(135deg, #0f3460, #16213e);
}

.banner-card.b3 {
  background: linear-gradient(135deg, #533483, #2d1b69);
}

.banner-card .b-label {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.banner-card .b-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.banner-card .b-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.banner-card .b-cta {
  margin-top: 10px;
  background: #fff;
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.banner-img {
  position: absolute;
  right: 16px;
  font-size: 70px;
  opacity: .7;
}

/* ─── BRANDS ─── */
.brands-section {
  background: var(--bg2);
}

.brands-grid {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.brand-item {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  filter: grayscale(1) opacity(.5);
  transition: filter .2s;
}

.brand-item:last-child {
  border-right: none;
}

.brand-item:hover {
  filter: grayscale(0) opacity(1);
  background: var(--gradient-soft);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .f-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.8;
  color: #aaa;
  max-width: 220px;
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.soc {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  color: #ccc;
}

.soc:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  transition: color .2s;
}

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

.newsletter input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  outline: none;
  margin-bottom: 8px;
}

.newsletter input::placeholder {
  color: #666;
}

.newsletter input:focus {
  border-color: var(--primary);
}

.newsletter button {
  width: 100%;
  background: var(--gradient);
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: opacity .2s;
}

.newsletter button:hover {
  opacity: .9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 11px;
  color: #666;
}

.payment-icons {
  display: flex;
  gap: 6px;
}

.pay-icon {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
}

/* ─── SCROLL ANIMATION ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stars helper */
.stars-5::before {
  content: '★★★★★';
  color: #FFC107;
  font-size: 11px;
}

.stars-4::before {
  content: '★★★★☆';
  color: #FFC107;
  font-size: 11px;
}

.logo-img {
  /* width: 46px; */
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-slide {
  text-decoration: none;
  color: inherit;
}

.hero-img img,
.product-img .product-image-wrapper .product-image-skeleton img,
.cat-icon img,
.promo-card-image,
.banner-card-image,
.brand-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-img {
  text-decoration: none;
}

.product-placeholder,
.cat-icon span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
}

.cat-count {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.promo-card-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}

.banner-card {
  text-decoration: none;
}

.banner-card-image {
  position: absolute;
  right: 16px;
  width: 110px;
  height: 110px;
}

.brands-shell {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.brand-item {
  text-decoration: none;
  min-height: 88px;
}

.brand-image {
  width: 92px;
  height: 46px;
}

.flash-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-note {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}

.add-cart:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ─── CATEGORY TABS ─── */
.category-tabs-section {
  background: var(--bg2);
}

.category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
  position: relative;
  top: 2px;
}

.category-tab:hover {
  background: var(--gradient-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.category-tab.active {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  border-bottom-color: #fff;
}

.category-tab .tab-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.category-tabs-content {
  min-height: 200px;
}

.category-tab-panel {
  display: none;
}

.category-tab-panel.active {
  display: block;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-products {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.load-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 90, 30, 0.3);
}

.load-more-btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.load-more-btn:disabled svg {
  display: none;
}

.load-more-products {
  margin-top: 14px;
  animation: fadeIn .4s ease;
}

@media (max-width: 1024px) {
  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    white-space: nowrap;
    padding: 12px 18px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .category-tab {
    padding: 10px 14px;
    font-size: 12px;
  }

  .category-tab .tab-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 1024px) {
  .header {
    height: var(--header-h) !important;
    max-height: var(--header-h) !important;
  }

  .header .inner {
    flex-wrap: nowrap;
    padding-block: 0;
    height: var(--header-h) !important;
    max-height: var(--header-h) !important;
  }

  .search-bar {
    order: 2;
    flex-basis: auto;
    max-width: 400px;
    height: auto;
  }

  .navbar {
    position: sticky;
    top: var(--header-h);
    height: var(--nav-h);
  }

  .navbar .inner,
  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .navbar .inner::-webkit-scrollbar,
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .mini-banner {
    display: none !important;
  }

  .hero .inner {
    grid-template-columns: 1fr;
  }

  .hero-sidebar,
  .banners-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .brands-grid {
    overflow-x: auto;
  }

  .brand-item {
    min-width: 150px;
    flex: 0 0 150px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .action-btn {
    flex: 1;
    min-width: 0;
  }

  .search-select {
    min-width: 104px;
  }

  .hero-slide {
    min-height: 360px;
    padding: 24px;
  }

  .hero-slide h1 {
    font-size: 30px;
  }

  .hero-img {
    opacity: .35;
    right: 10px;
  }

  .cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero-sidebar,
  .banners-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .flash-header,
  .section-header,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
.mobile-filter-wraper{
  width: 100%;
    display: flex;
    justify-content: space-between;
}
  .flash-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {

  .container,
  .header .inner,
  .navbar .inner,
  .topbar .inner {
    padding-inline: 10px;
  }

  .logo-name {
    font-size: 18px;
  }

  .logo-tagline {
    display: none;
  }

  /* Products grid: 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .product-card {
    width: auto;
  }

  .product-scroll .product-card {
    flex-basis: 150px;
  }

  /* Smaller product card on mobile */
  .mobile-filter-wraper{
    width: 100%;
    display: flex;
    margin: 10px;
    justify-content: space-between;
  }

  .product-body {
    padding: 8px;
  }

  .product-brand {
    font-size: 9px;
  }

  .product-name {
    font-size: 11px;
    margin: 2px 0 4px;
    line-height: 1.3;
  }

  .product-stars {
    margin-bottom: 4px;
  }

  .star {
    font-size: 9px;
  }

  .star-count {
    font-size: 9px;
  }

  .price-sale {
    font-size: 13px;
  }

  .price-orig {
    font-size: 10px;
  }

  .stock-badge {
    font-size: 8px;
    padding: 2px 5px;
    margin-top: 3px;
  }

  .add-cart {
    font-size: 10px;
    padding: 6px;
    margin-top: 6px;
    border-radius: 6px;
  }

  .discount-badge {
    font-size: 9px;
    padding: 2px 5px;
    top: 6px;
    left: 6px;
  }

  .wish-btn {
    width: 24px;
    height: 24px;
    font-size: 11px;
    top: 6px;
    right: 6px;
  }

  .quick-view {
    font-size: 10px;
    padding: 6px;
  }

  /* Product scroll smaller on mobile */
  .product-scroll {
    gap: 10px;
    padding: 10px 0;
  }

  .payment-icons {
    flex-wrap: wrap;
  }

  /* Section padding smaller on mobile */
  .product-section {
    padding: 16px 0;
  }

  .cat-section {
    margin-bottom: 10px;
  }

  .cat-section-header {
    padding: 12px 14px 10px;
  }
}

.gallery-modal-open {
  overflow: hidden;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.product-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 340px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(247, 248, 252, .94)),
    radial-gradient(circle at 20% 10%, rgba(240, 90, 30, .12), transparent 34%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(26, 26, 46, .08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 38px);
  position: relative;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(26, 26, 46, .10));
  transition: opacity .22s ease, transform .22s ease;
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-main-button:hover .gallery-main-image {
    transform: scale(1.055);
  }
}

.gallery-main-image.is-changing,
.gallery-lightbox-image.is-changing {
  opacity: 0;
  transform: scale(.985);
}

.gallery-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(26, 26, 46, .74);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.product-gallery-main:hover .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(234, 236, 240, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 26, 46, .13);
  transform: translateY(-50%);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}

.gallery-nav:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav:disabled {
  cursor: not-allowed;
  opacity: .36;
  box-shadow: none;
}

.gallery-nav svg,
.gallery-lightbox-nav svg,
.gallery-lightbox-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-nav-prev {
  left: 14px;
}

.gallery-nav-next {
  right: 14px;
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.gallery-thumb {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  opacity: .68;
  transform: scale(.96);
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(240, 90, 30, .16);
  opacity: 1;
  transform: scale(1);
}

.gallery-thumb.is-active {
  outline: 3px solid rgba(240, 90, 30, .12);
}

.gallery-thumb.is-variant-match {
  border-color: #10b981;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .2);
  position: relative;
}

.gallery-thumb.is-variant-match::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #fff;
}

.gallery-main-button {
  position: relative;
}

.variant-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

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

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(9, 12, 24, .78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox-panel {
  position: relative;
  width: min(980px, 96vw);
  height: min(760px, 88vh);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 5vw, 48px);
}

.gallery-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .22s ease, transform .22s ease;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  border: 0;
  border-radius: 999px;
  background: rgba(26, 26, 46, .88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.gallery-lightbox-nav:hover:not(:disabled),
.gallery-lightbox-close:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox-close:hover {
  transform: scale(1.04);
}

.gallery-lightbox-nav:disabled {
  cursor: not-allowed;
  opacity: .32;
}

.gallery-lightbox-prev {
  left: 16px;
}

.gallery-lightbox-next {
  right: 16px;
}

@media (max-width: 768px) {
  .product-gallery-main {
    min-height: 280px;
    border-radius: 14px;
  }

  .gallery-main-button {
    padding: 18px;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
  }

  .gallery-thumb {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .gallery-zoom-hint {
    display: none;
  }

  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox-panel {
    width: 96vw;
    height: 78vh;
    border-radius: 16px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .product-gallery-main {
    min-height: 240px;
  }

  .gallery-nav-prev {
    left: 8px;
  }

  .gallery-nav-next {
    right: 8px;
  }

  .gallery-thumb {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 10px;
  }
}

/* ─── SHOP PAGE ─── */
.shop-section {
  padding: 20px 0 40px;
  background: var(--bg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.shop-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.shop-results {
  font-size: 13px;
  color: var(--text-muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.shop-sidebar {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 10px);
  max-height: calc(100vh - var(--header-h) - var(--nav-h) - 40px);
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section:last-of-type {
  margin-bottom: 0;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 8px;
}

.filter-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
  transition: color .2s;
}

.filter-item a:hover,
.filter-item.active a {
  color: var(--primary);
}

.filter-count {
  color: var(--text-muted);
  font-size: 11px;
}

/* ─── CATEGORY ACCORDION ─── */
.category-accordion {
  list-style: none;
}

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

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

.category-link:hover,
.category-link.active {
  color: var(--primary);
}

.accordion-toggle {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text);
  transition: transform .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-toggle:hover {
  color: var(--primary);
}

.accordion-item.expanded .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-item.expanded .accordion-content {
  max-height: 500px;
}

.subcategory-item {
  padding: 6px 0 6px 16px;
  border-left: 2px solid var(--border);
  margin-left: 4px;
}

.subcategory-item.active {
  border-left-color: var(--primary);
}

.subcategory-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color .2s;
}

.subcategory-link:hover,
.subcategory-link.active {
  color: var(--primary);
}

.accordion-item .category-link .filter-count,
.subcategory-link .filter-count {
  margin-left: 6px;
}

.price-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-inputs input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

.price-filter-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}

.price-filter-btn:hover {
  opacity: .9;
}

.clear-filters {
  display: block;
  text-align: center;
  color: var(--danger);
  font-size: 12px;
  text-decoration: none;
  padding: 10px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  margin-top: 16px;
  transition: all .2s;
}

.clear-filters:hover {
  background: var(--danger);
  color: #fff;
}

.shop-main {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-dropdown label {
  font-size: 13px;
  color: var(--text-muted);
}

.sort-dropdown select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.shop-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-container nav {
  display: flex;
  gap: 6px;
}

.pagination-container a,
.pagination-container span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
}

.pagination-container a {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.pagination-container a:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.pagination-container .active span {
  background: var(--gradient);
  color: #fff;
}

/* ─── BOOTSTRAP PAGINATION COMPATIBILITY ─── */
.pagination-container .pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-container .page-item {
  display: flex;
}

.pagination-container .page-item.disabled {
  opacity: 0.5;
}

.pagination-container .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}

.pagination-container .page-item.active .page-link {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.pagination-container .page-item.disabled .page-link {
  background: var(--bg2);
  color: var(--text-muted);
  cursor: not-allowed;
}

.pagination-container .page-link:hover:not(.disabled) {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ─── PAGINATION WRAPPER (Category Page) ─── */
.pagination-wrapper {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-wrapper .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pagination-wrapper .page-item {
  display: flex;
}

.pagination-wrapper .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.pagination-wrapper .page-link:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.pagination-wrapper .page-item.active .page-link {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.pagination-wrapper .page-item.disabled .page-link {
  background: var(--bg2);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-wrapper .page-item.disabled .page-link:hover {
  background: var(--bg2);
  color: var(--text-muted);
  transform: none;
}

@media (max-width: 768px) {
  .pagination-wrapper .pagination {
    gap: 4px;
  }

  .pagination-wrapper .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
}

.no-products-shop {
  text-align: center;
  padding: 60px 20px;
}

.no-products-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.no-products-shop h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.no-products-shop p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ─── PRODUCT DETAIL PAGE ─── */
.product-detail-section {
  padding: 20px 0 40px;
  background: var(--bg);
}

.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-main-image {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-placeholder-large {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary);
  background: var(--gradient-soft);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 70px;
  height: 70px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.product-price-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.price-sale-large {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-orig-large {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-badge-large {
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.product-short-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.variant-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-selector label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: all .2s;
}

.variant-option:hover,
.variant-option.active {
  border-color: var(--primary);
  background: var(--gradient-soft);
}

.variant-option img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.attribute-group {
  margin-bottom: 16px;
}

.attribute-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.attribute-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attribute-option {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: all .2s;
}

.attribute-option:hover,
.attribute-option.active {
  border-color: var(--primary);
  background: var(--gradient-soft);
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-selector label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.qty-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-input button {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
}

.qty-input button:hover {
  background: var(--border);
}

.qty-input input {
  width: 50px;
  height: 36px;
  border: none;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.add-cart-large {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  flex: 1;
}

.add-cart-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 90, 30, 0.3);
}

.add-cart-large:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wishlist-btn {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.wishlist-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.meta-item {
  display: flex;
  gap: 8px;
}

.meta-item span:first-child {
  color: var(--text-muted);
  min-width: 100px;
}

.meta-item span:last-child {
  color: var(--dark);
  font-weight: 500;
}

.meta-item .in-stock {
  color: var(--success);
  font-weight: 700;
}

.meta-item .out-stock {
  color: var(--danger);
  font-weight: 700;
}

/* Product Tabs */
.product-tabs {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.tab-btn {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: 24px;
}

.tab-panel {
  display: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.tab-panel.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
  width: 200px;
  font-weight: 600;
  color: var(--dark);
  background: var(--bg);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Related & Most Viewed */
.related-products,
.most-viewed {
  margin-bottom: 40px;
}

/* Shop & Product Detail Responsive */
@media (max-width: 1024px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
 .mobile-filter-wraper{
    width: 100%;
    display: flex;
    margin: 10px;
    justify-content: space-between;
  }
  .shop-sidebar {
    order: 2;
  }

  .shop-main {
    order: 1;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .shop-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .shop-toolbar {
    justify-content: flex-start;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-title {
    font-size: 22px;
  }

  .price-sale-large {
    font-size: 24px;
  }

  .tab-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab-btn {
    white-space: nowrap;
  }
}

/* Extra small screens - smaller gaps for shop */
@media (max-width: 480px) {
  .shop-grid {
    gap: 10px;
  }

  .shop-main {
    padding: 0 4px;
  }
}

/* ─── MINI CART DROPDOWN ─── */
.cart-dropdown-container {
  position: relative;
}

.cart-btn {
  position: relative;
}

.mini-cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 350px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  overflow: hidden;
  border: 1px solid var(--border);
  display: none;
}

.cart-dropdown-container.open .mini-cart-dropdown,
.cart-dropdown-container:hover .mini-cart-dropdown {
  display: block;
}

.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.mini-cart-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--dark);
}

.mini-cart-items {
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
}

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mini-cart-item .item-details {
  flex: 1;
  min-width: 0;
}

.mini-cart-item .item-details h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-cart-item .item-attrs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mini-cart-item .item-attrs span {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-cart-item .item-price-qty {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.mini-cart-item .price {
  font-weight: 600;
  color: var(--primary);
}

.mini-cart-item .qty {
  color: var(--text-muted);
}

.mini-cart-item .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Red Circle Remove Button - Top Right Position */
.mini-cart-item .remove-btn-circle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
  z-index: 10;
}

.mini-cart-item .remove-btn-circle:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.mini-cart-item .remove-btn-circle svg {
  width: 10px;
  height: 10px;
}

/* Quantity Controls */
.item-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.item-qty-controls .qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.item-qty-controls .qty-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.item-qty-controls .qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.item-qty-controls .qty-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  min-width: 20px;
  text-align: center;
}

.mini-cart-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.mini-cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-total .total-amount {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.view-cart-btn,
.checkout-btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

.view-cart-btn {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.view-cart-btn:hover {
  background: var(--border);
}

.checkout-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
}

.checkout-btn:hover {
  opacity: 0.9;
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
}

.toast-success {
  background: #10b981;
  color: #fff;
}

.toast-error {
  background: #ef4444;
  color: #fff;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast Animations */
.toast-enter {
  transition: all 0.3s ease-out;
}

.toast-enter-start {
  opacity: 0;
  transform: translateX(100%);
}

.toast-enter-end {
  opacity: 1;
  transform: translateX(0);
}

.toast-leave {
  transition: all 0.3s ease-in;
}

.toast-leave-start {
  opacity: 1;
  transform: translateX(0);
}

.toast-leave-end {
  opacity: 0;
  transform: translateX(100%);
}

/* Mobile Responsive for Mini Cart */
@media (max-width: 480px) {
  .mini-cart-dropdown {
    width: calc(100vw - 40px);
    right: -10px;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast-item {
    min-width: auto;
    max-width: 100%;
  }
}

/* ────────────────────────────────────────────────
     CART PAGE STYLES - Phase 1 Implementation
     ──────────────────────────────────────────────── */

/* Cart Section */
.cart-section {
  padding: 40px 0 80px;
  background: var(--bg);
  min-height: calc(100vh - var(--topbar-h) - var(--header-h) - var(--nav-h));
}

.cart-section .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cart Title */
.cart-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 32px;
}

/* Cart Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

/* Cart Main Area */
.cart-main {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* Cart Header Row */
.cart-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr 120px 1fr 60px;
  gap: 16px;
  padding: 16px 24px;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Cart Items */
.cart-items {
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 120px 1fr 60px;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}

.cart-item:hover {
  background: rgba(240, 90, 30, 0.02);
}

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

/* Product Info */
.item-product {
  display: flex;
  gap: 16px;
  align-items: center;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  min-width: 0;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.item-name a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.item-name a:hover {
  color: var(--primary);
}

.item-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.attr-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.item-sale-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Price */
.item-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.original-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Quantity Controls */
.item-quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}

.qty-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-input {
  width: 48px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stock-warning {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

/* Subtotal */
.item-subtotal {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
}

/* Remove Button */
.item-action {
  display: flex;
  justify-content: center;
}

.remove-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 12px;
}

.remove-btn:hover {
  color: var(--danger);
}

.remove-btn svg {
  width: 20px;
  height: 20px;
}

/* Cart Actions */
.cart-actions {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.continue-shopping-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.continue-shopping-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.clear-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-cart-btn:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

.clear-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .cart-actions {
    flex-direction: column;
    gap: 12px;
  }

  .continue-shopping-btn,
  .clear-cart-btn {
    justify-content: center;
  }
}

/* Cart Sidebar */
.cart-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cart Summary */
.cart-summary {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--dark);
}

.summary-row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-size: 18px;
  font-weight: 700;
}

.summary-row.total span:last-child {
  color: var(--primary);
  font-size: 20px;
}

.summary-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin: 12px 0;
}

/* Free Shipping Badge */
.free-shipping-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
}

.free-shipping-badge svg {
  flex-shrink: 0;
}

/* Shipping Progress */
.shipping-progress {
  margin: 16px 0;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.shipping-progress span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* Checkout Button */
.checkout-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.2s;
  cursor: pointer;
}

.checkout-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 90, 30, 0.35);
}

/* Payment Icons */
.payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.payment-icons span:first-child {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-icons .icons {
  display: flex;
  gap: 8px;
}

.payment-icon {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Trust Badges */
.trust-badges {
  background: var(--bg2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-badges .badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.trust-badges .badge svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Empty Cart */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.empty-cart-icon {
  color: var(--text-light);
  margin-bottom: 24px;
}

.empty-cart h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.empty-cart p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
}

.start-shopping-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.start-shopping-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 90, 30, 0.35);
}

/* Cart Page Mobile Responsive */
@media (max-width: 768px) {
  .cart-section {
    padding: 20px 0 40px;
  }

  .cart-title {
    font-size: 24px;
    margin: 16px 0 24px;
  }

  .cart-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cart-item {
    position: relative;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
  }

  .item-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .item-image {
    width: 100%;
    height: 100px;
    border-radius: 8px;
  }

  .item-details {
    width: 100%;
  }

  .item-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .item-attributes {
    gap: 4px;
    margin-bottom: 6px;
  }

  .attr-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .item-sale-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  /* Price styles for mobile */
  .item-price {
    gap: 2px;
    margin-bottom: 8px;
  }

  .current-price {
    font-size: 14px;
  }

  .original-price {
    font-size: 11px;
  }

  /* Quantity controls - compact */
  .item-quantity {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .qty-controls {
    height: 32px;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
  }

  .qty-input {
    width: 36px;
    height: 28px;
    font-size: 12px;
  }

  /* Subtotal - smaller */
  .item-subtotal {
    font-size: 13px;
  }

  /* Remove button - positioned top right */
  .item-action {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .remove-btn {
    width: 24px;
    height: 24px;
  }

  .remove-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Extra small screens - tighter layout */
@media (max-width: 480px) {
  .cart-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cart-item {
    padding: 10px;
  }

  .item-image {
    height: 90px;
  }

  .item-name {
    font-size: 11px;
  }

  .current-price {
    font-size: 13px;
  }

  .cart-title {
    font-size: 22px;
    margin: 12px 0 20px;
  }

  .cart-section .container {
    padding: 0 12px;
  }
}

/* ============================================
     MOBILE HEADER & NAVIGATION
     ============================================ */

/* Mobile Header - Hidden by default on desktop */
.mobile-header {
  display: none;
}

/* Desktop Header - Topbar scrolls, header/navbar sticky */

.desktop-header {
  position: relative;
  top: 0;
  z-index: 100;
  width: 100%;
  height: auto;
}

.desktop-header .navbar {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}


@media (min-width: 1025px) {
  .desktop-header {
    position: sticky;
    top: 0;
    height: auto;
  }

  .mobile-header {
    display: none !important;
  }

  body {
    padding-top: 0;
  }
}

/* Desktop Header - Hidden on mobile/tablet */
@media (max-width: 1024px) {

  .topbar,
  .desktop-header,
  .navbar {
    display: none !important;
  }

  .mobile-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  body {
    padding-top: 60px;
  }

  .mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 16px;
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .mobile-logo img {
    height: 36px;
    width: auto;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-cart-btn {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ============================================
     MOBILE SIDEBAR MENU
     ============================================ */

/* Blur/hide body content when sidebar or cart is open */
body:has(.mobile-sidebar [x-show="open"]:not([style*="display: none"])) main,
body:has(.mobile-cart-panel [x-show="cartOpen"]:not([style*="display: none"])) main {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Alternative: Use class-based approach with Alpine.js */
body.sidebar-open main,
body.cart-open main {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-sidebar {
  position: relative;
  z-index: 1100;
}

@media (min-width: 992px) {
  .mobile-sidebar {
    display: none !important;
  }
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1100;
  display: none;
}

.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: #fff;
  z-index: 1101;
  overflow-y: auto;
  display: none;
  flex-direction: column;
}

body.sidebar-open .sidebar-overlay {
  display: block;
}

body.sidebar-open .sidebar-panel {
  display: flex;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo img {
  height: 32px;
  width: auto;
}

.sidebar-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-search {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-search form {
  display: flex;
  gap: 8px;
}

.sidebar-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.sidebar-search-input:focus {
  border-color: var(--primary);
}

.sidebar-search-btn {
  background: var(--gradient);
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav {
  padding: 8px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--gradient-soft);
  color: var(--primary);
}

.sidebar-link svg {
  color: var(--primary);
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

.sidebar-categories {
  padding: 8px 0;
}

.sidebar-categories h4 {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.sidebar-category-link:hover {
  background: var(--bg);
  color: var(--primary);
}

.sidebar-category-link svg {
  color: var(--text-light);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 0;
}

.sidebar-footer-link:hover {
  color: var(--primary);
}

/* ============================================
     MOBILE CART PANEL (Slide from right)
     ============================================ */
.mobile-cart-panel {
  position: relative;
  z-index: 1200;
}

.mobile-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1200;
}

.mobile-cart-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  max-width: 400px;
  background: #fff;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-cart-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.mobile-cart-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.mobile-cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
}

.mobile-cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.mobile-cart-item-details {
  flex: 1;
  min-width: 0;
}

.mobile-cart-item-details h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-cart-item-details .item-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.mobile-cart-item-details .item-attrs span {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg2);
  padding: 2px 6px;
  border-radius: 4px;
}

.mobile-cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.mobile-cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-cart-qty-controls .qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.mobile-cart-qty-controls .qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-cart-qty-controls .qty-value {
  font-size: 14px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.mobile-cart-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: var(--bg2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
}

.mobile-cart-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.mobile-cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.mobile-cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
}

.mobile-cart-total span:last-child {
  color: var(--primary);
  font-size: 18px;
}

.mobile-cart-view,
.mobile-cart-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.mobile-cart-view {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--border);
}

.mobile-cart-view:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-cart-checkout {
  background: var(--gradient);
  color: #fff;
  border: none;
}

.mobile-cart-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 90, 30, 0.3);
}

/* ============================================
     MOBILE BOTTOM NAVIGATION
     ============================================ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 16px;
    transition: color 0.2s;
    position: relative;
  }

  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--primary);
  }

  .mobile-nav-item svg {
    width: 24px;
    height: 24px;
  }

  .mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
  }

  .mobile-nav-cart-badge {
    position: absolute;
    top: 4px;
    right: 12px;
    background: var(--gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Add padding to main for bottom nav */
  main {
    padding-bottom: 80px;
  }

  /* Hide footer on mobile when bottom nav is present */
  footer {
    display: none;
  }
}

/* ============================================
     AUTH PAGES MOBILE RESPONSIVE
     ============================================ */
@media (max-width: 768px) {
  .auth-section {
    padding: 20px 0 40px;
    min-height: calc(100vh - 130px);
  }

  .auth-container {
    gap: 30px;
    margin: 20px auto 0;
  }

  .auth-card {
    padding: 24px;
    border-radius: 12px;
  }

  .auth-title {
    font-size: 24px;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .auth-benefits {
    display: none;
  }

  .password-strength {
    margin-top: 6px;
  }

  .strength-text {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .auth-card {
    padding: 20px 16px;
  }

  .auth-title {
    font-size: 22px;
  }

  .form-input {
    padding: 12px 14px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .auth-btn-primary {
    padding: 14px 20px;
  }

  /* Google Auth Button Styles */
  .auth-btn-google {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .auth-btn-google:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(240, 90, 30, 0.1);
  }

  .auth-btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ============================================
     CHECKOUT PAGE STYLES
     ============================================ */
.checkout-section {
  padding: 24px 0 48px;
  background: var(--bg);
  min-height: calc(100vh - 200px);
}

.checkout-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.box-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--dark);
}

.box-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.error {
  color: var(--danger);
  font-size: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.billing-toggle {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Saved Addresses */
.saved-addresses {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.address-card:hover {
  border-color: var(--primary);
}

.address-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.address-content {
  flex: 1;
}

.address-content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--dark);
}

.address-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.address-content span {
  font-size: 12px;
  color: var(--text);
}

.default-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 600;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  display: flex;
  cursor: pointer;
  margin: 0;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  width: 100%;
  transition: all 0.2s;
  background: #fff;
}

.payment-option input[type="radio"]:checked+.payment-content {
  border-color: var(--primary);
  background: var(--gradient-soft);
}

.payment-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.payment-details strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 2px;
}

.payment-details span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Order Summary Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.order-summary {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}

.summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.summary-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.summary-items::-webkit-scrollbar {
  width: 4px;
}

.summary-items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.summary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.item-image {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dark);
}

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

.item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.summary-breakdown {
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.breakdown-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.total-amount {
  color: var(--primary);
}

.free-text {
  color: var(--success);
  font-weight: 600;
}

.free-shipping-badge {
  background: #d1fae5;
  color: #047857;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.terms-checkbox {
  margin-bottom: 16px;
}

.terms-checkbox a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

.place-order-btn {
  width: 100%;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: 'Poppins', sans-serif;
}

.place-order-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.place-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.trust-badges-checkout {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.trust-badges-checkout .badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.trust-badges-checkout .badge svg {
  color: var(--success);
}

/* Order Success Page */
.order-success-section {
  padding: 48px 0;
  background: var(--bg);
  min-height: calc(100vh - 200px);
}

.success-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: #047857;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.order-number {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.success-message {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-message p {
  margin: 0 0 8px;
}

.order-details-preview {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row.total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  color: var(--dark);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-processing {
  background: #dbeafe;
  color: #2563eb;
}

.status-shipped {
  background: #e0e7ff;
  color: #4f46e5;
}

.status-delivered {
  background: #d1fae5;
  color: #047857;
}

.status-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: inline-block;
}

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

.support-info {
  font-size: 13px;
  color: var(--text-muted);
}

.support-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.support-info a:hover {
  text-decoration: underline;
}

/* Checkout Responsive */
@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .checkout-section {
    padding: 16px 0 32px;
  }

  .checkout-title {
    font-size: 24px;
  }

  .checkout-box {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .box-title {
    font-size: 16px;
  }

  .payment-content {
    padding: 12px;
  }

  .payment-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .summary-item {
    gap: 10px;
  }

  .item-image {
    width: 50px;
    height: 50px;
  }

  .item-info h4 {
    font-size: 12px;
  }

  .success-card {
    padding: 32px 20px;
  }

  .success-card h1 {
    font-size: 24px;
  }

  .success-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .checkout-box {
    padding: 16px;
  }

  .order-summary {
    padding: 16px;
  }

  .address-card {
    padding: 12px;
  }

  .payment-details strong {
    font-size: 13px;
  }

  .payment-details span {
    font-size: 11px;
  }
}

display: none !important;
}

/* Real content: hidden by default */
.skeleton-content {
  display: none;
}

/* When loaded: restore to block (single-child wrappers) or grid/flex is
     handled by the inner element's own CSS rules */
.skeleton-content.loaded {
  display: block;
  animation: skeletonFadeIn 0.45s ease-in-out forwards;
}

@keyframes skeletonFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skeleton inside inactive tab panels — suppress shimmer until tab is opened */
.hidden-tab-skeleton {
  display: none;
}

/* Brands skeleton items */
.brands-grid .skeleton-shimmer {
  flex: 0 1 100px;
  min-width: 80px;
}
/* ─── Dynamic Navbar Dropdowns (managed from Admin → Navigation) ─── */
.nav-links li { position: relative; }
.nav-has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-has-dropdown > a .nav-caret { transition: transform .2s; }
.nav-has-dropdown:hover > a .nav-caret,
.nav-has-dropdown:focus-within > a .nav-caret { transform: rotate(180deg); }

.nav-links .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-top: 2px solid var(--primary);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
  z-index: 999;
}
.nav-links li.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-links li.nav-has-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li { height: auto !important; }
.nav-links .nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto !important;
  padding: 10px 18px;
  color: #333 !important;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links .nav-dropdown-menu li a:hover,
.nav-links .nav-dropdown-menu li a:focus {
  color: var(--primary) !important;
  background: #f8f6f2 !important;
}