/* =====================================================================
   PawsHaus — design tokens
   Palette: warm cream base, coral-clay accent, charcoal-brown ink, sage green
   Type: Fraunces (display, used sparingly) + Figtree (body/UI)
   ===================================================================== */
:root {
  --cream:        #FBF6EC;
  --cream-deep:   #F3ECDD;
  --white:        #FFFFFF;
  --ink:          #35281E;
  --ink-soft:     #6B5C4F;
  --coral:        #E8683C;
  --coral-dark:   #C6501F;
  --coral-tint:   #FCE6DA;
  --sage:         #6E8F6C;
  --sage-tint:    #E6EEE1;
  --gold:         #E7A93F;
  --border:       #E7DCC9;
  --shadow-sm:    0 1px 2px rgba(53, 40, 30, 0.06), 0 1px 1px rgba(53, 40, 30, 0.04);
  --shadow-md:    0 8px 24px rgba(53, 40, 30, 0.10);
  --shadow-lg:    0 20px 48px rgba(53, 40, 30, 0.16);
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    26px;
  --radius-pill:  999px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Figtree', 'Segoe UI', system-ui, sans-serif;
  --container:    1200px;
  --nav-h:        76px;
}

/* =====================================================================
   Reset & base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* Keep a selected animal cursor visible over controls that otherwise set a pointer cursor. */
html[data-animal-cursor] button:not(:disabled),
html[data-animal-cursor] a,
html[data-animal-cursor] select,
html[data-animal-cursor] summary,
html[data-animal-cursor] [role="button"],
html[data-animal-cursor] .cat-card,
html[data-animal-cursor] .wishlist-btn,
html[data-animal-cursor] .qty-control button:not(:disabled) { cursor: var(--animal-cursor) !important; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; color: var(--ink); line-height: 1.15; }
p { margin: 0 0 1em; color: var(--ink-soft); }
input, select, textarea { font-family: inherit; font-size: .95rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 999; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 2px;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral-dark); margin: 0 0 .6em;
}
.eyebrow--center { text-align: center; }
.eyebrow--onpromo { color: var(--cream); opacity: .9; }

.section { padding: 88px 0; }
.section--tint { background: var(--cream-deep); }
.section__title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin-bottom: .3em; }
.section__title--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 620px; }
.section__head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; flex-wrap: wrap;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--coral-dark); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--onpromo { background: var(--white); color: var(--coral-dark); }
.btn--onpromo:hover { background: var(--cream); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: transparent; border: none; color: var(--ink);
  transition: background .15s ease;
}
.icon-btn:hover { background: var(--coral-tint); }
.cursor-picker { position: relative; }
.cursor-picker > .icon-btn svg { width: 22px; height: 22px; }
.cursor-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 168px; padding: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); z-index: 75;
}
.cursor-menu button {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit;
  font-size: .85rem; font-weight: 600; text-align: left;
}
.cursor-menu button:hover, .cursor-menu button:focus-visible { background: var(--coral-tint); outline: none; }
.cursor-menu img { width: 22px; height: 22px; object-fit: contain; }
.icon-btn svg { width: 20px; height: 20px; }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(251, 246, 236, 0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(251, 246, 236, 0.98); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }
.nav__brand {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--ink); flex-shrink: 0;
}
.nav__brand-mark { color: var(--coral); display: inline-flex; }
.nav__links { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.nav__links a { font-size: .93rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--coral);
  transition: width .2s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 4px; }
.nav__hamburger { display: none; }

.cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--coral); color: var(--white);
  font-size: .65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.search-bar { border-top: 1px solid var(--border); background: var(--white); }
.search-bar__inner { display: flex; align-items: center; gap: 12px; padding: 14px 24px; }
.search-bar__inner svg { width: 20px; height: 20px; color: var(--ink-soft); flex-shrink: 0; }
.search-bar__inner input { flex: 1; border: none; outline: none; font-size: 1rem; background: transparent; color: var(--ink); }

.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 84vw); background: var(--white);
  z-index: 90; padding: calc(var(--nav-h) + 20px) 24px 24px; box-shadow: var(--shadow-lg);
  transform: translateX(0); transition: transform .25s ease;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { padding: 12px 8px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); }
.mobile-nav a:hover { background: var(--coral-tint); }
.scrim {
  position: fixed; inset: 0; background: rgba(53,40,30,0.4); z-index: 85;
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero__copy h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); max-width: 15ch; }
.hero__lead { font-size: 1.08rem; max-width: 46ch; }
.hero__ctas { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }

.trust-row { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.trust-ico { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; background-color: var(--sage); mask-size: contain; mask-repeat: no-repeat; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; }

.hero__art { position: relative; padding: 10px; }
.hero__blob {
  position: relative; border: 8px solid var(--cream-deep);
  border-radius: 38px 38px 148px 38px;
  overflow: hidden; aspect-ratio: 1/1; background: var(--sage-tint); box-shadow: var(--shadow-lg);
}
.hero__blob::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(232,104,60,.2), transparent 46%, rgba(110,143,108,.3));
  mix-blend-mode: multiply;
}
.hero__blob img { width: 100%; height: 100%; object-fit: cover; background: var(--sage-tint); filter: sepia(.16) saturate(.84) contrast(.96) hue-rotate(-5deg); transition: opacity .28s ease, transform .35s ease; }
.hero__blob img.is-changing { opacity: 0; transform: scale(.97); }
.hero__controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.hero__arrow { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.hero__arrow:hover, .hero__arrow:focus-visible { background: var(--coral); border-color: var(--coral); color: var(--white); }
.hero__dots { display: flex; align-items: center; gap: 7px; }
.hero__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; }
.hero__dot.is-active { width: 23px; border-radius: var(--radius-pill); background: var(--coral); }
.hero__floatcard {
  position: absolute; background: var(--white); border-radius: var(--radius-md); padding: 14px 18px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; line-height: 1.2;
}
.hero__floatcard strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--coral-dark); }
.hero__floatcard span { font-size: .75rem; color: var(--ink-soft); font-weight: 600; }
.hero__floatcard--top { top: 6%; left: -6%; }
.hero__floatcard--bottom { bottom: 8%; right: -4%; }

.paw-trail {
  height: 34px; margin-top: 40px;
  background-image: radial-gradient(circle, var(--coral) 3px, transparent 3.5px);
  background-size: 46px 34px; background-repeat: repeat-x; background-position: center;
  opacity: .28;
}

/* =====================================================================
   Categories
   ===================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.cat-card {
  background: var(--white); border-radius: var(--radius-md); padding: 22px 18px; text-align: center;
  border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--coral); }
.cat-card__img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 3px solid var(--coral-tint); }
.cat-card h3 { font-size: 1.02rem; margin-bottom: .3em; }
.cat-card p { font-size: .82rem; margin-bottom: 1em; }
.cat-card__link { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--coral-dark); }

/* =====================================================================
   Shop toolbar + product grid
   ===================================================================== */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 40px 0 8px;
}
.shop-toolbar__filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shop-toolbar select, .shop-toolbar__sort select {
  border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill);
  padding: 10px 16px; font-size: .85rem; color: var(--ink); font-weight: 500;
}
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.shop-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }

.shop-active-filter {
  font-size: .85rem; font-weight: 600; color: var(--coral-dark); margin: 16px 0 0;
}

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px;
}
.product-grid--tight { grid-template-columns: repeat(4, 1fr); }

.product-state {
  text-align: center; padding: 60px 20px; color: var(--ink-soft); font-size: 1rem;
}

.product-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-card__media {
  position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f4f4f4;
  display: grid; place-items: center; padding: 18px;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .3s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.035); }

.product-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--coral); color: var(--white);
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
}
.product-card__badge--out { background: var(--ink-soft); }

.wishlist-btn {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: color .15s ease, transform .15s ease;
}
.wishlist-btn svg { width: 18px; height: 18px; }
.wishlist-btn:hover { transform: scale(1.08); }
.wishlist-btn.is-active { color: var(--coral); }
.wishlist-btn.is-active svg { fill: var(--coral); }

.product-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sage); }
.product-card__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.3; }
.product-card__desc { font-size: .82rem; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.rating {
  display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.rating .paw-ico { width: 14px; height: 14px; background-color: var(--gold); mask-size: contain; -webkit-mask-size: contain; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price-row .price { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.price-row .price--strike { font-size: .85rem; color: var(--ink-soft); text-decoration: line-through; font-weight: 500; }

.stock-tag { font-size: .75rem; font-weight: 600; }
.stock-tag--in { color: var(--sage); }
.stock-tag--low { color: var(--gold); }
.stock-tag--out { color: #B43C3C; }

.product-card__actions { display: flex; gap: 8px; margin-top: 10px; }
.product-card__actions .btn { flex: 1; padding: 10px 14px; font-size: .82rem; }

/* =====================================================================
   Promo banner
   ===================================================================== */
.promo { margin: 20px auto 0; }
.promo__inner {
  background: linear-gradient(120deg, var(--coral) 0%, var(--coral-dark) 100%);
  border-radius: var(--radius-lg); padding: 52px; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 32px; align-items: center; color: var(--cream); overflow: hidden;
}
.promo__text h2 { color: var(--white); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.promo__text p { color: rgba(255,255,255,.88); max-width: 42ch; }
.promo__art { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.promo__art img { aspect-ratio: 4/3; object-fit: cover; }

/* =====================================================================
   Feature grid (Why Us)
   ===================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card__ico {
  width: 42px; height: 42px; display: block; margin-bottom: 16px; border-radius: 12px;
  background: var(--sage-tint); position: relative;
}
.feature-card__ico::before {
  content: ''; position: absolute; inset: 11px; background-color: var(--sage);
  mask-size: contain; -webkit-mask-size: contain; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { font-size: .9rem; margin: 0; }

/* =====================================================================
   About
   ===================================================================== */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about__art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__art img { aspect-ratio: 4/5; object-fit: cover; }
.about__copy h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.about__stats { display: flex; gap: 36px; margin-top: 24px; }
.about__stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--coral-dark); }
.about__stats span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }

/* =====================================================================
   Reviews
   ===================================================================== */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
  flex-shrink: 0;
}
.review-card__name { font-weight: 700; font-size: .95rem; }
.review-card__pet { font-size: .78rem; color: var(--ink-soft); }
.review-card__text { font-size: .92rem; margin: 0; }

.review-form-wrap { margin-top: 40px; text-align: center; }
.review-form {
  text-align: left; max-width: 560px; margin: 20px auto 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__q {
  width: 100%; background: none; border: none; text-align: left; padding: 18px 22px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: .98rem; color: var(--ink);
}
.faq-item__q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; color: var(--coral); }
.faq-item.is-open .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  padding: 0 22px; font-size: .9rem; color: var(--ink-soft);
}
.faq-item.is-open .faq-item__a { max-height: 240px; padding: 0 22px 20px; }

/* =====================================================================
   Newsletter
   ===================================================================== */
.newsletter { background: var(--ink); padding: 64px 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter h2 { color: var(--cream); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-bottom: .25em; }
.newsletter p { color: rgba(251,246,236,.7); margin: 0; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form input {
  padding: 13px 18px; border-radius: var(--radius-pill); border: none; min-width: 260px; font-size: .92rem;
}

/* =====================================================================
   Contact
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact__lead { max-width: 40ch; }
.contact__details { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact__details li { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.contact__details span[data-ico] {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sage-tint); position: relative; flex-shrink: 0;
}
.contact__details span[data-ico]::before {
  content: ''; position: absolute; inset: 9px; background-color: var(--sage);
  mask-size: contain; -webkit-mask-size: contain; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
}

.contact-form, .checkout-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--cream); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-tint);
}
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #C6501F; }
.field__error { display: block; font-size: .78rem; color: #B43C3C; margin-top: 4px; min-height: 1em; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { background: var(--ink); color: rgba(251,246,236,.75); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(251,246,236,.12); }
.footer__brand p { color: rgba(251,246,236,.65); font-size: .88rem; max-width: 32ch; margin-top: 12px; }
.nav__brand--footer { color: var(--cream); margin-bottom: 4px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(251,246,236,.25); display: flex;
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: var(--cream);
}
.footer__social a:hover { background: var(--coral); border-color: var(--coral); }
.footer__col h3 { color: var(--cream); font-size: .9rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: .87rem; color: rgba(251,246,236,.7); }
.footer__col a:hover { color: var(--coral); }
.footer__bottom { padding: 22px 0; text-align: center; font-size: .8rem; color: rgba(251,246,236,.55); }

/* =====================================================================
   Cart drawer
   ===================================================================== */
.drawer-scrim { position: fixed; inset: 0; background: rgba(53,40,30,.45); z-index: 95; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--white);
  z-index: 100; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-drawer__head h2 { margin: 0; font-size: 1.25rem; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-drawer__footer { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.cart-drawer__row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1rem; font-weight: 700; }

.cart-empty { text-align: center; padding: 60px 10px; color: var(--ink-soft); }
.cart-empty svg { width: 46px; height: 46px; color: var(--coral); margin-bottom: 14px; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__info h4 { font-size: .9rem; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.cart-item__price { font-size: .85rem; color: var(--ink-soft); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty-control { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px; }
.qty-control button {
  width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--cream-deep); font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.qty-control span { min-width: 18px; text-align: center; font-size: .85rem; font-weight: 700; }
.cart-item__remove { font-size: .78rem; font-weight: 700; color: #B43C3C; background: none; border: none; }

/* =====================================================================
   Modals (product + checkout)
   ===================================================================== */
.modal-scrim { position: fixed; inset: 0; background: rgba(53,40,30,.5); z-index: 105; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 110;
  background: var(--white); border-radius: var(--radius-lg); width: min(880px, 92vw); max-height: 88vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal--checkout { width: min(640px, 92vw); }
.modal__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; background: var(--cream); z-index: 2;
}
.modal__body { padding: 8px 36px 36px; clear: both; }
.modal--checkout .modal__body { padding: 8px 32px 32px; }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.pd-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h2 { font-size: 1.6rem; margin-bottom: .2em; }
.pd-cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--sage); letter-spacing: .04em; }
.pd-desc { margin-top: 10px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.pd-price-row .price { font-size: 1.6rem; font-weight: 700; }
.pd-price-row .price--strike { font-size: 1rem; text-decoration: line-through; color: var(--ink-soft); }
.pd-qty-row { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.pd-actions { display: flex; gap: 12px; margin-top: 10px; }
.pd-actions .btn { flex: 1; }

.order-summary { background: var(--cream); border-radius: var(--radius-sm); padding: 16px; margin: 18px 0; }
.order-summary__row { display: flex; justify-content: space-between; font-size: .88rem; padding: 4px 0; color: var(--ink-soft); }
.order-summary__row strong { color: var(--ink); }
.order-summary__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border); }
.payment-note { font-size: .82rem; color: var(--ink-soft); margin: 4px 0 18px; }

.order-success { text-align: center; padding: 20px 0; }
.order-success__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sage-tint); color: var(--sage);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.order-success__icon svg { width: 30px; height: 30px; }
.order-success h2 { margin-bottom: .3em; }
.order-success__id { display: inline-block; background: var(--cream); padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 700; margin: 12px 0 24px; letter-spacing: .03em; }

/* =====================================================================
   Toasts
   ===================================================================== */
.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--cream); padding: 14px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
  animation: toast-in .25s ease;
  max-width: 320px;
}
.toast--error { background: #B43C3C; }
.toast--success { background: var(--sage); color: #17300F; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =====================================================================
   Skeleton loading state
   ===================================================================== */
.skeleton-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.skeleton-block { background: linear-gradient(90deg, var(--cream-deep) 25%, var(--border) 37%, var(--cream-deep) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; }
.skeleton-card .skeleton-block:first-child { aspect-ratio: 4/3; }
.skeleton-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; border-radius: 6px; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* =====================================================================
   Icon masks (trust row / feature cards / contact) — inline SVG data-URIs
   ===================================================================== */
[data-ico="quality"] { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l2.9 6 6.6.9-4.8 4.6 1.1 6.5L12 17l-5.8 3 1.1-6.5-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l2.9 6 6.6.9-4.8 4.6 1.1 6.5L12 17l-5.8 3 1.1-6.5-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E"); }
[data-ico="delivery"], .feature-card__ico[data-ico="delivery"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='1' y='7' width='14' height='10'/%3E%3Cpath d='M15 10h4l3 3v4h-7z'/%3E%3Ccircle cx='6' cy='19' r='2'/%3E%3Ccircle cx='18' cy='19' r='2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='1' y='7' width='14' height='10'/%3E%3Cpath d='M15 10h4l3 3v4h-7z'/%3E%3Ccircle cx='6' cy='19' r='2'/%3E%3Ccircle cx='18' cy='19' r='2'/%3E%3C/svg%3E"); }
[data-ico="paw"], .feature-card__ico[data-ico="paw"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='16.5' r='4.3'/%3E%3Ccircle cx='4.7' cy='9.8' r='2.2'/%3E%3Ccircle cx='11' cy='6.3' r='2.2'/%3E%3Ccircle cx='19.3' cy='9.8' r='2.2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='16.5' r='4.3'/%3E%3Ccircle cx='4.7' cy='9.8' r='2.2'/%3E%3Ccircle cx='11' cy='6.3' r='2.2'/%3E%3Ccircle cx='19.3' cy='9.8' r='2.2'/%3E%3C/svg%3E"); }
[data-ico="shield"], .feature-card__ico[data-ico="shield"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 8.7-8 11-4.6-2.3-8-6-8-11V5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 8.7-8 11-4.6-2.3-8-6-8-11V5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.feature-card__ico[data-ico="ribbon"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M8.5 13.5L6 22l6-3 6 3-2.5-8.5'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M8.5 13.5L6 22l6-3 6 3-2.5-8.5'/%3E%3C/svg%3E"); }
.feature-card__ico[data-ico="returns"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); }
.feature-card__ico[data-ico="support"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-7h3z'/%3E%3Cpath d='M3 19a2 2 0 0 0 2 2h1v-7H3z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-7h3z'/%3E%3Cpath d='M3 19a2 2 0 0 0 2 2h1v-7H3z'/%3E%3C/svg%3E"); }
.rating .paw-ico { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='16.5' r='4.3'/%3E%3Ccircle cx='4.7' cy='9.8' r='2.2'/%3E%3Ccircle cx='11' cy='6.3' r='2.2'/%3E%3Ccircle cx='19.3' cy='9.8' r='2.2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='16.5' r='4.3'/%3E%3Ccircle cx='4.7' cy='9.8' r='2.2'/%3E%3Ccircle cx='11' cy='6.3' r='2.2'/%3E%3Ccircle cx='19.3' cy='9.8' r='2.2'/%3E%3C/svg%3E"); }
[data-ico="mail"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 7l10 6 10-6'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 7l10 6 10-6'/%3E%3C/svg%3E"); }
[data-ico="phone"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.6 2.7a2 2 0 0 1-.4 2.1L8.1 9.7a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.4c.9.3 1.8.5 2.7.6a2 2 0 0 1 1.9 2.2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.6 2.7a2 2 0 0 1-.4 2.1L8.1 9.7a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.4c.9.3 1.8.5 2.7.6a2 2 0 0 1 1.9 2.2z'/%3E%3C/svg%3E"); }
[data-ico="clock"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
[data-ico="pin"]::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 1 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 1 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

/* =====================================================================
   Scroll-reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .product-grid--tight { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__art { max-width: 420px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .promo__inner { grid-template-columns: 1fr; text-align: center; padding: 36px 28px; }
  .promo__art { order: -1; max-width: 320px; margin: 0 auto; }
  .promo__text .btn { margin: 0 auto; }
  .pd-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .section { padding: 60px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid--tight { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter__inner { flex-direction: column; align-items: flex-start; }
  .newsletter__form { width: 100%; }
  .newsletter__form input { flex: 1; min-width: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-toolbar__filters { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 16px 10px; }
  .product-grid, .product-grid--tight { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__floatcard { display: none; }
  .modal__body { padding: 8px 18px 24px; }
  .promo__inner { padding: 28px 18px; }
}
/* Fix: keep elements with hidden attribute hidden */
[hidden] {
    display: none !important;
}
