/* ==========================================================================
   JANYA ENTERPRISE — "Playful pet scrapbook"
   One stylesheet, mobile first, no frameworks.

   Contents
   01 Tokens            07 Hero
   02 Reset & base      08 Sections, tiles, cards
   03 Layout            09 Products page (filters)
   04 Buttons           10 Product detail
   05 Header & nav      11 Contact
   06 Loader            12 Footer, back-to-top
                        13 Animations & reduced motion
   ========================================================================== */

/* ---------------------------------------------------------- 01 Tokens ---- */
:root {
    /* Brand palette */
    --cream:      #FFF8EE;
    --cream-deep: #FFF0DC;
    --terracotta: #E8663D;
    --terracotta-dark: #C9502B;
    --teal:       #0F4C4A;
    --teal-light: #1A6B68;
    --mustard:    #F4B63F;
    --pink:       #FFD9CC;
    --ink:        #0F4C4A;
    --white:      #FFFFFF;

    /* Roles */
    --bg:         var(--cream);
    --text:       var(--teal);
    --muted:      #5C7B79;
    --line:       var(--teal);

    /* Scrapbook geometry */
    --border:     3px solid var(--line);
    --border-thin: 2px solid var(--line);
    --r-sm:       14px;
    --r-md:       22px;
    --r-lg:       34px;
    --r-xl:       48px;
    --shadow:     6px 6px 0 var(--teal);
    --shadow-sm:  4px 4px 0 var(--teal);
    --shadow-lg:  10px 10px 0 var(--teal);

    /* Type */
    --font-head:  'Fredoka', 'Trebuchet MS', 'Comic Sans MS', sans-serif;
    --font-body:  'Nunito', 'Trebuchet MS', system-ui, sans-serif;

    /* Spacing */
    --gutter:     18px;
    --shell:      1180px;
    --header-h:   68px;
}

/* ---------------------------------------------------- 02 Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 600;
    overflow-x: hidden;
}

/* Soft paw-print wash across the whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 30%, rgba(244,182,63,.10) 0 18%, transparent 18%),
                      radial-gradient(circle at 78% 68%, rgba(232,102,61,.08) 0 22%, transparent 22%);
}

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

h1 { font-size: clamp(2.1rem, 7.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 3.2vw, 1.45rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--terracotta-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

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

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px dashed var(--terracotta);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--teal); color: var(--white);
    padding: 10px 16px; z-index: 300; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------- 03 Layout ---- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { position: relative; padding: 54px 0; }
.section--tight { padding: 34px 0; }
.section--cream { background: var(--cream-deep); }
.section--pink  { background: var(--pink); }
.section--teal  { background: var(--teal); color: var(--cream); }
.section--teal h2, .section--teal h3 { color: var(--cream); }

.section__head { max-width: 640px; margin-bottom: 30px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: var(--mustard);
    color: var(--teal);
    border: var(--border-thin);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 12px;
    transform: rotate(-1.5deg);
}
.section--teal .section__kicker { background: var(--mustard); border-color: var(--cream); }
.section__lead { color: var(--muted); font-weight: 600; }
.section--teal .section__lead { color: #BFE0DE; }

.grid { display: grid; gap: 16px; }

/* 2 columns on phones, as asked */
.grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--tiles    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--stats    { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Wavy SVG dividers */
.wave { line-height: 0; }
.wave svg { width: 100%; height: 52px; display: block; }
.wave--flip svg { transform: scaleY(-1); }
.wave--cream svg path { fill: var(--cream-deep); }
.wave--pink  svg path { fill: var(--pink); }
.wave--teal  svg path { fill: var(--teal); }
.wave--body  svg path { fill: var(--cream); }

/* Decorative paw scatter */
.paw-scatter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.paw-scatter__paw { position: absolute; color: var(--terracotta); opacity: .09; }
.paw-scatter__paw svg { width: 100%; height: auto; fill: currentColor; }
.section > .shell { position: relative; z-index: 1; }

/* --------------------------------------------------------- 04 Buttons ---- */
.btn {
    --btn-bg: var(--terracotta);
    --btn-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 12px 22px;
    border: var(--border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .14s ease, background .2s ease;
}
.btn:hover { color: var(--btn-fg); transform: translate(-1px, -2px); box-shadow: var(--shadow); }
/* Press-down: the shadow shrinks as the button sinks */
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--teal); }

.btn--primary { --btn-bg: var(--terracotta); --btn-fg: var(--white); }
.btn--mustard { --btn-bg: var(--mustard);    --btn-fg: var(--teal); }
.btn--teal    { --btn-bg: var(--teal);       --btn-fg: var(--cream); }
.btn--ghost   { --btn-bg: transparent;       --btn-fg: var(--teal); }
.btn--light   { --btn-bg: var(--cream);      --btn-fg: var(--teal); }
.btn--sm      { padding: 8px 16px; font-size: .92rem; box-shadow: 3px 3px 0 var(--teal); }
.btn--lg      { padding: 15px 30px; font-size: 1.1rem; }
.btn--block   { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* "Ask for price" chip, in place of a price */
.price-chip {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    background: var(--pink);
    color: var(--teal);
    border: var(--border-thin);
    border-radius: 999px;
    padding: 3px 11px;
    white-space: nowrap;
}

/* Sticker badge — slightly rotated, thick outline */
.sticker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .85rem;
    background: var(--mustard);
    color: var(--teal);
    border: var(--border);
    border-radius: 999px;
    padding: 6px 15px;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------- 05 Header & nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: var(--border);
    transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 5px 0 rgba(15, 76, 74, .14); }

.site-header__inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.logo__paw { width: 34px; flex: none; color: var(--terracotta); }
.logo__paw svg { width: 100%; height: auto; fill: currentColor; }
.logo__paw--light { color: var(--mustard); width: 44px; margin-inline: auto 0; }
.logo__img { height: 44px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 700; }
.logo__sub {
    font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--terracotta); font-weight: 800;
}

/* Mobile: slide-down panel */
.nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: var(--border);
    padding: 16px var(--gutter) 22px;
    display: grid;
    gap: 14px;
    transform: translateY(-120%);
    transition: transform .3s cubic-bezier(.3, .8, .3, 1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}
.nav.is-open { transform: translateY(0); }

.nav__list { display: grid; gap: 4px; }
.nav__link {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    text-decoration: none;
    color: var(--teal);
    padding: 10px 14px;
    border-radius: var(--r-sm);
    border: 2px solid transparent;
}
.nav__link:hover { background: var(--pink); }
.nav__link.is-current { background: var(--mustard); border-color: var(--teal); }
.nav__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.burger {
    width: 46px; height: 42px;
    display: grid; place-content: center; gap: 5px;
    background: var(--mustard);
    border: var(--border);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--teal);
    cursor: pointer;
    padding: 0;
}
.burger span {
    display: block; width: 22px; height: 3px;
    background: var(--teal); border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------- 06 Loader ---- */
.loader {
    position: fixed; inset: 0; z-index: 500;
    background: var(--cream);
    display: grid; place-content: center; justify-items: center; gap: 14px;
    transition: opacity .45s ease, visibility .45s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__paw { width: 76px; color: var(--terracotta); animation: paw-bounce 0.75s ease-in-out infinite; }
.loader__paw svg { width: 100%; height: auto; fill: currentColor; }
.loader__text {
    font-family: var(--font-head); letter-spacing: .2em; font-size: .8rem;
    text-transform: uppercase; color: var(--muted); margin: 0;
}

/* ------------------------------------------------------------ 07 Hero ---- */
.hero { position: relative; padding: 30px 0 10px; overflow: hidden; }
.hero__inner { display: grid; gap: 26px; position: relative; z-index: 2; }

.hero__title { margin-bottom: 14px; }
.hero__title em {
    font-style: normal;
    color: var(--terracotta);
    position: relative;
    white-space: nowrap;
}
/* Hand-drawn underline under the highlighted words */
.hero__title em::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px; height: 10px;
    background: var(--mustard);
    border-radius: 50%;
    z-index: -1;
    opacity: .75;
}
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 44ch; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__stat {
    background: var(--white); border: var(--border-thin); border-radius: var(--r-sm);
    padding: 7px 13px; font-size: .86rem; font-weight: 800;
}

/* Photos inside organic blob masks */
.hero__art { position: relative; min-height: 300px; }
.blob {
    position: relative;
    overflow: hidden;
    border: var(--border);
    box-shadow: var(--shadow);
    background: var(--pink);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob--dog {
    width: 62%;
    aspect-ratio: 4 / 5;
    border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%;
    animation: blob-morph 14s ease-in-out infinite;
}
.blob--cat {
    position: absolute;
    right: 0; bottom: 0;
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 46% 54% 40% 60% / 56% 44% 56% 44%;
    animation: blob-morph 17s ease-in-out infinite reverse;
}

/* Floating stickers around the hero photos */
.hero__sticker {
    position: absolute;
    z-index: 3;
    animation: float-y 4.5s ease-in-out infinite;
}
.hero__sticker .sticker { transform: rotate(var(--rot, -5deg)); }
.hero__sticker--1 { top: 2%;  left: -2%;  --rot: -8deg;  animation-delay: 0s; }
.hero__sticker--2 { top: 36%; right: -2%; --rot: 7deg;   animation-delay: .9s; }
.hero__sticker--3 { bottom: 4%; left: 4%; --rot: -4deg;  animation-delay: 1.8s; }

/* Paw trail walking across the hero */
.paw-trail {
    position: absolute; left: 0; right: 0; bottom: 6px; height: 46px;
    pointer-events: none; z-index: 1; overflow: hidden;
}
.paw-trail__paw {
    position: absolute; bottom: 0; width: 22px; color: var(--terracotta);
    opacity: 0;
    animation: paw-walk 7s linear infinite;
}
.paw-trail__paw svg { width: 100%; height: auto; fill: currentColor; }
.paw-trail__paw:nth-child(even) { bottom: 18px; }

/* ------------------------------------------- 08 Tiles, cards, sections -- */
/* "Shop by pet" split panels */
.pet-split { display: grid; gap: 16px; }
.pet-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--teal);
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pet-card:hover { transform: translate(-3px, -4px); box-shadow: var(--shadow-lg); color: var(--teal); }
.pet-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--border); }
.pet-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pet-card:hover .pet-card__media img { transform: scale(1.07); }
.pet-card__body { padding: 16px 18px 20px; }
.pet-card__body h3 { margin-bottom: 4px; }
.pet-card__body p { color: var(--muted); font-size: .95rem; }
.pet-card__go {
    display: inline-block; margin-top: 10px;
    font-family: var(--font-head); color: var(--terracotta-dark);
}

/* Category tiles with bouncing icons */
.tile {
    display: block;
    text-decoration: none;
    color: var(--teal);
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 18px 16px 20px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.tile:hover {
    transform: translate(-2px, -3px);
    box-shadow: var(--shadow);
    background: var(--cream-deep);
    color: var(--teal);
}
.tile__icon {
    width: 58px; height: 58px;
    display: grid; place-content: center;
    background: var(--pink);
    border: var(--border-thin);
    border-radius: 18px;
    color: var(--terracotta-dark);
    margin-bottom: 12px;
}
.tile:nth-child(2n) .tile__icon { background: var(--mustard); }
.tile:nth-child(3n) .tile__icon { background: #CFE9E6; }
.tile__icon .icon { width: 32px; height: 32px; }
.tile:hover .tile__icon .icon { animation: icon-bounce .6s ease; }
.tile__name { font-size: 1.08rem; margin-bottom: 3px; }
.tile__desc { font-size: .86rem; color: var(--muted); margin: 0; }
.tile__count {
    display: inline-block; margin-top: 10px;
    font-size: .76rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--terracotta-dark);
}

/* Product card */
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
/* Hover: slight tilt, image zoom, Buy Now wiggles */
@media (hover: hover) {
    .card:hover {
        transform: rotate(-1.1deg) translate(-2px, -4px);
        box-shadow: var(--shadow);
    }
    .card:hover .card__media img { transform: scale(1.08); }
    .card:hover .btn--buy { animation: wiggle .5s ease; }
}

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;           /* every product photo gets the same ratio */
    overflow: hidden;
    background: var(--pink);
    border-bottom: var(--border);
}
.card__media img {
    width: 100%; height: 100%;
    object-fit: cover;              /* so the grid stays tidy */
    transition: transform .45s ease;
}
.card__media img.is-fallback { object-fit: contain; background: var(--pink); }
.card__sticker {
    position: absolute; top: 9px; left: 9px;
    font-family: var(--font-head); font-size: .7rem;
    background: var(--mustard); color: var(--teal);
    border: var(--border-thin); border-radius: 999px;
    padding: 2px 9px;
    transform: rotate(-4deg);
}
.card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; gap: 5px; }
.card__cat {
    font-size: .68rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--terracotta-dark); margin: 0;
}
.card__title { font-size: 1rem; margin: 0; line-height: 1.2; }
.card__title a { color: var(--teal); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__short { font-size: .83rem; color: var(--muted); margin: 0; font-weight: 600; }
.card__foot {
    margin-top: auto; padding-top: 10px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    justify-content: space-between;
}
.card__foot .btn--buy { padding: 8px 14px; font-size: .88rem; box-shadow: 3px 3px 0 var(--teal); }

/* Scrolling ribbon */
.marquee {
    background: var(--terracotta);
    border-block: var(--border);
    color: var(--white);
    padding: 11px 0;
    overflow: hidden;
    user-select: none;
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__run { display: flex; align-items: center; }
.marquee__item {
    font-family: var(--font-head); font-size: 1.02rem;
    letter-spacing: .1em; padding-inline: 14px; white-space: nowrap;
}
.marquee__dot { color: var(--mustard); font-size: 1.1rem; }

/* Why choose us — count-up stats */
.stat {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 18px 14px;
    text-align: center;
}
.stat:nth-child(2n) { background: var(--mustard); }
.stat__num {
    font-family: var(--font-head); font-size: clamp(1.9rem, 6vw, 2.7rem);
    line-height: 1; color: var(--terracotta-dark); display: block;
}
.stat:nth-child(2n) .stat__num { color: var(--teal); }
.stat__label { font-size: .84rem; color: var(--muted); margin: 6px 0 0; font-weight: 700; }
.stat:nth-child(2n) .stat__label { color: var(--teal); }

/* Why-us reason list */
.reasons { display: grid; gap: 14px; margin-top: 26px; }
.reason {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--white); border: var(--border-thin);
    border-radius: var(--r-md); padding: 15px 16px;
}
.reason__paw { width: 30px; flex: none; color: var(--terracotta); margin-top: 3px; }
.reason__paw svg { width: 100%; height: auto; fill: currentColor; }
.reason h3 { font-size: 1.05rem; margin-bottom: 3px; }
.reason p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Visit-our-store strip */
.visit { display: grid; gap: 20px; align-items: center; }
.visit__media {
    border: var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 4 / 3;
}
.visit__media img { width: 100%; height: 100%; object-fit: cover; }
.visit__rows { display: grid; gap: 10px; margin: 18px 0; }
.visit__row { display: flex; gap: 10px; font-size: .95rem; }
.visit__row dt { font-weight: 800; min-width: 86px; flex: none; color: var(--mustard); }
.visit__row dd { margin: 0; color: #CFE9E6; }

/* ------------------------------------------------- 09 Products page ----- */
.filters {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 15px;
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}
.filters__search { position: relative; }
.filters__search input {
    width: 100%;
    font-family: var(--font-body); font-size: 1rem; font-weight: 700;
    color: var(--teal);
    padding: 12px 16px 12px 42px;
    background: var(--cream);
    border: var(--border-thin);
    border-radius: 999px;
}
.filters__search input::placeholder { color: #9AB2B0; font-weight: 600; }
.filters__search svg {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--terracotta); pointer-events: none;
}
.filters__group { display: grid; gap: 7px; }
.filters__label {
    font-size: .68rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    font-family: var(--font-head); font-size: .86rem;
    background: var(--cream); color: var(--teal);
    border: var(--border-thin); border-radius: 999px;
    padding: 6px 13px; cursor: pointer;
    transition: transform .14s ease, background .18s ease;
}
.chip:hover { background: var(--pink); transform: translateY(-1px); }
.chip.is-active { background: var(--terracotta); color: var(--white); border-color: var(--teal); }

.results-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; justify-content: space-between;
    margin-bottom: 16px; font-size: .9rem; color: var(--muted);
}

/* Cards fade out / in while filtering */
.card.is-hidden { display: none; }
.card.is-filtering { opacity: 0; transform: scale(.94); }
.grid--products .card { transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease; }

.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 46px 20px;
    background: var(--white);
    border: 3px dashed var(--teal);
    border-radius: var(--r-lg);
}
.empty__paw { width: 62px; margin: 0 auto 14px; color: var(--pink); }
.empty__paw svg { width: 100%; height: auto; fill: currentColor; }

/* ------------------------------------------------ 10 Product detail ----- */
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--terracotta-dark); }
.crumbs span { margin-inline: 6px; }

.detail { display: grid; gap: 24px; }
.detail__media {
    position: relative;
    border: var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--pink);
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__media img.is-fallback { object-fit: contain; }
.detail__badge {
    position: absolute; top: 14px; left: 14px;
    transform: rotate(-5deg);
}
.detail__cat {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--terracotta-dark);
}
.detail__short { font-size: 1.05rem; color: var(--muted); }
.detail__buy {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    background: var(--cream-deep);
    border: var(--border-thin); border-radius: var(--r-md);
    padding: 15px; margin: 20px 0;
}
.detail__buy .price-chip { font-size: .92rem; padding: 5px 14px; }
.detail__note { font-size: .82rem; color: var(--muted); margin: 0; flex-basis: 100%; }

.spec { border: var(--border-thin); border-radius: var(--r-md); overflow: hidden; }
.spec__row { display: grid; gap: 2px; padding: 12px 15px; border-bottom: var(--border-thin); }
.spec__row:last-child { border-bottom: 0; }
.spec__row:nth-child(odd) { background: var(--white); }
.spec__key {
    font-size: .7rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
}
.spec__val { font-weight: 700; }
.spec__list { display: grid; gap: 7px; margin-top: 5px; }
.spec__list li { display: flex; gap: 9px; font-weight: 600; font-size: .94rem; }
.spec__list li::before {
    content: ''; flex: none; width: 9px; height: 9px; margin-top: 8px;
    background: var(--terracotta); border-radius: 50%;
}

.notfound { text-align: center; padding: 50px 0 20px; }
.notfound__paw { width: 100px; margin: 0 auto 18px; color: var(--pink); animation: paw-bounce 1.3s ease-in-out infinite; }
.notfound__paw svg { width: 100%; height: auto; fill: currentColor; }

/* ----------------------------------------------------- 11 Contact ------- */
.contact-grid { display: grid; gap: 22px; }

.info-card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 17px 18px;
}
.info-card h3 { font-size: 1.02rem; margin-bottom: 7px; }
.info-card p, .info-card address { font-style: normal; font-size: .94rem; margin: 0; }
.info-card a { font-weight: 700; }
.info-stack { display: grid; gap: 14px; }

.timings { display: grid; gap: 6px; margin: 0; }
.timings div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.timings dt { font-weight: 700; }
.timings dd { margin: 0; color: var(--muted); }

.map {
    border: var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--pink);
}
.map iframe { width: 100%; height: 330px; border: 0; display: block; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.field input, .field textarea, .field select {
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    color: var(--teal);
    background: var(--cream);
    border: var(--border-thin);
    border-radius: var(--r-sm);
    padding: 11px 14px;
    width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { background: var(--white); }
.field--error input, .field--error textarea { border-color: var(--terracotta); background: #FFF1EC; }
.field__error { font-size: .78rem; color: var(--terracotta-dark); font-weight: 700; min-height: 1em; }
.form__note { font-size: .82rem; color: var(--muted); }

/* ------------------------------------- 12 Footer & back-to-top ---------- */
.site-footer { background: var(--teal); color: #D8EDEB; padding-bottom: 16px; }
.site-footer__inner { display: grid; gap: 26px; padding-block: 10px 30px; }
.site-footer__name { font-size: 1.4rem; color: var(--cream); margin: 10px 0 6px; }
.site-footer__blurb { font-size: .92rem; color: #A8CECB; max-width: 34ch; }
.site-footer__brand .logo__paw--light { margin-inline: 0; }
.site-footer__h {
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--mustard); margin-bottom: 11px;
}
.site-footer__list { display: grid; gap: 7px; font-size: .92rem; }
.site-footer__list a { color: #D8EDEB; text-decoration: none; }
.site-footer__list a:hover { color: var(--mustard); text-decoration: underline; }
.site-footer__address { font-style: normal; font-size: .92rem; color: #A8CECB; margin-bottom: 13px; }
.site-footer__bar {
    border-top: 2px solid rgba(255, 248, 238, .2);
    padding-top: 14px;
    display: grid; gap: 4px;
    font-size: .8rem; color: #8FBDBA;
}
.site-footer__bar p { margin: 0; }

.to-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 90;
    width: 54px; height: 54px;
    display: grid; place-content: center;
    background: var(--mustard);
    color: var(--teal);
    border: var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    padding: 0;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--terracotta); color: var(--white); }
.to-top:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--teal); }
.to-top svg { width: 27px; height: 27px; fill: currentColor; transform: rotate(180deg); }

/* ------------------------------- 13 Animations & reduced motion --------- */
@keyframes paw-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-20px) scale(1.06); }
}

@keyframes blob-morph {
    0%, 100% { border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%; }
    33%      { border-radius: 44% 56% 38% 62% / 58% 42% 58% 42%; }
    66%      { border-radius: 62% 38% 60% 40% / 40% 60% 40% 60%; }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

/* A paw appears, walks right, then fades */
@keyframes paw-walk {
    0%        { transform: translateX(-6vw) rotate(12deg); opacity: 0; }
    6%        { opacity: .55; }
    82%       { opacity: .55; }
    100%      { transform: translateX(104vw) rotate(12deg); opacity: 0; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    35%      { transform: translateY(-9px) scale(1.12); }
    65%      { transform: translateY(2px) scale(.96); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-5deg); }
    50%      { transform: rotate(5deg); }
    75%      { transform: rotate(-3deg); }
}

/* Scroll reveal — JS adds .is-in when the element enters the viewport */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }
/* If JS never runs, show everything rather than an empty page */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .loader { display: none; }
    .paw-trail { display: none; }
    .card:hover { transform: none; }
}

/* ------------------------------------------------------ Breakpoints ----- */
@media (min-width: 560px) {
    :root { --gutter: 24px; }
    .grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pet-split { grid-template-columns: repeat(2, 1fr); }
    .site-footer__bar { grid-template-columns: 1fr auto; }
}

@media (min-width: 760px) {
    .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .grid--tiles    { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .reasons        { grid-template-columns: repeat(2, 1fr); }
    .contact-grid   { grid-template-columns: 1fr 1fr; }
    .filters        { grid-template-columns: 1fr; padding: 18px 20px; }
    .section        { padding: 70px 0; }
    .detail         { grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
    .visit          { grid-template-columns: 1fr 1fr; gap: 34px; }
    .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
    .card__title    { font-size: 1.08rem; }
    .card__body     { padding: 15px 16px 17px; }
}

@media (min-width: 1000px) {
    /* 4 product columns on desktop, as asked */
    .grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid--tiles    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero__inner    { grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
    .hero           { padding: 50px 0 20px; }
    .hero__art      { min-height: 440px; }

    /* Desktop: the nav sits inline in the header */
    .burger { display: none; }
    .nav {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 0;
        border: 0;
        background: transparent;
        max-height: none;
        overflow: visible;
    }
    .nav__list { display: flex; gap: 3px; }
    .nav__link { font-size: 1rem; padding: 8px 14px; }
}
