/* Pets Superstore. Rebrand by editing the tokens below.
   The idea: every animal department is a round pet ID tag in its own colour. Everything else stays calm. */

@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #1b2440;
  --muted: #5d6680;
  --line: #e2e7ef;
  --primary: #3546e0;          /* links, focus */
  --btn: #1b2440; --btn-ink: #ffffff;
  --sale: #d93a52;
  --danger: #b3261e;
  --star: #e8951f;
  /* one colour per animal: the tags, and the soft backdrop behind each product photo */
  --pet-all: #3546e0;
  --pet-dogs: #f4a63a;
  --pet-cats: #8e6cf5;
  --pet-small: #f27ba4;
  --pet-birds: #36b5e5;
  --pet-fish: #1fae9a;
  --pet-reptiles: #7db83a;
  --tag-ink: #1b2440;          /* icon colour on a filled tag, light or dark mode */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 82rem;
  --r-card: 22px; --r-field: 12px;
  --blend: multiply;           /* lets white supplier photo backgrounds take on the department tint */
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10141f; --surface: #182033; --ink: #eef1f8; --muted: #a3acc2; --line: #2a3550;
    --primary: #93a0ff; --btn: #eef1f8; --btn-ink: #10141f; --sale: #ff6b80; --danger: #ff8a80; --star: #ffb547;
    --pet-all: #7d8cff; --blend: normal;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 0.5rem; top: -4rem; background: var(--btn); color: var(--btn-ink); padding: 0.5rem 0.9rem; border-radius: 99px; z-index: 100; }
.skip:focus { top: 0.5rem; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.icon, .pet-icon, .masthead svg, .promises svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pet-icon .fill { fill: currentColor; stroke: none; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem clamp(1rem, 2.4vw, 2rem);
  padding: 0.75rem max(var(--gutter), calc((100% - var(--max)) / 2));
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; stroke: none !important; }
.brand-disc { fill: var(--pet-dogs); }
.brand-hole { fill: var(--surface); }
.brand-paw { fill: var(--tag-ink); }
.wordmark { font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; font-stretch: 88%; white-space: nowrap; }

.search { position: relative; max-width: 38rem; width: 100%; justify-self: center; }
.search-icon { position: absolute; inset-inline-start: 1rem; top: 50%; width: 1.2rem; height: 1.2rem; margin-top: -0.6rem; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 2.9rem; padding: 0 1.1rem 0 2.8rem; border-radius: 99px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 1rem;
}
[dir="rtl"] .search input { padding: 0 2.8rem 0 1.1rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }

.actions { display: flex; gap: 0.9rem; align-items: center; justify-content: flex-end; min-width: 0; }
.prefs { display: flex; gap: 0.5rem; align-items: center; }
.langpick select { background: transparent; border: 1.5px solid var(--line); border-radius: 99px; padding: 0.35rem 0.6rem; font-size: 0.9rem; max-width: 9rem; }
.textbtn { background: none; border: 0; padding: 0.25rem 0; text-decoration: underline; text-underline-offset: 0.25em; }
.textbtn.account { text-decoration: none; font-weight: 600; }
.textbtn.account:hover { text-decoration: underline; }
.cartbtn {
  display: inline-flex; align-items: center; gap: 0.45rem; background: var(--btn); color: var(--btn-ink); border: 0;
  border-radius: 99px; padding: 0.55rem 0.75rem 0.55rem 0.95rem; font-weight: 700;
}
[dir="rtl"] .cartbtn { padding: 0.55rem 0.95rem 0.55rem 0.75rem; }
.cartbtn svg { width: 1.25rem; height: 1.25rem; }
.cartbtn #cartCount {
  min-width: 1.55rem; height: 1.55rem; display: inline-grid; place-items: center; padding: 0 0.35rem; border-radius: 99px;
  background: var(--pet-dogs); color: var(--tag-ink); font-size: 0.82rem; font-variant-numeric: tabular-nums;
}
@media (max-width: 52rem) {
  .masthead {
    position: static; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem 0.9rem;
    grid-template-areas: "brand actions" "search search" "prefs prefs";
  }
  .brand { grid-area: brand; } .actions { grid-area: actions; } .search { grid-area: search; max-width: none; }
  .prefs { grid-area: prefs; }
  .langpick select { font-size: 0.85rem; padding: 0.25rem 0.55rem; }
}
@media (max-width: 30rem) {
  .wordmark { font-size: 1.1rem; white-space: normal; line-height: 1.05; }
  .brand-mark { width: 2.1rem; height: 2.1rem; }
  .cartbtn [data-i18n="cart"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- page frame ---------- */
main { padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2)) 0; }

/* ---------- hero: one plain promise, then the tags ---------- */
.hero { padding: clamp(2.25rem, 7vw, 5rem) 0 0.5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 800; font-stretch: 86%; letter-spacing: -0.035em; line-height: 0.98;
  max-width: 15ch; text-wrap: balance;
}
.hero-sub { margin: 1.1rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44ch; }

/* Three big tags hanging from one ring: the store's signature, on wide screens only. */
.hero-art { display: none; }
@media (min-width: 60rem) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 28rem; align-items: center; gap: 2rem; }
  .hero-text { min-width: 0; }
  .hero-art { display: block; position: relative; height: 25rem; }
}
.hero-art .ring {
  position: absolute; left: 50%; top: 0; width: 4.2rem; height: 4.2rem; margin-left: -2.1rem; border-radius: 50%;
  border: 7px solid color-mix(in srgb, var(--ink) 22%, var(--paper));
}
.hero-art .big {
  --pet: var(--pet-dogs);
  position: absolute; top: 2.4rem; width: 10rem; height: 10rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--pet); transform-origin: 50% 0.4rem; box-shadow: 0 18px 40px -18px rgba(16, 22, 44, 0.45);
}
.hero-art .big::before {
  content: ""; position: absolute; top: 0.9rem; left: 50%; width: 1.35rem; height: 1.35rem; margin-left: -0.675rem;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--pet) 60%, #000);
}
.hero-art .big .pet-icon { width: 4.6rem; height: 4.6rem; margin-top: 0.8rem; color: var(--tag-ink); stroke-width: 1.5; }
.hero-art .big.cats { --pet: var(--pet-cats); left: 0; --tilt: 16deg; }
.hero-art .big.fish-aquatics { --pet: var(--pet-fish); right: 0; --tilt: -16deg; }
.hero-art .big.dogs { width: 12.5rem; height: 12.5rem; left: 50%; margin-left: -6.25rem; top: 6.2rem; --tilt: 3deg; z-index: 1; }
.hero-art .big.dogs .pet-icon { width: 5.75rem; height: 5.75rem; }
.hero-art .big { transform: rotate(var(--tilt)); animation: swing 1.6s cubic-bezier(.3, 1.5, .5, 1) both; }
.hero-art .big.fish-aquatics { animation-delay: 0.08s; }
.hero-art .big.dogs { animation-delay: 0.16s; }
@keyframes swing { from { transform: rotate(calc(var(--tilt) * -1.6)); } to { transform: rotate(var(--tilt)); } }

/* ---------- pet tags (the department filter) ---------- */
.pets { padding: clamp(1.75rem, 4vw, 2.75rem) 0 0.5rem; }
.pets-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
body:not(.browsing) .pets { padding-top: 1.5rem; }
body:not(.browsing) .pets-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tags {
  display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0.6rem 0.25rem 0.9rem; margin: 0 -0.25rem; scrollbar-width: thin;
}
.pettag {
  --pet: var(--pet-all);
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 0.55rem; width: 6.25rem;
  background: none; border: 0; padding: 0; color: var(--ink);
}
.pettag[data-pet="dogs"] { --pet: var(--pet-dogs); }
.pettag[data-pet="cats"] { --pet: var(--pet-cats); }
.pettag[data-pet="small-animals"] { --pet: var(--pet-small); }
.pettag[data-pet="birds"] { --pet: var(--pet-birds); }
.pettag[data-pet="fish-aquatics"] { --pet: var(--pet-fish); }
.pettag[data-pet="reptiles"] { --pet: var(--pet-reptiles); }
.pettag .disc {
  position: relative; width: 5.75rem; height: 5.75rem; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pet) 24%, var(--surface)); transform-origin: 50% 0.6rem;
  transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1), background-color 0.2s;
}
/* the ring hole that makes it read as a collar tag */
.pettag .disc::before {
  content: ""; position: absolute; top: 0.45rem; left: 50%; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pet) 55%, var(--surface));
}
.pettag .pet-icon { width: 2.7rem; height: 2.7rem; margin-top: 0.5rem; color: color-mix(in srgb, var(--pet) 55%, var(--ink)); }
.pettag .label { font-weight: 600; font-size: 0.95rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.pettag:hover .disc { transform: rotate(-7deg); }
.pettag[aria-pressed="true"] .disc { background: var(--pet); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); }
.pettag[aria-pressed="true"] .pet-icon { color: var(--tag-ink); }
.pettag[aria-pressed="true"] .label { font-weight: 800; }
.pettag:focus-visible { outline: none; }
.pettag:focus-visible .disc { outline: 3px solid var(--primary); outline-offset: 5px; }
body:not(.browsing) .pettag { width: 5rem; }
body:not(.browsing) .pettag .disc { width: 4.25rem; height: 4.25rem; }
body:not(.browsing) .pettag .pet-icon { width: 2.1rem; height: 2.1rem; }
body:not(.browsing) .pettag .label { font-size: 0.85rem; }
@media (max-width: 30rem) {
  .pettag { width: 4.9rem; }
  .pettag .disc { width: 4.4rem; height: 4.4rem; }
  .pettag .pet-icon { width: 2.15rem; height: 2.15rem; }
  .pettag .label { font-size: 0.85rem; }
}

/* ---------- listing ---------- */
.listing { padding-top: clamp(1.25rem, 3vw, 2rem); }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: end; padding-bottom: 1.25rem; }
.heading h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; letter-spacing: -0.02em; font-stretch: 92%; overflow-wrap: anywhere; }
.heading p { margin: 0.2rem 0 0; min-height: 1.5em; }
.controls { display: flex; gap: 0.75rem 1.25rem; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.check { display: inline-flex; gap: 0.45rem; align-items: center; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--btn); }
.sortpick { display: inline-flex; gap: 0.5rem; align-items: center; }
.controls select, .field input, .field select, .field textarea, .coupon input {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-field); padding: 0.55rem 0.75rem;
}
.controls select { border-radius: 99px; padding: 0.4rem 0.8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .controls select:focus-visible, .coupon input:focus-visible {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.75rem, 1.6vw, 1.35rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25rem), 1fr));
}
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); } }
.grid > li { display: flex; }
.tile {
  display: flex; flex-direction: column; width: 100%; text-align: start; padding: 0; overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-card); color: var(--ink);
}
.tile:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }

.shot {
  --pet: var(--pet-all);
  position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--pet) 15%, var(--surface));
}
.shot[data-pet="dogs"] { --pet: var(--pet-dogs); }
.shot[data-pet="cats"] { --pet: var(--pet-cats); }
.shot[data-pet="small-animals"] { --pet: var(--pet-small); }
.shot[data-pet="birds"] { --pet: var(--pet-birds); }
.shot[data-pet="fish-aquatics"] { --pet: var(--pet-fish); }
.shot[data-pet="reptiles"] { --pet: var(--pet-reptiles); }
.shot img { width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: var(--blend); display: block; }
.shot > .pet-icon { width: 38%; height: 38%; color: color-mix(in srgb, var(--pet) 70%, var(--ink)); stroke-width: 1.3; }
.badge {
  position: absolute; top: 0.7rem; inset-inline-start: 0.7rem; padding: 0.2rem 0.65rem; border-radius: 99px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.5;
}
.badge.sale { background: var(--sale); color: #fff; }
.badge.out { background: var(--btn); color: var(--btn-ink); }
.tile-body { display: grid; gap: 0.3rem; padding: 0.85rem 1rem 1.1rem; align-content: start; flex: 1; }
.tile-cat { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.tile h3 {
  font: 650 1.02rem/1.3 var(--sans); overflow-wrap: break-word; hyphens: auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.4rem; font-size: 0.85rem; color: var(--muted); }
.stars { color: var(--star); letter-spacing: 0.06em; }
.tile-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5rem; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.tile-price strong { font: 750 1.2rem/1.2 var(--display); }
.tile-price s, .pdp-price s { color: var(--muted); font-size: 0.92rem; }
.soldout .shot img, .soldout .shot > .pet-icon { opacity: 0.45; filter: grayscale(1); }
.soldout .tile-price { color: var(--muted); }
.empty { grid-column: 1 / -1; display: grid !important; justify-items: center; gap: 0.75rem; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .pet-icon { width: 3.5rem; height: 3.5rem; }
.empty p { margin: 0; max-width: 34ch; }
.more { text-align: center; margin-top: 2.25rem; }

/* ---------- promises ---------- */
.promises {
  list-style: none; margin: clamp(3rem, 7vw, 5rem) 0 0; padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  background: var(--surface); border-radius: 28px; border: 1.5px solid var(--line);
}
.promises li { display: flex; gap: 0.9rem; align-items: flex-start; }
.promises svg { width: 2rem; height: 2rem; flex: none; color: var(--primary); }
.promises strong { display: block; font: 700 1.05rem/1.3 var(--display); margin-bottom: 0.2rem; }
.promises span { color: var(--muted); font-size: 0.93rem; }

/* ---------- buttons ---------- */
.primary {
  width: 100%; background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 99px;
  padding: 0.9rem 1.3rem; font-weight: 700;
}
.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--btn) 85%, var(--primary)); }
.primary:disabled { opacity: 0.4; cursor: not-allowed; }
.ghost { background: none; border: 1.5px solid var(--ink); border-radius: 99px; padding: 0.6rem 1.15rem; font-weight: 650; color: var(--ink); }
.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ghost[aria-pressed="true"] { background: color-mix(in srgb, var(--pet-cats) 18%, var(--surface)); border-color: var(--pet-cats); }
.danger { color: var(--danger); }
.danger-btn { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }

/* ---------- language-specific typography ---------- */
:lang(ar) {
  --display: "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --sans: system-ui, "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
}
/* Arabic letters join: negative tracking and condensed widths break them. */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .wordmark, :lang(ar) .tile-price strong { letter-spacing: 0; font-stretch: normal; }
:lang(ar) .hero h1 { line-height: 1.25; }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; }

/* ---------- dialogs ---------- */
dialog {
  border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: 24px;
  width: min(46rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); box-shadow: 0 30px 80px rgba(16, 22, 44, 0.35);
}
#productDlg { width: min(62rem, calc(100vw - 1.5rem)); }
dialog::backdrop { background: rgba(16, 22, 44, 0.55); }
.sheet { padding: clamp(1.25rem, 4vw, 2.25rem); display: grid; gap: 1.1rem; }
.sheet header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.sheet h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 750; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sheet h3 { font-size: 1.25rem; font-weight: 700; margin-top: 0.5rem; }
.close {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--paper);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.close:hover { background: var(--line); }

.pdp { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 44rem) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.gallery { display: grid; gap: 0.6rem; align-content: start; }
.gallery .shot { border-radius: 20px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.thumb {
  width: 3.75rem; height: 3.75rem; padding: 0.2rem; border-radius: 12px; border: 2px solid var(--line);
  background: var(--paper); overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--blend); display: block; }
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.pdp .info { display: grid; gap: 0.9rem; align-content: start; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.65rem; }
.tag { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.desc { max-width: 62ch; margin: 0; white-space: pre-line; }
.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.opts legend { font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 0.45rem 1rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.opt input:disabled + span { text-decoration: line-through; opacity: 0.45; }
.pdp .info > .ghost { justify-self: start; }
.eta { margin: 0; padding: 0.6rem 0.9rem; border-radius: var(--r-field); background: color-mix(in srgb, var(--pet-fish) 13%, var(--surface)); color: var(--ink); }
.buy { display: flex; gap: 0.6rem; align-items: stretch; }
.buy select { width: 5rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 99px; padding: 0 0.75rem; }
.buy .primary { flex: 1; width: auto; }
.reviews { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; max-width: 62ch; }
.reviews li { padding: 1rem 1.1rem; border-radius: 16px; background: var(--paper); }

.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.row2 { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 26rem) { .row2 { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 0.4rem; padding: 0.3rem; background: var(--paper); border-radius: 99px; justify-self: start; }
.tabs button { background: none; border: 0; padding: 0.45rem 1.1rem; border-radius: 99px; font: 700 1.05rem var(--display); color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(16, 22, 44, 0.15); }
.err { color: var(--danger); margin: 0; min-height: 1.4em; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.order { border: 1.5px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; display: grid; gap: 0.3rem; }
.status { font-weight: 700; }
code { background: var(--paper); padding: 0.1rem 0.4rem; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(16, 22, 44, 0.5); z-index: 40; }
:root { --flip: 1; }
[dir="rtl"] { --flip: -1; }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: min(27rem, 100vw); z-index: 50; background: var(--surface);
  padding: 1.5rem; overflow-y: auto; display: grid; align-content: start; gap: 1.1rem;
  border-start-start-radius: 24px; border-end-start-radius: 24px;
  transform: translateX(calc(100% * var(--flip))); visibility: hidden; transition: transform 0.28s cubic-bezier(.2, .8, .2, 1), visibility 0s 0.28s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.28s cubic-bezier(.2, .8, .2, 1); }
.drawer header { display: flex; justify-content: space-between; align-items: center; }
.drawer h2 { font-size: 1.6rem; font-weight: 750; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.line .qty { display: flex; gap: 0.45rem; align-items: center; }
.line .qty button { width: 2rem; height: 2rem; border: 1.5px solid var(--line); background: var(--surface); border-radius: 50%; }
.line .qty button:hover { border-color: var(--ink); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 0; font-variant-numeric: tabular-nums; padding: 1rem 1.1rem; background: var(--paper); border-radius: 16px; }
.totals dd { margin: 0; text-align: end; }
.totals .grand { font: 800 1.3rem var(--display); }
.coupon { display: flex; gap: 0.5rem; }
.coupon input { flex: 1; min-width: 0; border-radius: 99px; padding-inline: 1rem; }
#payment-element { min-height: 6rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 200%); background: var(--btn); color: var(--btn-ink);
  padding: 0.75rem 1.25rem; border-radius: 99px; z-index: 200; transition: transform 0.25s cubic-bezier(.2, .8, .2, 1);
  max-width: calc(100vw - 2rem); font-weight: 600; box-shadow: 0 10px 30px rgba(16, 22, 44, 0.25);
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.bad { background: var(--danger); color: #fff; }

/* social sign-in + checkout */
a.google {
  display: block; text-align: center; text-decoration: none; padding: 0.7rem 1rem; border: 1.5px solid var(--line);
  border-radius: 99px; color: var(--ink); font-weight: 650;
}
a.google:hover { border-color: var(--ink); }
.or { text-align: center; margin: 0.5rem 0; font-size: 0.85rem; }

/* returns */
.ret { margin-top: 0.35rem; font-size: 0.92rem; }
.retline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.35rem 0; }

/* ---------- footer ---------- */
.foot {
  margin-top: clamp(3rem, 6vw, 4.5rem); background: #1b2440; color: #e7eaf3;
  padding: 2.5rem max(var(--gutter), calc((100% - var(--max)) / 2)) 3rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start;
}
@media (prefers-color-scheme: dark) { .foot { background: #0b0f19; } }
.foot-brand { display: grid; gap: 0.3rem; max-width: 30rem; }
.foot-name { font: 800 1.5rem/1.1 var(--display); letter-spacing: -0.02em; font-stretch: 88%; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot .textbtn { color: #e7eaf3; }
.foot :focus-visible { outline-color: #fff; }
.policy p { white-space: pre-line; margin: 0 0 0.9rem; max-width: 68ch; }
.consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; margin: 0.75rem 0; }
.consent input { margin-top: 0.25rem; accent-color: var(--btn); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.open, .toast, .pettag .disc { transition: none; }
  .pettag:hover .disc { transform: none; }
  .hero-art .big { animation: none; }
}
