/* ==========================================================================
   COOKRIE — cookrie studio pottery
   Editorial, handcrafted, warm. Fraunces (serif) + Inter (sans).
   ========================================================================== */

:root {
  /* Warm neutrals */
  --ivory:      #FBF7F0;   /* page background */
  --cream:      #F4ECE0;   /* panels */
  --cream-deep: #EBDFCD;   /* recessed / hover */
  --sand:       #E4D7C3;
  --greige:     #D8CBB8;

  /* Ink */
  --ink:        #241F1B;   /* headings */
  --charcoal:   #2E2822;   /* body text */
  --taupe:      #877663;   /* secondary text */
  --taupe-soft: #A99883;

  /* Accents (used sparingly) */
  --terracotta:      #B5654A;
  --terracotta-dark: #97503A;
  --olive:      #6C6A4C;

  --white:      #FFFFFF;
  --line:       #E6DBC9;
  --line-soft:  #EFE7D9;
  --ok:         #4B7A57;
  --err:        #B23B3B;

  --radius:     4px;
  --radius-img: 10px;
  --shadow:     0 10px 40px rgba(43, 33, 24, 0.08);
  --shadow-sm:  0 2px 14px rgba(43, 33, 24, 0.06);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.page { padding: 40px 24px 72px; max-width: var(--maxw); margin: 0 auto; }
.muted { color: var(--taupe); }
.small { font-size: .85rem; }
.text-right { text-align: right; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}
.display { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 0.98; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--taupe); max-width: 46ch; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--ivory) 96%, transparent);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px;
  transition: padding .3s var(--ease);
}
.site-header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex: none; }
.site-nav { flex: none; }
.header-inner { flex-wrap: nowrap; }
.brand:hover { color: inherit; }
.brand img { height: 68px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand img { height: 54px; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .28em; color: var(--ink); }
.brand-tag { font-family: var(--sans); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); margin-top: 5px; }

.nav-toggle { display: inline-flex; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; padding: 4px; line-height: 1; }

.site-nav { display: none; }
.site-nav a {
  color: var(--charcoal); font-size: .92rem; letter-spacing: .02em;
  position: relative; padding: 4px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--terracotta); transition: width .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }
.nav-links { display: flex; gap: 22px; }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.cart-link { position: relative; }
.logout-form { display: inline-flex; margin: 0; }
.linkbtn {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: .92rem; letter-spacing: .02em; color: var(--charcoal);
}
.linkbtn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.mobile-nav .m-actions .linkbtn { font-size: .95rem; }
.cart-badge {
  position: absolute; top: -8px; right: -12px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--terracotta); color: #fff; font-size: .66rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* The bar carries nine items (Shop … Cart) and needs about 980px to lay out
   at its natural size. Switching to the horizontal nav any earlier squeezes
   the brand lockup and crowds the links, so anything narrower gets the
   hamburger drawer — which lists exactly the same destinations. */
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 30px; }
}
@media (min-width: 1240px) {
  .site-nav { gap: 40px; }
  .nav-links { gap: 28px; }
  .nav-actions { gap: 20px; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ivory);
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform .4s var(--ease);
  visibility: hidden;
}
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-nav .close { align-self: flex-end; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.mobile-nav nav a {
  font-family: var(--serif); font-size: 1.8rem; color: var(--ink);
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .m-actions { margin-top: auto; display: flex; gap: 20px; padding-top: 20px; }
.mobile-nav .m-actions a { font-size: .95rem; }

/* Flash ------------------------------------------------------------------- */
.flash { padding: 12px 0; font-size: .92rem; }
.flash-success { background: #E9F1EA; color: var(--ok); }
.flash-error   { background: #F6E6E6; color: var(--err); }
.flash-info    { background: var(--cream); color: var(--charcoal); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--ivory); border: 1px solid var(--ink);
  cursor: pointer; font: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  text-align: center; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: translateY(-1px); }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--greige); }
.btn-outline:hover { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.btn[disabled], .btn:disabled { background: var(--greige); border-color: var(--greige); color: var(--white); cursor: not-allowed; transform: none; }

/* Editorial arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--ink);
}
.link-arrow .a { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--terracotta); }
.link-arrow:hover .a { transform: translateX(6px); }

/* Forms ------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .78rem; letter-spacing: .04em; color: var(--taupe); margin-bottom: 6px; }
.input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); font: inherit; color: var(--charcoal);
}
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; border-color: var(--terracotta); }
textarea { min-height: 100px; resize: vertical; }

/* Quantity stepper -------------------------------------------------------- */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.qty-stepper .qty-btn {
  width: 44px; min-height: 44px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 1.15rem; line-height: 1; color: var(--charcoal);
  display: flex; align-items: center; justify-content: center; user-select: none; -webkit-tap-highlight-color: transparent;
}
.qty-stepper .qty-btn:hover { background: var(--sand); }
.qty-stepper .qty-btn:active { background: var(--line); }
.qty-stepper .qty-input {
  width: 56px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  border-radius: 0; padding: 12px 4px; -moz-appearance: textfield;
}
.qty-stepper .qty-input:focus { outline: 2px solid var(--terracotta); outline-offset: -2px; }
.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.narrow { max-width: 440px; margin: 32px auto; }

/* Product grid + cards ---------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 18px; }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { background: transparent; border: 0; border-radius: 0; overflow: visible; display: block; }
.product-card .thumb {
  aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; border-radius: var(--radius-img);
  position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* A gentle push-in with a hint of tilt, so the piece feels picked up. */
.product-card:hover .thumb img { transform: scale(1.09) rotate(-1.2deg); }
.product-card .info { padding: 14px 2px 4px; }
.product-card .name { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.product-card .name:hover { color: var(--terracotta); }
.product-card .thumb a { display: block; width: 100%; height: 100%; }
.product-card .price { color: var(--taupe); margin-top: 4px; font-size: .95rem; }
.product-card .card-meta { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-top: 4px; }
.product-card .info .card-meta:first-child { margin-top: 0; margin-bottom: 4px; }

/* Discounted prices ------------------------------------------------------- */
.price-now { color: var(--ink); }
.price-was { color: var(--taupe); margin-left: 6px; font-size: .85em; text-decoration: line-through; }
.price-off {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  background: var(--terracotta); color: #fff; font-family: var(--sans);
  font-size: .66rem; letter-spacing: .06em; vertical-align: middle;
}
.pdp-info .price .price-was { font-size: 1rem; }
.pdp-info .price .price-off { font-size: .7rem; }
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1 1 auto; min-width: 140px; text-align: center; }
.product-card .soldout { display:inline-block; margin-top:6px; font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; color: var(--terracotta); }

/* Tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { color: var(--taupe); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }

/* Utilities --------------------------------------------------------------- */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.between { justify-content: space-between; align-items: center; }
.stack > * + * { margin-top: 14px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 40px; font-size: .72rem; letter-spacing: .06em; background: var(--cream); color: var(--charcoal); border: 1px solid var(--line); }

/* ==========================================================================
   Editorial / homepage components
   ========================================================================== */

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Full-bleed hero: background image + overlaid copy on the left */
.home-hero { position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(560px, 90vh, 860px); background: var(--cream); }
.home-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(246,238,228,0.94) 0%,
    rgba(246,238,228,0.82) 26%,
    rgba(246,238,228,0.45) 46%,
    rgba(246,238,228,0.0) 66%); }
.home-hero-inner { position: relative; z-index: 2; width: 100%; }
.home-hero-copy { max-width: 640px; }
.home-hero-copy .hero-title { font-size: clamp(3.6rem, 11vw, 7.6rem); white-space: nowrap; margin: 6px 0 10px; }
.home-hero-copy .lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 34ch; }

@media (max-width: 680px) {
  .home-hero { align-items: flex-end; min-height: 88vh; }
  .home-hero-bg { object-position: 66% top; }
  .home-hero::after { background: linear-gradient(0deg,
    rgba(246,238,228,0.97) 0%,
    rgba(246,238,228,0.9) 30%,
    rgba(246,238,228,0.5) 52%,
    rgba(246,238,228,0.05) 78%); }
  .home-hero-copy { max-width: none; padding-bottom: 8px; }
}

/* Hero */
.hero-editorial {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: clamp(48px, 8vw, 110px) 0 clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-editorial .kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-editorial .kicker .line { height:1px; width:44px; background: var(--greige); display:inline-block; }
.hero-editorial .kicker .eyebrow { white-space: nowrap; }
.hero-title { font-size: clamp(3rem, 10vw, 6rem); line-height: 1; letter-spacing: .015em; color: var(--ink); margin: 0 0 10px; }
.hero-tag { font-family: var(--sans); font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: var(--taupe); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 30px; }

@media (min-width: 900px) {
  .hero-editorial { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

/* Landscape editorial image */
.landscape { position: relative; border-radius: var(--radius-img); overflow: hidden; background: var(--cream); }
.landscape img { width: 100%; height: 100%; object-fit: cover; }
.landscape-tall { aspect-ratio: 3 / 4; max-height: 88vh; }
.landscape-caption {
  position: absolute; left: 28px; bottom: 26px; color: var(--ivory);
  font-family: var(--serif); font-size: clamp(1.3rem,2.4vw,2rem); text-shadow: 0 1px 20px rgba(0,0,0,.3);
  max-width: 60%;
}

/* Full-bleed landscape band */
.landscape-band { position: relative; overflow: hidden; }
.landscape-band .inner { display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch; }
@media (min-width: 900px) { .landscape-band .inner { grid-template-columns: 0.9fr 1.1fr; } }
.landscape-band .copy { padding: clamp(40px, 6vw, 90px) 24px; display: flex; flex-direction: column; justify-content: center; }
.landscape-band .media { position: relative; min-height: clamp(320px, 52vh, 560px); overflow: hidden; }
.landscape-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Compact contact band (no tall min-height, tighter padding) */
.contact-band { padding-top: clamp(26px,3.5vw,44px); padding-bottom: clamp(26px,3.5vw,44px); }
.contact-band .inner { min-height: 0; align-items: center; }
.contact-band .copy { padding-top: 0; padding-bottom: 0; }
.contact-band .media { min-height: 0; }
.contact-band h2 { margin-bottom: 6px; }
.contact-band .contact-list { margin-top: 10px; }
.contact-band .contact-list li { padding: 8px 0; }
.contact-band .contact-list a { font-size: 1.05rem; }
.contact-band .contact-list .k { margin-bottom: 2px; }

/* QR variant: show the full code, centered, not cropped */
.landscape-band .media--qr { display: flex; align-items: center; justify-content: center; padding: clamp(14px, 2vw, 24px); overflow: visible; min-height: 0; }
.landscape-band .media--qr a { display: block; line-height: 0; }
.landscape-band .media--qr img.qr { position: static; inset: auto; width: auto; height: auto;
  max-width: min(240px, 70%); max-height: 250px; object-fit: contain; border-radius: 16px; display: block;
  transition: transform .4s var(--ease); }
.landscape-band .media--qr a:hover img.qr { transform: translateY(-3px); }

/* Featured split (asymmetric) */
.featured-split { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px) {
  .featured-split { grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
  .featured-split .stack-two { display: flex; flex-direction: column; gap: 32px; }
}

/* Collections */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 820px) { .collection-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.collection-tile { position: relative; display: block; border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 3 / 4; background: var(--cream); }
.collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collection-tile::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(30,22,16,.5), rgba(30,22,16,0) 55%); transition: background .4s var(--ease); }
.collection-tile:hover img { transform: scale(1.07); }
.collection-tile:hover::after { background: linear-gradient(to top, rgba(30,22,16,.62), rgba(30,22,16,.06) 60%); }
.collection-tile .label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; color: var(--ivory);
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.collection-tile .label .a { opacity: 0; transform: translateX(-6px); transition: all .35s var(--ease); }
.collection-tile:hover .label .a { opacity: 1; transform: translateX(0); }

/* Featured piece */
.featured-piece { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 860px) { .featured-piece { grid-template-columns: 1.1fr 0.9fr; gap: 60px; } }
.featured-piece .media { border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 4/5; background: var(--cream); }
.featured-piece .media img { width:100%; height:100%; object-fit: cover; }

/* Process */
.process-list { border-top: 1px solid var(--line); }
.process-step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease);
}
.process-step:hover { padding-left: 12px; }
.process-step .num { font-family: var(--serif); font-size: 1.1rem; color: var(--terracotta); letter-spacing: .1em; }
.process-step .t { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); }
.process-step .d { color: var(--taupe); font-size: .95rem; margin-top: 4px; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
.ig-grid a { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 6px; background: var(--cream); }
.ig-grid img { width:100%; height:100%; object-fit: cover; transition: transform .9s var(--ease); }
.ig-grid a:hover img { transform: scale(1.08); }

/* Studio / about */
.studio { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 860px) { .studio { grid-template-columns: 1fr 1fr; gap: 60px; } }
.studio .media { border-radius: var(--radius-img); overflow: hidden; background: var(--cream); }
.studio .media img { width:100%; height:auto; display:block; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list a { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--ink); }
.contact-list a:hover { color: var(--terracotta); }
.contact-list .k { display:block; font-family: var(--sans); font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color: var(--taupe); margin-bottom: 4px; }
.contact-list .v { font-style: normal; font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink); line-height: 1.45; }

/* Divider rule */
.rule { height:1px; background: var(--line); border:0; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--cream); margin-top: 0; padding: clamp(36px,4vw,52px) 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; } }
.site-footer .f-brand .brand-name { color: var(--ivory); letter-spacing: .28em; font-size: 1.2rem; }
.site-footer .f-brand .brand-tag { color: var(--taupe-soft); font-size:.58rem; letter-spacing:.3em; text-transform:uppercase; display:block; margin-top:8px; }
.site-footer .f-brand p { color: var(--taupe-soft); max-width: 34ch; margin-top: 14px; font-size: .9rem; }
.f-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-soft); font-weight: 600; margin-bottom: 14px; }
.f-col a { display: block; color: var(--cream); font-size: .92rem; padding: 5px 0; }
.f-col a:hover { color: var(--terracotta); }
.f-address { font-style: normal; color: var(--cream); font-size: .92rem; line-height: 1.55; margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: var(--taupe-soft); font-size: .82rem; }
.footer-bottom a { color: var(--taupe-soft); }
.footer-bottom a:hover { color: var(--cream); }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.pdp-gallery .main { position: relative; border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 4/5; background: var(--cream); }
.pdp-gallery .main img { width:100%; height:100%; object-fit: cover; }
.pdp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--ivory) 88%, transparent); color: var(--ink);
  font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background .2s var(--ease), transform .2s var(--ease); }
.pdp-arrow:hover { background: var(--ivory); }
.pdp-arrow:active { transform: translateY(-50%) scale(0.94); }
.pdp-arrow.prev { left: 12px; }
.pdp-arrow.next { right: 12px; }
.pdp-counter { position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--ivory);
  font-size: .74rem; letter-spacing: .04em; padding: 3px 10px; border-radius: 20px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--line); transition: border-color .25s var(--ease); }
.pdp-thumbs img:hover, .pdp-thumbs img.active { border-color: var(--terracotta); }
.pdp-info .price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.pdp-meta { margin-top: 22px; border-top: 1px solid var(--line); }
.pdp-meta details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.pdp-meta summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display:flex; justify-content:space-between; }
.pdp-meta summary::-webkit-details-marker { display:none; }
.pdp-meta summary::after { content: "+"; color: var(--taupe); }
.pdp-meta details[open] summary::after { content: "–"; }
.pdp-meta .body { padding: 0 0 16px; color: var(--taupe); }

/* ==========================================================================
   Scroll reveal animations
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="fade"] { transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .product-card:hover .thumb img,
  .collection-tile:hover img,
  .ig-grid a:hover img { transform: none; }
}

/* ==========================================================================
   Icons
   ========================================================================== */
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }

/* ==========================================================================
   Card actions — wishlist + add-to-cart over every product image
   ========================================================================== */
.card-actions {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.product-card:hover .card-actions,
.product-card:focus-within .card-actions { opacity: 1; transform: none; }
/* Touch devices never hover, so the icons stay put there. */
@media (hover: none) {
  .card-actions { opacity: 1; transform: none; }
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer; font-size: 1rem;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card-icon:hover { background: var(--ink); color: var(--ivory); transform: translateY(-1px); }
.card-icon.on { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.card-icon.on .ico { fill: #fff; }

.stock-flag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 999px; font-family: var(--sans);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); color: var(--taupe); border: 1px solid var(--line);
}
.stock-flag.out { color: var(--terracotta); }

/* "Images only" grid view hides the text block under each card. */
.grid-plain .product-card .info { display: none; }

/* ==========================================================================
   Shop layout — vertical category list beside the grid
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
  .shop-sidebar { position: sticky; top: 96px; }
}
.shop-side-block { margin-bottom: 26px; }
.shop-side-block > summary {
  list-style: none; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 14px;
}
.shop-side-block > summary::-webkit-details-marker { display: none; }
.shop-cats { display: flex; flex-direction: column; gap: 10px; }
.shop-cats a {
  color: var(--taupe); font-size: .95rem; padding-left: 10px;
  border-left: 2px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease);
}
.shop-cats a:hover { color: var(--ink); border-left-color: var(--greige); }
.shop-cats a.on { color: var(--ink); font-weight: 500; border-left-color: var(--terracotta); }

/* ==========================================================================
   Listing toolbar — availability, sort, view
   ========================================================================== */
.listing-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding: 14px 0 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.lt-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--taupe);
}
.lt-stock label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--charcoal); cursor: pointer; }
.listing-toolbar select { padding: 7px 10px; font-size: .9rem; }
.lt-views { gap: 6px; }
/* The radio itself is hidden; its label is the button. */
.view-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; font-size: 1rem; cursor: pointer;
  background: transparent; color: var(--taupe);
  border: 1px solid var(--line); border-radius: var(--radius-sm, 6px);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.view-btn:hover { color: var(--ink); border-color: var(--greige); }
.view-radio:checked + .view-btn { color: var(--ink); border-color: var(--ink); }
.view-radio:focus-visible + .view-btn { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.lt-apply { margin-left: auto; }
.lt-apply.js-hidden .btn { display: none; }
.lt-count { white-space: nowrap; }

/* ==========================================================================
   Product page — price block, buy actions
   ========================================================================== */
/* Sits between the description and the options, so it needs to break the
   run of body text rather than blend into it: larger, heavier, and set apart
   by its own space. */
.price-block { margin: 26px 0 4px; }
.price-block .price {
  font-size: clamp(1.75rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
}
.price-block .price .price-now { color: var(--ink); font-weight: 600; }
.price-block .price .price-was { font-size: .52em; font-weight: 400; }
.price-block .price .price-off { font-size: .4em; vertical-align: .28em; }
.per-count:empty { display: none; }
.price-per-count { color: var(--taupe); font-size: .95rem; }
.stock-line { margin: 8px 0 0; font-size: .95rem; font-weight: 500; }
.stock-line.in  { color: var(--ok); }
.stock-line.out { color: var(--terracotta); }
.ship-line { margin: 2px 0 0; color: var(--taupe); font-size: .9rem; }

.tier-offers { list-style: none; margin: 14px 0 0; padding: 12px 14px; background: var(--cream); border-radius: var(--radius-sm, 8px); }
.tier-offers li { font-size: .92rem; color: var(--charcoal); padding: 3px 0; }
.tier-offers .tier-save { color: var(--terracotta); font-size: .84rem; margin-left: 6px; }

.pdp-buy { max-width: 360px; margin-top: 22px; }
/* Quantity and "Add to cart" share one row. */
.pdp-qty-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pdp-qty-row .btn { flex: 1 1 150px; height: 44px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-buy { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn-buy:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); }
.pdp-wish { max-width: 360px; margin-top: 10px; }
.pdp-wish .btn.on { color: var(--terracotta); border-color: var(--terracotta); }
.pdp-wish .btn.on .ico { fill: var(--terracotta); }

/* Hovering the main product photo eases it in a touch. */
.pdp-gallery .main { overflow: hidden; }
.pdp-gallery .main img { transition: transform .7s var(--ease); }
.pdp-gallery .main:hover img { transform: scale(1.08); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.review-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: var(--greige); font-size: .95rem; line-height: 1; }
.stars .star.on { color: var(--terracotta); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 720px) { .review-list { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; } }
.review { padding: 16px 18px; background: var(--cream); border-radius: var(--radius-sm, 8px); }
.review-body { margin: 8px 0 6px; color: var(--charcoal); }
.review-by { margin: 0; }

/* Review pop-up ----------------------------------------------------------- */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(36, 31, 27, .55);
}
/* `display: flex` above would otherwise beat the browser default for [hidden],
   leaving an invisible full-screen layer swallowing every click on the page. */
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  padding: 26px 24px; background: var(--ivory); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(36, 31, 27, .28);
}
.modal h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 30px 18px 0; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--taupe); font-size: 1rem;
}
.modal-close:hover { color: var(--ink); }
.rating-input { display: flex; gap: 6px; margin-bottom: 4px; }
.rate-star {
  background: none; border: 0; padding: 2px; cursor: pointer;
  color: var(--greige); font-size: 1.6rem; line-height: 1;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.rate-star:hover { transform: translateY(-2px); }
.rate-star.on { color: var(--terracotta); }
.rating-input.needed { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 6px; }
.char-count { margin: 6px 0 0; }
.field .req { color: var(--terracotta); }
.review-terms { margin: 4px 0 0; font-style: italic; font-size: .78rem; color: var(--taupe); line-height: 1.5; }
.review-terms a { color: var(--taupe); text-decoration: underline; text-underline-offset: 3px; }

/* Wishlist page ----------------------------------------------------------- */
.wishlist-item { display: flex; flex-direction: column; }
.wishlist-remove { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .pdp-gallery .main:hover img { transform: none; }
  .card-actions { opacity: 1; transform: none; }
}

/* ==========================================================================
   Care & safety badges (below the "Made by hand" statement)
   ========================================================================== */
.care-badges {
  list-style: none; margin: 42px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px 12px;
}
@media (min-width: 620px) { .care-badges { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .care-badges { grid-template-columns: repeat(5, 1fr); gap: 0; } }

.care-badges li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 4px 14px; position: relative;
}
/* Dotted rule between badges, matching the printed care card. */
@media (min-width: 900px) {
  .care-badges li + li::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
    border-left: 2px dotted var(--greige);
  }
}
.care-badges .ico { width: 54px; height: 54px; color: var(--terracotta-dark); }
.care-badges .t {
  font-family: var(--sans); font-size: .84rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  line-height: 1.35; max-width: 13ch;
}
.care-badges .t small {
  display: block; margin-top: 4px; font-size: .68rem; font-weight: 500;
  letter-spacing: .04em; color: var(--taupe); text-transform: uppercase;
}

/* Outline icons: stroked, not filled. */
.ico-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Promo strip (under the hero) — admin-managed, auto-scrolls when it overflows
   ========================================================================== */
.promo-strip { background: var(--cream); border-block: 1px solid var(--line-soft); }
.promo-viewport { overflow: hidden; }
.promo-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; transition: transform .7s var(--ease);
}
.promo-panel {
  flex: 0 0 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 26px 22px; text-align: left;
}
@media (min-width: 700px) { .promo-panel { flex-basis: 50%; } }
@media (min-width: 1000px) {
  .promo-panel { flex-basis: 33.3333%; }
  /* Divider between panels, as on the printed strip. */
  .promo-panel + .promo-panel { box-shadow: inset 1px 0 0 var(--greige); }
}
.promo-panel .ico { width: 46px; height: 46px; color: var(--terracotta-dark); flex: none; }
.promo-copy { min-width: 0; }
.promo-h {
  margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: .01em; color: var(--ink); line-height: 1.1; text-transform: uppercase;
}
.promo-sub { margin: 5px 0 0; font-size: .9rem; color: var(--charcoal); }
.promo-link {
  display: inline-block; margin-top: 8px;
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-dark);
  border-bottom: 1px solid var(--terracotta); padding-bottom: 2px;
}
.promo-link:hover { color: var(--terracotta); }
.promo-link .a { transition: transform .3s var(--ease); display: inline-block; }
.promo-link:hover .a { transform: translateX(4px); }

.promo-dots { display: flex; justify-content: center; gap: 8px; padding: 0 0 16px; }
.promo-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--greige); transition: background .3s var(--ease), transform .3s var(--ease);
}
.promo-dots button.on { background: var(--terracotta); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
  .promo-track { transition: none; }
}
