/* Daivika Samarpanam — public styles
   Palette: parchment, ivory, maroon, antique gold, olive, dark brown.
   Gold is decorative only; all functional text meets WCAG AA contrast. */

:root {
  --parchment: #E6D2A5;
  --parchment-soft: #F0E3C4;
  --ivory: #FAF5EA;
  --maroon: #681D2B;
  --maroon-deep: #4F1520;
  --gold: #B18A43;
  --olive: #626747;
  --ink: #30251F;
  --ink-soft: #5A4A3F;
  --line: rgba(177, 138, 67, .55);
  --line-soft: rgba(98, 103, 71, .22);

  --font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Mukta", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: 1.953rem;
  --fs-2xl: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  --fs-hero: clamp(2.25rem, 1.3rem + 3.4vw, 3.6rem);

  --wrap: 1200px;
  --gutter: clamp(1.1rem, .6rem + 2vw, 2.25rem);
  --section: clamp(3.5rem, 2.2rem + 4vw, 6rem);
  --radius: 3px;
  --header-h: 72px;

  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='18' viewBox='0 0 220 18'%3E%3Cg fill='none' stroke='%23B18A43' stroke-width='1'%3E%3Cpath d='M0 7.5h92M0 10.5h92M128 7.5h92M128 10.5h92'/%3E%3Cpath d='M110 1.5 118.5 9 110 16.5 101.5 9Z'/%3E%3Cpath d='M110 5.5 114 9 110 12.5 106 9Z' fill='%23B18A43'/%3E%3Ccircle cx='97' cy='9' r='1.4' fill='%23B18A43'/%3E%3Ccircle cx='123' cy='9' r='1.4' fill='%23B18A43'/%3E%3C/g%3E%3C/svg%3E");
  --lotus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cg fill='none' stroke='%23B18A43' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M20 3c4 4.5 4 12 0 21-4-9-4-16.5 0-21Z'/%3E%3Cpath d='M20 24c-2.5-7-8-11.5-14-12 1.5 7 7 11.5 14 12Z'/%3E%3Cpath d='M20 24c2.5-7 8-11.5 14-12-1.5 7-7 11.5-14 12Z'/%3E%3Cpath d='M20 24c-5-2-11-2.5-17-1 4 3 11 3.5 17 1ZM20 24c5-2 11-2.5 17-1-4 3-11 3.5-17 1Z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--maroon); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon-deep); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
.h-small { font-size: var(--fs-lg); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 2px; }
.wa-band :focus-visible, .announce :focus-visible, .site-footer :focus-visible, .btn-primary:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--ivory); }
.wa-band :focus-visible, .announce :focus-visible, .site-footer :focus-visible { outline-color: var(--ivory); box-shadow: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--maroon); color: var(--ivory); padding: .7rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--ivory); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--fs-sm); }
.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-soft); }
.note { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .75rem; }

/* Ornamental rule */
.rule { height: 18px; background: var(--ornament) center / 220px 18px no-repeat; margin: .25rem auto 1.75rem; }
.rule-left { background-position: left center; margin-left: 0; }
.rule-light { filter: brightness(1.25); margin: 0 auto 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.5rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: .015em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--maroon); color: var(--ivory); }
.btn-primary:hover { background: var(--maroon-deep); color: var(--ivory); }
.btn-secondary { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-secondary:hover { background: var(--maroon); color: var(--ivory); }
.btn-ivory { background: var(--ivory); color: var(--maroon); }
.btn-ivory:hover { background: var(--parchment); color: var(--maroon-deep); }
.btn[disabled], .btn[aria-disabled="true"] { background: #D9CFBD; color: #5E5247; border-color: transparent; cursor: not-allowed; }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.text-link {
  background: none; border: 0; padding: .25rem 0; cursor: pointer;
  color: var(--maroon); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold);
  text-underline-offset: .3em; text-decoration-thickness: 1.5px;
}
.text-link:hover { text-decoration-color: var(--maroon); }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius); position: relative;
  text-decoration: none;
}
.icon-btn:hover { color: var(--maroon); }
.icon { width: 1.4rem; height: 1.4rem; }

/* Announcement */
.announce { background: var(--maroon); color: var(--ivory); font-size: var(--fs-sm); text-align: center; }
.announce .wrap { padding-block: .5rem; }
.announce p { margin: 0; }
.announce a { color: var(--ivory); text-decoration: none; }
.announce a:hover { text-decoration: underline; color: var(--ivory); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 245, 234, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--maroon); text-decoration: none; }
.brand-logo { max-height: 52px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .03em; white-space: nowrap; }
.wordmark-mark { width: 30px; height: 22px; background: var(--lotus) center / contain no-repeat; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: .6rem .7rem; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--maroon); border-bottom-color: var(--gold); }
.site-nav ul a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.nav-search { display: flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; padding-left: .9rem; background: #fff8ec; }
.nav-search input, .nav-search input[type="search"] { border: 0; background: transparent; width: 11rem; min-height: 42px; padding: 0; box-shadow: none; outline: none; }
.nav-search:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 2px rgba(104, 29, 43, .2); }
.nav-toggle { display: none; }
.cart-link { flex: none; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
  background: var(--maroon); color: var(--ivory); border-radius: 999px;
  font-size: .75rem; font-weight: 600; line-height: 1.25rem; text-align: center;
}

@media (min-width: 980px) and (max-width: 1199px) {
  .site-nav { gap: .75rem; }
  .site-nav ul a { padding-inline: .45rem; }
  .nav-search { flex: none; padding-left: 0; border-color: transparent; background: transparent; }
  .nav-search input, .nav-search input[type="search"] { display: none; } /* icon submits to the Products page, which has a full search field */
}
@media (max-width: 979px) {
  .nav-toggle { display: inline-grid; margin-left: -.6rem; }
  .brand { margin-inline: auto; }
  .wordmark { font-size: 1.15rem; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line-soft); font-weight: 600; }
  .nav-search { margin-top: 1rem; }
  .nav-search input { width: 100%; flex: 1; }
}

/* Flash notices */
.flashes { padding-top: 1rem; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius); border-left: 4px solid var(--olive); background: #F3ECD9; margin: 0 0 1rem; }
.notice-success { border-left-color: var(--olive); background: #EDEEDF; }
.notice-error { border-left-color: var(--maroon); background: #F6E4E2; }
.notice-info { border-left-color: var(--gold); background: #F6EDD8; }
.notice-review { border-left-color: var(--gold); background: #F6EDD8; border: 1px dashed var(--gold); border-left-width: 4px; font-size: var(--fs-sm); }

/* Image frames and placeholders */
.arch-frame {
  display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
  background: var(--parchment);
}
.arch-frame::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(250, 245, 234, .75);
  border-radius: inherit;
}
.arch-frame picture, .arch-frame img, .arch-frame .img-placeholder { width: 100%; height: 100%; }
.arch-frame img { object-fit: cover; transition: transform .6s ease; }
.arch-tall { aspect-ratio: 4 / 5; }
.img-placeholder {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3;
  background: var(--texture), radial-gradient(circle at 50% 42%, rgba(177, 138, 67, .18), transparent 60%), var(--parchment-soft);
  color: var(--olive); font-size: var(--fs-sm); text-align: center; padding: 1rem;
}
.img-placeholder::before { content: ""; width: 44px; height: 32px; background: var(--lotus) center / contain no-repeat; opacity: .8; grid-area: 1 / 1; transform: translateY(-1.5rem); }
.img-placeholder > span { grid-area: 1 / 1; transform: translateY(1rem); }
.arch-frame .img-placeholder { aspect-ratio: auto; }

/* Hero */
.hero { position: relative; display: grid; background: var(--ivory); overflow: hidden; }
.hero-text { position: relative; z-index: 2; display: flex; align-items: center; }
.hero-text-inner { max-width: 36rem; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); animation: hero-in .9s ease-out both; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.08; color: var(--ink); margin-bottom: 1.1rem; }
.hero-sub { font-size: var(--fs-md); color: var(--ink-soft); max-width: 30rem; margin-bottom: 2rem; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.focal-left .hero-media img { object-position: 25% 50%; }
.focal-right .hero-media img { object-position: 75% 50%; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 700px) {
  .hero.has-image { grid-template-areas: "stack"; min-height: min(78vh, 720px); }
  .hero.has-image > * { grid-area: stack; }
  .hero.has-image .hero-media { position: relative; z-index: 1; }
  .hero.has-image .hero-media picture { height: 100%; }
  .hero.has-image .hero-text {
    background: linear-gradient(90deg, rgba(250, 245, 234, .95) 0%, rgba(250, 245, 234, .88) 36%, rgba(250, 245, 234, .35) 58%, rgba(250, 245, 234, 0) 70%);
  }
  .hero.has-image.focal-left .hero-text {
    justify-content: flex-end;
    background: linear-gradient(270deg, rgba(250, 245, 234, .95) 0%, rgba(250, 245, 234, .88) 36%, rgba(250, 245, 234, .35) 58%, rgba(250, 245, 234, 0) 70%);
  }
  .hero-text-inner { margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
  .focal-left .hero-text-inner { margin-left: 0; margin-right: max(0px, calc((100vw - var(--wrap)) / 2)); }
}
@media (max-width: 699px) {
  .hero.has-image .hero-media { aspect-ratio: 4 / 3; }
  .hero.has-image .hero-media picture { height: 100%; }
  .hero-text-inner { padding-bottom: 2rem; }
  .hero .btn-row .btn { flex: 1 1 12rem; }
}
.hero.no-image { background: var(--texture), linear-gradient(160deg, var(--ivory) 0%, var(--parchment-soft) 100%); }
.hero.no-image .hero-text { min-height: min(62vh, 560px); }
.hero.no-image::after {
  content: ""; position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: -2px; width: min(34vw, 380px); aspect-ratio: 4 / 5;
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  box-shadow: inset 0 0 0 10px var(--ivory), inset 0 0 0 11px var(--line);
  background: var(--lotus) center 58% / 30% no-repeat;
}
@media (max-width: 899px) { .hero.no-image::after { display: none; } }
.hero.no-image .hero-text-inner { margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }

/* Sections */
.section { padding-block: var(--section); }
.section-sm { padding-block: 2.5rem var(--section); }
.section-tint { background: var(--texture), var(--parchment-soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.category-row {
  list-style: none; margin: 0; padding: 0 0 .5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 230px);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
}
.category-row li { scroll-snap-align: start; }
.category-tile { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.category-tile .arch-frame { margin-bottom: .85rem; }
.category-name { font-family: var(--font-display); font-size: 1.15rem; }
.category-tile:hover .category-name { color: var(--maroon); }
.category-tile:hover img, .product-card-link:hover img { transform: scale(1.035); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2.5rem 1.75rem; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }
.product-card-link { display: block; color: var(--ink); text-decoration: none; }
.product-card .arch-frame { margin-bottom: 1rem; }
.product-card-name { font-size: 1.15rem; margin-bottom: .3rem; }
.product-card-link:hover .product-card-name { color: var(--maroon); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; }
.product-card-price { font-weight: 600; color: var(--maroon); margin: 0; }
.product-card.is-unavailable .arch-frame img { filter: grayscale(.45); opacity: .85; }
.avail { font-size: var(--fs-sm); margin: 0; display: inline-flex; align-items: center; gap: .45rem; color: var(--olive); }
.avail::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--olive); }
.avail-limited { color: #7A5A1E; }
.avail-limited::before { background: var(--gold); }
.avail-out_of_stock { color: var(--ink-soft); }
.avail-out_of_stock::before { background: transparent; border: 1.5px solid var(--ink-soft); }

/* Split brand story */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; } }
.split-media { max-width: 460px; width: 100%; justify-self: center; }
.split-text .lead { max-width: 34rem; margin-bottom: 2rem; }

/* Values */
.values-band { background: var(--texture), var(--parchment); }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.values li { padding: 1rem clamp(1rem, 2.5vw, 2rem); text-align: center; }
.values li + li { border-left: 1px solid var(--line); }
.value-glyph { display: block; width: 40px; height: 28px; margin: 0 auto 1rem; background: var(--lotus) center / contain no-repeat; }
.values h3 { font-size: var(--fs-lg); color: var(--maroon); }
.values p { margin: 0; color: var(--ink); }
@media (max-width: 899px) {
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .values li:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .values li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 1.75rem; }
}

/* Stories */
.stories-intro { display: grid; gap: 2rem; align-items: end; margin-bottom: 3rem; }
@media (min-width: 900px) { .stories-intro { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
.stories-intro-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.stories-intro-media .img-placeholder { aspect-ratio: 16 / 10; }
.stories-intro-media:empty, .stories-intro-media:has(.img-placeholder) { display: none; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 2.5rem 2rem; }
.story-card a { color: var(--ink); text-decoration: none; }
.story-card-media { margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius); }
.story-card-media img, .story-card-media .img-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-cat { font-size: var(--fs-sm); color: var(--olive); margin: 0 0 .25rem; font-weight: 600; }
.story-card h3 { font-size: var(--fs-lg); margin-bottom: .5rem; }
.story-card a:hover h3 { color: var(--maroon); }
.story-card p:last-child { color: var(--ink-soft); }

.stories-hero { position: relative; background: var(--texture), var(--parchment-soft); }
.stories-hero-text { padding-block: clamp(3rem, 8vw, 6rem); position: relative; z-index: 2; max-width: 44rem; margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
.stories-hero-text p { font-size: var(--fs-md); color: var(--ink-soft); margin: 0; }
.stories-hero.has-image { display: grid; }
.stories-hero.has-image > * { grid-area: 1 / 1; }
.stories-hero.has-image .stories-hero-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.stories-hero.has-image .stories-hero-text { align-self: end; background: rgba(250, 245, 234, .93); margin-bottom: 2rem; border-radius: var(--radius); padding: 1.75rem 2rem; margin-inline: var(--gutter); width: auto; }
@media (min-width: 1200px) { .stories-hero.has-image .stories-hero-text { margin-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
@media (max-width: 699px) {
  .stories-hero.has-image > * { grid-area: auto; }
  .stories-hero.has-image .stories-hero-text { margin: 0; background: transparent; padding: 2rem var(--gutter); }
}
.chip-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip-nav a { padding: .45rem 1rem; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; text-decoration: none; color: var(--ink); }
.chip-nav a:hover { border-color: var(--maroon); color: var(--maroon); }
.chip-nav a[aria-current="page"] { background: var(--maroon); border-color: var(--maroon); color: var(--ivory); }

.story-head { padding-top: 2.5rem; }
.story-head h1 { font-size: var(--fs-hero); line-height: 1.1; }
.story-cover { margin-block: 1rem 2.5rem; }
.story-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.story .prose { padding-bottom: var(--section); }

/* WhatsApp band */
.wa-band { background: var(--maroon); color: var(--ivory); padding-block: clamp(2.75rem, 5vw, 4rem); border-top: 3px double var(--gold); }
.wa-band h2 { color: var(--ivory); margin-bottom: .4rem; }
.wa-band p { margin: 0; color: #F3E7E0; max-width: 40rem; }
.wa-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: #EFE3CC; padding-top: 3rem; font-size: var(--fs-sm); }
.site-footer a { color: #FAF5EA; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1.4fr; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--ivory); margin-bottom: .4rem; }
.footer-head { font-family: var(--font-display); font-size: 1.1rem; color: var(--parchment); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: .3rem; }
.socials { display: flex; gap: .25rem; margin-top: 1rem !important; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(230, 210, 165, .35); border-radius: 50%; }
.socials .icon { width: 1.2rem; height: 1.2rem; }
.contact-list a, .contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list .icon { width: 1.15rem; height: 1.15rem; flex: none; }
.footer-base { border-top: 1px solid rgba(230, 210, 165, .2); margin-top: 2.5rem; padding-block: 1.25rem; }
.footer-base p { margin: 0; color: #D8C9AE; }

/* Page heads, breadcrumbs */
.page-head { padding-block: 2.5rem 1.5rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 2.5rem; }
.page-head h1 { margin-bottom: .3rem; }
.page-intro { color: var(--ink-soft); max-width: 42rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--maroon); }

/* Catalogue */
.catalogue { display: grid; gap: 2.5rem; padding-bottom: var(--section); }
@media (min-width: 900px) { .catalogue { grid-template-columns: 250px 1fr; } }
.filters form { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .filters { position: sticky; top: calc(var(--header-h) + 1.25rem); align-self: start; } }
.filter-toggle { display: none; }
@media (max-width: 899px) {
  .filter-toggle { display: inline-flex; }
  .filters form:not(.is-open) { display: none; }
  .filters form { padding: 1.25rem; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff9ee; margin-top: 1rem; }
}
.radio-list { list-style: none; margin: 0; padding: 0; }
.radio-list label, .check { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
.count { color: var(--ink-soft); font-size: var(--fs-sm); }
.filter-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.result-count { color: var(--ink-soft); margin-bottom: 1.5rem; }
.results { position: relative; min-height: 200px; }
.results[aria-busy="true"] > * { opacity: .45; transition: opacity .2s; }
.results[aria-busy="true"]::after {
  content: ""; position: absolute; top: 5rem; left: 50%; width: 36px; height: 36px; margin-left: -18px;
  border: 3px solid var(--parchment); border-top-color: var(--maroon); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(240, 227, 196, .35); }
.empty p { color: var(--ink-soft); max-width: 32rem; margin-inline: auto; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination ol { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .6rem; border-radius: var(--radius); text-decoration: none; }
.pagination a:hover { background: var(--parchment-soft); }
.pagination [aria-current="page"] { background: var(--maroon); color: var(--ivory); }

/* Forms */
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend, .qty-field > label, .label-block { font-weight: 600; font-size: var(--fs-sm); padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem;
  background: #FFFCF5; border: 1px solid var(--olive); border-radius: var(--radius);
}
.nav-search input { background: transparent; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--maroon); outline-offset: 1px; border-color: var(--maroon); }
input[type="radio"], input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--maroon); flex: none; }
[aria-invalid="true"] { border-color: var(--maroon); border-width: 2px; }
.field-error { color: var(--maroon); font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.stack-form { display: grid; gap: 1.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Product page */
.product-page { padding-top: 1.75rem; }
.product-layout { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-bottom: var(--section); }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.1fr 1fr; } }
.gallery { min-width: 0; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius); background: var(--parchment-soft); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { margin: 0; scroll-snap-align: start; aspect-ratio: 1; }
.gallery-slide picture, .gallery-slide img, .gallery-slide .img-placeholder { width: 100%; height: 100%; }
.gallery-slide img { object-fit: contain; }
.gallery-slide .img-placeholder { aspect-ratio: 1; }
.gallery-thumbs { display: flex; gap: .6rem; list-style: none; margin: .85rem 0 0; padding: 0; overflow-x: auto; }
.gallery-thumbs a { display: block; width: 72px; height: 72px; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--maroon); }
.product-info h1 { margin-bottom: .25rem; }
.sku { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: .75rem; }
.price { font-size: var(--fs-xl); font-family: var(--font-display); color: var(--maroon); margin: 0 0 .35rem; }
.product-info .lead { margin-top: 1.25rem; }
.buy-form { display: grid; gap: 1.35rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line-soft); }
.variants { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.variants legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: .5rem; }
.variant { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; min-height: 52px; border: 1px solid var(--line-soft); border-radius: var(--radius); cursor: pointer; background: #FFFCF5; }
.variant:has(input:checked) { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); }
.variant:has(input:focus-visible) { outline: 3px solid var(--maroon); outline-offset: 2px; }
.variant.is-off { opacity: .6; cursor: not-allowed; }
.variant-name { font-weight: 600; }
.variant-meta { margin-left: auto; color: var(--ink-soft); font-size: var(--fs-sm); }
.qty-field { display: grid; gap: .35rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--olive); border-radius: var(--radius); background: #FFFCF5; width: max-content; }
.qty input { width: 4rem; border: 0; text-align: center; background: transparent; min-height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline-offset: -2px; }
.qty .icon { width: 1.1rem; height: 1.1rem; }
.buy-actions { display: grid; gap: .75rem; }
@media (min-width: 520px) { .buy-actions { grid-template-columns: 1fr 1fr; } }
.product-desc { margin-top: 2.5rem; }
.related { border-top: 1px solid var(--line-soft); }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: 2rem; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--gold); font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink); }
.prose hr { border: 0; height: 18px; background: var(--ornament) center / 220px 18px no-repeat; margin: 2.5rem 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: .5rem .75rem; text-align: left; }
.prose-editorial { font-size: 1.125rem; line-height: 1.75; }
.prose-editorial > p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 3.6em; line-height: .85; padding: .08em .12em 0 0; color: var(--maroon); }

/* About */
.about-head { padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; background: var(--texture), linear-gradient(180deg, var(--parchment-soft), var(--ivory)); }
.about-head h1 { font-size: var(--fs-hero); }
.about-intro { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.45; color: var(--ink); margin: 0 auto; max-width: 40rem; }
.about-body { display: grid; gap: clamp(2rem, 5vw, 5rem); padding-block: 2.5rem var(--section); align-items: start; }
@media (min-width: 900px) { .about-body:has(.about-figure) { grid-template-columns: 4fr 6fr; } .about-figure { position: sticky; top: calc(var(--header-h) + 2rem); } }
.about-figure { margin: 0; max-width: 420px; width: 100%; justify-self: center; }

.static-page { padding-block: 2.5rem var(--section); }

/* Cart */
.cart-page { padding-bottom: var(--section); }
.cart-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.cart-line {
  display: grid; grid-template-columns: 88px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty total";
  gap: .5rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line-soft); align-items: center;
}
.cart-thumb { grid-area: thumb; align-self: start; }
.cart-thumb picture, .cart-thumb img, .cart-thumb .img-placeholder { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); aspect-ratio: 1; }
.cart-thumb .img-placeholder > span { display: none; }
.cart-thumb .img-placeholder::before { transform: none; }
.cart-line-info { grid-area: info; }
.cart-line-info h3 { font-size: 1.15rem; margin: 0 0 .15rem; }
.cart-line-info h3 a { color: var(--ink); text-decoration: none; }
.cart-line-info h3 a:hover { color: var(--maroon); text-decoration: underline; }
.cart-line-info p { margin: 0; font-size: var(--fs-sm); }
.cart-qty { grid-area: qty; display: flex; align-items: center; gap: .75rem; }
.cart-qty [data-js-hide] { display: none; }
.cart-line-total { grid-area: total; margin: 0; font-weight: 600; text-align: right; }
.cart-remove { grid-area: remove; justify-self: end; }
.cart-line.is-unavailable .cart-line-total { text-decoration: line-through; color: var(--ink-soft); }
.cart-clear { margin-top: 1rem; }
.cart-summary { background: var(--texture), var(--parchment-soft); padding: 1.75rem; border-radius: var(--radius); border-top: 3px double var(--gold); }
@media (min-width: 960px) { .cart-summary { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.cart-summary dl { margin: 0 0 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: var(--fs-sm); }
.sum-row dd { margin: 0; white-space: nowrap; }
.sum-total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .85rem; font-size: var(--fs-base); font-weight: 600; }
.cart-summary .btn { margin-top: .5rem; }

/* Handoff */
.handoff { max-width: 720px; padding-block: 3rem var(--section); }
.handoff-ref { display: inline-block; margin: .5rem 0 1.75rem; padding: .85rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFCF5; }
.handoff-ref p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.handoff-ref .ref { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--maroon); letter-spacing: .06em; }
.handoff .btn-row { margin-bottom: .5rem; }
.label-block { display: block; margin-top: 2rem; margin-bottom: .5rem; font-family: var(--font-display); font-weight: 400; }
.order-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.handoff-foot { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; }

/* Contact */
.contact-layout { display: grid; gap: 3rem; padding-bottom: var(--section); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.6fr; } }
.contact-details .contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-details .contact-list li { align-items: flex-start; }
.contact-details .contact-list .icon { color: var(--olive); margin-top: .25rem; }
.contact-form-wrap { max-width: 640px; }

/* Error */
.error-page { padding-block: 5rem; text-align: center; }
.error-page .btn-row { justify-content: center; margin-top: 2rem; }
.dev-detail { text-align: left; background: #fff; padding: 1rem; overflow-x: auto; font-size: .85rem; border: 1px solid var(--line-soft); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--ivory); padding: .85rem 1.25rem; border-radius: var(--radius);
  display: flex; gap: 1rem; align-items: center; max-width: calc(100vw - 2rem);
}
.toast a { color: var(--parchment); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .announce, .wa-band, .btn-row, .filters { display: none !important; }
}
