/* =====================================================
   Joycrafts — boutique editorial design
   Palette: warm cream, ink, dusty rose, sage, soft gold
   ===================================================== */

:root {
  --bg:        #faf6ef;   /* warm cream */
  --bg-tone:   #f1e8d8;   /* deeper cream */
  --bg-warm:   #ece1cc;   /* warm sand */
  --ink:       #2a2520;   /* deep warm ink */
  --ink-soft:  #4a4137;
  --ink-mute:  #897e6e;
  --line:      #e3d9c5;   /* hairline */
  --line-2:    #d5c8ad;
  --rose:      #c08274;   /* dusty rose */
  --rose-soft: #e8c8bf;
  --sage:      #8fa18b;   /* sage */
  --gold:      #b08755;   /* soft antique gold */
  --gold-soft: #d9be8e;

  --font-serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --font-sans:  "Manrope", "Geist", system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", "Dancing Script", cursive;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 22px;

  --shadow-card: 0 1px 0 rgba(80, 60, 30, 0.04), 0 12px 28px -16px rgba(80, 60, 30, 0.16);
  --shadow-lift: 0 1px 0 rgba(80, 60, 30, 0.04), 0 22px 50px -20px rgba(80, 60, 30, 0.28);

  --maxw: 1240px;

  /* Aliases for admin templates */
  --accent: var(--gold);
  --text:   var(--ink);
  --card:   #fff;
  --border: var(--line);
  --muted:  var(--ink-mute);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p { margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-mute);
}

.hero-italic { font-style: italic; color: var(--rose); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #3a3127;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-link {
  background: transparent;
  text-decoration: underline;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.hd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.hd-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-tone);
  overflow: hidden;
  flex-shrink: 0;
}
.hd-mark img { width: 64px; height: 64px; object-fit: contain; margin-top: 4px; }
.hd-wordmark { display: flex; flex-direction: column; line-height: 1; }
.hd-word-1 { font-family: var(--font-script); font-size: 1.6rem; color: var(--ink); line-height: 0.9; }
.hd-word-2 { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.04em; color: var(--ink); margin-top: -4px; }
.hd-tag { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

.hd-nav ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.hd-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
}
.hd-nav a:hover { color: var(--ink); }
.hd-nav a.is-active { color: var(--ink); }
.hd-dot {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rose);
}

.hd-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.hd-iconbtn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.2s;
  position: relative;
}
.hd-iconbtn:hover { background: var(--bg-tone); border-color: var(--line); }
.hd-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--rose);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* ---------- Generic section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.sec-head h2 { margin: 12px 0 14px; }
.sec-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sec-head-center > * { margin: 0; }
.sec-head-center .eyebrow { margin-bottom: 14px; }
.sec-head-center h2 { margin-bottom: 16px; }

/* =========================================================
   HOME
   ========================================================= */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 32px 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 540px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-eyebrow span {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}
.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.96;
}
.hero-title > span:first-child { color: var(--ink); }
.hero-sub {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 28px 0 36px;
  max-width: 520px;
  line-height: 1.4;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 700; }
.hero-meta .dot { color: var(--line-2); }

.hero-mark {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
}
.hero-mark-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 200, 191, 0.55), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(217, 190, 142, 0.45), transparent 55%),
    var(--bg-tone);
  border-radius: 50%;
  transform: scale(0.92);
}
.hero-mark-bg::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(176, 135, 85, 0.4);
  border-radius: 50%;
}
.hero-logo {
  position: relative;
  width: 86%;
  margin: 7% auto 0;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(80, 60, 30, 0.08));
}
.hero-mark-cap {
  position: absolute;
  right: -10px;
  bottom: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-card);
  transform: rotate(4deg);
}
.hero-mark-cap small {
  font-family: var(--font-script);
  font-size: 1.05rem;
  color: var(--ink);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-strip > div {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
}
.hero-strip > div:last-child { border-right: none; }
.hero-strip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.hero-strip small {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ---------- Featured cards ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feat-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.feat-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tone);
}
.feat-img .pp { position: absolute; inset: 0; }
.feat-add {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(42, 37, 32, 0.92);
  color: var(--bg);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.feat-card:hover .feat-add { opacity: 1; transform: translateY(0); }
.feat-card:hover .feat-img { box-shadow: var(--shadow-lift); }
.feat-info { padding: 0 4px; text-decoration: none; color: inherit; display: block; }
.feat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.feat-row h3 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 500;
}
.feat-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  white-space: nowrap;
}
.feat-cat {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ---------- Story strip ---------- */
.story-strip {
  background: linear-gradient(135deg, var(--bg-tone) 0%, var(--bg-warm) 100%);
  padding: 100px 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.story-strip::before {
  content: "";
  position: absolute;
  top: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(232, 200, 191, 0.3);
  filter: blur(40px);
}
.story-strip::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(217, 190, 142, 0.25);
  filter: blur(60px);
}
.story-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.story-img { position: relative; aspect-ratio: 1 / 1; }
.story-img-inner { position: relative; width: 100%; height: 100%; }
.story-ph {
  position: absolute;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.story-img .story-ph:first-of-type {
  inset: 0 30% 30% 0;
  box-shadow: var(--shadow-lift);
}
.story-ph-2 {
  inset: 40% 0 0 40% !important;
  box-shadow: var(--shadow-card);
}
.ph-label {
  font-family: var(--font-script);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.story-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
}
.story-copy .eyebrow { margin-bottom: 16px; display: block; }
.story-copy h2 { margin-bottom: 24px; line-height: 1.05; }
.story-copy p { margin-bottom: 18px; font-size: 1.05rem; color: var(--ink-soft); max-width: 460px; }
.story-sig {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--rose);
  padding-left: 14px;
  margin: 30px 0 22px;
}
.sig-name { font-family: var(--font-script); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.sig-role { font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Process ---------- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-step {
  background: var(--bg);
  padding: 36px 28px;
  transition: background 0.3s;
}
.process-step:hover { background: var(--bg-tone); }
.process-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.process-step h4 { margin-bottom: 10px; font-size: 1.25rem; }
.process-step p { color: var(--ink-mute); font-size: 0.94rem; }

/* ---------- Instagram strip ---------- */
.ig-strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 32px;
}
.ig-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
}
.ig-head h3 { font-size: 1.8rem; margin-top: 12px; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.ig-tile {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.ig-tile .pp { position: absolute; inset: 0; }
.ig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45));
  display: grid;
  align-items: end;
  padding: 12px;
  color: white;
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.ig-tile:hover .ig-overlay { opacity: 1; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 880px;
  margin: 40px auto 100px;
  padding: 60px 32px;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.6;
  color: var(--rose-soft);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 30px;
  text-wrap: balance;
}
.quote-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =========================================================
   PRODUCT PLACEHOLDER
   ========================================================= */
.pp {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.pp-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.05) 0, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.18) 0, transparent 30%);
}
.pp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.pp-shape {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.pp-corner {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--ink);
}
.pp-small .pp-corner, .pp-square .pp-corner { display: none; }

/* =========================================================
   SHOP — inline section on home page
   ========================================================= */
.shop-section {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 60px 32px 100px;
  scroll-margin-top: 80px;
}
.shop-section .shop-head-inner {
  text-align: center;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.shop-section .shop-head-inner h2 { margin: 14px 0 14px; font-size: clamp(2rem, 4vw, 3rem); }
.shop-section .shop-head-inner p { color: var(--ink-mute); }
.shop-section .shop-controls {
  padding: 0;
  margin-bottom: 32px;
}
.shop-section .shop-grid {
  padding: 0;
  max-width: none;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-tone);
}
.empty-state .empty-logo {
  width: 140px;
  margin: 0 auto 18px;
  opacity: 0.6;
}
.empty-state p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-mute);
  max-width: 480px;
  margin: 0 auto;
}

.prod-img > img,
.prod-img > .pp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-img > img,
.feat-img > .pp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-thumb > img,
.cart-thumb > .pp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flash messages */
.flash-messages {
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-tone);
}
.alert-success { background: #e3ebe2; border-color: #b9cdb5; color: #2d4a2a; }
.alert-danger { background: #f3dad6; border-color: #d8a39a; color: #6a2a23; }
.alert-warning { background: #f4ead0; border-color: #d6b266; color: #5a3f10; }
.alert-info { background: #e4ebee; border-color: #a8bac1; color: #2d3e44; }

/* Error pages */
.error-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 32px 120px;
  text-align: center;
}
.error-page .error-logo {
  width: 160px;
  margin: 0 auto 24px;
  opacity: 0.75;
}
.error-page .eyebrow { font-family: var(--font-serif); font-size: 0.9rem; color: var(--gold); }
.error-page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 14px 0 16px; }
.error-page p { color: var(--ink-mute); margin-bottom: 32px; font-size: 1.05rem; }

/* =========================================================
   SHOP (standalone, legacy)
   ========================================================= */
.shop-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-tone) 0%, var(--bg) 100%);
}
.shop-head-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 32px 56px;
  text-align: center;
}
.shop-head h1 { margin: 14px 0 16px; }
.shop-head p { color: var(--ink-mute); font-size: 1.05rem; }

.shop-controls {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  padding-right: 1.4rem;
}
.chip-dot {
  position: absolute;
  right: 0.7rem; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--rose);
  border-radius: 50%;
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-mute);
}
.shop-sort select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.shop-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.prod-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}
.prod-img {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tone);
  transition: transform 0.3s;
}
.prod-img .pp { position: absolute; inset: 0; }
.prod-card:hover .prod-img { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.prod-add {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s;
}
.prod-card:hover .prod-add { opacity: 1; transform: translateY(0); }
.prod-add:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prod-img-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.prod-add { z-index: 2; }
.prod-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0 4px;
  text-decoration: none;
  color: inherit;
}
.prod-meta h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.prod-meta small { color: var(--ink-mute); font-size: 0.8rem; }
.prod-meta strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
}

/* =========================================================
   PRODUCT DETAIL PAGE (.pd)
   ========================================================= */
.pd-back {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 32px 0;
}
.pd-back .link-arrow { font-size: 0.86rem; }
.pd {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 32px 100px;
}
.pd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}
.pd-img {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pd-img-main {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tone);
}
.pd-img-main > img,
.pd-img-main > .pp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-thumb {
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  border: 1px solid transparent;
  background: var(--bg-tone);
}
.pd-thumb:hover, .pd-thumb.is-on { opacity: 1; border-color: var(--ink); }
.pd-thumb > img, .pd-thumb > .pp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb-empty { display: grid; place-items: center; opacity: 0.4; }
.pd-thumb-empty span {
  font-family: var(--font-script);
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.pd-info { padding-top: 8px; }
.pd-info h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 14px 0 22px; }
.pd-price {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pd-price strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 500;
}
.pd-stock {
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pd-note {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.pd-description {
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}
.pd-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  margin: 0 0 32px;
}
.pd-details div { border-top: 1px solid var(--line); padding-top: 12px; }
.pd-details dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.pd-details dd { margin: 0; font-size: 0.95rem; color: var(--ink); }
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.pd-payment-note {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin: -12px 0 24px;
  line-height: 1.5;
}
.pd-aux {
  display: flex;
  gap: 24px;
  font-size: 0.86rem;
  color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pd-aux a { text-decoration: none; }

/* =========================================================
   PRODUCT MODAL (legacy — kept for any modal usage)
   ========================================================= */
.pm-scrim {
  position: fixed; inset: 0;
  background: rgba(42, 37, 32, 0.55);
  backdrop-filter: blur(6px);
  z-index: 80;
  animation: fadeIn 0.2s ease;
}
.pm {
  position: fixed;
  inset: 5vh 6vw;
  z-index: 81;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.35);
  overflow: auto;
  animation: rise 0.3s cubic-bezier(.2,.7,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pm-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-tone);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  z-index: 2;
}
.pm-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pm-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 48px 56px;
  min-height: 100%;
}
.pm-img {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-img > .pp {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  position: relative;
  flex: none;
  height: auto;
  width: 100%;
}
.pm-img > div:first-child {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.pm-thumbs { display: flex; gap: 12px; }
.pm-thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  border: 1px solid transparent;
}
.pm-thumb:hover, .pm-thumb.is-on { opacity: 1; border-color: var(--ink); }
.pm-thumb .pp { position: absolute; inset: 0; }

.pm-info { padding-top: 20px; }
.pm-info h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 14px 0 22px; }
.pm-price {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.pm-price strong {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 500;
}
.pm-stock {
  font-size: 0.82rem;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pm-note {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.pm-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 30px;
  margin: 0 0 32px;
}
.pm-details div { border-top: 1px solid var(--line); padding-top: 12px; }
.pm-details dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.pm-details dd { margin: 0; font-size: 0.95rem; color: var(--ink); }
.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.pm-aux {
  display: flex;
  gap: 24px;
  font-size: 0.86rem;
  color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* =========================================================
   STORY (About)
   ========================================================= */
.story-head {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.story-head-inner h1 { margin: 14px 0 20px; line-height: 1.02; }
.story-head-logo img {
  max-width: 280px;
  margin-left: auto;
  opacity: 0.95;
}
.story-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}
.story-col .lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
}
.story-col p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 18px; }
.story-side { display: flex; flex-direction: column; gap: 24px; }
.story-stat {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tone);
}
.story-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 500;
}
.story-stat small { color: var(--ink-mute); font-size: 0.88rem; }

.values {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 32px;
  background: var(--bg-tone);
  border-radius: var(--radius-lg);
  margin-bottom: 80px;
}
.values { padding: 60px 56px; }
.values h2 { margin-bottom: 12px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-top: 40px;
}
.value h4 { margin: 10px 0 8px; font-size: 1.3rem; }
.value p { color: var(--ink-soft); }

.story-cta {
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 60px 32px;
  text-align: center;
}
.story-cta h3 { font-size: 2rem; margin-bottom: 14px; }
.story-cta p { color: var(--ink-mute); margin-bottom: 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-head {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  text-align: center;
}
.contact-head h1 { margin: 14px 0 16px; }
.contact-head p { color: var(--ink-mute); font-size: 1.1rem; }
.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 100px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label > span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-tone);
  border: 1px solid transparent;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg);
}
.contact-form textarea { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.5; resize: vertical; }
.contact-form .btn { align-self: flex-start; margin-top: 8px; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card-soft { background: var(--bg-warm); border-color: transparent; }
.contact-card h4 { font-size: 1.2rem; margin: 8px 0 10px; }
.contact-big {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-mini { font-size: 0.88rem; color: var(--ink-mute); }

.contact-sent {
  background: var(--bg-tone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
}
.contact-sent h3 { margin: 16px 0 8px; }
.contact-sent p { color: var(--ink-mute); margin-bottom: 24px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 40px;
}
.ft-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 50px;
}
.ft-col h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 18px;
}
.ft-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
.ft-col a:hover { color: white; }
.ft-brand .ft-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  filter: invert(1);
  margin-bottom: 18px;
  opacity: 0.95;
}
.ft-tag { color: rgba(255,255,255,0.75); font-size: 0.94rem; line-height: 1.5; }
.ft-note { color: rgba(255,255,255,0.7); font-size: 0.86rem; margin-bottom: 14px; }
.ft-news { display: flex; align-items: stretch; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 4px; margin-bottom: 18px; }
.ft-news input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 8px 0;
  font-family: inherit;
  font-size: 0.92rem;
}
.ft-news input::placeholder { color: rgba(255,255,255,0.5); }
.ft-news input:focus { outline: none; }
.ft-news button {
  background: transparent;
  border: none;
  color: var(--gold-soft);
  font-size: 1.1rem;
  padding: 0 6px;
  cursor: pointer;
}
.ft-social { display: flex; gap: 18px; }
.ft-social a {
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.ft-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-scrim {
  position: fixed; inset: 0;
  background: rgba(42, 37, 32, 0.4);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-scrim.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--bg);
  z-index: 91;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,0.2);
}
.cart.is-open { transform: translateX(0); }
.cart-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cart-head small { color: var(--ink-mute); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.cart-head h3 { font-size: 1.6rem; margin-top: 6px; }
.cart-close {
  background: transparent;
  border: 1px solid var(--line);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--ink);
}
.cart-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cart-body { flex: 1; overflow: auto; padding: 24px 32px; }
.cart-empty {
  text-align: center;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cart-empty img { width: 140px; opacity: 0.5; }
.cart-empty p { font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: var(--ink-mute); }
.cart-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 70px; height: 70px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.cart-thumb .pp { position: absolute; inset: 0; }
.cart-info strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; margin-bottom: 2px; }
.cart-info small { color: var(--ink-mute); font-size: 0.82rem; }
.cart-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
.cart-qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-tone);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
}
.cart-qty span { padding: 0 8px; min-width: 28px; text-align: center; font-weight: 600; }
.cart-qty button.is-capped { opacity: 0.5; cursor: help; }
.cart-qty button.is-capped:hover { background: #f4d6d6; color: #8a2a2a; border-color: #c98a8a; }
.cart-remove {
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  font-size: 0.78rem !important;
  color: var(--ink-mute) !important;
  margin-left: 10px;
  text-decoration: underline;
  padding: 0 !important;
  border-radius: 0 !important;
}
.cart-price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold);
}
.cart-foot {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-tone);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.cart-row strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.cart-ship { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 16px; }

/* =========================================================
   ADMIN PAGER (shared across orders / dashboard)
   ========================================================= */
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
  padding: 0.8rem 1rem;
  background: #f7f3ec;
  border: 1px solid #e8dec9;
  border-radius: 8px;
  font-size: 0.9rem;
}
.admin-pager .pager-per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.admin-pager .pager-per-page select {
  padding: 0.3rem 0.5rem;
  border: 1px solid #d6c8a9;
  border-radius: 4px;
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
}
.admin-pager .pager-info { color: #6b5d3f; }
.admin-pager .pager-nav { display: flex; align-items: center; gap: 0.6rem; }
.admin-pager .pager-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  background: white;
  border: 1px solid #d6c8a9;
  color: #5a3a1f;
}
.admin-pager .pager-btn:hover { background: #fff7e6; }
.admin-pager .pager-btn.is-disabled {
  color: #b3a585;
  background: transparent;
  border-color: #e8dec9;
  cursor: default;
  pointer-events: none;
}
.admin-pager .pager-status { color: #5a3a1f; }
.admin-pager .pager-jump {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #5a3a1f;
}
.admin-pager .pager-jump input[type="number"] {
  width: 64px;
  padding: 0.3rem 0.5rem;
  border: 1px solid #d6c8a9;
  border-radius: 4px;
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: center;
  -moz-appearance: textfield;
}
.admin-pager .pager-jump input[type="number"]::-webkit-outer-spin-button,
.admin-pager .pager-jump input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 640px) {
  .admin-pager { flex-direction: column; align-items: stretch; }
  .admin-pager .pager-nav { justify-content: center; flex-wrap: wrap; }
}

/* =========================================================
   ADMIN SEARCH (filter input + autocomplete dropdown)
   ========================================================= */
.admin-search {
  position: relative;
  margin: 0 auto 1.5rem;
  max-width: 680px;
}
.admin-search input[type="search"] {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3.1rem;
  border: 1px solid #d6c8a9;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcf8ef 100%)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a5a2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>")
    no-repeat 1rem center;
  font-family: inherit;
  font-size: 1.05rem;
  color: #5a3a1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 8px -2px rgba(176, 135, 85, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.admin-search input[type="search"]::placeholder {
  color: #b3a07a;
  font-style: italic;
}
.admin-search input[type="search"]:hover {
  border-color: #c2a87d;
}
.admin-search input[type="search"]:focus {
  outline: none;
  border-color: #8a5a2d;
  box-shadow:
    0 0 0 4px rgba(176, 135, 85, 0.18),
    0 10px 24px -12px rgba(0, 0, 0, 0.18);
  background-color: #fff;
}
.admin-search .admin-search-clear {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8a5a2d;
  background: #f3ead5;
  border: 1px solid #e0d2ab;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}
.admin-search .admin-search-clear:hover {
  background: #e8d9b3;
  color: #5a3a1f;
}

.admin-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d6c8a9;
  border-radius: 8px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.25);
  z-index: 50;
  max-height: 380px;
  overflow-y: auto;
}
.admin-search-dropdown ul { list-style: none; margin: 0; padding: 0.3rem 0; }
.admin-search-dropdown li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  color: #3d3024;
  font-size: 0.94rem;
}
.admin-search-dropdown li.is-active,
.admin-search-dropdown li:hover { background: #fff7e6; }
.admin-search-dropdown .ad-ico {
  font-size: 1.05rem;
  width: 1.4rem;
  display: inline-flex;
  justify-content: center;
}
.admin-search-dropdown .ad-label { flex: 1; }
.admin-search-dropdown mark {
  background: #ffe5a8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* =========================================================
   ADMIN BREADCRUMB (shared across orders / pages editor)
   ========================================================= */
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0.65rem 0.9rem;
  background: #f7f3ec;
  border: 1px solid #e8dec9;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #5a3a1f;
}
.admin-breadcrumb a {
  color: #8a5a2d;
  text-decoration: none;
  font-weight: 700;
}
.admin-breadcrumb a:hover { color: #5a3a1f; text-decoration: underline; }
.admin-breadcrumb .crumb-sep { color: #b3a585; }
.admin-breadcrumb .crumb-current { color: #5a3a1f; font-weight: 600; }

/* =========================================================
   ADMIN TABLE HEADER (sortable + filter row)
   ========================================================= */
.is-sortable thead .th-titles th {
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.is-sortable .sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}
.is-sortable .sort-link:hover { color: #8a5a2d; }
.is-sortable .sort-link.is-active { color: #5a3a1f; }
.is-sortable .sort-arrow {
  font-size: 0.75rem;
  color: #8a5a2d;
}
.is-sortable .sort-arrow-idle { opacity: 0.35; }

.is-sortable thead .th-filters th {
  padding: 0.4rem 0.6rem 0.6rem;
  background: #fcfaf4;
  border-bottom: 1px solid #e8dec9;
  font-weight: 400;
}
.is-sortable thead .th-filters select {
  width: 100%;
  max-width: 220px;
  padding: 0.3rem 0.5rem;
  border: 1px solid #d6c8a9;
  border-radius: 6px;
  background: white;
  font-family: inherit;
  font-size: 0.85rem;
  color: #5a3a1f;
}
.is-sortable thead .th-filters select:focus {
  outline: none;
  border-color: #8a5a2d;
  box-shadow: 0 0 0 3px rgba(176, 135, 85, 0.15);
}

/* =========================================================
   DID YOU MEAN banner
   ========================================================= */
.did-you-mean {
  max-width: 680px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1.1rem;
  background: #fff7e6;
  border: 1px solid #e6c896;
  border-left: 4px solid #c08274;
  border-radius: 8px;
  color: #5a3a1f;
  font-size: 0.95rem;
  text-align: center;
}
.did-you-mean a {
  color: #8a5a2d;
  font-weight: 700;
  text-decoration: none;
}
.did-you-mean a:hover { text-decoration: underline; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  top: 88px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: min(560px, 92vw);
  z-index: 200;
  box-shadow: 0 18px 42px -10px rgba(0,0,0,0.45);
  animation: toastIn 0.25s ease;
}
.toast.is-warn {
  background: #8a2a2a;
  color: #fff;
}
.toast.is-warn svg { fill: #ffd6a0; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 640px) {
  .toast { top: 76px; padding: 14px 20px; font-size: 0.95rem; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hd-inner { padding: 12px 20px; grid-template-columns: 1fr auto; }
  .hd-nav { display: none; }
  .hero { padding: 40px 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-mark { max-width: 380px; margin: 0 auto; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip > div:nth-child(2n) { border-right: none; }
  .hero-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
  .section { padding: 60px 20px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .feat-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-img { max-width: 400px; margin: 0 auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-head-inner { padding: 50px 20px 30px; }
  .shop-controls { padding: 20px 20px 0; }
  .shop-grid { padding: 30px 20px 60px; }
  .pm { inset: 0; border-radius: 0; }
  .pm-grid { grid-template-columns: 1fr; gap: 30px; padding: 24px; padding-top: 70px; }
  .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd { padding: 20px 20px 60px; }
  .pd-back { padding: 16px 20px 0; }
  .shop-section { padding: 40px 20px 60px; }
  .story-head { grid-template-columns: 1fr; padding: 50px 20px 20px; }
  .story-head-logo img { max-width: 180px; margin: 0; }
  .story-body { grid-template-columns: 1fr; gap: 40px; padding: 30px 20px 60px; }
  .values { padding: 40px 24px; margin: 0 20px 60px; }
  .values-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 30px 20px 60px; }
  .contact-form { padding: 28px; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 20px 30px; }
  .ft-base { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 540px) {
  .feat-grid, .shop-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr; }
  h1 { font-size: 2.4rem; }

  /* Story / Alexia section: stop the absolute-positioned placeholder photos from
     overlapping each other and the headline below. Stack them vertically. */
  .story-strip { padding: 60px 0; }
  .story-img { aspect-ratio: auto; max-width: 100%; height: auto; }
  .story-img-inner { display: flex; flex-direction: column; gap: 14px; height: auto; }
  .story-img-inner .story-ph,
  .story-img-inner .story-ph-2 {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: 220px;
    border-radius: var(--radius);
  }
}

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  transform: translateY(-100%);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 8px 32px -8px rgba(42,37,32,0.12);
}
.search-overlay.is-open { transform: translateY(0); }
.search-overlay form { flex: 1; display: flex; gap: 10px; position: relative; }
/* Anchor the autocomplete dropdown (injected by admin-search.js as the input's
   next sibling) to the form. Width tracks the form so the dropdown stops where
   the submit button starts. */
.search-overlay form .admin-search-dropdown {
  top: calc(100% + 6px);
  left: 0;
  right: 92px; /* leave room for the round "Caută" pill */
  border-radius: 12px;
  border-color: #e8dec9;
}
.search-overlay form .admin-search-dropdown li {
  padding: 0.7rem 1rem;
  font-size: 0.98rem;
}
.search-overlay input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--line-2);
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink);
  padding: 6px 2px;
  outline: none;
}
.search-overlay input::placeholder { color: var(--ink-mute); }
.search-overlay input:focus { border-bottom-color: var(--gold); }
.search-overlay .search-submit {
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.search-overlay .search-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
/* Search results page */
.search-results-head {
  max-width: var(--maxw);
  margin: 60px auto 40px;
  padding: 0 32px;
}
.search-results-head h1 { font-size: clamp(1.8rem,4vw,2.8rem); }
.search-results-head p { color: var(--ink-mute); margin-top: 8px; }
.search-empty {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 0 32px;
}
.search-empty img { width: 80px; margin: 0 auto 20px; opacity: 0.5; }
.search-empty p { color: var(--ink-mute); }

/* Out-of-stock styling for shop cards and product page */
.prod-soldout {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.94);
  border: 1px solid #c98a8a;
  color: #8a2a2a;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}
.prod-card.is-soldout .prod-img img,
.prod-card.is-soldout .prod-img .pp { filter: grayscale(0.4); opacity: 0.85; }
.prod-card.is-soldout .prod-meta h3 { color: var(--ink-mute); }

.pd-stock.is-out { color: #8a2a2a; }
.pd-actions .btn-soldout {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: center;
  background: #f4e6e6;
  color: #8a2a2a;
  border: 1px dashed #c98a8a;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
}
