/*
  MAISON MARRY — Parfumerie
  Direction: Dark Luxury / Cinematic
  Palette: Obsidian · Warm white · Gold
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --black:   #080808;
  --deep:    #0f0f0f;
  --surface: #161616;
  --lift:    #1e1e1e;
  --border:  #2a2a2a;
  --muted:   #555;
  --soft:    #999;
  --warm:    #e8e0d0;
  --white:   #f5f0e8;
  --gold:    #c9a84c;
  --gold2:   #e0c06a;
  --gold-dim:#7a6530;
  --danger:  #a04040;
  --ok:      #3a8a5a;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --nav-h: 72px;
}

body {
  background: var(--black);
  color: var(--warm);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ── TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p { color: var(--soft); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.gold { color: var(--gold); }
.serif { font-family: var(--serif); }

/* ── GOLD RULE ───────────────────────────────── */
.rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.logo-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
}
.logo-tag {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .cart-link {
  position: relative;
  color: var(--white);
}
.cart-badge {
  position: absolute;
  top: -7px; right: -10px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 500;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.cart-badge.visible { display: flex; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover { background: var(--gold2); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--soft);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  font-size: 0.72rem;
}
.btn-ghost:hover { color: var(--white); border-color: var(--soft); }
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 5vw;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-h {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 6rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-h em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--soft);
  max-width: 360px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 40%);
}

/* ── SECTION WRAPPER ─────────────────────────── */
.section {
  padding: 6rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
}
.section-full {
  padding: 6rem 5vw;
}
.section-head {
  margin-bottom: 3rem;
}
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── TOOLBAR (storefront) ────────────────────── */
.toolbar {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 800;
}
.toolbar-spacer {
  /* height set dynamically by JS */
}
.toolbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 5vw;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  flex: 1;
  min-width: 0;
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  width: 100%;
  min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-icon { color: var(--muted); font-size: 0.9rem; flex-shrink: 0; }

/* Toggle buttons row */
.toolbar-toggles {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--soft);
  padding: 0.5rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-toggle-btn:hover { color: var(--white); border-color: var(--soft); }
.filter-toggle-btn.open {
  background: var(--surface);
  color: var(--gold);
  border-color: var(--gold);
}
.toggle-arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.65rem;
}
.filter-toggle-btn.open .toggle-arrow { transform: rotate(180deg); }

/* Collapsible panels */
.filter-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  border-top: 0px solid var(--border);
}
.filter-panel.open {
  max-height: 200px;
  border-top: 1px solid var(--border);
}
.filter-panel-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Filter pills */
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--soft);
  padding: 0.4rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--soft); color: var(--white); }
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
/* Tag pills — same shape, amber tint when active */
.filter-btn.tag-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--white);
}

/* ── PRODUCT GRID ────────────────────────────── */
.products-wrap {
  padding: 4rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
}
#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}
.product-item {
  background: var(--deep);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
  animation: fadeUp 0.4s both;
}
.product-item:hover { background: var(--surface); }

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

.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-item:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
}
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}
.stock-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
}
.stock-in    { background: rgba(58,138,90,0.9); color: #fff; }
.stock-low   { background: rgba(180,140,40,0.9); color: #000; }
.stock-out   { background: rgba(80,80,80,0.8);   color: var(--soft); }

.product-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
}
.product-cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.cat-pill {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  padding: 0.2rem 0.5rem;
}
.product-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
}
.product-brand {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 300;
}
.add-to-cart-card-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--soft);
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.add-to-cart-card-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.sold-out-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: not-allowed;
  font-family: var(--sans);
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 0;
  color: var(--muted);
}
.loading-spinner {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.no-products, .error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.3rem;
}

/* ── PRODUCT DETAIL ──────────────────────────── */
.pd-wrap {
  padding-top: calc(var(--nav-h) + 3rem);
  min-height: 100vh;
}
.pd-breadcrumb {
  padding: 0 5vw 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  max-width: 1400px;
  margin: 0 auto;
}
.pd-breadcrumb a { transition: color 0.2s; }
.pd-breadcrumb a:hover { color: var(--gold); }
.pd-breadcrumb span { color: var(--border); margin: 0 0.5rem; }
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  gap: 6rem;
  align-items: start;
}
.pd-img-zone {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.pd-img-main {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
}
.pd-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--border);
  aspect-ratio: 3/4;
  background: var(--surface);
}
.pd-info { padding: 2rem 0 5rem; }
.pd-cats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.pd-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.pd-brand {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.pd-price {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.pd-stock-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
.pd-desc {
  font-size: 0.9rem;
  color: var(--soft);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.pd-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }
.pd-actions .btn { flex: 1; justify-content: center; }
.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.pd-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.pd-meta-label { color: var(--muted); letter-spacing: 0.08em; }
.pd-meta-val   { color: var(--warm); }
.related-wrap {
  padding: 5rem 5vw;
  border-top: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 2.5rem;
}

/* ── PAGE BANNER (about / contact) ──────────── */
.page-banner {
  padding: calc(var(--nav-h) + 5rem) 5vw 5rem;
  border-bottom: 1px solid var(--border);
}
.page-banner-inner { max-width: 700px; }

/* ── ABOUT ────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 5rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
}
.about-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.25rem; }
.values-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 5vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.value-item h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.value-item p { font-size: 0.85rem; }
.contact-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}
.contact-block h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-detail a { color: var(--soft); transition: color 0.2s; }
.contact-detail a:hover { color: var(--gold); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--soft);
}
.hours-table td:last-child { text-align: right; color: var(--warm); }

/* ── MAP ─────────────────────────────────────── */
.map-link { display: block; margin-top: 1.5rem; text-decoration: none; }
.map-embed {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  pointer-events: none; /* click goes to <a> link, not iframe */
  filter: grayscale(1) invert(0.88) contrast(0.9);
}
.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(8,8,8,0.6) 0%, transparent 60%);
  transition: background 0.2s;
}
.map-link:hover .map-overlay { background: linear-gradient(to top, rgba(8,8,8,0.8) 0%, rgba(8,8,8,0.2) 100%); }
.map-overlay span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8,8,8,0.8);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gold-dim);
}

/* ── CART / CHECKOUT ─────────────────────────── */
.cart-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.5rem 5vw;
  border-bottom: 1px solid var(--border);
  background: var(--deep);
  max-width: 100%;
  overflow-x: auto;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.step-dot.active { color: var(--gold); }
.step-dot.done { color: var(--soft); }
.step-num {
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}
.step-line {
  flex: 1;
  min-width: 30px;
  height: 1px;
  background: var(--border);
  margin: 0 0.75rem;
}
.cart-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 5vw 6rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 80px;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface);
}
.cart-item-img-placeholder {
  width: 80px;
  aspect-ratio: 3/4;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--border);
}
.cart-item-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.cart-item-brand {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
}
.qty-btn {
  background: none;
  border: none;
  color: var(--soft);
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.qty-btn:hover { color: var(--gold); background: var(--surface); }
.qty-num {
  width: 36px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--white);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 30px;
  line-height: 30px;
}
.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s;
  padding: 0.25rem;
}
.remove-btn:hover { color: var(--danger); }
.cart-item-price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
  min-width: 80px;
  text-align: right;
}
.order-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.order-box h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--soft);
  padding: 0.4rem 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.summary-total span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.summary-total span:last-child {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}
.order-box .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.cart-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 0;
  color: var(--muted);
}
.cart-empty h3 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 1rem; }

/* CHECKOUT FORM */
.checkout-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 5vw 6rem;
}
.checkout-wrap h2 { margin-bottom: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { height: 100px; resize: vertical; }
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.form-actions .btn { flex: 1; justify-content: center; }
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.checkout-summary h4 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.form-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 1rem;
}

/* QPAY */
.qpay-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 5vw 6rem;
  text-align: center;
}
.qpay-wrap h2 { margin-bottom: 0.5rem; }
.qpay-amount-display {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  margin: 1.5rem 0;
}
.qpay-img {
  width: 220px;
  height: 220px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 8px;
}
.qpay-img img { width: 100%; height: 100%; object-fit: contain; }
.qpay-merchant {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.qpay-steps {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.qpay-steps ol { padding-left: 1.25rem; }
.qpay-steps li { font-size: 0.85rem; color: var(--soft); padding: 0.35rem 0; }
.payment-error { color: var(--danger); font-size: 0.82rem; margin-bottom: 1rem; }
.qpay-btns { display: flex; gap: 1rem; }
.qpay-btns .btn { flex: 1; justify-content: center; }

/* SUCCESS */
.success-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 5vw 6rem;
  text-align: center;
}
.success-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  color: var(--gold);
}
.success-wrap h2 { margin-bottom: 0.75rem; }
.success-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}
.success-box h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── ADMIN ────────────────────────────────────── */
.admin-page { display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 900;
}
.admin-topbar .logo-name { font-size: 1.1rem; }
.admin-body {
  display: flex;
  flex: 1;
}
.admin-nav {
  width: 220px;
  background: var(--deep);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-btn {
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--muted);
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.sidebar-btn:hover { color: var(--white); background: var(--surface); }
.sidebar-btn.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--surface);
}
.admin-content { flex: 1; padding: 2.5rem; overflow-y: auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 1.6rem; }
.tbl-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--soft);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--surface); }
.admin-table .product-thumb {
  width: 44px;
  height: 56px;
  object-fit: cover;
  background: var(--lift);
}
.tbl-actions { display: flex; gap: 0.5rem; }
.tbl-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.tbl-btn:hover { color: var(--white); border-color: var(--soft); }
.tbl-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* Admin modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  display: none;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--deep);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1.2rem; }
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}
.modal-footer .btn { padding: 0.75rem 1.5rem; }

/* Admin login */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}
.login-card {
  background: var(--deep);
  border: 1px solid var(--border);
  padding: 3rem;
  width: 100%;
  max-width: 380px;
}
.login-card h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.login-card p { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }
.login-error { color: var(--danger); font-size: 0.82rem; margin-top: 1rem; }

/* Admin image upload */
.image-preview-box {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.image-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-box span { color: var(--muted); font-size: 0.82rem; }
.progress-bar-wrap {
  background: var(--border);
  height: 2px;
  margin-top: 0.5rem;
  display: none;
}
.progress-bar-fill { height: 100%; background: var(--gold); width: 0; transition: width 0.2s; }
.progress-text { font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

/* Category tag selector */
.cat-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 48px;
}
.cat-tag-opt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.cat-tag-opt.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-pending    { background: rgba(100,80,20,0.4); color: #c9a84c; }
.status-confirmed  { background: rgba(20,80,60,0.4);  color: #4aaa80; }
.status-delivered  { background: rgba(20,60,30,0.5);  color: #6acc88; }
.status-cancelled  { background: rgba(80,20,20,0.4);  color: #cc6666; }

/* Order select */
.status-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--warm);
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  font-family: var(--sans);
  outline: none;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--lift);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--ok); }

/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 4rem 5vw 2rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo-name { font-size: 1.4rem; margin-bottom: 0.25rem; }
.footer-brand .logo-tag  { display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.82rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 400;
  font-family: var(--sans);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bot {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── MOBILE NAV OVERLAY ──────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--white);
  font-weight: 300;
}
.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--soft);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 4rem 5vw; }
  .hero-right { height: 60vw; }
  .hero-right::after { background: linear-gradient(to bottom, var(--black) 0%, transparent 30%); }

  .pd-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .pd-img-zone { position: relative; top: auto; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .values-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; }

  .cart-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .order-box { position: relative; top: auto; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .admin-body { flex-direction: column; }
  .admin-nav { width: 100%; height: auto; position: relative; top: auto; display: flex; padding: 0; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .sidebar-btn { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; padding: 1rem 1.25rem; }
  .sidebar-btn.active { border-bottom-color: var(--gold); border-left-color: transparent; }
}

@media (max-width: 600px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .burger { display: flex; }

  h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  #product-list { grid-template-columns: 1fr 1fr; gap: 1px; }
  .product-body { padding: 0.9rem 1rem 1rem; }

  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-price { grid-column: 1 / -1; text-align: left; font-size: 1rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bot { flex-direction: column; gap: 0.75rem; text-align: center; }

  .qpay-btns { flex-direction: column; }
  .form-actions { flex-direction: column; }

  .admin-table th, .admin-table td { padding: 0.6rem; }
}
