/* =====================================================================
   Model Decor & More -- storefront styles

   Ported from the Shopify "Craft" theme the old store ran on, so the
   move does not feel like a different shop: same warm off-white ground,
   same deep-olive buttons, same Trirong / Quattrocento Sans pairing,
   same generous whitespace and square corners.
   ===================================================================== */

:root {
  /* Pulled straight from the old theme's colour schemes */
  --bg:            #efecec;
  --bg-white:      #ffffff;
  --bg-contrast:   #b5a7a7;
  --fg:            #252525;
  --fg-soft:       #5c5a58;
  --fg-faint:      #8a8580;
  --olive:         #2c332f;   /* primary button */
  --sage:          #3f5147;
  --taupe:         #716a56;
  --line:          rgba(37, 37, 37, .14);
  --line-strong:   rgba(37, 37, 37, .28);

  --serif:  "Trirong", "Iowan Old Style", Georgia, serif;
  --sans:   "Quattrocento Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --page:     84rem;   /* max content width */
  --gutter:   clamp(1rem, 4vw, 3.5rem);
  --section:  clamp(3rem, 8vw, 6.5rem);

  --shadow: 0 1px 2px rgba(37,37,37,.05), 0 8px 24px rgba(37,37,37,.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 46rem; margin-inline: auto; }
.center { text-align: center; }

.section { padding-block: var(--section); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  border: 1px solid var(--olive);
  border-radius: 0;                 /* Craft is resolutely square */
  background: var(--olive);
  color: #fff;
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.btn:hover { background: var(--sage); border-color: var(--sage); }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--fg); border-color: var(--fg); color: #fff; }

.btn--full { width: 100%; }
.btn--small { padding: .6rem 1.1rem; font-size: .85rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */

.announce {
  background: var(--olive);
  color: #efecec;
  font-size: .82rem;
  letter-spacing: .06em;
  text-align: center;
  padding: .6rem 1rem;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.logo span { display: block; font-family: var(--sans); font-size: .62rem;
             letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint); }

.nav { display: flex; gap: 1.75rem; align-items: center; }

.nav a {
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.cart-link {
  display: inline-flex; align-items: center; gap: .45rem;
  text-decoration: none; font-size: .9rem; letter-spacing: .04em;
}
.cart-badge {
  display: inline-grid; place-items: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem;
  background: var(--olive); color: #fff;
  border-radius: 999px; font-size: .72rem; line-height: 1;
}
.cart-badge[data-count="0"] { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }

/* ---------------------------------------------------------------------
   Hero / rich text
   --------------------------------------------------------------------- */

.hero {
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero p { font-size: 1.1rem; color: var(--fg-soft); max-width: 40rem; margin-inline: auto; }
.hero .btn { margin-top: 1.5rem; }

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

/* Full-bleed, edge to edge, no max-width -- the artwork is the header.
   The source is 3:1; on narrow screens that would shrink the wordmark to
   nothing, so the frame gets taller and the image is cropped around the
   wordmark instead of being scaled down. */
.hero-banner {
  width: 100%;
  aspect-ratio: 2172 / 724;
  overflow: hidden;
  background: #2f241c;        /* the artwork's dark wood, so any
                                 letterboxing or slow load blends in */
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The wordmark sits left of centre; hold that in frame when cropping. */
  object-position: 34% center;
}

@media (max-width: 52rem) {
  .hero-banner { aspect-ratio: 16 / 9; }
  .hero-banner img { object-position: 30% center; }
}

@media (max-width: 30rem) {
  .hero-banner { aspect-ratio: 4 / 3; }
  .hero-banner img { object-position: 26% center; }
}

/* The banner carries the shop name, so the copy beneath it needs less
   room above than a text-only hero would. */
.hero--under { padding-block: clamp(2.5rem, 5vw, 4rem); }
.hero__lede { font-size: 1.1rem; color: var(--fg-soft); max-width: 40rem; margin-inline: auto; }

.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--fg-soft); }

.eyebrow {
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--fg-faint); margin-bottom: .75rem;
}

/* ---------------------------------------------------------------------
   Product grid
   --------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.card { position: relative; }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-white);
  margin-bottom: .9rem;
}

.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .4s ease, transform .6s ease;
}

/* Second photo cross-fades in on hover, the way the Craft theme does */
.card__media img.is-hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img.is-hover { opacity: 1; }
.card:hover .card__media img.is-primary { transform: scale(1.03); }

.card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 .25rem;
}
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }

.card__price { font-size: .95rem; color: var(--fg-soft); }
.card__price del { color: var(--fg-faint); margin-right: .4rem; }

.card__flag {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--fg); color: #fff;
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .6rem;
}
.card__flag--out { background: var(--bg-contrast); color: var(--fg); }

/* ---------------------------------------------------------------------
   Shop toolbar
   --------------------------------------------------------------------- */

.toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-bottom: 1.5rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  display: inline-block;
  padding: .4rem .9rem;
  border: 1px solid var(--line-strong);
  font-size: .82rem; letter-spacing: .03em;
  text-decoration: none;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-current="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }

.select, .input, .textarea {
  font-family: var(--sans); font-size: .92rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--bg-white);
  color: var(--fg);
  width: 100%;
}
.select { width: auto; padding-right: 2rem; }
.textarea { min-height: 9rem; resize: vertical; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: .4rem;
}

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

.pdp { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 60rem) { .pdp { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.gallery__main {
  background: var(--bg-white);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: .75rem;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }

.gallery__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery__thumbs button {
  width: 4.5rem; height: 4.5rem; padding: 0;
  border: 1px solid var(--line); background: var(--bg-white);
  cursor: pointer; overflow: hidden;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--fg); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 60rem) {
  .pdp__info { position: sticky; top: 7rem; }
}

.pdp__price { font-size: 1.5rem; font-family: var(--serif); margin-bottom: .25rem; }
.pdp__price del { font-size: 1.1rem; color: var(--fg-faint); margin-right: .5rem; }

.pdp__meta { font-size: .85rem; color: var(--fg-faint); margin-bottom: 1.75rem; }

.stock { font-size: .85rem; letter-spacing: .04em; margin-bottom: 1.25rem; }
.stock--in     { color: var(--sage); }
.stock--low    { color: #9a5b23; }
.stock--out    { color: var(--fg-faint); }

.qty { display: inline-flex; border: 1px solid var(--line-strong); }
.qty button {
  width: 2.75rem; height: 2.9rem; border: 0; background: none;
  font-size: 1.1rem; cursor: pointer; color: var(--fg);
}
.qty input {
  width: 3rem; border: 0; text-align: center;
  font-family: var(--sans); font-size: .95rem; background: none; color: var(--fg);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; gap: .75rem; align-items: stretch; margin-bottom: 1.5rem; }
.buy-row .btn { flex: 1; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: 1.1rem 0; list-style: none;
  font-size: .95rem; letter-spacing: .04em;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.2rem; color: var(--fg-faint); }
.accordion details[open] summary::after { content: "\2013"; }
.accordion .accordion__body { padding-bottom: 1.25rem; color: var(--fg-soft); font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags a {
  font-size: .75rem; color: var(--fg-faint);
  border: 1px solid var(--line); padding: .25rem .6rem; text-decoration: none;
}
.tags a:hover { color: var(--fg); border-color: var(--line-strong); }

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

.cart-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 58rem) { .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.cart-line {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line__media { background: var(--bg-white); aspect-ratio: 1/1; overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 .2rem; }
.cart-line__title a { text-decoration: none; }
.cart-line__variant { font-size: .85rem; color: var(--fg-faint); margin-bottom: .6rem; }
.cart-line__total { font-size: .95rem; white-space: nowrap; text-align: right; }

.cart-line__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; color: var(--fg-faint);
  text-decoration: underline; text-underline-offset: .2em;
}
.link-btn:hover { color: var(--fg); }

.summary {
  background: var(--bg-white);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
}
.summary h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.summary__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; font-size: .95rem;
}
.summary__row--total {
  border-top: 1px solid var(--line); margin-top: .75rem; padding-top: 1rem;
  font-size: 1.15rem; font-family: var(--serif);
}
.summary__note { font-size: .82rem; color: var(--fg-faint); margin-top: 1rem; }

.progress { height: 3px; background: var(--line); margin: .75rem 0 1rem; }
.progress span { display: block; height: 100%; background: var(--sage); }

/* ---------------------------------------------------------------------
   Notices
   --------------------------------------------------------------------- */

.notice {
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--sage);
  background: var(--bg-white);
  font-size: .92rem;
  margin-bottom: 1.25rem;
}
.notice--warn  { border-left-color: #b5762b; }
.notice--error { border-left-color: #a33b2a; }

.empty { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.empty p { color: var(--fg-soft); }

/* ---------------------------------------------------------------------
   Multicolumn (the "About us" band)
   --------------------------------------------------------------------- */

.cols {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.cols h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.cols p { color: var(--fg-soft); font-size: .95rem; margin: 0; }

.band-sage  { background: var(--sage);  color: #efecec; }
.band-olive { background: var(--olive); color: #efecec; }
.band-white { background: var(--bg-white); }
.band-sage p, .band-olive p { color: rgba(239,236,236,.82); }
.band-sage .eyebrow, .band-olive .eyebrow { color: rgba(239,236,236,.6); }

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

.site-footer {
  background: var(--olive);
  color: #efecec;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: var(--section);
}
.site-footer a { color: #efecec; }

.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(239,236,236,.18);
}
.footer-grid h3 { font-size: 1.05rem; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { font-size: .9rem; text-decoration: none; opacity: .82; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }

.newsletter { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 12rem;
  background: transparent;
  border: 1px solid rgba(239,236,236,.35);
  color: #efecec;
  padding: .75rem .9rem;
  font-family: var(--sans); font-size: .9rem;
}
.newsletter input::placeholder { color: rgba(239,236,236,.5); }
.newsletter .btn {
  background: #efecec; color: var(--olive); border-color: #efecec;
}
.newsletter .btn:hover { background: #fff; border-color: #fff; color: var(--olive); }

.colophon {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 2rem; font-size: .82rem; opacity: .7;
}

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

.receipt {
  background: var(--bg-white); border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem;
}
.receipt__line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.receipt__line:last-of-type { border-bottom: 0; }

/* ---------------------------------------------------------------------
   Mobile nav
   --------------------------------------------------------------------- */

@media (max-width: 52rem) {
  .nav-toggle { display: block; order: -1; }

  .nav {
    display: none;
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .site-header { position: relative; }
  .logo { font-size: 1.25rem; }
  .cart-line { grid-template-columns: 4.5rem 1fr; }
  .cart-line__total { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
