/* ============================================================
   YOUR BRAND — Ghanaian Online Storefront
   Design tokens: soft cream, pure white, warm beige,
   deep black, gold/brown accents. Fraunces + Figtree type.
   ============================================================ */

:root {
  --cream: #FAF6EF;
  --white: #FFFFFF;
  --beige: #F1E7D6;
  --sand: #E6D6BC;
  --gold: #AE8A56;
  --gold-soft: #CBAa75;
  --gold-dark: #8D6B3B;
  --black: #191816;
  --ink: #2E2A24;
  --muted: #8A8171;
  --line: #EADFCC;
  --danger: #B3403A;
  --success: #3E7C4F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(25, 24, 22, .08);
  --shadow-lg: 0 24px 60px rgba(25, 24, 22, .14);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Accent-contrast text (on gold accent surfaces) — constant across themes. */
  --on-accent: #fff;
  /* Text sitting ON dark surfaces (topbar, footer, dark buttons, hero) plus the
     muted/hairline/fill variants that go with it. Dark themes KEEP these light:
     their dark surfaces stay dark, only page/surface tokens move, so hierarchy
     is preserved by construction (no per-theme overrides needed). */
  --on-dark: #fff;
  --on-dark-soft: #CFC7B8;
  --on-dark-line: rgba(255, 255, 255, .2);
  --on-dark-fill: rgba(255, 255, 255, .05);
  /* Theme-neutral status palette (pulled out of fixed hexes for dark themes). */
  --badge-accent-bg: #FBF3E6;
}

/* ============================================================
   Storefront themes (dev panel → Appearance).
   Theme palettes live in ONE place: the PHP registry
   get_available_themes() in includes/functions.php. render_theme_css()
   prints them as html[data-theme="id"]{...} in the page head, followed by
   any per-site token overrides — so the storefront and the dev panel
   preview can never disagree. @see includes/functions.php
   ============================================================ */

.btn-ghost:hover { background: var(--white); }



/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.promo-banner {
  position: relative;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--on-accent);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.14);
}

.promo-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.promo-banner strong {
  font-family: var(--font-head);
  letter-spacing: .04em;
  font-size: 1rem;
}

.promo-banner p {
  font-size: .92rem;
  opacity: .96;
}

.promo-banner a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: var(--on-accent);
  padding: 8px 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.32);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink); }

::selection { background: var(--gold); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  /* Fluid side gutters — content never touches the screen edges. */
  padding-inline: clamp(16px, 4vw, 32px);
}
@media (max-width: 520px) {
    html { font-size: 15px; }
    .topbar-inner { min-height: 30px; padding-block: 6px; }
    .topbar-message { max-width: 100%; white-space: nowrap; }
    .topbar-right { display: none; }
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--black); }

.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 10px 0 12px; }
.section-head p { color: var(--muted); }

.eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600; }

.muted { color: var(--muted); }
.small { font-size: .86rem; }
.icon-14 { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap; letter-spacing: .02em;
}
.btn:active { transform: scale(.97); }
.btn .lucide { width: 17px; height: 17px; }

.btn-dark { background: var(--black); color: var(--on-dark); }
.btn-dark:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(25,24,22,.25); }

.btn-gold { background: var(--gold); color: var(--on-accent); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(174,138,86,.4); }

.btn-outline { border: 1.5px solid var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--on-dark); }

.btn-ghost { color: var(--black); background: rgba(255,255,255,.7); backdrop-filter: blur(6px); border: 1px solid rgba(25,24,22,.08); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow); }

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Icon buttons + cart badge ---------- */
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; color: var(--black);
  transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--beige); }

.cart-count {
  position: absolute; top: -2px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--on-accent); font-size: .66rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-count.is-empty { display: none; }

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--sand); }
.stars .lucide { width: 15px; height: 15px; }
.stars .star.filled, .stars .star.half { color: var(--gold); fill: var(--gold); }
.stars .star.half path { color: var(--gold); }
.star-input { display: inline-flex; align-items: center; gap: 4px; }
.star-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #D8CFC1; cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.star-btn:hover, .star-btn:focus-visible, .star-btn.on {
  color: var(--gold); background: var(--badge-accent-bg);
}
.star-btn:hover, .star-btn:focus-visible { transform: translateY(-1px); }
.star-btn .lucide { width: 22px; height: 22px; pointer-events: none; }
.star-btn.on .lucide { fill: currentColor; }

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.is-pending    { background: #FBF0E0; color: #A06B1B; }
.status-badge.is-confirmed  { background: #E8EDF8; color: #39547F; }
.status-badge.is-processing { background: #E8EDF8; color: #39547F; }
.status-badge.is-shipped    { background: #EDE9F8; color: #5B4A99; }
.status-badge.is-delivered  { background: #E4F1E8; color: #2F6B46; }
.status-badge.is-cancelled  { background: #FDE0E0; color: #B91C1C; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin: -4px 0 18px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--gold-dark); }
.form-group label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 7px; color: var(--ink); letter-spacing: .02em; }
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(174,138,86,.15); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8171' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: .8rem; margin-top: 5px; display: none; }
.form-group.invalid .form-control { border-color: var(--danger); }
.form-group.invalid .form-error { display: block; }

/* ---------- Toast stack ---------- */
.toast-stack { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 360px;
  padding: 14px 18px; border-radius: 14px; background: var(--black); color: var(--on-dark); font-size: .9rem;
  box-shadow: var(--shadow-lg); animation: toastIn .35s var(--ease);
}
.toast .lucide { width: 18px; height: 18px; color: var(--gold-soft); flex-shrink: 0; }
.toast.toast-success .lucide { color: #7FC48F; }
.toast.toast-error .lucide { color: #E08B86; }
.toast.leaving { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(25,24,22,.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; z-index: 2010;
  background: var(--white); border-radius: 22px; max-width: 520px; width: 100%; max-height: 92vh;
  overflow-y: auto; padding: 30px; box-shadow: var(--shadow-lg); animation: modalIn .3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 1.4rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 62px 0 54px; text-align: center; background: var(--beige);
  border-radius: 0 0 34px 34px; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: auto -60px -160px; height: 300px;
  background: radial-gradient(circle at 20% 20%, rgba(174,138,86,.25), transparent 60%),
              radial-gradient(circle at 80% 40%, rgba(230,214,188,.6), transparent 55%);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 8px 0 8px; }
.page-hero p { color: var(--muted); max-width: 560px; margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--black); color: var(--on-dark); font-size: .78rem; letter-spacing: .03em; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.topbar-message, .topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-message .lucide, .topbar-item .lucide { flex: 0 0 auto; }
.topbar .lucide { width: 13px; height: 13px; vertical-align: -2px; color: var(--gold-soft); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-link { color: var(--on-dark); font-weight: 500; }
.topbar-link:hover { color: var(--gold-soft); }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(250,246,239,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; min-width: 0; font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; letter-spacing: .02em; color: var(--black); white-space: nowrap; }
.brand img { width: auto; max-width: min(240px, 32vw); height: 52px !important; object-fit: contain; }
.brand-monogram { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 10px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; line-height: 1; }
.brand-wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand span { color: var(--gold); }
.brand:hover span { color: var(--gold-dark); }
.brand:hover .brand-wordmark { color: var(--black); }
.brand-light { color: var(--on-dark); }
.brand-light span { color: var(--gold-soft); }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  position: relative; font-size: .9rem; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; padding: 6px 0; color: var(--ink);
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-dark); }

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

/* Hamburger (visible on mobile only) */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--beige); }

/* ---------- Search popover ---------- */
.search-pop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-8px); width: min(560px, 94vw); background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden; transition: all .28s var(--ease); z-index: 520; }
.search-pop.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-form > .lucide { width: 18px; height: 18px; color: var(--muted); margin-left: 6px; flex-shrink: 0; }
.search-form input { flex: 1; border: none; outline: none; background: transparent; font-size: .98rem; padding: 6px 0; }
.search-form .btn { flex-shrink: 0; }

/* ---------- Mobile drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(25,24,22,.5); opacity: 0; visibility: hidden; transition: all .3s ease; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 850; width: min(320px, 84vw);
  background: var(--white); padding: 22px; display: flex; flex-direction: column;
  transform: translateX(-105%); transition: transform .38s var(--ease); box-shadow: var(--shadow-lg);
  border-radius: 0 22px 22px 0;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 12px; font-weight: 500; color: var(--ink); transition: background .2s, color .2s; }
.drawer-nav a .lucide { width: 19px; height: 19px; color: var(--gold); }
.drawer-nav a:hover, .drawer-nav a.active { background: var(--beige); color: var(--black); }
.drawer-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-foot-link {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; font-weight: 500; color: var(--ink);
  border-top: 1px solid transparent; transition: background .2s, color .2s;
}
.drawer-foot-link:hover { background: var(--beige); color: var(--black); }
.drawer-foot-link .lucide { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.drawer-foot p { margin-top: 14px; text-align: center; }

/* ---------- User menu (header) ---------- */
.user-menu { position: relative; margin-left: 4px; }
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 6px 0 12px; width: auto; border-radius: 999px;
  background: transparent; transition: background .2s;
}
.user-menu-trigger:hover { background: var(--beige); }
.user-menu-trigger .lucide { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; }
.user-name {
  font-size: .86rem; font-weight: 600; color: var(--black);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 560;
  min-width: 230px; max-width: 78vw;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.user-menu-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-header { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-header strong { display: block; font-size: .92rem; color: var(--black); }
.user-menu-header small { color: var(--muted); font-size: .78rem; word-break: break-all; }
.user-menu-dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--ink);
  transition: background .18s;
}
.user-menu-dropdown a:hover { background: var(--beige); }
.user-menu-dropdown a .lucide { width: 17px; height: 17px; color: var(--gold-dark); flex-shrink: 0; }
.user-menu-signout {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: 10px; font-size: .88rem; font-weight: 500;
  color: var(--danger); transition: background .18s;
}
.user-menu-signout:hover { background: #FBEEEC; }
.user-menu-signout .lucide { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.product-card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-media { position: relative; background: var(--beige); aspect-ratio: 4/4.4; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge.badge-new-arrival { background: #dbeafe; color: #1d4ed8; }
.badge.badge-best-seller { background: #fef3c7; color: #92400e; }
.badge.badge-featured { background: #ede9fe; color: #5b21b6; }
.badge.badge-trending { background: #dcfce7; color: #166534; }
.badge.badge-premium { background: var(--black); color: var(--on-dark); }
.badge.badge-ooo { background: #dc2626; color: #fff; }

.add-cart-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all .25s var(--ease);
}
/* Only fade/hide the button in on hover-capable devices; touch screens always show it */
@media (hover: hover) and (pointer: fine) {
  .add-cart-btn { opacity: 0; transform: translateY(8px); }
  .product-card:hover .add-cart-btn,
  .add-cart-btn:focus-visible { opacity: 1; transform: none; }
  .product-card:focus-within .add-cart-btn { opacity: 1; transform: none; }
}
.add-cart-btn:hover { background: var(--gold); color: var(--on-accent); }
.add-cart-btn .lucide { width: 19px; height: 19px; }
.wishlist-btn { position:absolute; top:12px; right:12px; z-index:3; width:40px; height:40px; border:1px solid rgba(25,24,22,.1); border-radius:50%; background:rgba(255,255,255,.94); color:var(--ink); display:grid; place-items:center; cursor:pointer; box-shadow:var(--shadow-sm); transition:transform .2s ease, color .2s ease, background .2s ease; }
.wishlist-btn:hover, .wishlist-btn.is-saved { color:#b4234d; }
.wishlist-btn:hover { transform:translateY(-1px); background:var(--white); }
.wishlist-btn .lucide { width:18px; height:18px; }
.wishlist-btn.is-saved .lucide { fill:currentColor; }
.product-media { position:relative; }

/* Out of stock button (replaces add-to-cart) */
.out-of-stock-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: var(--on-dark); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.out-of-stock-btn .lucide { width: 19px; height: 19px; }

.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-dark); font-weight: 600; }
.product-name { font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; color: var(--black); line-height: 1.25; }
.product-name a:hover { color: var(--gold-dark); }
.product-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.product-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 8px; }
.price-now { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; color: var(--black); }
.price-old { color: var(--danger); text-decoration: line-through; font-size: .75rem; }
.price-save { color: var(--danger); font-size: .76rem; font-weight: 500; }

/* ---------- Shop toolbar & filters ---------- */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px); margin: 30px 0 26px;
}
.shop-toolbar-stack {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 240px; flex-wrap: wrap;
}
.shop-category-select-wrap { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.shop-category-select-wrap label { margin: 0; font-weight: 600; color: var(--muted); }
.shop-category-select-wrap .form-control { min-width: 200px; border-radius: 14px; }
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: .82rem; font-weight: 600; color: var(--ink); transition: all .22s ease; box-shadow: 0 6px 14px rgba(15,23,42,.04);
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-1px); }
.filter-pill.active { background: var(--black); color: var(--on-dark); border-color: var(--black); box-shadow: 0 10px 18px rgba(0,0,0,.12); }
.shop-toolbar-tools { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.shop-search { position: relative; }
.shop-search .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.shop-search .form-control { padding-left: 42px; width: 240px; max-width: 100%; border-radius: 14px; }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort label { margin: 0; font-weight: 600; color: var(--muted); }
.shop-sort .form-control { min-width: 170px; border-radius: 14px; }
.shop-count { color: var(--muted); font-size: .88rem; }
.shop-empty { text-align: center; padding: 70px 0; color: var(--muted); }
.shop-empty .lucide { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--sand); }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main-image { border-radius: 22px; overflow: hidden; background: var(--beige); aspect-ratio: 1/1.05; box-shadow: var(--shadow); }
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pd-thumb { border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--beige); aspect-ratio: 1/1; transition: border-color .2s, transform .2s; cursor: pointer; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--gold); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { padding-top: 6px; }
.pd-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-dark); font-weight: 600; }
.pd-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 10px; }
.pd-rating { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }
.pd-price { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.pd-price .price-now { font-size: 1.7rem; }
.pd-price .price-now.flash { animation: priceFlash .7s ease; }
@keyframes priceFlash {
    0%   { color: var(--gold); transform: scale(1.08); }
    100% { color: inherit; transform: scale(1); }
}
.pd-lead { color: var(--muted); margin-bottom: 20px; }

.option-block { margin-bottom: 18px; }
.option-label { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; font-weight: 600; margin-bottom: 9px; }
.option-label small { color: var(--muted); font-weight: 400; }
.option-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: .84rem; font-weight: 500; transition: all .2s ease; cursor: pointer;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--black); color: var(--on-dark); border-color: var(--black); }
.chip.swatch { display: inline-flex; align-items: center; gap: 7px; }
.chip.swatch .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
/* Option with no stock for the current selection — greyed out. Still
 * clickable on purpose: selecting it auto-recovers the dependent
 * (size/color) pick to the nearest in-stock combo. */
.chip.muted {
  opacity: .38;
  border-style: dashed;
  background: var(--bg, #f5f3ef);
  color: var(--muted, #8a8378);
  text-decoration: line-through;
  cursor: not-allowed;
}
.chip.muted.swatch .dot { filter: grayscale(1); }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); overflow: hidden; }
.qty-stepper button { width: 42px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .2s; }
.qty-stepper button:hover { background: var(--beige); }
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper button:disabled:hover { background: transparent; }
.qty-stepper .qty-value { min-width: 44px; text-align: center; font-weight: 600; }

/* Stepper + "N in stock" badge side by side. */
.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qty-stock { font-size: .8rem; font-weight: 600; color: var(--ink-soft, #5c6b57); background: var(--beige, #f4efe6); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.qty-stock.low { color: #9a6b1f; background: #fdf3e0; border-color: #ecd9b0; }

.pd-actions { display: flex; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 140px; }
.pd-stock-note { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: .86rem; font-weight: 500; margin-top: -8px; }
.pd-stock-note.low { color: var(--danger); }
.pd-meta-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.pd-meta-row .lucide { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.pd-meta-row strong { color: var(--ink); font-weight: 600; }

.pd-facts { margin-top: 26px; background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pd-facts h4 { font-size: 1.05rem; margin-bottom: 12px; }
.pd-facts ul { list-style: none; display: grid; gap: 9px; }
.pd-facts li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; }
.pd-facts li .lucide { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.pd-tabs { margin-top: 30px; }
.pd-tab-bar { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); }
.pd-tab { padding: 12px 20px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: color .2s, border-color .2s; cursor: pointer; }
.pd-tab.active { color: var(--black); border-bottom-color: var(--gold); }
.pd-tab-panel { display: none; padding: 26px 4px 8px; }
.pd-tab-panel.active { display: block; }

.review-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--beige); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.review-head strong { font-size: .93rem; }
.review-head small { color: var(--muted); display: block; }
.review-text { color: var(--ink); font-size: .93rem; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  background: var(--white); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow);
}
.cart-item-thumb { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--beige); }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: var(--font-head); font-weight: 600; color: var(--black); margin-bottom: 2px; }
.cart-item-name a:hover { color: var(--gold-dark); }
.cart-item-sub { color: var(--muted); font-size: .84rem; }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-price { font-weight: 600; font-size: 1.02rem; }
.remove-item { color: var(--muted); font-size: .8rem; display: inline-flex; align-items: center; gap: 5px; }
.remove-item:hover { color: var(--danger); }
.remove-item .lucide { width: 15px; height: 15px; }

.summary-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 100px; }
.summary-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.summary-rows { display: grid; gap: 13px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--ink); }
.summary-row.muted { color: var(--muted); }
.summary-row strong { color: var(--black); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px dashed var(--line); margin-top: 16px; padding-top: 16px; }
.summary-total .price-now { font-size: 1.5rem; }
.summary-note { font-size: .82rem; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; }
.summary-note .lucide { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.cart-empty { text-align: center; padding: 90px 0; }
.cart-empty .lucide { width: 54px; height: 54px; color: var(--sand); margin: 0 auto 16px; }
.cart-empty h2 { font-size: 1.7rem; margin-bottom: 8px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.checkout-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; margin-bottom: 22px; }
.checkout-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.checkout-card h3 .step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: .85rem;
}

.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; background: var(--white);
}
.pay-option:hover { background: var(--cream); }
.pay-option.selected { border-color: var(--gold); background: #FBF7EE; }
.pay-option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
.pay-option.selected .radio { border-color: var(--gold); }
.pay-option.selected .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.pay-option .lucide { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; }
.pay-option strong { display: block; font-weight: 600; font-size: .95rem; }
.pay-option small { color: var(--muted); font-size: .8rem; }
.pay-option .pay-badge { margin-left: auto; font-size: .68rem; color: var(--gold-dark); border: 1px solid var(--gold); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* ---------- Order success ---------- */
.success-hero { text-align: center; padding: 60px 0 20px; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: #E4F1E8; color: var(--success); display: flex; align-items: center; justify-content: center; }
.success-icon .lucide { width: 40px; height: 40px; }
.success-order-id { display: inline-block; margin-top: 12px; padding: 8px 22px; background: var(--black); color: var(--gold-soft); border-radius: 999px; font-weight: 600; letter-spacing: .1em; }

/* Order-success items list — thumbnail beside each item name. */
.os-items { display: grid; gap: 12px; margin-bottom: 6px; }
.os-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.os-item-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--beige); flex-shrink: 0; }
.os-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-item-info { min-width: 0; display: grid; gap: 2px; }
.os-item-info strong { font-size: .9rem; color: var(--black); }
.os-item-info small { color: var(--muted); font-size: .78rem; }
.os-item-total { font-size: .9rem; white-space: nowrap; }
@media (max-width: 480px) {
  .os-item { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .os-item-thumb { width: 48px; height: 48px; }
}

/* ---------- Track order ---------- */
.track-search { max-width: 640px; margin: 34px auto 0; }
.track-search .search-form { background: var(--white); border-radius: 999px; padding: 7px 8px 7px 20px; box-shadow: var(--shadow); }
.track-search input { flex: 1; }
.track-search .btn { border-radius: 999px; }

.track-card { max-width: 720px; margin: 34px auto 0; }
.track-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }

.timeline { display: grid; gap: 0; position: relative; }
.timeline-step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; position: relative; padding-bottom: 26px; }
.timeline-step:last-child { padding-bottom: 4px; }
.timeline-step::before {
  content: ''; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 2px; background: var(--line);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted); z-index: 1;
}
.timeline-dot .lucide { width: 16px; height: 16px; }
.timeline-step.done .timeline-dot { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.timeline-step.current .timeline-dot { background: var(--gold); border-color: var(--gold); color: var(--on-accent); box-shadow: 0 0 0 6px rgba(174,138,86,.18); }
.timeline-step.done::before { background: var(--gold); }
.timeline-title { font-weight: 600; color: var(--muted); }
.timeline-step.done .timeline-title, .timeline-step.current .timeline-title { color: var(--black); }
.timeline-sub { font-size: .84rem; color: var(--muted); margin-top: 3px; }
.timeline-date { display: block; margin-top: 6px; font-size: .75rem; color: var(--gold-dark); font-weight: 600; }
.verified-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 4px 9px; border-radius: 999px; background: #edf7f1; color: #28734d; font-size: .72rem; font-weight: 700; }
.verified-pill .lucide { width: 14px; height: 14px; }
.review-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; max-width: 520px; }
.review-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.track-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.track-summary div { background: var(--cream); border-radius: var(--radius-sm); padding: 14px; }
.track-summary .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.track-summary .v { font-weight: 600; margin-top: 3px; }

.track-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- Shipping info page ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 44px 0; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; text-align: center; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: .92rem; }
.info-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--beige); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.info-icon .lucide { width: 26px; height: 26px; }

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-ship { width: 100%; border-collapse: collapse; min-width: 520px; }
.table-ship th, .table-ship td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table-ship th { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--cream); }
.table-ship tr:last-child td { border-bottom: none; }
.fee-free { color: var(--success); font-weight: 600; }

/* ---------- About & Story page ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-media { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; background: var(--beige); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 18px; }
.story-text p { color: var(--muted); margin-bottom: 14px; }
.story-quote { border-left: 3px solid var(--gold); padding: 8px 0 8px 22px; margin: 22px 0; font-family: var(--font-head); font-style: italic; font-size: 1.1rem; color: var(--ink); }

.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.value-item { text-align: center; padding: 26px 18px; }
.value-item .info-icon { margin-bottom: 14px; }
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.contact-panel { display: grid; gap: 16px; margin-top: 6px; }
.contact-map-copy .eyebrow { font-size: .9rem; }
.contact-map-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.15; margin: 10px 0 14px; }
.contact-map-copy .contact-map-description { font-size: 1.1rem; line-height: 1.7; max-width: 38rem; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow); }
.contact-row .lucide { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-row strong { display: block; font-weight: 600; }
.contact-row p { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-dark-soft); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-block: 58px 40px; }
.footer-title { color: var(--on-dark); font-size: 1.02rem; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: #CFC7B8; font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--gold-soft); padding-left: 4px; }
.footer-desc { font-size: .92rem; margin: 14px 0 18px; color: #B7AE9E; }
.footer-install { margin: 16px 0; }
.footer-install .btn { display: inline-flex; align-items: center; gap: 8px; }
.footer-install-button { color: var(--on-accent); }
.footer-install .btn .lucide { width: 16px; height: 16px; }
.footer-install-help { max-width: 300px; margin: 10px 0 0; color: #CFC7B8; font-size: .82rem; line-height: 1.5; }
.adslot { position: relative; z-index: 1; width: 100%; padding: 0; background: #f4f0e8; }
.adslot-inner { display: flow-root; width: 100%; max-width: 980px; min-width: 0; }
.footer-brand-col .brand { font-size: 1.7rem; }
.footer-social { display: flex; gap: 9px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--on-dark-line); display: flex; align-items: center; justify-content: center; color: var(--on-dark-soft); background: var(--on-dark-fill); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--on-accent); transform: translateY(-2px); }
.footer-social img { width: 17px; height: 17px; display: block; }
.whatsapp-float { position: fixed; right: 20px; bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px)); z-index: 50; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: calc(100vw - 28px); padding: 12px 16px; border: 2px solid rgba(255,255,255,.75); border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.2); text-decoration: none; font-weight: 700; font-size: .86rem; white-space: nowrap; }
.whatsapp-float img { width: 20px; height: 20px; flex: 0 0 20px; }
.whatsapp-float:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
.product-whatsapp { margin-top: 10px; width: 100%; }

.newsletter { display: flex; gap: 8px; margin-bottom: 18px; }
.newsletter input { flex: 1; padding: 11px 15px; border-radius: 999px; border: 1px solid var(--on-dark-line); background: var(--on-dark-fill); color: var(--on-dark); outline: none; font-size: .9rem; min-width: 0; }
.newsletter input::placeholder { color: #8F8674; }

.footer-contact { display: flex; align-items: center; gap: 9px; font-size: .9rem; margin-top: 8px; color: #CFC7B8; }
.footer-contact .lucide { width: 16px; height: 16px; color: var(--gold-soft); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom .lucide { color: var(--gold-soft); }
.creditbar { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .03em; }
.creditbar-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: 12px; text-align: center; }
.creditbar-credit,
.creditbar-cta { margin: 0; line-height: 1.4; }
.creditbar-credit strong { font-weight: 600; }
.creditbar-cta { color: var(--muted); }
.creditbar-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.creditbar-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3; white-space: nowrap; transition: border-color .2s, color .2s, background-color .2s; }
.creditbar-chip:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--beige); }
.creditbar-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.creditbar-chip svg,
.creditbar-chip .lucide { width: 15px; height: 15px; flex: 0 0 15px; stroke-width: 2; vertical-align: -2.5px; }
.creditbar-wa { color: #128C4A; }
.creditbar-wa:hover { color: #0E6E39; border-color: #25D366; background: rgba(37, 211, 102, .08); }
.payments { display: flex; align-items: center; gap: 8px; }
.pill-badge { border: 1px solid rgba(174,138,86,.5); color: var(--gold-soft); padding: 4px 12px; border-radius: 999px; font-size: .74rem; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--black);
  color: var(--on-dark); border-radius: 0 0 40px 40px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(25,24,22,.92) 22%, rgba(25,24,22,.55) 52%, rgba(25,24,22,.18) 78%); }
.hero-inner { position: relative; z-index: 2; min-height: min(84vh, 720px); display: flex; flex-direction: column; justify-content: center; padding-block: 88px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(203,170,117,.55); color: var(--gold-soft); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; width: fit-content; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); color: var(--on-dark); margin: 22px 0 18px; line-height: 1.05; max-width: 680px; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p { max-width: 500px; color: var(--on-dark-soft); font-size: 1.05rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 52px; flex-wrap: wrap; }
.hero-stat .n { font-family: var(--font-head); font-size: 1.7rem; color: var(--on-dark); }
.hero-stat .l { font-size: .8rem; color: var(--on-dark-soft); letter-spacing: .06em; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: block;
  box-shadow: var(--shadow); background: var(--beige);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(25,24,22,.78)); }
.cat-tile-label {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; color: var(--on-dark);
  font-family: var(--font-head); font-size: 1.18rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.cat-tile-label small { font-family: var(--font-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-soft); }
.cat-tile-arrow { display: none; }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.trust-item .info-icon { margin: 0 auto 14px; }
.trust-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.trust-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; border: 1px solid rgba(174,138,86,.12); }
.testimonial-card.highlight { background: linear-gradient(180deg, #ffffff 0%, #fbf6ee 100%); border-color: rgba(174,138,86,.32); }
.testimonial-stars { color: var(--gold-dark); letter-spacing: .18em; font-size: .82rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--ink); font-size: .98rem; line-height: 1.7; margin-bottom: 18px; }
.testimonial-author { display: flex; flex-direction: column; gap: 4px; }
.testimonial-author strong { font-size: .92rem; }
.testimonial-author span { color: var(--muted); font-size: .78rem; }

/* ---------- Value props / why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-card .info-icon { margin-bottom: 16px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 9px; }
.why-card p { color: var(--muted); font-size: .92rem; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; border-radius: 28px; overflow: hidden; padding: 70px 40px; text-align: center; background: var(--black); color: var(--on-dark); }
.cta-banner h2 { color: var(--on-dark); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta-banner p { color: #DCD3C2; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Admin dashboard ---------- */
.admin-shell { min-height: 60vh; }
.admin-login-wrap { max-width: 400px; margin: 60px auto; }
.admin-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.admin-panel .brand { display: block; text-align: center; font-size: 1.6rem; margin-bottom: 6px; }
.admin-panel .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.admin-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.admin-header h1 { font-size: 1.75rem; }
.admin-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.admin-user .lucide { color: var(--gold); }
.link-logout { color: var(--danger); font-weight: 500; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1.5px solid var(--line); padding-bottom: 0; }
.admin-tab {
  padding: 11px 22px; font-weight: 500; border-radius: 12px 12px 0 0; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; display: flex; align-items: center; gap: 8px;
  transition: color .2s, border-color .2s, background .2s;
}
.admin-tab .lucide { width: 17px; height: 17px; }
.admin-tab:hover { color: var(--black); }
.admin-tab.active { color: var(--black); border-bottom-color: var(--gold); background: rgba(174,138,86,.07); }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeIn .3s ease; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-cards-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; align-items: center; gap: 18px; }
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--beige); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card .stat-icon .lucide { width: 24px; height: 24px; }
.stat-card .stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.stat-card .stat-value { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--black); }

.admin-table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .88rem; vertical-align: middle; }
.admin-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--cream); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover { background: #FDFAF4; }
.admin-table .variant-stock-table { min-width: 0; }
.variant-stock-table th, .variant-stock-table td { padding: 6px 8px; font-size: .8rem; }
.variant-stock-table input.form-control { padding: 4px 6px; font-size: .8rem; min-width: 90px; }
.variant-stock-table .btn-icon { width: 28px; height: 28px; padding: 0; }
.orders-id { font-weight: 600; color: var(--gold-dark); white-space: nowrap; }
.orders-phone { white-space: nowrap; }
.table-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--beige); }
.table-product-name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.table-product-name small { display: block; color: var(--muted); font-weight: 400; }

.status-select {
  padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-size: .8rem; font-weight: 500; cursor: pointer; outline: none; transition: border-color .2s;
}
.status-select:focus { border-color: var(--gold); }

.icon-split { display: inline-flex; gap: 6px; }
.btn-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); color: var(--ink); transition: all .2s; }
.btn-icon .lucide { width: 16px; height: 16px; }
.btn-icon.edit:hover { border-color: var(--gold); background: var(--gold); color: var(--on-accent); }
.btn-icon.delete:hover { border-color: var(--danger); background: var(--danger); color: var(--on-accent); }

.product-img-cell { width: 54px; height: 54px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .lucide { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--sand); }
.wishlist-empty-state {
  width: min(100%, 760px);
  min-height: 320px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wishlist-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 12%, var(--white));
  color: var(--gold-dark);
}
.wishlist-empty-icon .lucide { width: 28px; height: 28px; margin: 0; color: inherit; }
.wishlist-empty-state h3 {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  text-align: center;
}
.wishlist-empty-state p { max-width: 42ch; margin: 0 0 22px; }
.wishlist-empty-state .btn { min-width: 180px; }

.admin-actions-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.admin-actions-bar h2 { font-size: 1.3rem; }

/* ---------- Login page bits ---------- */
.login-hero { min-height: 70vh; display: flex; align-items: center; }
.login-card { max-width: 420px; margin: 40px auto; }
.login-note { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 14px; }
.login-error { background: #FBEDEC; color: var(--danger); border-radius: 12px; padding: 12px 16px; font-size: .88rem; margin-bottom: 18px; display: flex; gap: 9px; align-items: center; }

/* ---------- Auth (sign in / sign up) ---------- */
.auth-section { padding: 60px 0 72px; }
.auth-card {
  max-width: 440px; margin-inline: auto; background: var(--white);
  border: 1px solid rgba(0,0,0,.06); border-radius: 18px;
  padding: 34px 30px; box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 22px; }
.auth-header .brand { display: inline-block; font-size: 1.6rem; margin-bottom: 14px; }
.auth-header h1 { font-size: 1.6rem; margin: 6px 0 6px; }
.auth-header p { color: var(--muted); font-size: .88rem; }
.auth-form .form-group label { color: #555; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; margin-bottom: 16px; border: 1px solid #dadce0;
  background: #fff; color: #3c4043; font-weight: 600; text-decoration: none;
}
.btn-google:hover { border-color: #b8bdc3; background: #f8f9fa; }
.google-mark {
  display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px;
}
.google-mark svg {
  display: block; width: 20px; height: 20px;
}
.auth-or { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; color: var(--muted); font-size: .78rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-modal .auth-or { margin-top: 16px; }
.auth-footer {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  text-align: center; font-size: .88rem; color: var(--muted);
}
.auth-footer a { color: var(--gold-dark); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.form-alert {
  display: flex; align-items: center; gap: 10px;
  background: #FBEDEC; color: var(--danger); border-radius: 12px;
  padding: 12px 16px; font-size: .86rem; margin-bottom: 16px;
}
.form-alert i { width: 18px; height: 18px; flex-shrink: 0; }
.form-alert.is-success { background: #E4F1E8; color: var(--success); }

/* ---------- Account page ---------- */
.account-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start;
}
.profile-info { margin-bottom: 18px; }
.profile-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.profile-row:last-child { border-bottom: none; }
.profile-row span { color: var(--muted); flex-shrink: 0; }
.profile-row strong { text-align: right; min-width: 0; overflow-wrap: break-word; }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.address-card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; transition: border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.address-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.address-card.is-default { border-color: var(--gold); background: #FBF7EE; }
.address-card strong { font-size: .95rem; }
.address-card p { font-size: .84rem; color: #555; margin: 0; overflow-wrap: break-word; }
.address-card p .lucide { vertical-align: -3px; }
.address-badge {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; color: var(--gold-dark); border: 1px solid var(--gold);
  border-radius: 999px; padding: 3px 10px; background: var(--white);
}
.address-actions {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.06);
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ---------- Account security section ---------- */
.sec-row { padding: 4px 0; }
.sec-row + .sec-row { margin-top: 4px; }
.sec-row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 2px;
}
.sec-row-head strong { font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.sec-divider { height: 1px; background: var(--line); margin: 16px 0; }
.totp-secret {
  font-family: 'SF Mono', 'Menlo', monospace; font-size: 1.02rem; letter-spacing: 2px;
  background: var(--cream); border: 1px dashed var(--gold); border-radius: 10px;
  padding: 10px 14px; text-align: center; word-break: break-all; color: var(--gold-dark);
}

/* ---------- Account orders list ---------- */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 18px; text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.order-row:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.order-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-id { font-family: var(--font-serif); color: var(--gold-dark); letter-spacing: .02em; }
.order-row-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.order-qty { font-size: .82rem; color: var(--muted); }
.order-total { font-size: 1rem; }

.account-page { padding-top: 38px; padding-bottom: 72px; }
.account-welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 0 26px; padding: 26px 30px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm);
}
.account-welcome .eyebrow { margin: 0 0 7px; }
.account-welcome h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.2; }
.account-welcome > div:first-child > p:last-child { margin: 8px 0 0; font-size: .9rem; }
.account-member-since { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.account-avatar {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--gold-dark); font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
}
.account-member-since > span:last-child { display: grid; gap: 2px; }
.account-member-since small { color: var(--muted); font-size: .73rem; }
.account-member-since strong { font-size: .88rem; }
.account-layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  grid-template-areas: "profile security" "orders orders" "addresses wishlist";
  gap: 20px; align-items: stretch;
}
.account-layout:not(.has-wishlist) { grid-template-areas: "profile security" "orders orders" "addresses addresses"; }
.account-card { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.account-profile-card { grid-area: profile; }
.account-security-card { grid-area: security; }
.account-orders-card { grid-area: orders; }
.account-addresses-card { grid-area: addresses; }
.account-wishlist-card { grid-area: wishlist; }
.account-card > h3, .account-card .admin-actions-bar h3 { color: var(--ink); font-size: 1.05rem; }
.account-card .admin-actions-bar { margin-bottom: 18px !important; }
.account-card h3 > .lucide, .account-card .admin-actions-bar h3 > .lucide { color: var(--gold-dark); }
.profile-info { margin: 0; }
.profile-row { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.profile-row:first-child { padding-top: 2px; }
.profile-row span { color: var(--muted); font-size: .77rem; }
.profile-row strong { text-align: left; font-size: .91rem; font-weight: 600; }
.account-profile-card #profileForm .form-row { grid-template-columns: 1fr 1fr; }
.account-card-count { color: var(--muted); font-size: .8rem; }
.account-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 185px; padding: 22px; border: 1px dashed var(--line); border-radius: 14px;
  background: var(--cream); text-align: center;
}
.account-empty-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px;
  border-radius: 50%; background: var(--white); color: var(--gold-dark);
}
.account-empty-icon .lucide { width: 21px; height: 21px; }
.account-empty-state > strong { font-size: .93rem; }
.account-empty-state p { max-width: 34ch; margin: 5px 0 14px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.account-orders-empty { min-height: 150px; }
.account-addresses-empty { min-height: 210px; }
.account-card .orders-list { gap: 9px; }
.account-card .order-row { background: var(--white); }
.account-card .address-card { background: var(--cream); }
.account-card .wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-security-card .sec-row-head strong { font-size: .88rem; }
.account-security-card .sec-row > p { line-height: 1.5; }
.account-security-card .sec-divider { margin: 14px 0; }
.account-card .btn-outline { border-color: var(--line); }

@media (max-width: 900px) {
  .account-layout,
  .account-layout:not(.has-wishlist) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "profile" "security" "orders" "addresses" "wishlist";
  }
}

@media (min-width: 521px) and (max-width: 1279px) {
  .shop-product-grid .product-media { aspect-ratio: 1 / 1; }
  .shop-product-grid .product-body { padding: 12px 12px 13px; gap: 4px; }
  .shop-product-grid .product-cat { font-size: .64rem; }
  .shop-product-grid .product-name { font-size: .98rem; }
  .shop-product-grid .price-now { font-size: 1.1rem; }
  .shop-product-grid .product-badges { top: 9px; left: 9px; gap: 4px; }
  .shop-product-grid .badge { padding: 3px 8px; font-size: .62rem; }
  .shop-product-grid .add-cart-btn,
  .shop-product-grid .out-of-stock-btn {
    right: 9px;
    bottom: 9px;
    width: 38px;
    height: 38px;
  }
}

/* Homepage and shop use a quieter editorial rhythm than the account/admin UI. */
.page-home .hero-overlay {
  background: linear-gradient(100deg, rgba(25,24,22,.94) 18%, rgba(25,24,22,.67) 58%, rgba(25,24,22,.38) 100%);
}

.page-home .hero h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
}
.page-home .hero h1 em { display: block; }

.page-home .hero-stats {
  width: min(420px, 100%);
  gap: 0;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.page-home .hero-stat {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-right: 22px;
}

.page-home .hero-stat + .hero-stat {
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.2);
}

.page-home .hero-stat .n { font-size: 1.35rem; }
.page-home .hero-stat .l { letter-spacing: .02em; }

.page-home .why-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}

.page-home .why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(25,24,22,.07);
}

.page-home .cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 40px;
  padding: 38px 42px;
  border-radius: 20px;
  text-align: left;
}

.page-home .cta-banner h2 { grid-column: 1; margin: 0; }
.page-home .cta-banner p { grid-column: 1; margin: 0; }
.page-home .cta-banner .hero-actions { grid-column: 2; grid-row: 1 / span 2; }

.page-shop .page-hero { text-align: left; padding-block: 48px 42px; }
.page-shop .page-hero p { margin-inline: 0; }

.page-shop .shop-toolbar {
  border-radius: 14px;
  background: var(--white);
  backdrop-filter: none;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--sand);
  box-shadow: 0 12px 28px rgba(25,24,22,.08);
}

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

@media (min-width: 768px) {
  .page-home .hero-inner {
    min-height: clamp(520px, 68vh, 690px);
    padding-block: 64px;
  }
}

@media (max-width: 700px) {
  .page-home .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }

  .page-home .cta-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 28px 22px;
  }

  .page-home .cta-banner h2,
  .page-home .cta-banner p,
  .page-home .cta-banner .hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .page-home .cta-banner .hero-actions { margin-top: 8px; }
}
@media (max-width: 600px) {
  .account-page { padding-top: 24px; }
  .account-welcome { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 18px; padding: 20px; }
  .account-member-since { padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
  .account-card { padding: 18px; }
  .account-card .admin-actions-bar { align-items: flex-start; }
  .account-profile-card #profileForm .form-row { grid-template-columns: 1fr 1fr; }
  .account-card .wishlist-grid { gap: 8px; }
  .account-card .order-row { padding: 13px; }
  .account-card .order-row-meta { gap: 9px; }
}

.btn-link {
  background: none; border: none; padding: 0; font-size: .8rem; font-weight: 600;
  color: var(--gold-dark); cursor: pointer; transition: opacity .18s;
}
.btn-link:hover { opacity: .75; text-decoration: underline; }

/* ---------- Modal header / footer ---------- */
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.modal-header h3 { font-size: 1.25rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--muted);
  transition: background .2s, color .2s; flex-shrink: 0;
}
.modal-close:hover { background: var(--beige); color: var(--black); }
.modal-close .lucide { width: 18px; height: 18px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .info-grid, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .pd-gallery { position: static; }
}

/* ================= CHECKOUT (compact) ================= */
.checkout-shell {
    display: block;
    max-width: 1100px;
    margin-inline: auto;
    padding-block: 24px 60px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 22px 0;
}
.checkout-form {
    min-width: 0;
}
.checkout-summary {
    position: sticky;
    top: 20px;
}
.checkout-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.checkout-card {
    background: var(--white, #fff);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.checkout-card.hint {
    background: #f9f7f2;
    border-color: rgba(201,165,92,0.2);
}
.checkout-card.hint p {
    font-size: .85rem;
    color: #666;
}
.checkout-card.hint a {
    color: var(--gold, #c9a55c);
    font-weight: 600;
}
.checkout-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-card h3 i {
    width: 18px;
    height: 18px;
    color: var(--gold, #c9a55c);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #555;
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .15s;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold, #c9a55c);
    box-shadow: 0 0 0 3px rgba(201,165,92,0.1);
}
/* iOS Safari auto-zooms the whole page when a focused field's text is under
   16px — keep every tappable field at 16px on phones so opening the keyboard
   never zooms. (Deliberately not maximum-scale=1: that would break pinch-zoom
   accessibility, and newer iOS ignores it anyway.) */
@media (max-width: 768px) {
    input, select, textarea, .form-control { font-size: 16px !important; }
}
.coupon-apply {
    position: relative;
    margin-top: 16px;
}
.coupon-apply .form-control {
    padding-right: 86px;
    text-transform: uppercase;
}
.coupon-apply .btn {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    min-width: 70px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: .78rem;
}
.coupon-msg {
    margin: 8px 2px 0;
    font-size: .78rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    cursor: pointer;
    margin-top: 6px;
}

/* Saved addresses - custom radio styling */
.addr-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.addr-radio {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
}
.addr-item input:checked ~ .addr-radio {
    border-color: var(--gold, #c9a55c);
}
.addr-item input:checked ~ .addr-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold, #c9a55c);
}
.addr-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.addr-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}
.addr-item:hover {
    border-color: #ccc;
}
.addr-item.is-selected {
    border-color: var(--gold, #c9a55c);
    background: rgba(201,165,92,0.04);
}
.addr-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .85rem;
    flex: 1;
    min-width: 0;
}
.addr-info strong {
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.addr-phone {
    color: #777;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}
.addr-line {
    color: #666;
    font-size: .8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.badge-default {
    display: inline-block;
    background: var(--gold, #c9a55c);
    color: var(--on-accent);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
}
.badge {
    display: inline-block;
    background: var(--gold, #c9a55c);
    color: var(--on-accent);
    font-size: .65rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pay-sub {
    display: block;
    font-size: .68rem;
    color: #888;
    margin-top: 2px;
}
.pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.pay-method {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    font-size: .85rem;
}
.pay-method:hover {
    border-color: #ccc;
}
.pay-method input {
    display: none;
}
.pay-method .pay-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}
.pay-method input:checked ~ .pay-radio {
    border-color: var(--gold, #c9a55c);
}
.pay-method input:checked ~ .pay-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold, #c9a55c);
}
.pay-method input:checked ~ .pay-content {
    color: var(--gold, #c9a55c);
}
.pay-method .pay-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    min-width: 0;
}
.pay-content strong { font-weight: 600; }
.pay-method input:checked ~ .pay-content strong { font-weight: 700; }
.pay-method:has(input:checked) {
    border-color: var(--gold, #c9a55c);
    background: rgba(201,165,92,0.04);
}
.pay-method i {
    width: 18px;
    height: 18px;
}

/* Order summary */
.summary-items {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.summary-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}
.summary-loading {
    text-align: center;
    color: #888;
    font-size: .85rem;
    padding: 14px 0;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: .85rem;
}
.summary-item span {
    color: #555;
    max-width: 70%;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: .9rem;
}
.summary-row.total {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.05rem;
    font-weight: 600;
}
.secure-note {
    text-align: center;
    font-size: .75rem;
    color: #888;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.secure-note i {
    width: 14px;
    height: 14px;
}

/* Paystack payment interface */
.paystack-shell { max-width: 430px; overflow: hidden; }
.paystack-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #0a1a3a; color: #fff; padding: 15px 18px; border-radius: 12px;
}
.paystack-logo { font-size: 1.05rem; font-weight: 800; letter-spacing: .3px; }
.paystack-logo em { font-style: normal; color: #45d07a; }
.paystack-secure {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .76rem; font-weight: 500; opacity: .85;
}
.paystack-amount {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
    padding: 13px 18px; margin: 16px 0 4px;
}
.paystack-amount-label { color: var(--muted); font-size: .84rem; font-weight: 600; }
.paystack-amount-value { font-size: 1.45rem; color: var(--black); }
.paystack-channels { margin-bottom: 4px; }
.ps-fields { margin-top: 10px; }
.paystack-cancel {
    display: block; margin: 14px auto 0; font-size: .85rem;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: var(--gold, #c9a55c);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin .8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Below 1280px the inline nav no longer fits: swap to hamburger + drawer. */
@media (max-width: 1279px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 66px; }
  .brand { font-size: 1.35rem; }
  .brand-monogram { width: 34px; height: 34px; margin-right: 8px; }
  .topbar-item { display: none; }
  .topbar-inner { justify-content: center; }

  .hero-inner { min-height: auto; padding-block: 70px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-stats { gap: 24px; }

  .cart-layout { grid-template-columns: 1fr; }
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 6px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-card, .checkout-summary { position: static; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .account-layout { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip, .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 52px 0; }
  .footer-bottom { justify-content: center; text-align: center; }
     .form-row, .form-row.form-row-2, .form-row.form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
   }
}

@media (max-width: 520px) {
  .whatsapp-float { right: 14px; bottom: max(54px, calc(env(safe-area-inset-bottom) + 40px)); padding: 12px; }
  .whatsapp-float span { display: none; }
  .product-grid { gap: 12px; }
  .product-body { padding: 12px 12px 14px; }
  .product-cat { font-size: .62rem; }
  .product-name { font-size: .95rem; }
  .price-now { font-size: 1.05rem; }
  .price-old { font-size: .65rem; }
  .add-cart-btn { width: 38px; height: 38px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tile { aspect-ratio: 3/4.2; }
  .why-grid, .info-grid, .stat-cards, .value-strip { grid-template-columns: 1fr; }
  .trust-strip, .testimonial-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 13px;
    align-items: center;
    padding: 16px;
    text-align: left;
    border-radius: 14px;
  }
  .trust-item .info-icon {
    grid-row: 1 / span 2;
    margin: 0;
    width: 44px;
    height: 44px;
  }
  .trust-item .info-icon .lucide { width: 21px; height: 21px; }
  .trust-item h3 { margin: 0 0 3px; font-size: .98rem; line-height: 1.25; }
  .trust-item p { font-size: .82rem; line-height: 1.45; }
  .testimonial-card {
    min-width: 0;
    padding: 20px 18px;
    border-radius: 14px;
  }
  .testimonial-stars { margin-bottom: 9px; font-size: .75rem; }
  .testimonial-card p { font-size: .88rem; line-height: 1.55; margin-bottom: 14px; }
  .testimonial-author strong { font-size: .86rem; }
  .testimonial-author span { font-size: .74rem; }
  .why-grid { gap: 12px; }
  .why-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: 14px;
  }
  .why-card .info-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .why-card h3 { margin: 3px 0 5px; font-size: 1rem; }
  .why-card p { font-size: .84rem; line-height: 1.5; }
  .address-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .shop-search .form-control { width: 100%; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .hero p { font-size: .98rem; }
  .hero-actions .btn { flex: 1; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-thumb { width: 72px; height: 72px; }
  .cart-item-controls { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; min-width: 0; }
  .track-summary { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 22px; }
  .timeline-step { grid-template-columns: 28px 1fr; gap: 12px; }
  .timeline-step::before { left: 13px; }
  .timeline-dot { width: 28px; height: 28px; }
        .pay-option { padding: 14px; }

   /* Checkout mobile tweaks */
   .checkout-shell { gap: 16px; padding-block: 12px 32px; }
   .checkout-title { font-size: 1.2rem; }
   .checkout-card { padding: 14px; }
   .checkout-card h3 { font-size: .85rem; }
   .pay-methods { grid-template-columns: 1fr; }

   /* Header — fit without overlap */
   .header-inner { gap: 8px; min-height: 60px; }
   .brand { font-size: 1.25rem; }
   .nav-toggle, .header-actions .icon-btn { width: 38px; height: 38px; }
   .header-actions { gap: 2px; }
   .user-menu-trigger { padding: 0 2px 0 8px; gap: 4px; }
   .user-name { display: none; }
   .header-actions .btn { padding: 8px 14px; font-size: .8rem; }
   .topbar-inner { font-size: .72rem; }
}

@media (max-width: 860px) {
  .header-inner { position: relative; }
  .brand img { max-width: min(190px, 46vw); height: 46px !important; }
}

@media (max-width: 400px) {
   .header-inner { gap: 6px; }
   .brand { font-size: 1.12rem; }
   .brand-monogram { width: 30px; height: 30px; margin-right: 6px; font-size: .68rem; }
   .nav-toggle, .header-actions .icon-btn { width: 34px; height: 34px; }
   .header-actions .btn { font-size: 0; gap: 0; padding: 8px; width: 34px; }
   .header-actions .btn i { width: 16px; height: 16px; margin: 0; }
   .brand img { max-width: 162px; height: 40px !important; }
   .category-grid, .cat-grid { gap: 8px; }
   .product-grid { gap: 8px; }
   .checkout-card { padding: 12px; }
   .auth-card { padding: 26px 18px; }
   .auth-header h1 { font-size: 1.4rem; }
}

@media (min-width: 1280px) {
  .drawer, .drawer-overlay { display: none; }
}

/* ============================================================
   RESPONSIVE SAFETY NET — every page, every viewport
   The storefront is built "fluid-first": nothing on the page may
   force a horizontal scrollbar or overlap at ANY width.
   ============================================================ */

/* Nothing may force the page wider than the viewport.
   `clip` (modern) does not create a scroll container, so the
   sticky header keeps working. Fallback applies to html only,
   never body (body overflow:hidden would break position:sticky). */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
  body { overflow-x: clip; }
}

@media (max-width: 520px) {
  .topbar-right { display: none; }
  .topbar-inner > span:first-child { white-space: nowrap; }
}

/* Fluid media + form controls everywhere. */
img, video, svg, canvas, iframe, embed, object { max-width: 100%; height: auto; }
input, select, textarea, button { max-width: 100%; }
audio { width: 100%; }

/* Long unbroken text/IDs/URLs must wrap, never overflow a card. */
h1, h2, h3, h4, p, li, td, th, dt, dd, span, strong, small, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Grid/flex children may shrink below their content size. */
.grid, [class*="grid"], [class*="-row"], [class*="-list"],
[class*="-actions"], [class*="-inner"] > * { min-width: 0; }

/* Block-level tables: allow internal horizontal scroll in tight cards. */
.table-wrap, .admin-table-wrap { -webkit-overflow-scrolling: touch; }

/* ---------- Shop pagination ---------- */
.shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.page-item { display: inline-flex; }
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line, #E8DFD3);
    border-radius: 10px;
    background: #fff;
    color: var(--ink, #1F1B16);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.page-link:hover,
.page-link:focus-visible {
    background: var(--gold, #C9A227);
    border-color: var(--gold, #C9A227);
    color: var(--on-accent);
}
.page-item.active .page-link {
    background: var(--black, #1F1B16);
    border-color: var(--black, #1F1B16);
    color: var(--on-dark);
    cursor: default;
}
.page-item.disabled .page-link {
    opacity: .4;
    pointer-events: none;
}
@media (max-width: 520px) {
    .shop-pagination { margin-top: 28px; }
    .pagination { gap: 6px; }
    .page-link { min-width: 38px; height: 38px; font-size: .88rem; }
}

/* Tighter, guaranteed-to-fit grids on the smallest phones. */
@media (max-width: 360px) {
  .container { padding-inline: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .cat-grid { gap: 6px; }
  .pay-methods { grid-template-columns: 1fr; gap: 8px; }
  .chip { padding: 7px 12px; font-size: .78rem; }
  .btn { padding: 11px 18px; }
  .pd-title { font-size: 1.35rem; }
}

/* ============================================================
   Order receipt (order-success.php) — hidden on screen; when
   the user hits "Print Receipt (PDF)" the whole page UI is
   hidden and only the clean receipt document is printed.
   ============================================================ */
.receipt-print { display: none; }
.receipt-print.receipt-view:not([hidden]) {
    display: block;
    width: min(100% - 32px, 720px);
    margin: 28px auto;
    padding: 28px clamp(18px, 5vw, 40px);
    border: 1px solid #e7e1d6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(31, 29, 26, .08);
    font-family: Georgia, 'Times New Roman', serif;
    color: #111;
}
.receipt-view-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e7e1d6;
    font-family: system-ui, sans-serif;
    font-size: .9rem;
    font-weight: 700;
}
.receipt-view .receipt-head { text-align: center; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
.receipt-view .receipt-brand { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.receipt-view .receipt-brand span { color: #b8860b !important; }
.receipt-view .receipt-tag { font-size: 12px; font-style: italic; margin: 4px 0 2px; }
.receipt-view .receipt-contact { font-size: 11px; color: #444; }
.receipt-view .receipt-title { font-size: 19px; text-align: center; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 2px; }
.receipt-view .receipt-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #111; padding-bottom: 3px; margin: 16px 0 8px; }
.receipt-view .receipt-meta, .receipt-view .receipt-items { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.receipt-view .receipt-meta th { text-align: left; font-size: 11px; width: 130px; padding: 3px 0; vertical-align: top; text-transform: uppercase; letter-spacing: .5px; color: #555; }
.receipt-view .receipt-meta td { font-size: 12.5px; padding: 3px 0; vertical-align: top; }
.receipt-view .receipt-items { margin-top: 4px; }
.receipt-view .receipt-items th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1.5px solid #111; padding: 5px 4px; }
.receipt-view .receipt-items td { font-size: 12px; padding: 6px 4px; border-bottom: 1px solid #ddd; vertical-align: top; }
.receipt-view .receipt-items td small { color: #555; font-size: 10.5px; }
.receipt-view .receipt-items tfoot td { border-bottom: none; font-size: 12.5px; padding: 4px; }
.receipt-view .receipt-grand td { border-top: 2px solid #111; font-size: 14px; padding-top: 8px; }
.receipt-view .receipt-foot { margin-top: 22px; font-size: 10.5px; text-align: center; color: #555; border-top: 1px solid #ddd; padding-top: 10px; font-style: italic; }

@media print {
    /* Classic receipt-print technique: hide every element visually,
       then reveal only the receipt (works at any DOM nesting depth). */
    body * { visibility: hidden !important; }
    .receipt-print, .receipt-print * { visibility: visible !important; }

    /* Lift the receipt out of the page flow and pin it to the sheet */
    .receipt-print {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding: 24px 8px;
        font-family: Georgia, 'Times New Roman', serif;
        color: #111 !important;
        background: #fff !important;
    }

    body { background: #fff !important; margin: 0 !important; }

    .receipt-print * {
        color: #111 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .receipt-view-actions { display: none !important; }

    .receipt-head   { text-align: center; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
    .receipt-brand  { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
    .receipt-brand span { color: #b8860b !important; }
    .receipt-tag    { font-size: 12px; font-style: italic; margin: 4px 0 2px; }
    .receipt-contact{ font-size: 11px; color: #444 !important; }

    .receipt-title  { font-size: 19px; text-align: center; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 2px; }

    .receipt-sub    { font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
                      border-bottom: 1px solid #111; padding-bottom: 3px; margin: 16px 0 8px; }

    .receipt-meta   { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
    .receipt-meta th{ text-align: left; font-size: 11px; width: 130px; padding: 3px 0; vertical-align: top;
                      text-transform: uppercase; letter-spacing: .5px; color: #555 !important; }
    .receipt-meta td{ font-size: 12.5px; padding: 3px 0; vertical-align: top; }

    .receipt-items  { width: 100%; border-collapse: collapse; margin-top: 4px; }
    .receipt-items th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
                        border-bottom: 1.5px solid #111; padding: 5px 4px; }
    .receipt-items td { font-size: 12px; padding: 6px 4px; border-bottom: 1px solid #ddd; vertical-align: top; }
    .receipt-items td small { color: #555 !important; font-size: 10.5px; }
    .receipt-items tfoot td { border-bottom: none; font-size: 12.5px; padding: 4px; }
    .receipt-grand td { border-top: 2px solid #111; font-size: 14px !important; padding-top: 8px !important; }

    .receipt-foot   { margin-top: 22px; font-size: 10.5px; text-align: center; color: #555 !important;
                      border-top: 1px solid #ddd; padding-top: 10px; font-style: italic; }

    /* Ensure the button's lucide icon (svg) never leaks into print */
    .receipt-print svg { display: none !important; }

    @page { margin: 14mm; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--black);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.cookie-banner .cookie-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  margin-bottom: 4px;
}
.cookie-banner .cookie-text p {
  font-size: .82rem;
  color: var(--on-dark-soft);
  max-width: 52ch;
}
.cookie-banner .cookie-text a {
  color: var(--gold-soft);
  text-decoration: underline;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner .btn-outline {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, .3);
}
.cookie-banner .btn-outline:hover {
  border-color: var(--on-dark);
}
@media (max-width: 560px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner .cookie-actions { justify-content: center; }
  .cookie-banner .cookie-text p { max-width: none; }
}

@media (min-width: 1280px) {
  .shop-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 521px) and (max-width: 1279px) {
  .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .account-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); }
}
@media (max-width: 900px) {
  .account-layout,
  .account-layout:not(.has-wishlist) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "profile" "security" "orders" "addresses" "wishlist";
  }
}

@media (min-width: 1000px) and (max-width: 1279px) {
  .main-nav { display: flex; gap: clamp(12px, 1.5vw, 20px); }
  .nav-toggle { display: none; }
  .header-inner { min-height: 74px; }
}
