/* ═══════════════════════════════════════════════
   CLADLY — Luxury Black & Gold Theme
   Mobile-First, Premium Fashion Accessories
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-dark:   #A07830;
  --gold-pale:   #F5EDD6;
  --black:       #0A0A0A;
  --black-soft:  #111111;
  --black-card:  #161616;
  --surface:     #1C1C1C;
  --border:      #2A2A2A;
  --border-gold: rgba(201,168,76,0.25);
  --text-primary:   #F0EAD6;
  --text-secondary: #A09070;
  --text-muted:     #5A5040;
  --white:       #FFFFFF;
  --error:       #E05050;
  --success:     #50B878;
  --warning:     #E0A050;

  --font-display: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-gold: 0 4px 24px rgba(201,168,76,0.15);
  --shadow-deep: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --gold:        #B8923C;
  --gold-light:  #D4AF5A;
  --gold-dark:   #8A6B28;
  --gold-pale:   #FBF6E8;
  --black:       #FAF8F4;
  --black-soft:  #FFFFFF;
  --black-card:  #FFFFFF;
  --surface:     #F3EFE6;
  --border:      #E5DFD0;
  --border-gold: rgba(184,146,60,0.3);
  --text-primary:   #1A1610;
  --text-secondary: #6B5D45;
  --text-muted:     #9C8F75;
  --white:       #FFFFFF;
  --error:       #D03939;
  --success:     #3A9A5C;
  --warning:     #C9870F;
  --shadow-gold: 0 4px 24px rgba(184,146,60,0.12);
  --shadow-deep: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
}

[data-theme="light"] body {
  background: var(--black);
}

[data-theme="light"] .navbar {
  background: rgba(250,248,244,0.96);
  box-shadow: 0 1px 0 var(--border);
}

/* Hero banners always stay dark-themed for readability over photos */
[data-theme="light"] .hero-slider {
  background: #0A0A0A;
}
[data-theme="light"] .hero-slide-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}
[data-theme="light"] .hero-title { color: #FFFFFF; }
[data-theme="light"] .hero-sub { color: rgba(255,255,255,0.75); }
[data-theme="light"] .hero-eyebrow { color: var(--gold); }

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(250,248,244,0.97);
  box-shadow: 0 -1px 0 var(--border);
}

[data-theme="light"] .toast {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Smooth transition when switching */
body, .navbar, .category-nav, .product-card, .cart-item, .form-card,
.checkout-section, .admin-sidebar, .stat-card, .table-wrap, footer.footer {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; }

/* ── Section Labels ── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 12px auto 0;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding: 0 16px;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo span { color: var(--text-primary); font-style: normal; }

/* Search */
.nav-search {
  flex: 1;
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .nav-search input {
    padding: 9px 40px 9px 14px;
    font-size: 13px;
  }
}

.nav-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 9px 44px 9px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search input:focus { border-color: var(--gold); }
.nav-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 100;
  display: none;
  box-shadow: var(--shadow-deep);
}
.search-suggestions.visible { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--surface); }
.suggestion-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface);
}
.suggestion-name { font-size: 13px; font-weight: 500; }
.suggestion-price { font-size: 12px; color: var(--gold); }

/* Nav icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 20px;
  transition: color var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-icon-btn:hover { color: var(--gold); }

.theme-toggle-btn {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  background: var(--surface);
}
.theme-toggle-btn:hover {
  border-color: var(--gold);
  background: var(--black-card);
}

/* Hide cart/wishlist/profile in top navbar on mobile — already in bottom nav */
@media (max-width: 767px) {
  .nav-icon-desktop-only { display: none !important; }
}
.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Category bar */
.category-nav {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner {
  display: flex;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.cat-nav-item {
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.cat-nav-item:hover,
.cat-nav-item.active { color: var(--gold); border-color: var(--gold); }

/* ════════════════════════════════
   HERO SLIDER
════════════════════════════════ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
  height: min(70vw, 480px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
  display: flex;
  align-items: center;
  padding: 32px;
}
.hero-content { max-width: 480px; }
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-sub { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 20px; }
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-dark {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ════════════════════════════════
   FLASH SALE BANNER
════════════════════════════════ */
.flash-banner {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
  padding: 16px;
  text-align: center;
}
.flash-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.flash-icon { font-size: 20px; }
.flash-text { font-weight: 700; color: var(--black); font-size: 15px; }
.flash-countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}
.countdown-block {
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  min-width: 44px;
  text-align: center;
}
.countdown-num { font-size: 18px; font-weight: 700; color: var(--black); line-height: 1; }
.countdown-label { font-size: 9px; color: rgba(0,0,0,0.6); text-transform: uppercase; }
.countdown-sep { color: var(--black); font-weight: 700; }

/* ════════════════════════════════
   PRODUCT GRID & CARDS
════════════════════════════════ */
.products-section { padding: 40px 16px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.product-badge.new { background: var(--success); color: var(--white); }
.product-badge.hot { background: var(--error); color: var(--white); }
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.product-info { padding: 12px 14px 14px; }
.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.price-current { font-size: 15px; font-weight: 700; color: var(--gold); }
.price-original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 11px; color: var(--success); font-weight: 600; }
.product-actions { display: flex; gap: 8px; }
.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-add-cart:hover { opacity: 0.9; transform: translateY(-1px); }
.stock-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--error); }

/* ════════════════════════════════
   CATEGORY CARDS
════════════════════════════════ */
.categories-section { padding: 40px 16px; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 600px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .categories-grid { grid-template-columns: repeat(6, 1fr); } }

.category-card {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.category-card:hover { transform: translateY(-4px); }
.cat-image-wrap {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  position: relative;
  transition: border-color var(--transition);
}
.category-card:hover .cat-image-wrap { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.cat-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.cat-count { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════
   PRODUCT DETAIL
════════════════════════════════ */
.product-detail { padding: 16px; max-width: 1280px; margin: 0 auto; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }

.product-gallery { position: relative; }
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 12px;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-panel {}
.product-category-tag {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 12px;
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars { color: var(--gold); font-size: 14px; }
.rating-count { font-size: 13px; color: var(--text-secondary); }
.product-detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.price-big { font-size: 2rem; font-weight: 700; color: var(--gold); }
.price-orig-big { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.price-disc-big { font-size: 13px; color: var(--success); font-weight: 600; }

.delivery-info {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivery-icon { color: var(--gold); font-size: 18px; }

.detail-buttons { display: flex; gap: 12px; margin-bottom: 24px; }
.detail-buttons .btn { flex: 1; }

.product-description { margin-bottom: 24px; }
.product-description h4 { color: var(--gold); margin-bottom: 8px; font-size: 14px; }
.product-description p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.product-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.meta-row { display: flex; gap: 12px; font-size: 13px; }
.meta-label { color: var(--text-muted); min-width: 80px; }
.meta-value { color: var(--text-primary); }

/* ════════════════════════════════
   CART
════════════════════════════════ */
.cart-page { padding: 16px; max-width: 1280px; margin: 0 auto; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1fr 380px; } }

.cart-items-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--border-gold); }
.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; margin-bottom: 4px; font-size: 14px; }
.cart-item-price { color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: var(--surface);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--gold); color: var(--black); }
.qty-num {
  background: var(--black-card);
  border: none;
  color: var(--text-primary);
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.cart-item-remove {
  color: var(--text-muted);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--error); }

/* Cart Summary */
.cart-summary {
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.cart-summary h3 { font-family: var(--font-display); margin-bottom: 20px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}
.summary-row.total .summary-val { color: var(--gold); }
.summary-label { color: var(--text-secondary); }
.summary-val { font-weight: 500; }
.coupon-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.coupon-input:focus { border-color: var(--gold); }

/* ════════════════════════════════
   FORMS & INPUTS
════════════════════════════════ */
.form-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.form-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.08); }
.form-control.error { border-color: var(--error); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--error); font-size: 12px; margin-top: 4px; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201,168,76,0.08), transparent);
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--gold);
}
.auth-tagline { font-size: 13px; color: var(--text-muted); }

/* ════════════════════════════════
   CHECKOUT
════════════════════════════════ */
.checkout-page { padding: 16px; max-width: 1280px; margin: 0 auto; }
.checkout-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1fr 380px; } }

.checkout-section {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.checkout-section h3 {
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.address-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.address-card.selected { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.address-radio { display: flex; align-items: flex-start; gap: 12px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-option.selected { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.payment-icon { font-size: 24px; }

/* ════════════════════════════════
   ORDER TRACKER
════════════════════════════════ */
.order-tracker { padding: 20px 0; }
.tracker-steps { display: flex; position: relative; }
.tracker-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.tracker-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}
.step-dot.done {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.step-dot.current {
  background: var(--black);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}
.step-label { font-size: 11px; color: var(--text-muted); }
.step-label.active { color: var(--gold); font-weight: 600; }

/* ════════════════════════════════
   REVIEWS
════════════════════════════════ */
.reviews-section { padding: 32px 0; }
.review-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.review-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--gold); }
.review-content { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ════════════════════════════════
   THANK YOU CARD
════════════════════════════════ */
.thank-you-card {
  background: linear-gradient(135deg, var(--black-soft) 0%, #1a1208 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.thank-you-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ty-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.ty-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.ty-message { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; line-height: 1.7; }
.ty-coupon {
  background: rgba(201,168,76,0.1);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.ty-coupon-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ty-coupon-code { font-size: 1.4rem; font-weight: 700; color: var(--gold); letter-spacing: 3px; }
.ty-coupon-value { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.ty-order-id { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ════════════════════════════════
   PROFILE & USER PAGES
════════════════════════════════ */
.user-page { padding: 16px; max-width: 960px; margin: 0 auto; }
.profile-header {
  background: linear-gradient(135deg, var(--black-card), var(--surface));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--gold);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-display); font-size: 1.4rem; }
.profile-email { color: var(--text-muted); font-size: 13px; }
.profile-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
}
.stat-item { text-align: center; min-width: 50px; }
.stat-num { font-size: 1.3rem; font-weight: 700; color: var(--gold); line-height: 1.2; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

@media (max-width: 480px) {
  .profile-header { flex-direction: column; text-align: center; gap: 12px; }
  .profile-stats { justify-content: center; }
  .profile-email { word-break: break-all; }
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 11px; color: var(--text-muted); }

.profile-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 600px) { .profile-menu { grid-template-columns: repeat(3, 1fr); } }
.profile-menu-item {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.profile-menu-item:hover { border-color: var(--gold); color: var(--gold); }
.menu-icon { font-size: 28px; margin-bottom: 8px; }
.menu-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ════════════════════════════════
   ADMIN DASHBOARD
════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 768px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--black-soft);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  padding: 0 20px 24px;
  display: block;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav-item:hover,
.admin-nav-item.active {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}
.admin-nav-icon { font-size: 18px; }

.admin-main { padding: 24px; background: var(--black); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-page-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-card-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.stat-card-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.stat-card-sub { font-size: 12px; color: var(--text-secondary); }
.stat-card-icon { font-size: 24px; color: var(--gold); margin-bottom: 8px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(201,168,76,0.03); }
.table-wrap {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-placed { background: rgba(80,120,200,0.15); color: #5078C8; }
.status-confirmed { background: rgba(80,180,100,0.15); color: #50B464; }
.status-packed { background: rgba(200,150,80,0.15); color: var(--gold); }
.status-out_for_delivery { background: rgba(150,80,200,0.15); color: #9650C8; }
.status-delivered { background: rgba(80,184,120,0.15); color: var(--success); }
.status-cancelled { background: rgba(224,80,80,0.15); color: var(--error); }

/* ════════════════════════════════
   ALERTS & TOASTS
════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(80,184,120,0.1); border-color: rgba(80,184,120,0.3); color: var(--success); }
.alert-error { background: rgba(224,80,80,0.1); border-color: rgba(224,80,80,0.3); color: var(--error); }
.alert-warning { background: rgba(224,160,80,0.1); border-color: rgba(224,160,80,0.3); color: var(--warning); }
.alert-info { background: rgba(80,160,224,0.1); border-color: rgba(80,160,224,0.3); color: #50A0E0; }

.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--black-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-deep);
  font-size: 14px;
  animation: slideIn 0.3s ease;
  max-width: 300px;
}
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding: 40px 16px 20px;
  margin-top: 60px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.footer-tagline { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ════════════════════════════════
   MOBILE BOTTOM NAV
════════════════════════════════ */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid var(--border-gold);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 1000;
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.bottom-nav-item:hover,
.bottom-nav-item.active { color: var(--gold); }
.bottom-nav-icon { font-size: 22px; }
.bottom-nav-badge {
  position: absolute;
  top: -2px;
  right: calc(50% - 18px);
  background: var(--gold);
  color: var(--black);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── Utilities ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0 !important; }
.py-4 { padding: 32px 0; }
.py-8 { padding: 64px 0; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
.w-full { width: 100%; }
.page-body { padding-bottom: 70px; } /* Space for mobile bottom nav */
@media (min-width: 768px) { .page-body { padding-bottom: 0; } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-text { font-size: 14px; margin-bottom: 20px; }

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
}
.page-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition);
}
.page-link:hover,
.page-link.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Selection ── */
::selection { background: rgba(201,168,76,0.2); color: var(--gold-light); }

/* ── Size Selector (product detail page) ── */
.size-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
}
.size-pill.size-pill-selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold);
}
.size-pill-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.size-pill small {
  font-size: 9px;
  color: var(--error);
  font-weight: 400;
  text-decoration: none;
  margin-top: 2px;
}