/* ================================================================
   Honey Pot — boutique stylesheet
   Palette: warm cream · blush · rose · honey gold · espresso ink
   ================================================================ */

:root {
  --bg: #fdf8f3;
  --surface: #ffffff;
  --ink: #33261f;
  --ink-soft: #7a675b;
  --line: #f0e2d6;
  --blush: #f6dfd0;
  --blush-soft: #fbeee4;
  --rose: #c4707f;
  --rose-deep: #a85766;
  --gold: #c08a3e;
  --gold-soft: #f3e6cf;
  --good: #3e7d4f;
  --bad: #b3402f;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --shadow-sm: 0 2px 10px rgba(90, 60, 40, 0.07);
  --shadow-md: 0 10px 30px rgba(90, 60, 40, 0.12);
  --shadow-lg: 0 24px 60px rgba(90, 60, 40, 0.18);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
button { font-family: var(--sans); cursor: pointer; }
input, select, textarea { font-family: var(--sans); font-size: 15px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------------- Top bar & header ---------------- */

.topbar {
  background: var(--ink);
  color: #f3e8df;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-dot { color: var(--rose); }

.main-nav { display: flex; gap: 20px; font-size: 14.5px; letter-spacing: 0.04em; }
.main-nav a { color: var(--ink-soft); padding: 4px 2px; border-bottom: 2px solid transparent; transition: 0.2s; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-color: var(--rose); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink-soft);
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--rose); }
.search-wrap input { border: 0; outline: 0; background: transparent; width: 170px; color: var(--ink); }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--blush-soft); }

.badge {
  position: absolute; top: 1px; right: -1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--rose); color: #fff;
  font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
}

.nav-toggle { display: none; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.05em;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: #fbf4ee; }
.btn-ink:hover:not(:disabled) { background: #4a382d; box-shadow: var(--shadow-sm); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover:not(:disabled) { background: var(--rose-deep); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover:not(:disabled) { background: #a87733; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover:not(:disabled) { background: var(--ink); color: #fbf4ee; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(120deg, var(--blush-soft) 0%, #fdf1e7 55%, #f7e3d3 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px 48px;
  margin-top: 26px;
  overflow: hidden;
  position: relative;
}
.hero-kicker {
  font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose-deep); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-style: italic; font-weight: 500; }
.hero h1 em { color: var(--rose); }
.hero p { color: var(--ink-soft); max-width: 46ch; margin: 16px 0 26px; font-size: 16.5px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.6;
  background: var(--blush);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Perks ---------------- */

.perks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 22px 0 8px;
}
.perk {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 13.5px; color: var(--ink-soft);
}
.perk b { display: block; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.perk-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blush-soft); font-size: 17px;
}

/* ---------------- Sections ---------------- */

.section { margin: 46px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 30px; font-style: italic; }
.section-head .link { color: var(--rose-deep); font-size: 14px; letter-spacing: 0.05em; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.section-head .link:hover { color: var(--rose); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 12px 18px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-tile .cat-emoji {
  width: 62px; height: 62px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 28px;
}
.cat-tile b { font-family: var(--serif); font-weight: 600; font-size: 17px; display: block; }
.cat-tile span { font-size: 12px; color: var(--rose-deep); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------------- Product grid & cards ---------------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  animation: fadeUp 0.4s ease both;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blush-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }

.card-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--rose); color: #fff;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.card-tag.tag-out { background: #8d7f76; }

.card-fav {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center; color: var(--ink-soft);
  transition: transform 0.15s, color 0.2s;
}
.card-fav:hover { transform: scale(1.1); color: var(--rose); }
.card-fav.on { color: var(--rose); }
.card-fav.on svg { fill: currentColor; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-deep); }
.card-name { font-family: var(--serif); font-size: 17.5px; font-weight: 600; }
.card-name a:hover { color: var(--rose-deep); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.price-now { font-weight: 600; font-size: 16px; }
.price-was { color: var(--ink-soft); text-decoration: line-through; font-size: 13.5px; }
.card-add { margin-top: 10px; }

/* ---------------- Shop controls ---------------- */

.shop-head { margin: 30px 0 18px; }
.shop-head h1 { font-size: 36px; font-style: italic; }
.shop-head p { color: var(--ink-soft); margin: 6px 0 0; }

.pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.pill {
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  padding: 8px 18px; font-size: 13.5px; letter-spacing: 0.04em;
  transition: 0.2s;
}
.pill:hover { border-color: var(--rose); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fbf4ee; }

.shop-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.shop-controls .search-wrap { flex: 1; min-width: 220px; max-width: 380px; }
.shop-controls .search-wrap input { width: 100%; }
.select {
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  padding: 9px 16px; outline: none;
}
.result-count { margin-left: auto; color: var(--ink-soft); font-size: 13.5px; }

/* ---------------- Product detail ---------------- */

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 34px 0; }
.pdp-media {
  border-radius: 18px; overflow: hidden; background: var(--blush-soft);
  aspect-ratio: 4 / 4.7; box-shadow: var(--shadow-sm); position: relative;
}
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { padding-top: 8px; }
.pdp-info .card-cat { margin-bottom: 8px; }
.pdp-info h1 { font-size: clamp(28px, 3.4vw, 40px); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.pdp-price .price-now { font-size: 26px; }
.pdp-desc { color: var(--ink-soft); margin: 0 0 22px; max-width: 52ch; }
.pdp h4.lbl { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 20px 0 10px; }

.sizes { display: flex; gap: 9px; flex-wrap: wrap; }
.size-chip {
  min-width: 46px; padding: 9px 12px; text-align: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 14px;
  transition: 0.15s;
}
.size-chip:hover { border-color: var(--rose); }
.size-chip.selected { background: var(--ink); border-color: var(--ink); color: #fbf4ee; }
.size-hint { font-size: 13px; color: var(--rose-deep); margin-top: 8px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; font-size: 18px; color: var(--ink-soft); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 34px; text-align: center; font-weight: 500; }

.pdp-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 200px; }
.stock-note { font-size: 13.5px; margin-top: 14px; }
.stock-note.ok { color: var(--good); }
.stock-note.low { color: var(--gold); }
.stock-note.out { color: var(--bad); }
.pdp-meta { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; color: var(--ink-soft); display: grid; gap: 7px; }
.pdp-meta span::before { content: '✦ '; color: var(--rose); }

/* ---------------- Cart drawer ---------------- */

.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(51, 38, 31, 0.45);
  opacity: 0; transition: opacity 0.25s;
}
.drawer-overlay.show { opacity: 1; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(420px, 94vw);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.36, 1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 22px; }
.drawer-count { color: var(--ink-soft); font-family: var(--sans); font-size: 14px; font-weight: 400; }

.drawer-ship { padding: 14px 22px 0; font-size: 13px; color: var(--ink-soft); }
.ship-bar { height: 5px; background: var(--blush); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 999px; transition: width 0.4s; }

.drawer-items { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.d-item {
  display: grid; grid-template-columns: 68px 1fr auto; gap: 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px;
}
.d-item img { width: 68px; height: 82px; object-fit: cover; border-radius: 8px; background: var(--blush-soft); }
.d-name { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.25; }
.d-size { font-size: 12px; color: var(--ink-soft); margin: 3px 0 8px; }
.d-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.d-qty button { width: 26px; height: 26px; border: 0; background: transparent; font-size: 15px; color: var(--ink-soft); }
.d-qty span { min-width: 26px; text-align: center; font-size: 13px; }
.d-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.d-price { font-weight: 600; font-size: 14.5px; }
.d-remove { border: 0; background: none; color: var(--ink-soft); font-size: 12px; text-decoration: underline; }
.d-remove:hover { color: var(--bad); }

.drawer-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.drawer-empty .big { font-size: 44px; margin-bottom: 10px; }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; background: var(--surface); }
.d-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 7px; color: var(--ink-soft); }
.d-row.total { font-size: 17px; color: var(--ink); font-weight: 600; margin: 10px 0 14px; }

/* ---------------- Checkout ---------------- */

.checkout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; margin: 34px 0 60px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.panel h2 { font-size: 24px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; background: var(--bg); outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--rose); background: #fff; }
.field .err { color: var(--bad); font-size: 12.5px; display: none; }
.field.invalid input { border-color: var(--bad); }
.field.invalid .err { display: block; }

.summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.s-item { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.s-item img { width: 46px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--blush-soft); }
.s-item .n { flex: 1; }
.s-item .q { color: var(--ink-soft); }
.secure { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; justify-content: center; }

.pay-options { display: grid; gap: 10px; margin: 6px 0 16px; }
.pay-opt {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; background: var(--bg); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pay-opt:hover { border-color: var(--rose); }
.pay-opt.selected { border-color: var(--rose); background: #fff; box-shadow: var(--shadow-sm); }
.pay-opt input { accent-color: var(--rose); margin-top: 4px; width: 16px; height: 16px; }
.pay-opt b { font-weight: 500; display: block; }
.pay-opt span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------------- Referrals ---------------- */

.card-tag.ref { background: var(--gold); }
.ref-ribbon {
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  background: linear-gradient(120deg, var(--rose), var(--rose-deep));
  color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; letter-spacing: 0.02em; box-shadow: var(--shadow-md);
}
.ref-code {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--blush-soft); border: 1px dashed var(--rose);
  border-radius: 8px; padding: 3px 9px; font-weight: 600; letter-spacing: 0.06em;
}
.ref-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.ref-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ref-link-row { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.ref-link-row input {
  flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; background: var(--bg); font-size: 13px; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip { background: var(--blush-soft); color: var(--ink); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; }
.chip b { font-weight: 600; }
details.ref-visits { margin-top: 10px; }
details.ref-visits summary { cursor: pointer; font-size: 13.5px; color: var(--rose-deep); font-weight: 500; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25d366; color: #fff; border: 0; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; text-decoration: none;
}
.wa-btn:hover { background: #1fb457; }

/* ---------------- Order confirmation ---------------- */

.confirm { max-width: 640px; margin: 50px auto 70px; text-align: center; }
.confirm-check {
  width: 84px; height: 84px; margin: 0 auto 20px;
  border-radius: 50%; display: grid; place-items: center;
  background: #e7f2ea; color: var(--good); font-size: 38px;
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.confirm h1 { font-size: 34px; font-style: italic; }
.confirm .order-id { color: var(--rose-deep); font-weight: 500; letter-spacing: 0.06em; margin: 8px 0 4px; }
.confirm .panel { text-align: left; margin-top: 26px; }

/* ---------------- Wishlist / empty states ---------------- */

.empty-state {
  text-align: center; padding: 70px 20px;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: 18px; color: var(--ink-soft);
}
.empty-state .big { font-size: 46px; margin-bottom: 12px; }

/* ---------------- Admin ---------------- */

.admin-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 18px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 34px; font-style: italic; }
.tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: none; padding: 10px 18px;
  font-size: 15px; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--ink); border-color: var(--rose); font-weight: 500; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.admin th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); padding: 13px 16px; border-bottom: 1px solid var(--line);
}
table.admin td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin tr:last-child td { border-bottom: 0; }
table.admin img { width: 44px; height: 52px; border-radius: 7px; object-fit: cover; background: var(--blush-soft); }
.row-actions { display: flex; gap: 6px; }
.mini-btn {
  border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
  padding: 6px 12px; font-size: 12.5px; color: var(--ink-soft);
}
.mini-btn:hover { border-color: var(--rose); color: var(--ink); }
.mini-btn.danger:hover { border-color: var(--bad); color: var(--bad); }

.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.order-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.order-id-badge { font-weight: 600; color: var(--rose-deep); letter-spacing: 0.05em; }
.order-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.order-lines { font-size: 13.5px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
.order-lines div { display: flex; justify-content: space-between; padding: 2px 0; }
.order-total { font-weight: 600; color: var(--ink); }

.status-pill {
  display: inline-block; background: #e7f2ea; color: var(--good);
  font-size: 12px; border-radius: 999px; padding: 3px 12px; font-weight: 500;
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(51, 38, 31, 0.5);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn 0.2s both;
}
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s both;
}
.modal h3 { font-size: 24px; margin-bottom: 18px; }
.modal .form-grid { margin-bottom: 18px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--rose); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.gate { max-width: 400px; margin: 70px auto; text-align: center; }
.gate .big { font-size: 46px; }
.gate input {
  width: 100%; margin: 18px 0; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 999px; text-align: center;
  outline: none; letter-spacing: 0.2em;
}
.gate input:focus { border-color: var(--rose); }
.gate p { color: var(--ink-soft); font-size: 13.5px; }

/* ---------------- Toasts ---------------- */

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fbf4ee;
  padding: 13px 20px; border-radius: 12px;
  font-size: 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.2, 1.2, 0.4, 1) both;
  max-width: 320px;
}
.toast.leaving { animation: toastOut 0.3s both; }
.toast.error { background: var(--bad); }
.toast.success::before { content: '✓'; color: #9fd6ac; font-weight: 700; }
.toast.error::before { content: '!'; font-weight: 700; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--ink); color: #d9c8bc; margin-top: 70px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 34px; padding: 52px 0 34px;
}
.brand-footer { color: #f7ede4; font-size: 24px; margin-bottom: 10px; }
.footer-blurb { font-size: 14px; color: #b9a499; margin: 0 0 16px; max-width: 34ch; }
.site-footer h4 { color: #f7ede4; font-family: var(--sans); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; font-size: 14px; color: #b9a499; padding: 4px 0; transition: color 0.2s; }
.site-footer a:hover { color: #f7ede4; }
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #584639; border-radius: 50%; font-size: 11.5px; letter-spacing: 0.08em;
}
.socials a:hover { border-color: var(--rose); color: #f7ede4; }
.newsletter { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; border: 1px solid #584639; background: #40322a; border-radius: 999px;
  padding: 10px 16px; color: #f7ede4; outline: none; min-width: 0;
}
.newsletter input::placeholder { color: #9a8577; }
.footer-bottom { border-top: 1px solid #4a392e; padding: 18px 0 26px; font-size: 12.5px; color: #9a8577; text-align: center; }

/* ---------------- Skeleton / loading ---------------- */

.loading { display: grid; place-items: center; padding: 80px 0; color: var(--ink-soft); font-size: 15px; letter-spacing: 0.1em; }
.loading::before { content: '❁'; font-size: 30px; margin-right: 12px; animation: spin 1.6s linear infinite; display: inline-block; }

/* ---------------- Animations ---------------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
main > * { animation: fadeUp 0.35s ease both; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1020px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 14px 24px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 4px; border-bottom: 0; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .search-wrap input { width: 120px; }
  .hero { grid-template-columns: 1fr; padding: 34px 28px; }
  .hero-img { order: -1; aspect-ratio: 16/10; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .checkout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(1200px, 100% - 28px); }
  .search-wrap { display: none; }
  .brand { font-size: 22px; }
  .perks { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section-head h2 { font-size: 24px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 15px; }
  .pdp-actions .btn { min-width: 100%; }
}
