@font-face {
  font-family: Bricolage Grotesque;
  src: url("assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: DM Sans;
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Instrument Serif;
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f5ef;
  --white: #fffdf9;
  --ink: #2f1c1c;
  --muted: #705a54;
  --wine: #72242e;
  --wine-hover: #531923;
  --dark-wine: #401519;
  --edge: #e7dcd2;
  --peach: #ffd7bb;
  --gutter: clamp(1rem, 4vw, 4rem);
  --heading: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 var(--body);
  -webkit-text-size-adjust: 100%;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
::selection { color: var(--dark-wine); background: #f1ccbd; }
section[id], footer[id] { scroll-margin-top: 6.1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; overflow: hidden; }
.shell { width: min(100% - var(--gutter) * 2, 83rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 10; background: var(--white); padding: .55rem 1rem; border-radius: .65rem; }

.preview-strip {
  padding: .41rem 1rem;
  text-align: center;
  color: #fff2e8;
  background: var(--wine);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}
.preview-strip span { margin-inline: .34rem; color: var(--peach); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
}
.header-inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.brand { justify-self: start; display: flex; align-items: center; min-height: 2.75rem; }
.brand img { width: clamp(9.5rem, 16vw, 12.3rem); height: auto; mix-blend-mode: multiply; }
.main-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.6rem); }
.main-nav a { font-size: .9375rem; font-weight: 650; padding-block: .75rem; }
.main-nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: .3em; }
.header-actions { display: flex; align-items: center; justify-content: end; gap: .55rem; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  transition: background .16s ease;
}
.icon-button:hover { background: #f3e9e0; }
.header-search { border-color: transparent; background: transparent; }
.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  padding: .5rem .62rem .5rem .82rem;
  min-height: 2.75rem;
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background: var(--white);
  font-size: .9375rem;
  font-weight: 700;
}
.cart-trigger:hover { border-color: #b88e89; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding-inline: .27rem;
  border-radius: 2rem;
  color: var(--white);
  background: var(--wine);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .48rem;
  min-height: 3rem;
  padding: .65rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button-cream { background: #fff0e0; color: var(--dark-wine); }
.button-cream:hover { background: #ffdbbf; }
.button-wine { background: var(--wine); color: var(--white); }
.button-wine:hover { background: var(--wine-hover); }
.button-outline { background: var(--white); border-color: #c59994; color: var(--wine); }
.button-outline:hover { background: #f8eee8; border-color: var(--wine); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  min-height: clamp(25rem, 39vw, 32rem);
  margin-block: clamp(1rem, 2.4vw, 2rem) 0;
  overflow: hidden;
  border-radius: 1.65rem;
  color: #fff7ef;
  background: var(--dark-wine);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; padding: clamp(1.5rem, 4.6vw, 4.5rem); padding-right: 0; }
.hero-location {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin-bottom: 1.1rem;
  color: #f7d0bc;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .06em;
}
.hero-location .icon { width: 1rem; height: 1rem; }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 5.5vw, 5.25rem);
  line-height: .94;
  font-weight: 750;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  margin-top: .10em;
  font: italic 1.24em/.88 "Instrument Serif", Georgia, serif;
  letter-spacing: -.035em;
  color: var(--peach);
}
.hero-description { max-width: 29ch; margin-block: 1.52rem 1.55rem; color: #f9e5d9; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero .button:focus-visible, .site-footer a:focus-visible { outline-color: var(--peach); }
.hero-visual { position: absolute; inset: 0 0 0 40.5%; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 59% 30%; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark-wine) 0%, #401519b8 11%, transparent 36%);
  pointer-events: none;
}

.pet-section { margin-top: clamp(2.4rem, 5vw, 4.2rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.08rem; }
.section-heading h2, .site-footer h2 {
  font-size: clamp(2.03rem, 4.15vw, 3.38rem);
  line-height: 1.02;
  font-weight: 750;
  letter-spacing: -.062em;
}
.section-heading p { margin-top: .4rem; color: var(--muted); }
.pet-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .84rem; }
.pet-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(7.5rem, 10vw, 10rem);
  padding: .85rem clamp(.72rem, 1.4vw, 1.22rem);
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--pet-bg);
}
.pet-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 9%;
  width: 69%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pet-accent);
}
.pet-card span {
  position: relative;
  z-index: 1;
  max-width: 7ch;
  font: 750 clamp(1.12rem, 1.8vw, 1.55rem)/1.02 var(--heading);
  letter-spacing: -.045em;
}
.pet-card:hover span { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .14em; }
.pet-card img {
  position: absolute;
  right: -4%;
  bottom: -9%;
  width: 70%;
  height: 115%;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
  transition: transform .24s ease;
}
.pet-card:hover img { transform: translateY(-.22rem) scale(1.035); }
.pet-dogs { --pet-bg: #ecd9b8; --pet-accent: #e8c686; }
.pet-cats { --pet-bg: #f3d4cc; --pet-accent: #eab8a9; }
.pet-birds { --pet-bg: #efe3ad; --pet-accent: #e4d48e; }
.pet-small-pets { --pet-bg: #e3e7c9; --pet-accent: #d1d8af; }
.pet-fish { --pet-bg: #d9e7e8; --pet-accent: #c2dcdf; }
.pet-birds img { height: 131%; bottom: -31%; right: -3%; }
.pet-small-pets img { bottom: -3%; right: -7%; }
.pet-fish img { width: 78%; height: 110%; right: -9%; bottom: -2%; object-position: center right; }

.shop-section { margin-block: clamp(3rem, 6vw, 5.6rem); }
.shop-heading { margin-bottom: 1.3rem; }
.catalog-search {
  display: flex;
  align-items: center;
  gap: .53rem;
  min-height: 3rem;
  width: min(100%, 19rem);
  padding-inline: .83rem;
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background: var(--white);
  color: var(--muted);
}
.catalog-search:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }
.catalog-search input { width: 100%; min-width: 0; min-height: 2.75rem; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.catalog-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-block: .95rem; border-block: 1px solid var(--edge); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .42rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .48rem .9rem;
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background: var(--white);
  font-size: .875rem;
  font-weight: 650;
}
.filter-chip:hover { border-color: #b88e89; }
.filter-chip[aria-pressed="true"] { color: #fff8f0; border-color: var(--wine); background: var(--wine); }
.sort-control { position: relative; }
.sort-control select {
  appearance: none;
  min-height: 2.75rem;
  max-width: 100%;
  padding: .5rem 2.2rem .5rem .88rem;
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background: var(--white);
  font-size: .875rem;
  font-weight: 600;
}
.sort-control .icon { position: absolute; pointer-events: none; width: 1rem; height: 1rem; right: .8rem; top: calc(50% - .5rem); }
.result-count { margin-block: .85rem; color: var(--muted); font-size: .875rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.45vw, 1.1rem); }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 1.18rem;
  background: var(--white);
  overflow: hidden;
}
.product-card[data-pet="dogs"], .product-detail[data-pet="dogs"] { --product-bg: #f3e8d8; }
.product-card[data-pet="cats"], .product-detail[data-pet="cats"] { --product-bg: #f3e5e4; }
.product-card[data-pet="birds"], .product-detail[data-pet="birds"] { --product-bg: #f4ebd4; }
.product-card[data-pet="small-pets"], .product-detail[data-pet="small-pets"] { --product-bg: #ebeedf; }
.product-card[data-pet="fish"], .product-detail[data-pet="fish"] { --product-bg: #e4eeee; }
.product-open { display: block; flex: 1; }
.product-open:focus-visible { outline-offset: -3px; border-radius: .95rem; }
.product-media {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1.33;
  background: var(--product-bg, #f2e9e1);
  overflow: hidden;
}
.product-media img { position: absolute; inset: 0; margin: auto; width: 79%; height: 79%; object-fit: contain; mix-blend-mode: multiply; transition: transform .22s ease; }
.product-open:hover .product-media img { transform: scale(1.05); }
.product-tag { position: absolute; top: .58rem; left: .58rem; padding: .22rem .55rem; border-radius: 2rem; background: #fffdf7; font-size: .8125rem; font-weight: 700; }
.product-info { padding: .83rem .9rem .26rem; }
.product-brand { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.product-info h3 { margin-block: .12rem .22rem; font-size: clamp(1.04rem, 1.55vw, 1.28rem); line-height: 1.14; letter-spacing: -.03em; overflow-wrap: anywhere; }
.product-open:hover h3 { color: var(--wine); }
.product-size { font-size: .875rem; color: var(--muted); }
.product-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding: .65rem .9rem .86rem; }
.product-price { font: 750 1.16rem/1 var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.add-button { min-height: 2.75rem; padding: .51rem .78rem; min-width: 5rem; }
.add-button .icon { width: 1rem; height: 1rem; }
.add-button.is-added { background: #4d6545; }
.catalog-empty { display: grid; justify-items: center; gap: .55rem; padding: 3rem 1rem; border: 1px dashed #d3c1b8; border-radius: 1.2rem; text-align: center; }
.catalog-empty p { color: var(--muted); }
.catalog-empty .button { margin-top: .55rem; }

.site-footer { padding-block: 2.6rem; color: var(--white); background: var(--dark-wine); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer h2 { font-size: clamp(1.85rem, 3.15vw, 2.78rem); }
.site-footer p { display: flex; align-items: center; gap: .35rem; margin-top: .6rem; color: #f3d8c9; }
.site-footer p .icon { width: 1rem; height: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.button-footer { border-color: #d49a93; background: transparent; color: var(--white); }
.button-footer:hover { background: #64252b; }
.mobile-cart { display: none; }

dialog { border: 0; color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgb(36 17 20 / 56%); backdrop-filter: blur(2px); }
.product-dialog { width: min(44rem, calc(100% - 2rem)); padding: 0; border-radius: 1.35rem; box-shadow: 0 1rem 4rem #29151538; }
.dialog-close { position: absolute; z-index: 1; top: .7rem; right: .7rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1.03fr; }
.detail-image { position: relative; min-height: 19rem; background: var(--product-bg, #f2e9e1); }
.detail-image img { position: absolute; inset: 0; margin: auto; width: 84%; height: 83%; max-height: 19rem; object-fit: contain; mix-blend-mode: multiply; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; gap: .7rem; padding: 3.6rem 1.5rem 1.6rem; }
.detail-copy h2 { font-size: clamp(1.55rem, 3.8vw, 2.35rem); line-height: 1.04; letter-spacing: -.055em; }
.detail-description { color: var(--muted); }
.detail-price { margin-top: .4rem; font-size: 1.42rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .25rem; }
.detail-actions .button { border-radius: .72rem; }

.cart-dialog {
  inset: 0 0 0 auto;
  width: min(100%, 30rem);
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  box-shadow: -1rem 0 4rem #2a161639;
}
.cart-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  padding: calc(1.08rem + env(safe-area-inset-top)) 1.2rem 1rem;
  border-bottom: 1px solid var(--edge);
}
.panel-heading h2 { font-size: 2rem; line-height: 1.05; letter-spacing: -.055em; }
.panel-heading h2:focus { outline: 0; }
.panel-context { margin-bottom: .22rem; font-size: .875rem; color: var(--wine); font-weight: 700; }
.cart-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.panel-scroll { flex: 1; min-height: 0; padding: 1.15rem 1.2rem; overflow-y: auto; overscroll-behavior: contain; }
.cart-lines, .order-lines { margin: 0; padding: 0; list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: start;
  gap: .68rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--edge);
}
.cart-line:first-child { padding-top: 0; }
.cart-thumbnail { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: .65rem; background: #f4eae5; }
.cart-thumbnail img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.cart-line h3 { line-height: 1.18; font-size: 1rem; letter-spacing: -.026em; }
.line-brand { font-size: .8125rem; color: var(--muted); }
.line-price { font-size: .9375rem; font-weight: 750; white-space: nowrap; }
.line-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .64rem; margin-top: .45rem; }
.quantity { display: inline-flex; align-items: center; min-width: 0; border: 1px solid var(--edge); border-radius: .65rem; background: var(--white); }
.quantity button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: .55rem; background: transparent; }
.quantity button:hover:enabled { background: #f3e9e0; }
.quantity .icon { width: 1rem; height: 1rem; }
.quantity output { min-width: 1.35rem; font-size: .9375rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.text-button { min-height: 2.75rem; padding: .35rem 0; border: 0; background: transparent; color: var(--wine); font-size: .875rem; font-weight: 700; text-underline-offset: .25em; }
.text-button:hover { text-decoration: underline; }
.panel-actions {
  display: grid;
  gap: .6rem;
  flex: none;
  padding: .95rem 1.2rem calc(.95rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--edge);
  background: var(--paper);
}
.panel-actions .button { width: 100%; }
.subtotal { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .24rem; font-weight: 650; }
.subtotal strong { font: 750 1.42rem/1 var(--heading); letter-spacing: -.04em; }
.panel-note { color: var(--muted); font-size: .875rem; text-align: center; }
.cart-empty { display: grid; align-content: center; justify-items: center; gap: .65rem; min-height: 70%; padding-block: 2rem; text-align: center; }
.cart-empty h3 { font-size: 1.5rem; letter-spacing: -.04em; }
.cart-empty p { color: var(--muted); }
.cart-empty .button { margin-top: .35rem; }
.empty-icon, .confirmation-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #f2e3dd; color: var(--wine); }
.empty-icon .icon, .confirmation-icon .icon { width: 1.65rem; height: 1.65rem; }
.checkout-scroll { padding-top: .48rem; }
.checkout-notice { padding: .72rem .85rem; margin: .24rem 0 1rem; border-radius: .65rem; color: var(--wine-hover); background: #f7ebe5; font-size: .875rem; }
.checkout-fields { display: grid; gap: .43rem; }
.checkout-fields label { font-weight: 700; font-size: .9375rem; }
.checkout-fields label span { margin-left: .27rem; font-weight: 400; color: var(--muted); font-size: .875rem; }
.checkout-fields input, .checkout-fields textarea { width: 100%; min-height: 2.82rem; margin-bottom: .5rem; padding: .63rem .7rem; border: 1px solid #c9b7ae; border-radius: .63rem; background: var(--white); font-size: 1rem; }
.checkout-fields textarea { resize: vertical; }
.checkout-summary { margin-top: .8rem; padding: .8rem; border: 1px solid var(--edge); border-radius: .72rem; background: var(--paper); }
.checkout-summary h3 { font-size: 1.02rem; }
.order-lines { padding-block: .28rem; }
.order-lines li { display: flex; justify-content: space-between; gap: .55rem; padding-block: .24rem; font-size: .875rem; }
.order-lines li strong { white-space: nowrap; }
.checkout-summary .subtotal { margin-top: .35rem; padding-top: .62rem; border-top: 1px solid var(--edge); }
.confirmation-scroll { padding-top: 1.45rem; }
.confirmation-icon { margin-bottom: .85rem; color: #3d603a; background: #e9efdf; }
.confirmation-scroll > p { color: var(--muted); }

@media (max-width: 64rem) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 5.7vw, 4.3rem); }
  .pet-card img { width: 74%; }
  .pet-fish img { width: 80%; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: .3rem; min-height: 4.03rem; }
  .main-nav { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; border-radius: 1.2rem; }
  .hero-copy { padding: 1.5rem 1.3rem .5rem; }
  .hero-location { margin-bottom: .8rem; }
  .hero h1 { max-width: none; font-size: clamp(2.48rem, 8.4vw, 4.05rem); }
  .hero-description { margin-block: .9rem 1rem; }
  .hero-visual { position: relative; inset: auto; height: clamp(13.6rem, 62vw, 18rem); }
  .hero-visual img { object-position: 56% 34%; }
  .hero-visual::after { background: linear-gradient(180deg, var(--dark-wine), #40151958 14%, transparent 33%); }
  .pet-grid {
    grid-template-columns: repeat(5, minmax(8.5rem, 1fr));
    margin: -.28rem calc(-1 * var(--gutter));
    padding: .28rem var(--gutter) .6rem;
    gap: .6rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: #d4b9ae transparent;
  }
  .pet-card { scroll-snap-align: start; min-height: 7rem; }
  .shop-heading { flex-direction: column; align-items: stretch; gap: .85rem; }
  .catalog-search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cart:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 5;
    inset: auto var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    align-items: center;
    gap: .55rem;
    min-height: 3.28rem;
    padding: .45rem .86rem;
    border: 1px solid #8e4e51;
    border-radius: .89rem;
    background: var(--dark-wine);
    color: var(--white);
    box-shadow: 0 .32rem 1.4rem #36142145;
    font-weight: 700;
    text-align: left;
  }
  .mobile-cart strong { margin-left: auto; }
  .mobile-cart-items { font-size: .8125rem; color: #f7ceba; font-weight: 500; }
  body.has-cart .site-footer { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 31rem) {
  .header-actions { gap: .12rem; }
  .cart-trigger-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .cart-trigger { gap: .24rem; padding-inline: .57rem .43rem; }
  .preview-strip { font-size: .8125rem; }
  .catalog-controls { gap: .65rem; }
  .product-info { padding-inline: .63rem; }
  .product-actions { padding-inline: .63rem; }
  .product-price { font-size: 1.02rem; }
  .add-button { min-width: 3.75rem; padding-inline: .48rem; font-size: .875rem; }
  .add-button .icon { width: .85rem; height: .85rem; }
  .product-tag { top: .42rem; left: .42rem; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-image { min-height: 12rem; height: 13rem; }
  .detail-copy { padding: 1.12rem; }
  .panel-heading, .panel-scroll, .panel-actions { padding-inline: .95rem; }
  .cart-line { grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .55rem; }
  .cart-thumbnail { width: 3.6rem; height: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
