/* ============ Tokens : Clean & Premium ============ */
:root {
  --ink: #2B2A26;
  --ink-soft: #6B6A63;
  --bg: #FBFAF6;
  --paper: #FFFFFF;
  --sage: #4B5D50;
  --sage-deep: #33422F;
  --gold: #D89A1E;
  --gold-soft: #F0B94A;
  --gold-wash: #FCEFD4;
  --line: #E8E4D9;
  --danger: #A3312A;
  --danger-bg: #FBEAEA;
  --success: #1E5A34;
  --success-bg: #E7F3EA;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 16px 40px rgba(43,42,38,0.08);
  --shadow-lift: 0 20px 50px rgba(43,42,38,0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251,250,246,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--sage-deep);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--sage-deep);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.cart-count {
  background: var(--gold-soft);
  color: var(--sage-deep);
  border-radius: 999px;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 0 5px;
}

/* ============ Hero ============ */
.hero { padding: 44px 0 0; }
.hero-copy {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.16;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--sage-deep);
}
.hero p.lead {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 52ch;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #3A2600;
  box-shadow: 0 10px 24px rgba(216,154,30,0.28);
}
.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}
.btn-outline:hover { border-color: var(--sage-deep); }
.btn-dark {
  background: var(--sage-deep);
  color: #fff;
}
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---- Hero banner: big, full-width, sits directly on the page (no dark card) ---- */
.hero-visual {
  position: relative;
  width: 100%;
  height: clamp(260px, 36vw, 460px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--gold-wash), #F3EFE3 60%);
  margin-bottom: 8px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-placeholder img { width: 30%; max-width: 220px; opacity: 0.85; }
.hero-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 2;
}
.hero-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.6);
  padding: 0;
  box-shadow: 0 0 0 1px rgba(43,42,38,0.15);
}
.hero-dots button.active { background: #fff; width: 22px; border-radius: 4px; }

/* ============ Section headings ============ */
.section { padding: 52px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 50ch; }

/* ============ Category tabs ============ */
.tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 30px;
  scrollbar-width: thin;
}
.tab {
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tab.active {
  background: var(--sage-deep);
  color: #fff;
  border-color: var(--sage-deep);
}

/* ============ Product grid ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media {
  height: 130px;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, var(--gold-wash), #F3EFE3 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .initials {
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.55;
}
.card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  font-weight: 700;
}
.card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.3;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}
.price { font-weight: 700; font-size: 1rem; color: var(--sage-deep); }
.price-was { text-decoration: line-through; color: var(--ink-soft); font-size: 0.85rem; opacity: 0.7; }
.badge-promo {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.card .btn { padding: 10px 16px; font-size: 0.82rem; }
.stock-note { font-size: 0.78rem; color: var(--ink-soft); }
.stock-note.low { color: var(--gold); font-weight: 600; }
.stock-note.out { color: var(--danger); font-weight: 600; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--sage-deep);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 80;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--sage-deep);
  color: rgba(255,255,255,0.82);
  padding: 48px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}
.footer-grid h4 {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0 0 10px;
  font-size: 1rem;
}
.footer-grid p, .footer-grid a { font-size: 0.88rem; line-height: 1.75; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ============ Cart drawer ============ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(43,42,38,0.4);
  z-index: 60;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--paper);
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 600; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-controls button { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); }
.cart-foot { padding: 18px 20px 24px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; font-size: 1.02rem; }
.icon-btn { background: none; border: none; font-size: 1.25rem; color: var(--ink); }
.empty-note { color: var(--ink-soft); padding: 30px 0; text-align: center; }

/* ============ Forms ============ */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
}
.form-card.wide { max-width: none; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.83rem; font-weight: 700; margin-bottom: 6px; color: var(--sage-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 80px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.88rem; color: var(--ink); }
.notice { padding: 12px 14px; border-radius: 9px; font-size: 0.86rem; margin-bottom: 16px; }
.notice-success { background: var(--success-bg); color: var(--success); border: 1px solid #b9dcc4; }
.notice-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f0c4c1; }
.form-foot-link { text-align: center; margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); }
.form-foot-link a { color: var(--sage-deep); font-weight: 700; }

/* ============ Auth pages ============ */
.auth-wrap {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  text-align: center;
  margin: 14px 0 4px;
}
.auth-card p.subtitle { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 26px; }

/* ============ Spa services ============ */
.service-list { display: grid; gap: 14px; margin-bottom: 32px; }
.service-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-row.selected { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.service-row h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; }
.service-row .price { white-space: nowrap; }

/* ============ Account / history ============ */
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.account-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.account-side h3 { font-family: var(--font-display); font-weight: 500; margin: 0 0 4px; }
.account-side p { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 18px; }
.history-list { display: grid; gap: 14px; }
.history-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.history-head h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; }
.history-head .meta { color: var(--ink-soft); font-size: 0.82rem; }
.history-items { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 10px; }
.history-items div { padding: 3px 0; }
.history-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-pill {
  padding: 3px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize;
}
.status-pending, .status-requested { background: #FEF3D6; color: #8A6300; }
.status-paid, .status-confirmed { background: var(--success-bg); color: var(--success); }
.status-shipped { background: #DCE8F7; color: #1D4E89; }
.status-completed { background: #E4E1F5; color: #4A3A9C; }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

/* ============ Receipt ============ */
.receipt-wrap { max-width: 560px; margin: 0 auto; }
.receipt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.receipt-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.receipt-brand img { height: 46px; }
.receipt-brand div h2 { margin: 0; font-family: var(--font-display); font-weight: 500; }
.receipt-brand div p { margin: 2px 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.receipt-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.receipt-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.receipt-table th, .receipt-table td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.receipt-table th { color: var(--ink-soft); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.receipt-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding-top: 6px; }
.receipt-actions { margin-top: 26px; display: flex; gap: 10px; }

@media print {
  .site-header, .site-footer, .receipt-actions, .cart-overlay, .cart-drawer { display: none !important; }
  body { background: #fff; }
  .receipt-card { border: none; box-shadow: none; padding: 0; }
}

/* ============ Address autocomplete ============ */
.address-wrap { position: relative; }
.address-suggestions {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 5;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}
.address-suggestions.open { display: block; }
.address-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border: none;
  background: none;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}
.address-suggestions button:last-child { border-bottom: none; }
.address-suggestions button:hover { background: var(--gold-wash); }

/* ============ Account settings ============ */
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child { border-bottom: none; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 4px 0; color: var(--ink-soft); }
.summary-line.total { color: var(--ink); font-weight: 700; font-size: 1.02rem; padding-top: 10px; }

@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 0.85rem; }
  .nav-links span.label { display: none; }
}
