/* ===== Desert's Aura — Arabian Perfumes ===== */
:root {
  /* Bronze-gold tones from the lantern in the logo */
  --gold: #b8884a;
  --gold-light: #d4a862;
  --gold-dark: #8b6534;
  --gold-deep: #a07840;
  /* Cream/ivory paper tones from the logo background */
  --cream: #f8f1e0;
  --ivory: #fdf8ea;
  --bg: #f8f1e0;
  --bg-soft: #f1e6cc;
  --bg-card: #fdf8ea;
  --bg-elev: #fffcf5;
  --line: rgba(139, 101, 52, 0.20);
  --line-strong: rgba(139, 101, 52, 0.45);
  /* Warm dark-brown text for readability on cream */
  --text: #3d2f1f;
  --text-soft: #6b5c45;
  --text-muted: #9a8b73;
  --text-dim: #b5a989;
  --danger: #c04848;
  --success: #5e9b5e;
  --warning: #c28a36;
  --shadow-xl: 0 32px 80px rgba(94, 64, 30, 0.22), 0 8px 20px rgba(94, 64, 30, 0.10);
  --shadow-lg: 0 20px 50px rgba(94, 64, 30, 0.18);
  --shadow: 0 10px 30px rgba(94, 64, 30, 0.14);
  --shadow-gold: 0 16px 48px rgba(184, 136, 74, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --transition: 0.35s var(--ease);
  --transition-slow: 0.6s var(--ease-out);
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1320px;
}

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1400px 700px at 80% -20%, rgba(201, 169, 97, 0.08), transparent 60%),
    radial-gradient(1000px 600px at -10% 50%, rgba(184, 152, 90, 0.05), transparent 55%),
    radial-gradient(800px 400px at 50% 110%, rgba(201, 169, 97, 0.04), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.66 0 0 0 0 0.38 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-dark), var(--gold)); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

::selection { background: var(--gold); color: #000; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all var(--transition);
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
input[type="file"] {
  padding: 10px;
  cursor: pointer;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: inherit; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #1a1612;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; background: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }

.checkbox-line {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
}
.checkbox-line input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.checkbox-line label {
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.95rem !important;
  color: var(--text) !important;
  cursor: pointer;
}

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.3px; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { color: var(--text-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ===== Ornament ===== */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto 20px;
  color: var(--gold); opacity: 0.7;
}
.ornament::before, .ornament::after {
  content: ''; height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament span { font-size: 1rem; letter-spacing: 2px; }

/* ===== Promo Banner ===== */
.promo-banner {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #0b0908;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0; z-index: 101;
}
.promo-inner {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 48px 10px 16px;
  position: relative;
  gap: 12px;
}
.promo-banner a { color: inherit; text-decoration: underline; }
.promo-banner a:hover { color: var(--text); }
.promo-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: #0b0908;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  opacity: 0.7;
}
.promo-close:hover { opacity: 1; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 241, 224, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(248, 241, 224, 0.94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  max-width: var(--container); margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-size: 1.65rem; font-weight: 600;
  letter-spacing: 4px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; color: var(--text); }
.logo span { color: var(--gold); }
.logo .crest { font-size: 1.4rem; color: var(--gold); }

.nav { display: flex; gap: 36px; align-items: center; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  color: var(--text-soft);
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px; background: var(--gold);
  transition: all var(--transition);
  transform: translateX(-50%);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold); }

.header-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  color: var(--text-soft);
  transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--gold); transform: translateY(-1px); }
.badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--gold); color: #0b0908;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  animation: badgePop 0.3s var(--ease-out);
}
@keyframes badgePop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }

.mobile-toggle { display: none; }

/* ===== Staff profile dropdown ===== */
.user-menu-wrap { position: relative; display: inline-flex; }
.icon-btn.staff-profile {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.user-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 16px;
  width: 11px; height: 11px;
  background: var(--bg-card);
  border-left: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
.ud-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; }
.ud-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a98b4e);
  color: #0b0908;
  font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ud-id { min-width: 0; }
.ud-name {
  font-size: 0.92rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ud-role {
  font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}
.ud-divider { height: 1px; background: var(--line); margin: 2px 6px 6px; }
.ud-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: transparent; border: none;
  cursor: pointer; text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}
.ud-item:hover { background: var(--bg-soft); color: var(--text); }
.ud-ico { font-size: 1rem; width: 20px; text-align: center; }
.ud-primary { color: var(--gold); font-weight: 600; }
.ud-primary:hover { background: rgba(201, 169, 97, 0.12); color: var(--gold); }
.ud-signout:hover { color: var(--danger); }

.lang-toggle { font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; }

.search-wrap { position: relative; }
.search-panel {
  position: absolute;
  top: calc(100% + 12px); right: 0;
  width: 380px; max-width: 90vw;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease-out);
  z-index: 110;
}
.search-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.search-results { max-height: 380px; overflow-y: auto; margin-top: 10px; }
.search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 8px;
  cursor: pointer; transition: background var(--transition);
}
.search-result:hover { background: var(--bg-card); }
.search-result img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--bg-soft); }
.search-result .info { flex: 1; min-width: 0; }
.search-result .nm { font-family: var(--serif); font-size: 1rem; }
.search-result .br { font-size: 0.7rem; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }
.search-result .pr { color: var(--gold); font-weight: 500; font-size: 0.92rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #1a1612;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(201, 169, 97, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #0b0908; transform: translateY(-2px); }
.btn-ghost { color: var(--text-muted); padding: 10px 18px; }
.btn-ghost:hover { color: var(--gold); }
.btn-sm { padding: 10px 18px; font-size: 0.75rem; letter-spacing: 1.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c44444; transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: -20% 0 0 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(184, 136, 74, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 60%, rgba(212, 168, 98, 0.12), transparent 80%);
  z-index: -1;
}
.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.1s forwards;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 28px;
  line-height: 1;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}
.hero h1 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 580px;
  margin: 0 auto 48px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.5s forwards;
}
.hero-actions {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.7s forwards;
}
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--gold); opacity: 0.5;
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: bounce 2.5s infinite;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Section ===== */
.section { padding: 100px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, transparent, var(--bg-soft), transparent); }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow {
  color: var(--gold); letter-spacing: 6px;
  font-size: 0.7rem; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 500;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* ===== Animation utility ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.4s; }

/* ===== Product Card ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.product-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.product-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(201, 169, 97, 0.12);
}
.product-card:hover::before { opacity: 1; }
.product-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #1f1a14, #14110d);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-image::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(94, 64, 30, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-placeholder {
  font-family: var(--serif);
  font-size: 4.5rem;
  color: rgba(201, 169, 97, 0.22);
}
.card-heart {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(253, 248, 234, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition);
  opacity: 0;
}
.product-card-wrap:hover .card-heart { opacity: 1; }
.card-heart:hover { color: var(--gold); border-color: var(--gold); transform: scale(1.1); }
.card-heart.active { color: var(--gold); border-color: var(--gold); opacity: 1; }
.card-heart.active::before { content: '♥'; }
.card-heart.active { font-size: 0; }
.card-heart.active::before { font-size: 1.2rem; }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0b0908;
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}
.product-info { padding: 24px; position: relative; z-index: 2; }
.product-brand {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.product-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 14px;
  line-height: 1.2;
}
.product-price {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
}
.price-old { text-decoration: line-through; color: var(--text-dim); font-size: 0.85rem; }
.price-new { color: var(--gold); font-weight: 600; }

/* ===== Category Card (special) ===== */
.category-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: all var(--transition);
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.category-card:hover::before { opacity: 1; }
.category-card .icon { font-size: 3rem; color: var(--gold); opacity: 0.5; margin-bottom: 16px; transition: all var(--transition); }
.category-card:hover .icon { opacity: 0.9; transform: scale(1.1); }
.category-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.category-card .count { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* ===== Layout ===== */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 80px 0; }
.shop-sidebar {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  padding: 28px;
  border-radius: var(--radius);
  height: fit-content;
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.sidebar-group { margin-bottom: 32px; }
.sidebar-group:last-child { margin-bottom: 0; }
.sidebar-group h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-group h4::before {
  content: ''; width: 16px; height: 1px; background: var(--gold);
}
.sidebar-group label {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: color var(--transition);
}
.sidebar-group label:hover { color: var(--gold); }
.sidebar-group input[type="radio"], .sidebar-group input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
}
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.shop-toolbar select { width: auto; padding: 12px 18px; }

/* ===== Forms ===== */
.auth-page { min-height: 85vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.auth-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  padding: 56px 48px;
  border-radius: var(--radius);
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-card h2 { text-align: center; margin-bottom: 12px; font-size: 2rem; }
.auth-card .subtitle { color: var(--text-muted); text-align: center; margin-bottom: 36px; font-size: 0.92rem; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 10px;
  font-size: 0.72rem; letter-spacing: 2px;
  color: var(--text-muted); text-transform: uppercase;
  font-weight: 500;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-foot { text-align: center; margin-top: 28px; color: var(--text-muted); font-size: 0.9rem; }
.auth-foot a { color: var(--gold); font-weight: 500; }

/* ===== Product Detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 0; }
.product-detail-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #1f1a14, #14110d);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: sticky; top: 100px;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info .brand {
  color: var(--gold); letter-spacing: 5px; font-size: 0.75rem;
  text-transform: uppercase; margin-bottom: 14px; font-weight: 500;
}
.product-detail-info h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 20px; }
.detail-price {
  font-size: 2rem; color: var(--gold); margin: 28px 0;
  font-weight: 500; font-family: var(--serif);
}
.detail-meta {
  display: flex; gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 32px 0;
  flex-wrap: wrap;
}
.detail-meta-item .label {
  font-size: 0.68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 500;
}
.detail-meta-item .value { font-size: 1rem; margin-top: 6px; color: var(--text); }
.notes-section { margin: 36px 0; }
.notes-section h4 {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 3px; font-size: 0.78rem;
  color: var(--gold); margin-bottom: 16px; font-weight: 600;
}
.note-line { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 8px; padding-left: 16px; position: relative; }
.note-line::before { content: '⌁'; position: absolute; left: 0; color: var(--gold); opacity: 0.5; }
.note-line strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.qty-selector { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.qty-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: all var(--transition);
  font-size: 1.1rem;
  color: var(--text-soft);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 169, 97, 0.05); }
.qty-input { width: 70px; text-align: center; font-weight: 500; font-size: 1rem; }

/* ===== Cart ===== */
.cart-page { padding: 80px 0; min-height: 60vh; }
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--line-strong); }
.cart-item-img {
  width: 110px; height: 110px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 6px; }
.cart-item-brand {
  color: var(--gold); font-size: 0.7rem;
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500;
}
.cart-item-price { color: var(--gold); font-size: 1.1rem; margin-top: 10px; font-weight: 500; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.cart-summary {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius);
  height: fit-content;
  position: sticky; top: 100px;
  box-shadow: var(--shadow);
}
.cart-summary h3 { margin-bottom: 24px; font-size: 1.4rem; }
.summary-line { display: flex; justify-content: space-between; padding: 12px 0; color: var(--text-soft); }
.summary-total {
  display: flex; justify-content: space-between;
  padding-top: 18px; margin-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.3rem; color: var(--gold);
  font-family: var(--serif);
}

/* ===== Newsletter ===== */
.newsletter {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at center, rgba(201, 169, 97, 0.08), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter h2 { margin-bottom: 16px; }
.newsletter p { max-width: 480px; margin: 0 auto 32px; color: var(--text-muted); }
.newsletter-form {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input { flex: 1; min-width: 240px; }

/* ===== Footer ===== */
.footer {
  margin-top: 0;
  padding: 80px 0 40px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer .logo { margin-bottom: 18px; font-size: 1.4rem; }
.footer h5 {
  font-family: var(--sans);
  font-size: 0.78rem; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer p, .footer a { color: var(--text-muted); font-size: 0.9rem; line-height: 2.1; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  text-align: center; color: var(--text-dim);
  font-size: 0.82rem; padding-top: 28px;
  border-top: 1px solid var(--line);
  letter-spacing: 1px;
}

/* ===== Toast ===== */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  animation: slideIn 0.4s var(--ease-out), fadeOut 0.3s ease 3.7s forwards;
  font-size: 0.92rem;
  font-weight: 500;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(40px); } }

/* ===== Loader / Skeleton ===== */
.loader { display: flex; justify-content: center; padding: 80px; }
.spinner {
  width: 40px; height: 40px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; padding: 40px 0; }
.skeleton-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.skeleton-img { aspect-ratio: 4/5; background: linear-gradient(90deg, var(--bg-card), var(--bg-elev), var(--bg-card)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-text { height: 16px; margin: 12px 24px; border-radius: 4px; background: linear-gradient(90deg, var(--bg-card), var(--bg-elev), var(--bg-card)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-text.short { width: 50%; }
.skeleton-text.last { margin-bottom: 24px; width: 30%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 100px 24px; color: var(--text-muted); }
.empty-state .ico { font-size: 4.5rem; opacity: 0.25; margin-bottom: 20px; color: var(--gold); }
.empty-state p { font-size: 1.05rem; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0 0; flex-wrap: wrap; }
.pagination button {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all var(--transition);
  font-weight: 500;
  color: var(--text-soft);
}
.pagination button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.pagination button.active { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #0b0908; border-color: var(--gold); font-weight: 600; }

/* ===== Account ===== */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 80px 0; }
.account-nav {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--line);
  height: fit-content;
  position: sticky; top: 100px;
}
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a, .account-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  cursor: pointer; border: none; background: none;
  color: var(--text-soft);
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
.account-nav a:hover, .account-nav button:hover {
  background: var(--bg-elev);
  color: var(--gold);
  padding-left: 22px;
}
.account-nav a.active, .account-nav button.active {
  background: var(--bg-elev);
  color: var(--gold);
  position: relative;
}
.account-nav a.active::before, .account-nav button.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 60%;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
}
.account-nav button[data-action="logout"] {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--text-muted);
  padding-top: 16px;
}
.account-nav button[data-action="logout"]:hover {
  color: var(--danger);
  padding-left: 22px;
}
.account-content {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--line);
}

/* ===== Quiz ===== */
.quiz-progress {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  max-width: 600px;
  margin: 0 auto 12px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0;
  transition: width 0.5s var(--ease-out);
}
.quiz-step-count {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.quiz-area { max-width: 720px; margin: 0 auto; padding-bottom: 80px; }
.quiz-question h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.quiz-options.multi { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.quiz-option {
  padding: 28px 16px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.quiz-option:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.quiz-option.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 169, 97, 0.12), var(--bg-card));
  box-shadow: var(--shadow-gold);
}
.quiz-option-icon {
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.quiz-option-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
}
.quiz-results { padding: 40px 0; }

/* ===== Reviews ===== */
.reviews-section { max-width: 880px; margin: 0 auto; }

.rating-summary {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.rating-summary-score {
  text-align: center;
  padding: 32px 48px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.rating-summary-score::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.big-rating {
  font-family: var(--serif);
  font-size: 3.6rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}
.big-stars { margin-bottom: 10px; }
.rating-count {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-form-card {
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 40px 36px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.review-form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.review-form-card h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.star-input {
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 2.4rem;
  cursor: pointer;
  margin: 12px 0 20px;
}
.star-input .star {
  color: var(--text-dim);
  transition: all 0.2s var(--ease-out);
  user-select: none;
}
.star-input .star:hover {
  transform: scale(1.15);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.review-card {
  padding: 28px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.review-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0908;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-section {
  display: flex; align-items: center; gap: 24px;
  padding: 24px; margin-bottom: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.avatar-preview {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0908;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 2px;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-gold);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.avatar-actions label { cursor: pointer; }
.review-meta { flex: 1; min-width: 0; }
.review-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.verified-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(109, 179, 128, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(109, 179, 128, 0.25);
}
.review-stars { font-size: 1rem; }
.review-date {
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.review-quote {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.75;
  font-size: 1rem;
  border-left: 2px solid var(--gold);
  margin-top: 8px;
}
.review-photo {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: inline-block;
}
.review-photo img {
  max-height: 220px;
  max-width: 100%;
  display: block;
}
.review-quote::before {
  content: '"';
  position: absolute;
  left: -2px;
  top: -16px;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
}

@media (max-width: 600px) {
  .review-head { flex-wrap: wrap; }
  .review-date { width: 100%; margin-top: 6px; }
  .rating-summary-score { padding: 24px 32px; }
  .big-rating { font-size: 3rem; }
}

/* ===== Static pages (FAQ, Privacy, Terms, Shipping) ===== */
.static-section { margin-bottom: 36px; }
.static-section h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.static-section p {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 14px;
}
.static-section ul {
  list-style: none;
  padding: 0;
}
.static-section ul li {
  color: var(--text-soft);
  line-height: 1.85;
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.static-section ul li:last-child { border-bottom: none; }
.static-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}

/* ===== Bundle (Frequently Bought Together) ===== */
.bundle-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bundle-item {
  flex: 0 1 220px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
}
.bundle-item:hover { border-color: var(--gold); transform: translateY(-4px); }
.bundle-item.current { border-color: var(--gold); }
.bundle-img {
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.bundle-img img { width: 100%; height: 100%; object-fit: cover; }
.bundle-info { text-align: center; }
.bundle-info .price-new { font-size: 1rem; margin-top: 6px; }
.bundle-plus {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 300;
}

/* ===== Payment Options ===== */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition);
}
.payment-opt:hover { border-color: var(--line-strong); }
.payment-opt:has(input:checked) { border-color: var(--gold); background: rgba(201,169,97,0.06); }
.payment-opt input[type="radio"] { width: 18px; height: 18px; }
.payment-opt-body { display: flex; flex-direction: column; gap: 2px; }
.payment-opt-body strong { font-size: 0.95rem; }

/* ===== Payment Status Badges ===== */
.pay-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pay-pending { background: rgba(217, 155, 62, 0.15); color: var(--warning); }
.pay-processing { background: rgba(82, 148, 226, 0.15); color: #6da7e2; }
.pay-paid { background: rgba(109, 179, 128, 0.18); color: var(--success); }
.pay-failed { background: rgba(217, 102, 102, 0.18); color: var(--danger); }
.pay-refunded { background: rgba(168, 160, 146, 0.18); color: var(--text-muted); }

.pay-now-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  background: linear-gradient(90deg, rgba(201,169,97,0.08), transparent);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

/* ===== Tracking card (customer view) ===== */
.tracking-card {
  padding: 18px 20px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(201,169,97,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(201,169,97,0.35);
  border-radius: var(--radius-sm);
}
.tracking-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tracking-icon { font-size: 1.8rem; }
.tracking-title { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.tracking-carrier { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); margin-top: 2px; }
.tracking-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tracking-label { font-size: 0.78rem; color: var(--text-muted); min-width: 60px; }
.tracking-number {
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: var(--text);
}
.tracking-copy {
  background: transparent; border: 1px solid var(--line); color: var(--text-muted);
  padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 0.95rem;
  transition: all 0.15s;
}
.tracking-copy:hover { color: var(--gold); border-color: var(--gold); }
.tracking-btn { display: inline-block; }
.tracking-updated { font-size: 0.75rem; margin-top: 10px; }
.track-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  background: rgba(201,169,97,0.12);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}

/* ===== Bank Transfer card ===== */
.bank-transfer-card {
  margin: 16px 0;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.bt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bt-icon { font-size: 1.8rem; }
.bt-eyebrow { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.bt-title { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); margin-top: 2px; }
.bt-details { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--bg-soft); border-radius: 10px; }
.bt-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.bt-row span:first-child { color: var(--text-muted); min-width: 130px; font-size: 0.82rem; letter-spacing: 0.5px; }
.bt-row code {
  flex: 1;
  background: rgba(0,0,0,0.04);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}
.bt-copy {
  background: transparent; border: 1px solid var(--line); color: var(--text-muted);
  padding: 3px 9px; border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}
.bt-copy:hover { color: var(--gold); border-color: var(--gold); }
.bt-note { margin-top: 6px; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.bt-status { margin-top: 14px; padding: 14px 16px; border-radius: 10px; }
.bt-status.pending { background: rgba(212, 168, 98, 0.10); border: 1px solid rgba(184, 136, 74, 0.30); color: var(--gold-dark); }
.bt-status.rejected { background: rgba(192, 72, 72, 0.08); border: 1px solid rgba(192, 72, 72, 0.30); color: var(--danger); }
.bt-view { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: var(--gold); text-decoration: underline; }
.bt-upload { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bt-file-label {
  display: block; padding: 14px 18px; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: 10px;
  cursor: pointer; color: var(--text-muted); font-size: 0.9rem;
  transition: all 0.2s;
}
.bt-file-label:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,136,74,0.04); }
.bt-file-label input { display: none; }
.bt-file-name { font-size: 0.82rem; color: var(--gold); text-align: center; }
.bt-upload input[type="text"] { width: 100%; }

/* ===== Delivered success banner (customer order detail) ===== */
.delivered-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  margin: 18px 0 28px;
  background: linear-gradient(135deg, rgba(94, 155, 94, 0.10), rgba(184, 136, 74, 0.08));
  border: 1px solid rgba(94, 155, 94, 0.42);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  animation: db-enter 0.55s var(--ease-out);
}
.delivered-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 60% at 0% 50%, rgba(94, 155, 94, 0.20), transparent 65%);
  pointer-events: none;
}
@keyframes db-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.db-check {
  color: var(--success);
  flex-shrink: 0;
  animation: db-pop 0.7s var(--ease-out) 0.1s both;
}
@keyframes db-pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.db-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.db-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 6px;
}
.db-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}
.db-sub {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.db-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Orders list — delivered card accent */
.order-card.is-delivered {
  border-color: rgba(94, 155, 94, 0.35);
  background: linear-gradient(180deg, rgba(94, 155, 94, 0.04), transparent);
  position: relative;
}
.oc-check {
  position: absolute;
  top: 12px; right: 14px;
  width: 24px; height: 24px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(94, 155, 94, 0.3);
}
.oc-delivered-line {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 500;
}

@media (max-width: 640px) {
  .delivered-banner { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px; }
  .db-actions { justify-content: center; }
}

/* ===== Payment Modal ===== */
.payment-modal {
  padding: 32px !important;
}
.payment-modal-head { text-align: center; }
.payment-modal input[type="text"] {
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.5px;
  font-size: 1rem;
}
.card-brand-hint {
  position: absolute;
  right: 14px;
  margin-top: -38px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  pointer-events: none;
}
.payment-modal .form-group { position: relative; }

/* ===== Receipt ===== */
.receipt-backdrop {
  background: rgba(61, 47, 31, 0.55);
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
}
.receipt-wrap {
  width: 100%; max-width: 720px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 12px;
}
.receipt-toolbar {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  padding: 8px 4px;
}
.receipt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  box-shadow: 0 6px 18px rgba(184, 136, 74, 0.28);
}
.receipt-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(139, 101, 52, 0.36);
}
.receipt-btn span { letter-spacing: 1.2px; }
.receipt-close {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s var(--ease);
  box-shadow: 0 4px 14px rgba(94, 64, 30, 0.16);
}
.receipt-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
  transform: scale(1.05);
}
.receipt {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
}
.receipt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.receipt-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.receipt-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 4px;
  font-weight: 600;
}
.receipt-logo span { color: var(--gold); }
.receipt-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 1px; }
.receipt-section { margin-bottom: 24px; }
.receipt-section-title {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.receipt-section-body { color: var(--text); line-height: 1.7; }
.receipt-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.receipt-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.receipt-table td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.receipt-totals {
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rt-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  color: var(--text-soft);
}
.rt-total {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.receipt-foot {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
}

@media print {
  /* Reset page so only the receipt occupies the printed sheet */
  @page { margin: 1.4cm; }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    height: auto !important;
    overflow: visible !important;
  }
  /* Hide every top-level node except the receipt overlay — this kills the blank pages */
  body.printing-receipt > *:not(.receipt-backdrop) { display: none !important; }
  body.printing-receipt .no-print { display: none !important; }

  /* Unwrap the modal: take it out of fixed positioning so it flows on the printed page */
  body.printing-receipt .receipt-backdrop {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: auto !important;
  }
  body.printing-receipt .receipt-wrap {
    max-width: none !important;
    width: 100% !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
  body.printing-receipt .receipt {
    background: white !important;
    color: black !important;
    border: none !important;
    box-shadow: none !important;
    padding: 24px !important;
    margin: 0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  body.printing-receipt .receipt * { color: black !important; }
  body.printing-receipt .receipt .receipt-logo span,
  body.printing-receipt .receipt .receipt-section-title,
  body.printing-receipt .receipt .rt-total span,
  body.printing-receipt .receipt-foot { color: #8c7434 !important; }
  body.printing-receipt .receipt::before { display: none !important; }
}

/* ===== Geolocation prompt ===== */
.geo-prompt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px;
  background: linear-gradient(90deg, rgba(201,169,97,0.08), transparent);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.geo-prompt strong { color: var(--text); font-size: 0.92rem; }

/* ===== Rate card (after delivery) ===== */
.rate-card {
  margin: 20px 0;
  padding: 22px;
  background: linear-gradient(90deg, rgba(201,169,97,0.08), var(--bg-soft));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(61, 47, 31, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
}
.modal h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* ===== Driver card on order detail ===== */
.driver-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  margin: 20px 0;
  background: linear-gradient(90deg, rgba(201,169,97,0.08), var(--bg-soft));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.driver-card .driver-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0b0908;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.1rem;
}
.driver-card .driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-card .driver-info { flex: 1; min-width: 0; }

/* ===== Sample tag ===== */
.sample-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== Delivery Estimate ===== */
.delivery-estimate {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(201, 169, 97, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-xs);
}
.delivery-eta-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  background: linear-gradient(90deg, rgba(201, 169, 97, 0.1), transparent);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* ===== Order Detail ===== */
.order-progress {
  display: flex;
  justify-content: space-between;
  margin: 36px 0;
  position: relative;
  padding: 0 14px;
}
.order-progress-track {
  position: absolute;
  top: 14px; left: 28px; right: 28px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.order-progress-fill {
  position: absolute;
  top: 14px; left: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 1;
  transition: width 0.6s var(--ease-out);
}
.order-step { z-index: 2; text-align: center; flex: 1; min-width: 0; }
.order-step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--line);
  margin: 0 auto;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition);
}
.order-step.done .order-step-circle,
.order-step.current .order-step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b0908;
}
.order-step.current .order-step-circle {
  box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(201, 169, 97, 0.08); }
}
.order-step-label {
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.order-step.done .order-step-label,
.order-step.current .order-step-label { color: var(--gold); font-weight: 600; }

@media (max-width: 600px) {
  .order-step-label { font-size: 0.6rem; letter-spacing: 0.3px; }
}

.order-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px;
  margin: 24px 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.order-meta-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.order-meta-body { color: var(--text-soft); line-height: 1.9; font-size: 0.95rem; }
.order-notes {
  margin: 16px 0;
  padding: 18px 22px;
  background: rgba(201, 169, 97, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-xs);
  color: var(--text-soft);
}
.order-notes strong { color: var(--gold); margin-right: 8px; }

.order-items-list {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.order-item-row:last-of-type { border-bottom: none; }
.order-item-row strong { color: var(--gold); font-weight: 500; font-size: 1rem; }
.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 22px;
  background: rgba(201, 169, 97, 0.04);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}
.order-total-row > span:last-child { font-weight: 600; letter-spacing: 0.5px; }

#cancelBtn { color: var(--text-muted); letter-spacing: 2px; }
#cancelBtn:hover { color: var(--danger); }

.order-card {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  transition: border-color var(--transition);
}
.order-card:hover { border-color: var(--line-strong); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-status { padding: 5px 14px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; }
.order-status.pending { background: rgba(217, 155, 62, 0.15); color: var(--warning); }
.order-status.preparing { background: rgba(82, 148, 226, 0.15); color: #6da7e2; }
.order-status.handed_over { background: rgba(201, 169, 97, 0.12); color: var(--gold-light); }
.order-status.out_for_delivery { background: rgba(201, 169, 97, 0.18); color: var(--gold); }
.order-status.delivered { background: rgba(109, 179, 128, 0.18); color: var(--success); }
.order-status.cancelled { background: rgba(217, 102, 102, 0.15); color: var(--danger); }

/* ===== Compare ===== */
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.compare-table th, .compare-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  min-width: 160px;
}
.compare-table .compare-label {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.compare-product-head { padding: 24px 16px !important; vertical-align: top; }
.compare-img {
  width: 100%; aspect-ratio: 1; max-width: 160px; margin: 0 auto;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.compare-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-product-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 14px 0 8px;
  color: var(--text);
}
.compare-product-name:hover { color: var(--gold); }
.compare-remove {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}
.compare-remove:hover { color: var(--danger); }

/* ===== Address Book ===== */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.address-card {
  position: relative;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.address-card.default { border-color: var(--gold); }
.address-card:hover { border-color: var(--line-strong); }
.default-tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}
.address-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.address-body {
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.address-actions {
  display: flex; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ===== About / Story ===== */
.about-pillar {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.about-pillar:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.about-pillar-icon {
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.about-pillar h3 { font-size: 1.4rem; margin-bottom: 12px; }
.about-pillar p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }

/* ===== Cart Drawer ===== */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 92vw;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  z-index: 110;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 {
  font-size: 1.5rem;
  margin: 0;
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
  background: var(--bg-card);
}
.drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.drawer-empty .ico {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 16px;
}
.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item-img {
  width: 72px; height: 72px;
  border-radius: 8px;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--line);
}
.drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-name {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.drawer-item-brand {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
}
.drawer-item-controls {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.drawer-qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.drawer-qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.drawer-item-qty {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}
.drawer-item-side { text-align: right; }
.drawer-item-price { color: var(--gold); font-weight: 500; font-size: 0.95rem; }
.drawer-item-remove {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  cursor: pointer;
}
.drawer-item-remove:hover { color: var(--danger); }
.drawer-total {
  display: flex; justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}

/* ===== Bottom Mobile Nav ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(248, 241, 224, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 90;
  padding: 6px env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.bottom-nav .bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.65rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.bottom-nav .bn-item:hover, .bottom-nav .bn-item.active { color: var(--gold); }
.bottom-nav .bn-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
.bottom-nav .badge {
  top: 2px;
  right: 12px;
}

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 70px; }
  .footer { padding-bottom: 90px; }
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 80vw;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 99;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-xl);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.mobile-menu a:hover { color: var(--gold); }
.menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(61, 47, 31, 0.45);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-detail, .shop-layout, .cart-layout, .account-layout { grid-template-columns: 1fr; }
  .shop-sidebar, .cart-summary, .product-detail-image, .account-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .mobile-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    color: var(--text);
  }
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 100px; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .auth-card { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 90px 1fr; }
  .cart-item-actions { grid-column: 1 / -1; }
  .detail-meta { gap: 20px; }
  .header-inner { padding: 16px 20px; }
}
