/* =====================================================================
   PetDivina — storefront styles
   Editorial luxury: ivory paper, ink black, Bodoni display, Jost text.
   ===================================================================== */
:root {
  --ink: #141414; --ink-2: #3b3936; --muted: #716b63; --line: #e7e0d5; --line-2: #d8cfc1;
  --paper: #faf7f2; --paper-2: #f3ede3; --white: #fff;
  --gold: #a8834b; --sage: #dfe6dc; --sage-d: #56695b; --blush: #f2e1da; --plum: #5c3a48; --sky: #dfe6ee;
  --sale: #a2463a; --ok: #3f6b4a; --warn: #b07a2a;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 2px; --r-lg: 14px;
  --shadow: 0 18px 40px -22px rgba(20, 20, 20, .35);
  --container: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3, .h3 { font-size: 1.35rem; }
.h4, h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; margin-bottom: .6em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--ink-2); }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; } .right { text-align: right; } .ta-r { text-align: right; }
.strong { font-weight: 500; }
.mt { margin-top: 1rem; } .mt-l { margin-top: 2.5rem; } .mt-xl { margin-top: 4rem; }
.text-sale { color: var(--sale); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); }
.eyebrow { font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.eyebrow--light { color: #e2c897; }
.ico { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.ico--lg { width: 40px; height: 40px; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--gold); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; letter-spacing: .02em; }
.link-arrow .ico { width: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 30px; background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: var(--r); font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: #2c2a27; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper-2); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .72rem; }
.btn--lg { min-height: 58px; font-size: .85rem; }
.btn--block { display: flex; width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background .2s; position: relative; }
.icon-btn:hover { background: rgba(20, 20, 20, .06); }
.icon-btn--bordered { border: 1px solid var(--line-2); border-radius: var(--r); width: 50px; height: 50px; }
.icon-btn.is-saved, .card__wish.is-saved { color: var(--sale); }
.icon-btn.is-saved .ico use, .card__wish.is-saved .ico { fill: currentColor; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #e9e2d6; text-align: center; font-size: .78rem; letter-spacing: .08em; }
.announce p { margin: 0; padding: 9px 16px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 16px; }
.logo img { width: clamp(160px, 17vw, 230px); height: auto; }
.header__actions { display: flex; justify-content: flex-end; gap: 2px; }
.header__burger { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; font-weight: 500; }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav { display: flex; gap: 6px; }
.nav__item { position: relative; }
.nav__item > a { display: block; padding: 26px 14px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; position: relative; }
.nav__item > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 20px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__item > a:hover::after, .nav__item > a.is-active::after { transform: scaleX(1); }
.mega { position: absolute; left: -12px; top: 100%; display: grid; grid-template-columns: 220px 260px; gap: 28px; padding: 28px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease); }
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__col { display: flex; flex-direction: column; gap: 4px; }
.mega__col a { padding: 4px 0; color: var(--ink-2); }
.mega__col a:hover { color: var(--gold); }
.mega__all { margin-top: 10px; display: inline-flex !important; gap: 6px; align-items: center; font-weight: 500; color: var(--ink) !important; }
.mega__all .ico { width: 16px; }
.mega__feature { position: relative; display: flex; align-items: flex-end; min-height: 230px; padding: 18px; color: #fff; overflow: hidden; border-radius: 120px 120px 0 0; }
.mega__feature--dog { background: var(--sage-d); } .mega__feature--cat { background: var(--plum); }
.mega__feature img { position: absolute; right: 14px; top: 22px; height: 150px; width: auto; opacity: .95; }
.mega__feature span { position: relative; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.header--minimal .header__inner { grid-template-columns: 1fr auto 1fr; }
.header__back, .header__secure { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.header__secure { justify-self: end; } .header__back .ico, .header__secure .ico { width: 18px; }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav.is-open { visibility: visible; }
.mobile-nav__scrim, .drawer__scrim { position: absolute; inset: 0; background: rgba(20, 20, 20, .4); opacity: 0; transition: opacity .3s; }
.mobile-nav.is-open .mobile-nav__scrim, .drawer.is-open .drawer__scrim { opacity: 1; }
.mobile-nav__panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); background: var(--paper); padding: 18px 24px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--ease); }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { padding: 16px 0; font-family: var(--serif); font-size: 1.5rem; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details a { display: block; padding: 7px 0 7px 4px; color: var(--ink-2); }
.mobile-nav details[open] { padding-bottom: 12px; }
.mobile-nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }

/* Drawer (mini cart) */
.drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(100vw, 430px); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; }
.drawer__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0 0 auto 0; z-index: 96; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-100%); transition: transform .35s var(--ease); }
.search-overlay.is-open { transform: none; }
.search-overlay__form { display: flex; align-items: center; gap: 10px; width: min(100% - 40px, 900px); margin: 0 auto; padding: 22px 0; }
.search-overlay input { flex: 1; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: 400 clamp(1.4rem, 3vw, 2.2rem) var(--serif); padding: 10px 0; outline: none; }

/* Toasts */
.toasts { position: fixed; top: 90px; right: 20px; z-index: 120; display: grid; gap: 10px; max-width: min(92vw, 380px); }
.toast { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: .92rem; border-left: 3px solid var(--gold); animation: toastIn .4s var(--ease); }
.toast--error { border-left-color: #e0806f; } .toast--success { border-left-color: #9cc3a3; }
.toast__x { color: #fff; opacity: .7; font-size: 1.2rem; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--tint { background: var(--paper-2); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__head h2 { margin: 0; max-width: 24ch; }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center h2 { margin-inline: auto; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: min(78vh, 720px); padding: 56px 0; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); max-width: 13ch; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero__proof li { display: flex; gap: 8px; align-items: center; }
.hero__art { position: relative; height: 100%; min-height: 460px; }
.arch { position: absolute; bottom: 0; border-radius: 999px 999px 0 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.arch img { width: auto; }
.arch--sage { left: 4%; width: 52%; height: 92%; background: var(--sage); }
.arch--sage img { height: 66%; margin-bottom: 9%; }
.arch--blush { right: 2%; width: 40%; height: 68%; background: var(--blush); }
.arch--blush img { height: 64%; margin-bottom: 10%; }
.hero__seal { position: absolute; left: 49%; top: 6%; width: 124px; height: 124px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; box-shadow: var(--shadow); }
.hero__seal img { width: 54px; position: absolute; }
.hero__seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__seal text { font: 500 9.6px var(--sans); letter-spacing: .22em; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pet tiles */
.pets { padding-bottom: 0; }
.pets__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pet-tile { position: relative; min-height: 380px; display: flex; align-items: flex-end; padding: 34px; overflow: hidden; color: #fff; border-radius: var(--r); }
.pet-tile--dog { background: var(--sage-d); } .pet-tile--cat { background: var(--plum); }
.pet-tile img { position: absolute; right: 5%; bottom: 0; height: 90%; width: 40%; object-fit: contain; object-position: right bottom; opacity: .92; transition: transform .8s var(--ease); }
.pet-tile:hover img { transform: translateY(-10px) scale(1.03); }
.pet-tile__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 54%; }
.pet-tile__copy strong { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--serif); }

/* Category chips */
.cats-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
@media (max-width: 1100px) { .cats-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cats-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -20px; } .cat-chip { flex: 0 0 38%; scroll-snap-align: start; } }
.cat-chip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cat-chip__img { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper-2); }
.cat-chip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-chip:hover .cat-chip__img img { transform: scale(1.07); }
.cat-chip__name { font-family: var(--serif); font-size: 1.15rem; margin-top: 8px; }
.cat-chip__count { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* Tabs */
.tabs { display: flex; gap: 4px; border: 1px solid var(--line-2); padding: 4px; border-radius: 99px; }
.tab { padding: 8px 18px; border-radius: 99px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.tab.is-active { background: var(--ink); color: #fff; }

/* Grids + cards */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.card__alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__alt { opacity: 1; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { display: inline-block; padding: 4px 10px; background: var(--white); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.badge--sale { background: var(--sale); color: #fff; } .badge--muted { background: var(--ink); color: #fff; }
.card__wish { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; transition: transform .2s; }
.card__wish:hover { transform: scale(1.08); }
.card__wish .ico { width: 18px; }
.card__body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.card__title { font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; }
.card__title a:hover { color: var(--gold); }
.card__rating { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin: 0 0 6px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__add { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: .25s; }
.card__add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card__add .ico { width: 18px; }
.price { font-weight: 500; margin: 0; font-size: 1rem; }
.price s { color: var(--muted); font-weight: 400; margin-left: 4px; }
.price__from { font-size: .78rem; color: var(--muted); font-weight: 400; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 13px; height: 13px; display: inline-block; background: var(--line-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.5 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7L12 17.5 5.8 21.2l1.6-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.star.is-full { background: var(--gold); }
.star.is-half { background: linear-gradient(90deg, var(--gold) 50%, var(--line-2) 50%); }

/* Promise */
.promise { border-block: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0; }
.promise__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promise__item { text-align: center; padding: 0 10px; }
.promise__item .ico { color: var(--gold); margin-bottom: 14px; }
.promise__item h3 { font-size: 1.25rem; }
.promise__item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Story */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.story__art { background: var(--white); border: 1px solid var(--line); padding: clamp(40px, 7vw, 90px); border-radius: 999px 999px 0 0; }
.story__copy p { color: var(--ink-2); max-width: 52ch; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; padding: 32px; background: var(--white); border: 1px solid var(--line); }
.quote blockquote { margin: 14px 0 18px; font: italic 400 1.2rem/1.5 var(--serif); }
.quote figcaption { font-size: .85rem; color: var(--muted); }
.quote figcaption a { text-decoration: underline; text-underline-offset: 3px; }

/* Post card */
.post-card__img { display: block; aspect-ratio: 16/11; overflow: hidden; margin-bottom: 16px; background: var(--paper-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card h3 { font-size: 1.4rem; }
.post-card h3 a:hover { color: var(--gold); }

/* Club + footer */
.club { background: var(--ink); color: #fff; padding: clamp(50px, 7vw, 90px) 0; }
.club__inner { display: grid; grid-template-columns: auto 1.2fr 1fr; gap: 40px; align-items: center; }
.club__mark { width: 96px; opacity: .9; }
.club h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.club h2 em { color: #e2c897; }
.club p { color: #bdb6ab; margin: 0; }
.club__form { display: flex; flex-wrap: wrap; gap: 10px; }
.club__form input[type=email] { flex: 1; min-width: 200px; height: 50px; padding: 0 18px; background: transparent; border: 1px solid #555; color: #fff; border-radius: var(--r); }
.club__form input::placeholder { color: #8d877e; }
.club__msg { width: 100%; font-size: .88rem; color: #e2c897 !important; min-height: 1.2em; }
.footer { background: #0d0d0d; color: #bdb6ab; padding: 64px 0 26px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__grid a { display: block; padding: 4px 0; }
.footer__grid a:hover { color: #fff; }
.footer__brand img { width: 190px; margin-bottom: 18px; }
.footer__brand p { max-width: 36ch; }
.footer__social { display: flex; gap: 6px; }
.footer__social a { width: 38px; height: 38px; display: grid !important; place-items: center; border: 1px solid #333; border-radius: 50%; padding: 0 !important; }
.footer__social .ico { width: 17px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding-top: 22px; border-top: 1px solid #222; font-size: .8rem; }
.footer__base p { margin: 0; }

/* ---------- Page hero / listing ---------- */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero--dog { background: var(--sage); } .page-hero--cat { background: var(--blush); }
.page-hero--plain { background: var(--paper); }
.page-hero__inner { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.page-hero h1 { max-width: 18ch; }
.page-hero__sil { position: absolute; right: 4%; bottom: 0; height: 88%; width: auto; opacity: .16; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.filters { position: sticky; top: 100px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 1.5rem; margin: 0; }
.filters__close { display: none; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0; margin: 0; }
.filters legend { font: 500 .72rem var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filters fieldset > *:not(legend) { clear: both; }
.check { display: flex; gap: 10px; align-items: center; padding: 4px 0; cursor: pointer; font-size: .94rem; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; height: 42px; border: 1px solid var(--line-2); background: var(--white); padding: 0 10px; border-radius: var(--r); }
.filters__actions { display: grid; gap: 6px; padding-top: 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar p { margin: 0; }
.toolbar__filter { display: none; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; }
.toolbar__sort select { height: 40px; border: 1px solid var(--line-2); background: var(--white); padding: 0 12px; border-radius: var(--r); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: .9rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .dots { border: 0; }
.empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; }
.empty img { opacity: .2; margin-bottom: 16px; }
.empty--sm { padding: 40px 10px; margin: auto 0; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.gallery { position: sticky; top: 100px; display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.gallery__main { grid-column: 2; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs button { border: 1px solid transparent; opacity: .65; transition: .2s; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { border-color: var(--ink); opacity: 1; }
.gallery:not(:has(.gallery__thumbs)) { grid-template-columns: 1fr; }
.gallery:not(:has(.gallery__thumbs)) .gallery__main { grid-column: 1; }
.pdp__title { font-size: clamp(2rem, 3.4vw, 3rem); }
.pdp__rating { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.pdp__price { font-size: 1.5rem; font-weight: 400; margin-bottom: 18px; }
.buy { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.variants { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-size: .9rem; margin-bottom: 10px; padding: 0; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: inline-block; min-width: 72px; text-align: center; padding: 11px 18px; border: 1px solid var(--line-2); cursor: pointer; transition: .2s; font-size: .92rem; background: var(--white); }
.variant input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.variant input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.variant.is-out span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.stock { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot--low { background: var(--warn); } .dot--out { background: var(--sale); }
.buy__row { display: flex; gap: 10px; margin-top: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); height: 50px; background: var(--white); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; }
.qty button .ico { width: 16px; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 34px; } .qty--sm button { width: 30px; } .qty--sm span { min-width: 22px; text-align: center; font-size: .9rem; }
.pdp__perks { list-style: none; padding: 18px 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.pdp__perks li { display: flex; gap: 10px; align-items: center; }
.pdp__perks .ico { color: var(--gold); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; font-weight: 500; letter-spacing: .02em; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; font-weight: 300; line-height: 1; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .prose { padding-bottom: 18px; color: var(--ink-2); }
.accordion--faq summary { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose--page { font-size: 1.05rem; }
.prose--page > p:first-child { font-size: 1.2rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: 340px 1fr; gap: 60px; }
.reviews__summary h2 em { font-size: .6em; }
.reviews__list { display: grid; gap: 18px; }
.review { background: var(--white); padding: 26px; border: 1px solid var(--line); }
.review h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.review p:last-child { margin: 0; }
.review-form summary { list-style: none; margin-top: 10px; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form .form { margin-top: 20px; }
.rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate legend { width: 100%; font-size: .85rem; margin-bottom: 6px; float: left; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 1.8rem; color: var(--line-2); cursor: pointer; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.fields { display: grid; gap: 16px; }
.fields--2 { grid-template-columns: 1fr 1fr; } .fields--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; letter-spacing: .04em; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(168, 131, 75, .18); }
.field.has-error input, .field.has-error select { border-color: var(--sale); }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); margin: 0 0 20px; }
.panel--tint { background: var(--paper-2); }
fieldset.panel legend { font-family: var(--serif); font-size: 1.45rem; padding: 0 10px; margin-left: -10px; display: flex; gap: 12px; align-items: center; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 .8rem/28px var(--sans); text-align: center; }
.notice { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--paper-2); }
.notice--error { border-color: var(--sale); }

/* Cart */
.page-title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.table-cart { width: 100%; border-collapse: collapse; }
.table-cart th { text-align: left; font: 500 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.table-cart td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-cart th:last-child, .table-cart td:last-child { text-align: right; }
.cart-prod { display: flex; gap: 16px; align-items: center; }
.cart-prod img { width: 88px; height: 88px; object-fit: cover; background: var(--paper-2); }
.input-qty { width: 70px; height: 42px; text-align: center; border: 1px solid var(--line-2); background: var(--white); }
.cart__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.summary { background: var(--white); border: 1px solid var(--line); padding: 28px; display: grid; gap: 10px; }
.summary--sticky { position: sticky; top: 100px; }
.summary h2 { font-size: 1.6rem; margin-bottom: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: .95rem; }
.row--total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 1.1rem; font-weight: 500; }
.coupon { display: flex; gap: 8px; margin: 6px 0; }
.coupon input { flex: 1; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r); min-width: 0; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--sage); font-size: .88rem; margin: 6px 0; }
.ship-meter { margin-bottom: 14px; }
.ship-meter p { font-size: .88rem; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.ship-meter span { display: block; height: 4px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.ship-meter span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--gold); transition: width .6s var(--ease); }
.ship-meter.is-done span::after { background: var(--ok); }
.mini-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.mini-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.mini-line img { width: 72px; height: 72px; object-fit: cover; background: var(--paper-2); }
.mini-line__name { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; display: block; }
.mini-line p { margin: 2px 0 0; }
.mini-line__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.mini-lines--static { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mini-lines--static .mini-line { grid-template-columns: 64px 1fr auto; align-items: center; }
.mini-line__thumb { position: relative; }
.mini-line__thumb img { width: 64px; height: 64px; }
.mini-line__thumb b { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--muted); color: #fff; font: 500 .72rem/22px var(--sans); text-align: center; }

/* Checkout */
.is-minimal .header { position: relative; }
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option input { accent-color: var(--ink); margin-top: 4px; }
.pay-option__body { display: grid; gap: 4px; }
.bank { background: var(--white); border: 1px solid var(--gold); padding: 26px; margin: 0 0 20px; }
.bank h3 { font-size: 1.4rem; }
.bank dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0 0 12px; }
.bank dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bank dd { margin: 2px 0 0; font-weight: 500; }
.confirm { text-align: center; margin-bottom: 36px; }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-d); color: #fff; display: inline-grid; place-items: center; margin-bottom: 18px; }
.confirm__icon .ico { width: 30px; height: 30px; }
.confirm .lead { margin-inline: auto; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font: 500 .7rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; }
.status--awaiting_payment { background: #f5e8cf; color: #7a5413; }
.status--processing { background: var(--sky); color: #24405e; }
.status--shipped { background: #e4def0; color: #4b3b74; }
.status--delivered { background: var(--sage); color: #2f4d36; }
.status--cancelled, .status--refunded { background: #f1dcd8; color: #87352a; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); }
.auth__art { background: var(--ink); color: #d8d0c4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 40px; }
.auth__art img { width: min(260px, 50%); opacity: .95; }
.auth__art p { font: italic 1.4rem var(--serif); text-align: center; max-width: 22ch; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth__box { width: min(100%, 440px); }

/* Account */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.account__nav { position: sticky; top: 100px; }
.account__nav h2 { font-size: 2rem; }
.account__nav nav { display: grid; margin: 10px 0 20px; border-top: 1px solid var(--line); }
.account__nav nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.account__nav nav a.is-active { color: var(--ink); font-weight: 500; }
.account__nav nav a:hover { color: var(--gold); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); padding: 22px; display: grid; }
.stat strong { font: 400 2.4rem var(--serif); }
.stat span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .93rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font: 500 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { display: grid; padding-left: 18px; border-left: 2px solid var(--line); }
.timeline p { margin: 4px 0 0; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.addr { position: relative; }
.addr .badge { position: absolute; top: 14px; right: 14px; background: var(--sage); }
.pet-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pet-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px; background: var(--white); border: 1px solid var(--line); }
.pet-card img { width: 56px; height: 72px; object-fit: contain; }
.pet-card--dog { border-left: 3px solid var(--sage-d); } .pet-card--cat { border-left: 3px solid var(--plum); }
.pet-card h3 { margin: 0 0 2px; font-size: 1.3rem; }
.pet-card p { margin: 0 0 4px; }

/* Contact, posts, errors */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact__info { display: grid; gap: 22px; position: relative; }
.contact__sil { opacity: .12; margin-top: 20px; }
.post-hero { padding: clamp(40px, 6vw, 80px) 0 0; }
.post-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.post-hero__img { margin-top: 36px; width: 100%; max-height: 560px; object-fit: cover; }
.error-page img { margin: 0 auto 20px; opacity: .25; }
.error-page .lead { margin-inline: auto; }
.error-page .btn { margin: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .club__inner { grid-template-columns: 1fr; text-align: left; }
  .club__mark { display: none; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .header__burger { display: inline-grid; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero__art { min-height: 360px; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 97; background: var(--paper); padding: 20px; overflow-y: auto; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .filters.is-open { transform: none; }
  .filters__close, .toolbar__filter { display: inline-flex; }
  .pdp, .reviews, .story__grid, .cart, .checkout, .account, .contact, .auth { grid-template-columns: 1fr; }
  .gallery, .summary--sticky, .account__nav { position: static; }
  .auth__art { display: none; }
  .promise__grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__title { font-size: 1rem; }
  .card__add { width: 34px; height: 34px; }
  .pets__grid { grid-template-columns: 1fr; }
  .pet-tile { min-height: 280px; }
  .hero__art { min-height: 300px; }
  .hero__seal { width: 96px; height: 96px; left: 52%; }
  .fields--2, .fields--3, .cols-2, .bank dl { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .table-cart thead { display: none; }
  .table-cart tr { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .table-cart td { border: 0; padding: 0; }
  .table-cart td:first-child { grid-column: 1 / -1; }
  .table-cart td[data-label="Price"] { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__main { grid-column: 1; }
  .gallery__thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; }
  .gallery__thumbs button { width: 70px; flex: none; }
  .section__head { align-items: flex-start; }
  .toolbar { flex-wrap: wrap; }
  .header__secure { display: none; }
}
