/* ================================================================
   CAPRICIEUSE — Premium Frontend CSS
   E-commerce tunisien — Design moderne, élégant, responsive
================================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #c9a84c;
  --accent-rgb: 201,168,76;
  --accent-light: #e0bf72;
  --accent-dark: #a8892f;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #fafaf8;
  --bg-light: #f4f4ef;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --radius: 8px;
  --radius-lg: 14px;
  --transition: 0.25s ease;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Libre Bodoni', Georgia, serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; }
.container-lg { max-width: 1440px; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: #b8962e;          /* slightly darker gold for topbar */
  color: rgba(255,255,255,.9);
  font-size: 12px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left { display: flex; gap: 18px; align-items: center; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-left a, .topbar-right a { color: rgba(255,255,255,.85); transition: color var(--transition); }
.topbar-left a:hover, .topbar-right a:hover { color: #fff; }
.topbar i { margin-right: 4px; }
.topbar-banner { font-weight: 500; letter-spacing: 0.05em; font-size: 12px; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container { padding-top: 0; padding-bottom: 0; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 42px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

/* Main Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 2px; align-items: center; }
.main-nav li { position: relative; }
.main-nav li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav li > a:hover { color: var(--accent); background: #faf8f2; }
.main-nav li > a i { font-size: 10px; transition: transform var(--transition); }
.main-nav li.has-dropdown:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.main-nav .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  z-index: 100;
}
.main-nav li.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.main-nav .dropdown li > a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--text);
  white-space: nowrap;
  background: none;
}
.main-nav .dropdown li > a:hover { background: #faf8f2; color: var(--accent); padding-left: 20px; }

/* Subdropdown (categories with children) */
.main-nav li.has-subdropdown { position: relative; }
.main-nav li.has-subdropdown > a i.fa-chevron-right { font-size: 10px; margin-left: 4px; transition: transform var(--transition); }
.main-nav .subdropdown {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 4px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  z-index: 101;
}
.main-nav li.has-subdropdown:hover > .subdropdown {
  opacity: 1;
  visibility: visible;
}
.main-nav li.has-subdropdown:hover > a { background: #faf8f2; color: var(--accent); padding-left: 20px; }
.main-nav .subdropdown li > a { padding-left: 14px; }

/* Header Actions */
.header-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.header-actions .action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  font-size: 17px;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}
.header-actions .action-btn:hover { background: var(--border-light); color: var(--accent); }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search Bar */
.search-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--border-light);
}
.search-bar.open { display: flex; }
.search-bar form { position: relative; flex: 1; }
.search-bar input {
  width: 100%;
  padding: 11px 52px 11px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  background: var(--bg);
  transition: all var(--transition);
  color: var(--text);
}
.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.search-bar input::placeholder { color: var(--text-light); }
.search-bar button[type="submit"] {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-bar button[type="submit"]:hover { background: var(--accent-dark); }
.search-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.search-close:hover { background: var(--error); color: #fff; }

/* ── Mobile Nav ─────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}
.mobile-nav ul { padding: 8px 0; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.mobile-nav-link:hover { background: #faf8f2; color: var(--accent); }
.mobile-nav-link i { width: 20px; color: var(--accent); }

/* ── Alert / Flash Messages ─────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  animation: alertIn 0.3s ease;
}
@keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert button {
  margin-left: auto;
  opacity: .5;
  cursor: pointer;
  transition: opacity var(--transition);
  font-size: 18px;
  background: none;
  border: none;
  line-height: 1;
  padding: 0;
}
.alert button:hover { opacity: 1; }

/* ── Main Content ───────────────────────────────────────────── */
.main-content { min-height: calc(100vh - 260px); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.3); }
.btn-secondary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: var(--primary-light); }
.btn-sm  { padding: 7px 16px; font-size: 13px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon  { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Hero Section ───────────────────────────────────────────── */
/* ── Hero — base ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: stretch;
  color: #fff;
}

/* Gradient mode (default) */
.hero--gradient { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }

/* Image / Video shared */
.hero--image,
.hero--video { background: #111; }

/* Full-cover image background */
.hero-image-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* Full-cover video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0, var(--overlay-opacity, .5));
  z-index: 1;
}

/* Content layer */
.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
}
.hero-body .container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content { max-width: 640px; }

.hero-subtitle {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 50px;
  background: rgba(201,168,76,.1);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-desc { font-size: 14px; font-weight: 400; opacity: .85; margin-bottom: 32px; line-height: 1.8; max-width: 480px; letter-spacing: 0.2px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Admin hero type card selected state */
.hero-type-card.selected { border-color: var(--accent) !important; background: rgba(201,168,76,.06); }

/* ── Collection + Nouveautés Block ──────────────────────────── */
.col-new-block { padding: 40px 0 0; }
.col-new-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Left: Collection banner */
.col-banner {
  position: relative;
  display: block;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary) center/cover no-repeat;
  text-decoration: none;
}
.col-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.0) 100%);
  transition: opacity 0.35s;
}
.col-banner:hover .col-banner-overlay { opacity: .85; }
.col-banner-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-banner-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
}
.col-banner-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.col-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  width: fit-content;
  transition: gap 0.2s, color 0.2s;
}
.col-banner:hover .col-banner-cta { gap: 14px; color: #fff; }

/* Right: Nouveautés */
.col-new-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.col-new-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.col-new-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.col-new-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.col-new-link:hover { gap: 10px; }
.col-new-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}
.col-new-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.col-new-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.col-new-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-light);
}
.col-new-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.col-new-card:hover .col-new-img img { transform: scale(1.05); }
.col-new-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 28px;
}
.col-new-info { padding: 10px 12px; }
.col-new-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.col-new-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}
@media (max-width: 768px) {
  .col-new-grid { grid-template-columns: 1fr; }
  .col-banner { min-height: 300px; }
}

/* ── Features Strip ─────────────────────────────────────────── */
.features-strip {
  background: #fff;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.feature-item:hover { background: #faf8f2; }
.feature-item > i {
  font-size: 26px;
  color: var(--accent);
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}
.feature-item h4 { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.feature-item p  { font-size: 12px; color: var(--text-muted); }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section.bg-light { background: var(--bg-light); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}
.section-header.center { justify-content: center; text-align: center; flex-direction: column; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  text-transform: none;
}
.section-link {
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link:hover { gap: 10px; }

/* ── Categories Slider ──────────────────────────────────────── */
.cat-slider-wrap {
  position: relative;
  overflow: hidden;
}
.cat-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  cursor: grab;
}
.cat-slider:active { cursor: grabbing; }
.cat-slider::-webkit-scrollbar { display: none; }
.cat-slider { scrollbar-width: none; }

.cat-slider .category-card {
  flex: 0 0 180px;
}

/* Dots */
.cat-slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all .25s;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.cat-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Prev / Next buttons */
.cat-slider-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
  flex-shrink: 0;
}
.cat-slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Cards */
.category-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }
.category-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
}
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.category-card:hover .category-img img { transform: scale(1.07); }
.category-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(255,255,255,.45);
}
.category-info {
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
}
.category-info h3 { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--text); text-align: center; letter-spacing: 0.01em; }

/* ── Product Grid ───────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border); }
.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f9f9f7;
  isolation: isolate;
}
.product-img-wrap a { display: block; width: 100%; height: 100%; }
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 52px;
  min-height: 220px;
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.product-actions {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.product-actions .action-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
.product-actions .action-btn:hover { background: var(--accent); color: #fff; }
.product-actions .action-btn.wishlisted { color: var(--error); }
.product-info { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.product-info .add-to-cart-form,
.product-info > button[disabled] { margin-top: auto; }
.product-category { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.product-name { font-size: 13px; font-weight: 400; color: var(--text); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: 0.01em; }
.product-name a:hover { color: var(--accent); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price         { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.price-sale    { font-size: 14px; font-weight: 700; color: var(--error); letter-spacing: 0.3px; }
.price-old     { font-size: 12px; color: var(--text-light); text-decoration: line-through; }
.price-current { font-size: 16px; font-weight: 700; color: var(--text); }
.price-original{ font-size: 13px; color: var(--text-light); text-decoration: line-through; }

/* ── Promo Banner ───────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
  padding: 64px 0;
  overflow: hidden;
  position: relative;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M20 20c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zm-10 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.promo-inner { position: relative; z-index: 1; }
.promo-content { text-align: center; color: #fff; max-width: 560px; margin: 0 auto; }
.promo-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
}
.promo-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
}

/* ── Why Us ─────────────────────────────────────────────────── */
.why-us { background: var(--bg-light); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,168,76,.3); }
.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(201,168,76,.14), rgba(201,168,76,.06));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  color: var(--accent);
  border: 2px solid rgba(201,168,76,.18);
  transition: all var(--transition);
}
.why-item:hover .why-icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-color: var(--accent); }
.why-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.why-item p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ── Shop Page ──────────────────────────────────────────────── */
.shop-layout  { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: 90px; }

/* Sidebar card */
.sidebar-filter-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Sidebar title row */
.sidebar-filter-card .sidebar-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #faf8f2, #fff);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .7px;
}
.sidebar-filter-card .sidebar-header i { color: var(--accent); }

/* Used in shop view — .sidebar-section wraps the whole sidebar content */
.sidebar-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-section > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .7px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #faf8f2, #fff);
}
.sidebar-section > h3 i { color: var(--accent); }
.sidebar-section > form { padding: 0; }

/* Active search filter chip */
.active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #faf8f2;
  border-bottom: 1px solid rgba(201,168,76,.18);
  padding: 9px 20px;
  font-size: 12.5px;
  color: var(--text);
}
.active-filter a { color: var(--text-muted); transition: color var(--transition); font-size: 13px; }
.active-filter a:hover { color: var(--error); }

/* Each filter block */
.filter-group {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.filter-group:last-child { border-bottom: none; }
.filter-group > h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Category links */
.filter-group .filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-group .filter-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.filter-group .filter-list li a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition);
}
.filter-group .filter-list li a:hover {
  background: #faf8f2;
  color: var(--text);
  border-left-color: rgba(201,168,76,.4);
}
.filter-group .filter-list li a:hover::before { background: var(--accent); }
.filter-group .filter-list li a.active {
  background: linear-gradient(90deg, rgba(201,168,76,.12), transparent);
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}
.filter-group .filter-list li a.active::before { background: var(--accent); }

/* Price range */
.price-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}
.price-inputs input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  text-align: center;
  transition: border-color var(--transition);
  background: #fff;
}
.price-inputs input:focus { outline: none; border-color: var(--accent); }
.price-inputs span { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.results-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sort-control label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.sort-select {
  padding: 7px 32px 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 160px;
}
.sort-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.sort-select:hover  { border-color: var(--accent); }

/* View toggle */
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn:hover { border-color: var(--accent); color: var(--accent); }
.view-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(201,168,76,.35); }

/* ── Products — LIST VIEW ────────────────────────────────────── */
#productsGrid.list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#productsGrid.list-view .product-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  height: 160px;
  transform: none !important;
}
#productsGrid.list-view .product-card:hover {
  transform: none !important;
  box-shadow: var(--shadow);
}

/* Image */
#productsGrid.list-view .product-card .product-img-wrap {
  aspect-ratio: unset !important;
  height: 160px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
#productsGrid.list-view .product-card .product-img-wrap a {
  display: block; height: 100%;
}
#productsGrid.list-view .product-card .product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease;
}
#productsGrid.list-view .product-card:hover .product-img-wrap img { transform: scale(1.05); }
#productsGrid.list-view .product-card .product-no-img { height: 100%; min-height: unset; font-size: 32px; }

/* Actions: horizontal row at bottom of image */
#productsGrid.list-view .product-card .product-actions {
  flex-direction: row;
  top: auto; bottom: 8px;
  right: auto; left: 8px;
  transform: translateY(4px);
}
#productsGrid.list-view .product-card:hover .product-actions { transform: translateY(0); }

/* Info */
#productsGrid.list-view .product-card .product-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
#productsGrid.list-view .product-card .product-category { margin-bottom: 0; }
#productsGrid.list-view .product-card .product-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
  white-space: normal;
}
#productsGrid.list-view .product-card .product-sizes { gap: 4px; }
#productsGrid.list-view .product-card .product-price { margin-bottom: 0; }
#productsGrid.list-view .product-card .add-to-cart-form .btn {
  width: auto;
  display: inline-flex;
  padding: 6px 18px;
  font-size: 13px;
}

@media (max-width: 600px) {
  #productsGrid.list-view .product-card { grid-template-columns: 120px 1fr; height: 140px; }
  #productsGrid.list-view .product-card .product-img-wrap { height: 140px; }
}

/* ── Product Detail ─────────────────────────────────────────── */
.product-detail { padding: 40px 0 72px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }

/* Gallery */
.product-gallery { position: sticky; top: 90px; }
.gallery-wrap { display: flex; gap: 12px; align-items: flex-start; }

/* Thumbnails strip (left column) */
.gallery-thumbs {
  display: flex; flex-direction: column;
  gap: 8px; width: 76px; flex-shrink: 0;
  max-height: 520px; overflow-y: auto;
}
.gallery-thumbs::-webkit-scrollbar { width: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gallery-thumb {
  width: 76px; height: 76px;
  border-radius: var(--radius);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f9f9f7;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.gallery-thumb:hover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.15); }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb.active { border-color: var(--accent); border-width: 2px; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }

/* Main image panel */
.gallery-main {
  flex: 1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f9f9f7;
  border: 1px solid var(--border-light);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.15s ease, transform 0.5s ease;
}
.gallery-main:hover img { transform: scale(1.04); }
.no-image {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); color: var(--border);
}
.gallery-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 50px;
  text-transform: uppercase;
}
.zoom-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.zoom-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(4px);
}
.lightbox-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  max-width: 92vw; max-height: 92vh;
}
.lightbox-inner img {
  max-width: 80vw; max-height: 86vh;
  object-fit: contain; border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-nav {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition);
}
.lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }

/* Info panel */
.product-detail-info { padding: 4px 0; }
.product-brand { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.product-brand a { color: var(--accent); }
.product-brand a:hover { text-decoration: underline; }
.product-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.product-rating .fa-star { font-size: 14px; color: var(--border); }
.product-rating .fa-star.filled { color: #f59e0b; }
.product-rating span { font-size: 13px; color: var(--text-muted); }

/* Prices */
.product-price-large {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.price-large { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.price-sale-large { font-size: 26px; font-weight: 800; color: var(--error); letter-spacing: -0.5px; }
.price-old-large { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.price-savings {
  font-size: 12px; font-weight: 700;
  background: #fef2f2; color: var(--error);
  padding: 3px 10px; border-radius: 50px;
  border: 1px solid rgba(239,68,68,.15);
}

/* Delivery Time */
.delivery-time { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 14px; }
.delivery-time i { color: var(--accent); }

/* Stock */
.stock-status { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.in-stock  { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--success); }
.out-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--error); }
.low-stock-warning { font-size: 12px; font-weight: 600; color: var(--warning); background: #fef3c7; padding: 3px 10px; border-radius: 50px; }
.product-short-desc { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.product-sku { font-size: 12px; color: var(--text-light); margin-bottom: 18px; }

/* Size Selector */
.size-selector { margin-bottom: 22px; }
.size-selector-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.size-label { font-size: 14px; font-weight: 600; color: var(--text); }
.size-label strong { color: var(--accent); }
.size-guide-link { font-size: 12px; color: var(--text-muted); text-decoration: underline; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt {
  min-width: 48px; height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.size-opt:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,.06); }
.size-opt.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10,25,47,.18);
}
.size-opt.unavailable {
  opacity: .5; cursor: not-allowed;
  background: #f9f9f9; border-color: #e5e7eb;
  color: var(--text-light);
  position: relative;
}
.size-opt.unavailable::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 4px, rgba(0,0,0,.08) 4px, rgba(0,0,0,.08) 5px);
  border-radius: inherit;
  pointer-events: none;
}
.size-sat-tag {
  display: block; font-size: 9px; font-weight: 700;
  color: var(--error); text-transform: uppercase; letter-spacing: .3px;
  line-height: 1; margin-top: 2px; text-decoration: none;
}

/* Product card size chips */
.product-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.product-size-chip {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted); background: var(--bg-light);
  line-height: 1.6;
}
.product-size-chip.size-sat {
  text-decoration: line-through;
  opacity: .45;
  border-style: dashed;
}
.size-error {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--error);
  margin-top: 8px; font-weight: 500;
}

/* Add to cart */
.qty-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn {
  width: 42px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300;
  background: var(--bg); color: var(--text);
  border: none; cursor: pointer;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--accent); color: #fff; }
.qty-control input[type="number"] {
  width: 56px; height: 48px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 16px; font-weight: 700;
  -moz-appearance: textfield;
}
.qty-control input[type="number"]::-webkit-inner-spin-button,
.qty-control input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.add-cart-main { flex: 1; min-width: 180px; padding: 14px 22px; font-size: 15px; }
.product-extra-btns { margin-bottom: 20px; }
.wishlist-btn {
  gap: 8px;
  color: var(--text-muted);
  border-color: var(--border);
}
.wishlist-btn:hover, .wishlist-btn.wishlisted { border-color: var(--error); color: var(--error); background: #fef2f2; }
.wishlist-btn .far, .wishlist-btn .fas { transition: color var(--transition); }
.out-of-stock-msg {
  background: #fef2f2;
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--error);
  margin-bottom: 20px;
}

/* Trust */
.trust-badges {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}
.trust-item {
  flex: 1; min-width: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 12px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  text-align: center;
  border-right: 1px solid var(--border-light);
  transition: background var(--transition);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: #faf8f2; }
.trust-item i { font-size: 20px; color: var(--accent); }

/* Share */
.product-share {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  color: var(--text-muted);
}
.share-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }

/* Product meta */
.product-meta { margin-top: 16px; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 5px; }
.product-meta span { font-weight: 600; color: var(--text); }

/* Product Tabs */
.product-tabs { margin-top: 56px; border-top: 1px solid var(--border-light); padding-top: 40px; }
.tabs-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; overflow-x: auto; }
.tab-btn {
  padding: 13px 26px;
  font-size: 14px; font-weight: 600;
  color: var(--text-muted);
  border: none; border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: none; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Description tab */
.product-description { font-size: 15px; color: var(--text-muted); line-height: 1.85; }
.product-description p { margin-bottom: 12px; }

/* Reviews tab */
.reviews-list { margin-bottom: 36px; }
.review-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px; gap: 12px; flex-wrap: wrap;
}
.reviewer-info { display: flex; flex-direction: column; gap: 3px; }
.reviewer-info strong { font-size: 14px; font-weight: 700; color: var(--text); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-stars { display: flex; gap: 3px; }
.review-stars .fa-star { font-size: 13px; color: var(--border); }
.review-stars .fa-star.filled { color: #f59e0b; }
.review-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.review-comment { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Star rating input */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 4px; }
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 28px; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* ── Price range slider ──────────────────────────────────────── */
.price-range-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.price-range-input {
  position: absolute;
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 3;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  pointer-events: all;
  cursor: pointer;
  transition: transform .15s;
}
.price-range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.price-range-track {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  z-index: 1;
}
.price-range-fill {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

/* ── Color swatches filter ───────────────────────────────────── */
.color-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.color-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  font-size: 10px;
  color: #fff;
  text-decoration: none;
}
.color-swatch:hover { transform: scale(1.18); box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.color-swatch.active {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(201,168,76,.3);
}

/* ── Size buttons filter ─────────────────────────────────────── */
.size-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.size-filter-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: #fff;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.size-filter-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,.06); }
.size-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Tag chips filter ────────────────────────────────────────── */
.tag-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tag-filter-chip {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  background: #fff;
  text-decoration: none;
  transition: all var(--transition);
}
.tag-filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Filter clear link ───────────────────────────────────────── */
.filter-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 2px;
}
.filter-clear-link:hover { color: var(--accent); }

/* Related products */
.related-products { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border-light); }
.related-products h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

/* ── Cart Page ──────────────────────────────────────────────── */
.cart-section { padding: 40px 0 80px; }
.cart-section .page-title { margin-bottom: 28px; font-size: clamp(20px,3vw,28px); }
.cart-section .page-title span { font-size: 16px; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }

/* Empty state */
.empty-cart {
  text-align: center; padding: 100px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-cart i  { font-size: 64px; color: var(--border); }
.empty-cart h2 { font-family: var(--font-display); font-size: 26px; margin: 0; }
.empty-cart p  { color: var(--text-muted); margin: 0 0 8px; }

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

/* Items table */
.cart-items {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.cart-header-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 44px;
  padding: 12px 24px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
}
.cart-item {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1.2fr 1fr 44px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fdfcf9; }

/* Product cell */
.cart-item-product { display: flex; align-items: center; gap: 14px; }
.cart-item-product img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-no-img {
  width: 80px; height: 80px;
  border-radius: var(--radius);
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--border); font-size: 22px; flex-shrink: 0;
}
.cart-item-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item-details a {
  font-weight: 600; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-details a:hover { color: var(--accent); }
.cart-item-details small { font-size: 12px; color: var(--text-muted); display: block; }
.cart-item-size { display: inline-flex; align-items: center; gap: 4px; }
.cart-item-size strong { color: var(--accent); font-weight: 700; }
.cart-size-wrap { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.cart-size-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.cart-size-select { font-size: 12px; padding: 3px 22px 3px 8px; border: 1.5px solid var(--accent); border-radius: 6px; background: #fff; color: var(--primary); font-weight: 600; cursor: pointer; appearance: auto; }

/* Price / total cells */
.cart-item-price { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.cart-item-total { font-size: 16px; font-weight: 800; color: var(--primary); }

/* Qty cell */
.cart-item-qty .qty-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
  overflow: hidden;
}
.cart-item-qty .qty-btn {
  width: 34px; height: 38px;
  background: var(--bg-light); border: none;
  font-size: 16px; cursor: pointer; color: var(--text);
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty .qty-btn:hover { background: var(--accent); color: #fff; }
.cart-item-qty .qty-input {
  width: 44px; height: 38px;
  text-align: center; border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  font-size: 14px; font-weight: 700;
  -moz-appearance: textfield;
  background: #fff;
}
.cart-item-qty .qty-input::-webkit-inner-spin-button,
.cart-item-qty .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Remove button */
.cart-item-remove { display: flex; justify-content: center; }
.cart-item-remove .remove-btn {
  width: 34px; height: 34px;
  background: none; border: 1px solid transparent;
  color: var(--text-light);
  cursor: pointer; font-size: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cart-item-remove .remove-btn:hover {
  color: var(--error);
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
}

/* ── Cart Summary Panel ─────────────────────────────────────── */
.cart-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

/* Coupon */
.coupon-form { margin-bottom: 20px; }
.coupon-form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.coupon-input-group { display: flex; gap: 8px; }
.coupon-input-group input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px; font-family: monospace; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text);
}
.coupon-input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
.coupon-form #couponMsg { font-size: 12.5px; margin-top: 6px; }
.success-msg { color: var(--success); }
.error-msg   { color: var(--error); }

/* Coupon applied tag */
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius); padding: 10px 14px;
  margin-bottom: 20px; font-size: 13.5px; font-weight: 600; color: var(--success);
}
.remove-coupon {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  transition: all 0.15s;
}
.remove-coupon:hover { color: var(--error); background: rgba(239,68,68,.08); }

/* Summary lines */
.summary-lines { margin-bottom: 24px; }
.summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}
.summary-line:last-child { border-bottom: none; }
.summary-line span:first-child { color: var(--text-muted); }
.discount-line { color: var(--success); }
.discount-line span:first-child { color: var(--success); }
.total-line {
  padding-top: 14px; margin-top: 4px;
  border-top: 2px solid var(--border) !important;
  border-bottom: none !important;
}
.total-line strong:first-child { font-size: 15px; color: var(--text); }
.total-line strong:last-child  { font-size: 20px; color: var(--primary); }
.free-shipping { color: var(--success); font-weight: 700; font-size: 13px; }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-steps {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  margin-bottom: 0;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}
.step span {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  flex-shrink: 0;
}
.step.completed { color: var(--success); }
.step.completed span { background: var(--success); border-color: var(--success); color: #fff; }
.step.active { color: var(--text); font-weight: 700; }
.step.active span { background: var(--accent); border-color: var(--accent); color: #fff; }
.step + .step::before {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--border);
  margin: 0 12px;
  flex-shrink: 0;
}
.step.completed + .step::before { background: var(--success); }

/* Layout */
.checkout-section { padding: 48px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }

/* Blocks (left column cards) */
.checkout-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-block h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-block h2 i { color: var(--accent); font-size: 15px; }
.checkout-block textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.form-check label { font-size: 13.5px; cursor: pointer; color: var(--text-muted); }

/* Payment options */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.payment-option:hover { border-color: var(--accent); }
.payment-option.checked { border-color: var(--accent); background: rgba(201,168,76,.05); }
.payment-option input[type="radio"] { display: none; }
.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.payment-option-inner > i {
  font-size: 22px;
  color: var(--accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.payment-option-inner strong { font-size: 14px; font-weight: 700; display: block; color: var(--text); }
.payment-option-inner p { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 0; }
.payment-option .payment-details {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right: Summary card */
.checkout-summary { position: sticky; top: 90px; }
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.summary-card > h3 {
  font-size: 15px;
  font-weight: 700;
  padding: 18px 24px;
  margin: 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  letter-spacing: .3px;
}
.summary-items { padding: 16px 24px; border-bottom: 1px solid var(--border-light); }
.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
}
.summary-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.summary-item-info img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.summary-item-info span {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  flex-shrink: 0;
}
.summary-item > span:last-child {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.summary-totals { padding: 16px 24px; }
.summary-totals .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}
.summary-totals .summary-line:last-of-type { border-bottom: none; }
.summary-totals .summary-line.discount { color: #16a34a; }
.summary-totals .summary-line.total {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
  border-bottom: none !important;
}
.summary-totals .summary-line.total strong:first-child { font-size: 15px; color: var(--text); }
.total-amount { font-size: 20px !important; color: var(--primary) !important; }
.summary-card .btn { margin: 0 24px 16px; width: calc(100% - 48px); }
.secure-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}
.secure-note i { color: var(--success); }

/* Legacy aliases kept for cart page */
.payment-method { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 18px; cursor: pointer; transition: all var(--transition); margin-bottom: 10px; }
.payment-method:hover { border-color: var(--accent); }
.payment-method.selected { border-color: var(--accent); background: rgba(201,168,76,.05); }
.payment-method label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 500; }
.payment-method input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.bank-details { background: var(--bg); border-radius: var(--radius); padding: 16px; margin-top: 12px; font-size: 13.5px; }
.bank-detail-row { display: flex; gap: 8px; margin-bottom: 4px; }
.bank-detail-row .key { color: var(--text-muted); width: 120px; flex-shrink: 0; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label,
.form-group > label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-control,
.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
}
.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}
.form-control::placeholder,
.form-group input::placeholder { color: var(--text-light); }
textarea.form-control,
.form-group textarea { resize: vertical; min-height: 100px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.field-error { display: block; font-size: 12px; color: var(--error); margin-top: 5px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; display: block; }
.input-icon { position: relative; }
.input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}
.input-icon input { padding-left: 42px !important; }
.form-footer-links {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  font-size: 13px;
}
.form-footer-links a { color: var(--accent); font-weight: 500; }
.form-footer-links a:hover { text-decoration: underline; }

/* ── Auth Layout ────────────────────────────────────────────── */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: linear-gradient(135deg, #0f0c29 0%, var(--primary) 40%, #0f3460 100%);
}
.auth-container { width: 100%; max-width: 480px; }
.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  padding: 44px 40px;
  width: 100%;
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.auth-logo { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.auth-logo .logo-text {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.auth-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin: 0; }
.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 20px 0;
  position: relative;
}
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--bg-card); padding: 0 12px; position: relative; }
.auth-redirect { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 18px; }
.auth-redirect a { color: var(--accent); font-weight: 600; }
.auth-redirect a:hover { text-decoration: underline; }

/* ── Account Pages ──────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 48px 0 72px; align-items: start; }
.account-sidebar { position: sticky; top: 80px; }
.account-nav {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.account-nav-header { padding: 20px; border-bottom: 1px solid var(--border-light); }
.account-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
  margin-bottom: 10px;
}
.account-name  { font-weight: 700; font-size: 15px; }
.account-email { font-size: 12px; color: var(--text-muted); }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.account-nav-link:hover, .account-nav-link.active { background: #faf8f2; color: var(--accent); border-left-color: var(--accent); }
.account-nav-link i { width: 18px; font-size: 15px; }
.account-content { min-height: 400px; }
.account-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  margin-bottom: 20px;
}
.account-card-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  background: #fff;
}
.page-link:hover, .page-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-link.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.page-link.wide { width: auto; padding: 0 14px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-nav, .breadcrumb {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-nav a, .breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb-nav a:hover, .breadcrumb a:hover { color: var(--accent); }
.breadcrumb-nav .separator, .breadcrumb .separator { color: var(--border); }
.breadcrumb-nav .current, .breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600; }
.badge-new      { background: var(--success); color: #fff; }
.badge-sale     { background: var(--error); color: #fff; }
.badge-featured { background: var(--accent); color: #fff; }
.badge-out      { background: #4b5563; color: #fff; }
.badge-stock    { background: var(--accent); color: #fff; }
.badge-success, .badge-shipped   { background: #d1fae5; color: #065f46; }
.badge-warning, .badge-pending   { background: #fef3c7; color: #92400e; }
.badge-info, .badge-processing   { background: #dbeafe; color: #1e40af; }
.badge-error, .badge-cancelled   { background: #fee2e2; color: #991b1b; }
.badge-secondary, .badge-delivered { background: #f3f4f6; color: #374151; }
.badge-purple   { background: #ede9fe; color: #5b21b6; }
.badge-refunded { background: #fce7f3; color: #9d174d; }

/* ── Data Table ─────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); padding: 12px 16px; border-bottom: 2px solid var(--border); text-align: left; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tbody tr:hover { background: #fafaf8; }

/* ── Reviews ────────────────────────────────────────────────── */
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date   { font-size: 12px; color: var(--text-muted); }
.review-body   { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.review-form   { background: var(--bg); padding: 24px; border-radius: var(--radius); margin-top: 28px; }
.star-rating-input { display: flex; flex-direction: row-reverse; gap: 6px; margin-bottom: 16px; }
.star-rating-input label { font-size: 28px; color: var(--border); cursor: pointer; transition: color var(--transition); }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #f59e0b; }

/* ── Cart Drawer ────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-header h3 { font-size: 17px; font-weight: 700; }
#closeDrawer {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition);
}
#closeDrawer:hover { background: var(--error); color: #fff; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.drawer-thumb { width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); flex-shrink: 0; }
.drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-name  { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.drawer-item-price { font-size: 14px; font-weight: 700; color: var(--accent); }
.drawer-item-qty   { font-size: 12px; color: var(--text-muted); }
.drawer-empty { text-align: center; padding: 40px 20px; }
.drawer-empty i { font-size: 48px; color: var(--border); margin-bottom: 14px; display: block; }
.drawer-empty p { color: var(--text-muted); font-size: 14px; }
.loading-spinner { display: flex; justify-content: center; align-items: center; padding: 40px; font-size: 28px; color: var(--text-light); }
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #c9a84c;
  color: rgba(0,0,0,.68);
  padding: 60px 0 0;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }

/* Logo */
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-text {
  color: #fff;
  font-size: 22px;
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.footer-logo-img {
  height: 48px; width: auto;
  filter: brightness(0);          /* render logo in black */
}

/* Description */
.footer-desc {
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 22px;
  color: rgba(0,0,0,.6);
}

/* Social icons */
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(0,0,0,.65);
  transition: all var(--transition);
  background: rgba(255,255,255,.15);
}
.social-links a:hover {
  background: rgba(0,0,0,.85);
  border-color: transparent;
  color: #c9a84c;
}

/* Column headings */
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0,0,0,.85);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0,0,0,.15);
  display: inline-block;
}

/* Links */
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(0,0,0,.65);
  transition: all var(--transition);
  display: inline-block;
}
.footer-col ul li a:hover {
  color: rgba(0,0,0,1);
  padding-left: 6px;
}

/* Contact list */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(0,0,0,.65);
  font-size: 13.5px;
}
.contact-list li i {
  color: rgba(0,0,0,.75);
  width: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Bottom bar — full-width, same bg as footer */
.footer-bottom {
  background: rgba(0,0,0,.1);
  border-top: 1px solid rgba(0,0,0,.15);
  padding: 14px 0;
  font-size: 12.5px;
  color: rgba(0,0,0,.6);
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Payment icons */
.payment-icons { display: flex; gap: 10px; align-items: center; }
.payment-icons i {
  font-size: 20px;
  color: rgba(0,0,0,.45);
  transition: color var(--transition);
}
.payment-icons i:hover { color: rgba(0,0,0,.85); }

/* ── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border: none;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ── Order Tracking ─────────────────────────────────────────── */
.track-form-card { max-width: 560px; margin: 0 auto; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 22px; }
.timeline-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
}
.timeline-item.done   .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-item.active .timeline-dot { background: var(--accent);  border-color: var(--accent);  color: #fff; }
.timeline-content { padding-top: 8px; }
.timeline-title { font-weight: 600; font-size: 14px; }
.timeline-date  { font-size: 12px; color: var(--text-muted); }

/* ── Success Page ───────────────────────────────────────────── */
.success-section { padding: 60px 0; background: var(--bg); min-height: 70vh; }
.success-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
}
.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 36px;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-card h1 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.success-msg { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.order-reference {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.order-reference strong { font-size: 16px; font-weight: 700; color: var(--accent-dark); letter-spacing: .5px; }
.cod-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  color: #92400e;
  text-align: left;
  margin-bottom: 20px;
}
.cod-note i { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.bank-details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 20px;
  font-size: 13.5px;
}
.bank-details h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.bank-details pre { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px; font-size: 13px; white-space: pre-wrap; margin: 8px 0; }
.bank-note { font-size: 12px; color: var(--text-muted); }
.order-summary-mini {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: left;
  margin-bottom: 20px;
}
.order-summary-mini h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.order-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.order-table th {
  text-align: left; padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted);
}
.order-table td { padding: 10px 10px; border-bottom: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.order-table td:nth-child(2) { text-align: center; color: var(--text-muted); }
.order-table td:nth-child(3) { text-align: right; font-weight: 500; }
.order-table tfoot td { border-bottom: none; color: var(--text-muted); font-size: 13px; }
.order-table tfoot tr:last-child td { border-top: 2px solid var(--border); padding-top: 12px; font-size: 15px; color: var(--text); }
.order-table tfoot .total-row td { color: var(--text); }
.shipping-address-mini {
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.shipping-address-mini h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.shipping-address-mini h3 i { color: var(--accent); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 640px) {
  .success-card { padding: 32px 20px; }
  .success-actions .btn { flex: 1; min-width: 130px; text-align: center; }
}

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero { background: var(--primary); color: #fff; padding: 44px 0; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 6px;
}
.page-hero .page-title { color: #fff; }
.page-subtitle { font-size: 15px; color: var(--text-muted); }
.page-hero .page-subtitle { color: rgba(255,255,255,.7); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-detail-grid { gap: 32px; }
  .product-gallery { position: static; }
  .gallery-thumbs { width: 64px; }
  .gallery-thumb { width: 64px; height: 64px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .form-row { flex-direction: column; gap: 0; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
}
@media (max-width: 768px) {
  /* Cart mobile */
  .cart-header-row { display: none; }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    position: relative;
  }
  .cart-item-remove {
    position: absolute; top: 14px; right: 14px;
    justify-content: flex-end;
  }
  .cart-item-product { padding-right: 40px; }
  .cart-item-price::before   { content: "Prix : "; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); display: block; }
  .cart-item-total::before   { content: "Total : "; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); display: block; }
  .cart-item-qty::before     { content: "Quantité :"; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); display: block; margin-bottom: 6px; }

  .topbar .container { flex-direction: column; gap: 4px; text-align: center; }
  .topbar { padding: 6px 0; font-size: 11.5px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .track-card { padding: 28px 22px; }
  .status-track { gap: 0; }
  .status-step span { font-size: 11px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; min-width: 0; width: 100%; }
  .gallery-wrap { flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; width: 100%; }
  .gallery-main { order: -1; min-width: 0; width: 100%; max-height: none; aspect-ratio: 4 / 5; flex: none; overflow: hidden; }
  .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-thumbs { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; padding-bottom: 4px; }
  .gallery-thumb { width: 70px; height: 70px; flex-shrink: 0; }
  .qty-group { flex-wrap: wrap; }
  .trust-badges { flex-wrap: wrap; }
  .trust-item { min-width: 120px; }
  .products-grid-4, .products-grid-3, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-slide { min-height: 400px; }
  .hero-image { display: none; }
  .section { padding: 48px 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-slider .category-card { flex: 0 0 150px; }
  .auth-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .products-grid, .products-grid-4, .products-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-btns { flex-direction: column; }
  .cart-drawer { width: 100%; }
  .tabs-nav { overflow-x: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 18px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-slider .category-card { flex: 0 0 150px; }
  .track-card { padding: 22px 16px; }
  .status-track::before { top: 19px; }
  .step-icon { width: 38px; height: 38px; font-size: 14px; }
  /* Product card buttons on mobile 2-col */
  .product-card .product-info { padding: 10px 10px; }
  .product-card .btn-sm { font-size: 11px; padding: 7px 5px; gap: 3px; letter-spacing: 0; }
  .product-card .btn-sm i { font-size: 11px; }
  .track-card .form-row { flex-direction: column; }
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success{ color: var(--success); }
.text-error  { color: var(--error); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.divider { height: 1px; background: var(--border-light); margin: 20px 0; }
.mt-2 { margin-top: 8px; }

/* ── Breadcrumb Bar ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--primary);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.breadcrumb-bar .breadcrumb {
  padding: 0;
  color: rgba(255,255,255,.55);
}
.breadcrumb-bar .breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb-bar .breadcrumb a:hover { color: var(--accent); }
.breadcrumb-bar .breadcrumb span { color: rgba(255,255,255,.85); }

/* ── Category / Brand Hero ──────────────────────────────────── */
.category-hero {
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
/* full-block bg image */
.category-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.category-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,30,.82) 0%, rgba(10,14,30,.55) 100%);
}
/* decorative circle */
.category-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(201,168,76,.08);
  pointer-events: none;
  z-index: 1;
}
.category-hero-content {
  position: relative;
  z-index: 2;
}
.category-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.category-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.category-hero-season {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
  letter-spacing: .5px;
}
.category-hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
  max-width: 560px;
  line-height: 1.6;
}
.category-hero-count {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 600px) {
  .category-hero { padding: 28px 20px; }
}

/* ── Shop Page Extras ───────────────────────────────────────── */
.shop-section { padding: 40px 0 72px; }
.shop-main { min-width: 0; }

/* (sort-control, view-toggle, view-btn defined above in Shop toolbar section) */

.empty-state {
  text-align: center;
  padding: 72px 24px;
}
.empty-state i { color: var(--border); margin-bottom: 18px; display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.empty-state p  { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
}
.page-btn:hover,
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Contact Page ───────────────────────────────────────────── */
.contact-section { padding: 56px 0 80px; }

.contact-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

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

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: rgba(201,168,76,.3); box-shadow: var(--shadow-sm); }
.contact-info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,.14), rgba(201,168,76,.06));
  border: 2px solid rgba(201,168,76,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.contact-info-card p  { font-size: 13.5px; color: var(--text-muted); }
.contact-info-card p a { color: var(--text-muted); transition: color var(--transition); }
.contact-info-card p a:hover { color: var(--accent); }

.contact-social {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.contact-social p { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 14px; }
.contact-social-links { display: flex; gap: 10px; }
.contact-social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.contact-social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

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

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contact-form-wrap { padding: 24px 18px; }
}

/* ── Order Tracking Page ────────────────────────────────────── */
.track-section { padding: 56px 0 80px; }

.track-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.track-card h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.track-card h1 i { color: var(--accent); font-size: 22px; }
.track-card > p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}
.track-card form { margin-bottom: 32px; }

.track-result {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--border-light);
}
.track-result h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--text);
}

.track-status { margin-bottom: 28px; }

.status-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 12px;
}
.status-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--border-light);
  z-index: 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  flex: 1;
  max-width: 100px;
}
.status-step span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.status-step.done span,
.status-step.current span { color: var(--text); font-weight: 600; }

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.status-step.done .step-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.status-step.current .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(201,168,76,.18);
}

.track-details {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border-light);
}
.track-details p {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.track-details p:last-child { border-bottom: none; }
.track-details strong { color: var(--text); font-weight: 600; min-width: 160px; }

.track-not-found {
  margin-top: 28px;
  text-align: center;
  padding: 32px 20px;
  background: #fef2f2;
  border-radius: var(--radius);
  border: 1px solid rgba(239,68,68,.15);
}
.track-not-found i {
  font-size: 42px;
  color: var(--error);
  margin-bottom: 14px;
  display: block;
}
.track-not-found p { color: var(--error); font-weight: 500; font-size: 14.5px; }
