:root {
    --paper: #fff8f2;
    --cream: #fbf2ea;
    --warm: #f2dfcb;
    --ink: #2f2b28;
    --muted: #756c64;
    --gold: #d6972c;
    --sage: #89936f;
    --clay: #ba6d4d;
    --line: rgba(47, 43, 40, 0.14);
    --shadow: 0 24px 70px rgba(73, 55, 41, 0.14);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.variant-field { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-weight: 800; }
.variant-field select { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; color: var(--ink); font: inherit; }

.welcome-offer {
    width: min(560px, calc(100% - 32px));
    padding: clamp(42px, 7vw, 72px) clamp(24px, 7vw, 64px);
    overflow: hidden;
    border: 1px solid rgba(255, 248, 242, 0.25);
    border-radius: 16px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 30px 100px rgba(30, 22, 17, 0.42);
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 280ms ease, transform 280ms ease;
}

.welcome-offer.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.welcome-offer::backdrop {
    background: rgba(47, 43, 40, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 280ms ease;
}

.welcome-offer.is-visible::backdrop {
    opacity: 1;
}

.welcome-offer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 248, 242, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    font-size: 1.65rem;
    line-height: 1;
}

.welcome-offer-kicker {
    margin-bottom: 12px;
    color: #efb85a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.welcome-offer-discount {
    display: block;
    max-width: 100%;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3rem, 6vw, 4rem);
    font-variant-numeric: lining-nums;
    line-height: 0.88;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.welcome-offer-copy {
    margin: 24px 0;
    color: rgba(255, 248, 242, 0.78);
    font-size: 1.08rem;
}

.welcome-offer-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-offer,
    .welcome-offer::backdrop {
        transition-duration: 0.01ms;
    }
}

.promotion-bar {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 7px 18px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) minmax(220px, 330px) auto auto;
    grid-template-areas: "brand nav search currency cart";
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    padding: 10px max(clamp(18px, 4vw, 54px), env(safe-area-inset-right)) 10px max(clamp(18px, 4vw, 54px), env(safe-area-inset-left));
    background: rgba(255, 248, 242, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
}

.brand img {
    width: 104px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

.nav-links a {
    white-space: nowrap;
}

.nav-links {
    grid-area: nav;
    display: flex;
    justify-content: center;
    gap: clamp(18px, 4vw, 42px);
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fffdf9;
    cursor: pointer;
}

.collection-intro { white-space: pre-line; }
#categories { scroll-margin-top: 180px; }
@media (min-width: 981px) { .nav-links { gap: clamp(12px, 1.5vw, 24px); } }

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.cart-button,
.add-button,
.primary-action,
.secondary-action,
.checkout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
}

.cart-button {
    grid-area: cart;
    gap: 8px;
    padding: 0 16px;
    background: var(--ink);
    color: #fff8f2;
}

.cart-button strong {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.78rem;
}

.cart-icon {
    width: 17px;
    height: 14px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px 2px 5px 5px;
    position: relative;
}

.cart-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -9px;
    width: 7px;
    height: 9px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.hero {
    position: relative;
    min-height: calc(100vh - 93px);
    display: grid;
    align-items: end;
    padding: clamp(34px, 6vw, 76px) clamp(18px, 6vw, 82px) 42px;
    background:
        linear-gradient(180deg, rgba(255, 248, 242, 0) 44%, rgba(255, 248, 242, 0.84) 100%),
        url("../images/optimized/pet-shop-hero-desktop-png.webp") center / cover no-repeat;
    overflow: hidden;
}

.hero-copy {
    display: flex;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.95;
    letter-spacing: 0;
}

h1 {
    max-width: 730px;
    margin-bottom: 22px;
    font-size: clamp(3.35rem, 8vw, 7.3rem);
}

h2 {
    font-size: clamp(2.15rem, 5vw, 4.5rem);
}

.hero-text {
    max-width: 620px;
    color: #5f554c;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 0;
}

.primary-action,
.secondary-action {
    padding: 0 24px;
}

.primary-action {
    background: var(--ink);
    color: var(--paper);
}

.secondary-action {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.shop-section,
.about-section,
.contact-section {
    padding-inline: clamp(18px, 6vw, 82px);
}

.shop-section {
    padding-top: clamp(54px, 9vw, 104px);
    padding-bottom: clamp(56px, 9vw, 104px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 690px) auto;
    align-items: end;
    gap: 24px;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    min-width: 0;
    padding: 12px 12px 16px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(73, 55, 41, 0.08);
    container-type: inline-size;
}

.product-visual {
    position: relative;
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: var(--warm);
}

.product-visual.gold {
    background: linear-gradient(145deg, #f6dfad, #fff4df);
}

.product-visual.sage {
    background: linear-gradient(145deg, #dce5d0, #fff7ed);
}

.product-visual.clay {
    background: linear-gradient(145deg, #f0cab9, #fff4e9);
}

.product-visual.ink {
    background: linear-gradient(145deg, #d7d3cd, #fff6ed);
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.86);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 900;
}

.product-shape {
    width: min(56%, 160px);
    aspect-ratio: 1;
    border-radius: 36% 64% 45% 55%;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.72), transparent 45%),
        currentColor;
    color: rgba(47, 43, 40, 0.62);
    box-shadow:
        inset -18px -24px 0 rgba(255, 255, 255, 0.24),
        0 18px 34px rgba(47, 43, 40, 0.14);
}

.product-info {
    display: flex;
    align-self: start;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
}

.product-info > div:first-child {
    min-width: 0;
}

.product-info p {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-info h3,
.product-info .product-card-title {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.product-name-link:hover,
.product-name-link:focus-visible {
    color: var(--clay);
}

.product-visual:hover .product-image,
.product-visual:focus-visible .product-image {
    transform: scale(1.025);
}

.product-image {
    transition: transform 180ms ease;
}

.premium-set-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--photo-columns, 3), minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
    overflow: hidden;
    border-radius: 8px;
    background: #f2e7d7;
}



.premium-set-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.premium-set-photo-placeholder { grid-column: 1 / -1; display: grid; min-height: 0; padding: 12px; place-items: center; text-align: center; color: var(--muted); font-weight: 800; }
.product-info .premium-set-products-label { margin: 16px 0 7px; color: var(--ink); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.premium-set-products { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: .84rem; line-height: 1.45; }
.premium-set-products a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf9; color: var(--ink); font-weight: 800; }
.premium-set-products a:hover, .premium-set-products a:focus-visible { border-color: var(--gold); background: #fff4df; }
.premium-set-empty { color: var(--muted); font-weight: 700; }

.product-info small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.product-pricing {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 3px;
    max-width: 46%;
    text-align: right;
    white-space: nowrap;
}

.product-pricing > span,
.product-detail-price > span {
    color: var(--muted);
    font-size: 0.84rem;
    text-decoration: line-through;
}

.product-pricing strong {
    font-size: 1.1rem;
}

.product-pricing small,
.product-detail-price small {
    color: var(--clay);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-pricing small {
    max-width: 100%;
    white-space: normal;
}

@container (max-width: 360px) {
    .product-info {
        flex-direction: column;
    }

    .product-pricing {
        max-width: 100%;
        justify-items: start;
        text-align: left;
    }
}

.add-button {
    appearance: none;
    align-self: end;
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    padding: 0 20px;
    line-height: 1;
    text-align: center;
    background: var(--ink);
    color: var(--paper);
}

.offer-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.category-section {
    padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 82px);
    background: #fffaf4;
    border-bottom: 1px solid var(--line);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.category-card {
    appearance: none;
    width: 100%;
    text-align: left;
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(73, 55, 41, 0.06);
    transition: transform 180ms ease, border-color 180ms ease;
    cursor: pointer;
}

.category-card:hover,
.category-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); }
.category-card span { font-family: "Cormorant Garamond", serif; font-size: 1.65rem; font-weight: 700; }
.category-card small { color: var(--muted); font-weight: 800; }

.regular-price.is-hidden { display: none; }

.all-products-section { background: #fffaf4; border-top: 1px solid var(--line); }
.category-filter-reset { align-self: end; justify-self: end; width: auto; }

@media (max-width: 980px) {
    .category-filter-reset { justify-self: end; }
}
.catalog-filter-status { min-height: 1.5em; margin: -14px 0 22px; color: var(--muted); font-weight: 800; }
.category-card.is-selected { border-color: var(--gold); background: #fff4df; }
.product-card.is-filtered-out { display: none !important; }

.reviews-section,
.faq-section {
    padding: clamp(58px, 8vw, 92px) clamp(18px, 6vw, 82px);
    border-top: 1px solid var(--line);
}

.reviews-section { background: #fffaf4; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.review-grid blockquote { margin: 0; padding: 20px; background: #fffdf9; border: 1px solid var(--line); border-radius: 8px; }
.review-grid blockquote > span { color: var(--gold); letter-spacing: 2px; }
.review-grid p { color: var(--muted); line-height: 1.6; }
.review-grid cite { font-style: normal; font-weight: 800; }
.review-translate-button { padding: 0; border: 0; background: transparent; color: var(--clay); cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.review-translate-button:disabled { cursor: wait; opacity: .65; }
.review-translation-status { margin-left: 8px; color: #9a3527; font-size: .78rem; }
.review-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 14px; }
.review-videos figure { margin: 0; }
.review-videos video { display: block; width: 100%; max-height: 420px; border-radius: 8px; background: #1d1a17; }
.review-videos figcaption { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.faq-section { max-width: 100%; background: var(--cream); }
.faq-section h2 { margin-bottom: 28px; }
.faq-section details { max-width: 900px; padding: 16px 0; border-top: 1px solid var(--line); }
.faq-section summary { cursor: pointer; font-weight: 800; }
.faq-section p { max-width: 680px; color: var(--muted); line-height: 1.6; }
.contact-card .contact-phone {
    display: inline-flex;
    margin-top: 12px;
    border-color: rgba(255, 248, 242, 0.7);
    color: var(--paper);
}

.contact-card .contact-phone:hover,
.contact-card .contact-phone:focus-visible {
    background: rgba(255, 248, 242, 0.12);
}
.catalog-page .shop-section { padding-bottom: 96px; }
.catalog-group { margin-top: 64px; }
.catalog-group h2 { margin-bottom: 24px; font-size: clamp(2rem, 4vw, 3.2rem); }

.welcome-offer-form { display: grid; gap: 10px; }
.welcome-offer-form input { min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.welcome-offer-status { min-height: 1.4em; color: var(--clay); font-weight: 800; }
.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; }
.variant-field select, .variant-field option { cursor: pointer; }

.product-detail-shell {
    padding: clamp(30px, 6vw, 72px) clamp(18px, 6vw, 82px) 80px;
}

.product-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    font-weight: 800;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(32px, 7vw, 84px);
    align-items: center;
    margin-bottom: 44px;
}

.product-detail-gallery {
    min-width: 0;
}

.product-detail-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.product-detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.92);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(47, 43, 40, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.gallery-arrow-previous {
    left: 14px;
}

.gallery-arrow-next {
    right: 14px;
}

.gallery-arrow span {
    font-size: 1.35rem;
    line-height: 1;
}

.gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(47, 43, 40, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-thumbnail {
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    opacity: 0.72;
    transition: border-color 160ms ease, opacity 160ms ease;
}

.product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-thumbnail:hover,
.product-thumbnail:focus-visible,
.product-thumbnail.is-selected {
    border-color: var(--ink);
    opacity: 1;
}

.product-thumbnail:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.product-detail-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.product-detail-copy .add-button {
    margin-top: 16px;
}

.all-products-cta {
    display: flex;
    justify-content: center;
    padding: 0 clamp(18px, 6vw, 82px) clamp(54px, 9vw, 104px);
}

.all-products-cta .secondary-action {
    min-width: min(320px, 100%);
}

.product-reviews {
    padding: 0 0 clamp(54px, 8vw, 92px);
}

.product-videos { padding: clamp(42px, 7vw, 76px) clamp(18px, 6vw, 82px); border-top: 1px solid var(--line); }
.product-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.product-video-grid figure { margin: 0; }
.product-video-grid video { display: block; width: 100%; max-height: 560px; border-radius: 10px; background: #1d1a17; }
.product-video-grid figcaption { margin-top: 9px; color: var(--muted); font-weight: 800; }

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.review-form {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 12px 30px rgba(73, 55, 41, 0.08);
}

.review-form h3 { margin-bottom: 8px; }
.review-form label, .review-form legend { color: var(--muted); font-size: 0.86rem; font-weight: 900; }
.review-form input[type="text"], .review-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.review-form input[type="file"] { width: 100%; padding: 10px; border: 1px dashed var(--line); border-radius: 6px; background: #fff; }
.review-photo-help { color: var(--muted); font-size: .78rem; }
.review-form textarea { resize: vertical; }
.review-form input:focus, .review-form textarea:focus { outline: 3px solid rgba(214, 151, 44, 0.26); border-color: rgba(214, 151, 44, 0.72); }
.review-form fieldset { margin: 4px 0; padding: 0; border: 0; }
.review-rating-options { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.review-rating-options label { display: flex; align-items: center; gap: 5px; color: var(--ink); cursor: pointer; }
.review-form .add-button { margin-top: 8px; }
.review-form .errorlist { margin: 0; padding: 0; color: #9a3d2b; font-size: 0.82rem; font-weight: 800; list-style: none; }
.review-success { padding: 14px 16px; border-radius: 8px; background: var(--sage); color: var(--ink); font-weight: 800; }

.product-recommendations {
    padding-top: clamp(44px, 7vw, 76px);
    border-top: 1px solid var(--line);
}

.product-recommendations .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-list {
    display: grid;
    gap: 14px;
    max-width: 880px;
}

.product-review {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
}

.product-review > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-stars { color: var(--gold); letter-spacing: 2px; }
.verified-review { padding: 4px 7px; border-radius: 999px; background: var(--cream); color: var(--muted); font-weight: 800; }
.product-review h3 { margin: 16px 0 8px; }
.product-review p, .review-empty { color: var(--muted); line-height: 1.65; }
.product-review > small { color: var(--muted); }
.review-photos { display: flex; gap: 10px; margin: 16px 0; overflow-x: auto; }
.review-photos img { width: 110px; height: 110px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.review-photos button { padding: 0; border: 0; background: none; cursor: zoom-in; }
[data-gallery-main] { cursor: zoom-in; }
.header-search { position: relative; grid-area: search; display: flex; min-width: 180px; }
.header-search input { min-width: 0; width: 100%; padding: 9px 11px; border: 1px solid #d8cdc3; border-radius: 999px 0 0 999px; }
.header-search button { padding: 9px 12px; border: 0; border-radius: 0 999px 999px 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.search-suggestions { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 25; display: grid; max-height: min(360px, 60vh); padding: 8px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms; }
.header-search:focus-within .search-suggestions { opacity: 1; visibility: visible; transform: translateY(0); }
.search-suggestions span { padding: 8px 10px 6px; color: var(--muted); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.search-suggestions a { padding: 10px; border-radius: 7px; color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.search-suggestions a:hover, .search-suggestions a:focus-visible { background: var(--cream); }
.currency-switcher { grid-area: currency; display: flex; border: 1px solid #d8cdc3; border-radius: 999px; overflow: hidden; }
.currency-switcher button { border: 0; padding: 7px 9px; background: transparent; cursor: pointer; }
.currency-switcher button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.image-lightbox { width: min(92vw, 1000px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #fff; }
.image-lightbox::backdrop { background: rgba(20, 18, 16, .82); }
.image-lightbox img { display: block; width: 100%; max-height: 88vh; object-fit: contain; }
.image-lightbox button { position: absolute; z-index: 1; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; font-size: 28px; background: rgba(255,255,255,.92); cursor: pointer; }
.cart-toast {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow);
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease;
}
.cart-toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cart-toast button { border: 0; background: transparent; color: #efb85a; cursor: pointer; font: inherit; font-weight: 900; text-decoration: underline; }

.product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.product-detail-price strong {
    font-size: 1.6rem;
}

.product-description,
.product-features {
    color: var(--muted);
    line-height: 1.7;
}

.product-features {
    display: grid;
    gap: 8px;
    margin: 24px 0 30px;
    padding-left: 22px;
}

@media (max-width: 760px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-recommendations .section-heading {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-recommendations .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-layout {
        grid-template-columns: 1fr;
    }
}

.about-section,
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: clamp(34px, 7vw, 100px);
    align-items: center;
    padding-top: clamp(58px, 8vw, 92px);
    padding-bottom: clamp(58px, 8vw, 92px);
    background: #efe4d8;
    border-top: 1px solid var(--line);
}

.about-section h2,
.contact-section h2 {
    margin: 0;
    max-width: 900px;
}

.about-copy,
.contact-card {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.about-copy p:last-child,
.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-section {
    background: var(--ink);
    color: var(--paper);
}

.contact-section .eyebrow {
    color: #efb85a;
}

.contact-card {
    color: rgba(255, 248, 242, 0.76);
}

.contact-card .primary-action {
    margin-top: 8px;
    background: var(--paper);
    color: var(--ink);
}

.cart-panel {
    position: fixed;
    top: 128px;
    right: clamp(14px, 3vw, 38px);
    z-index: 30;
    width: min(360px, calc(100vw - 28px));
    display: none;
    padding: 18px;
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 146px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-panel.is-open {
    display: grid;
    gap: 14px;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-panel-footer {
    display: grid;
    gap: 12px;
}

.cart-panel.is-open #miniOffer,
#miniOffer.is-visible {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#closeCart {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

#cartItems {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#cartItems li {
    padding: 12px;
    border-radius: 8px;
    background: var(--cream);
    font-weight: 700;
}

body.cart-is-open {
    overflow: hidden;
}

body.cart-is-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(47, 43, 40, 0.52);
}

.shipping-unlock { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 800; line-height: 1.45; }

.checkout-link {
    width: 100%;
    background: var(--gold);
    color: var(--ink);
}

.checkout-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-total,
.summary-totals {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cart-total div,
.summary-totals div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.cart-total dt,
.summary-totals dt {
    color: var(--muted);
    font-weight: 800;
}

.cart-total dd,
.summary-totals dd {
    margin: 0;
    font-weight: 900;
}

.cart-item,
.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cart-item > div:first-child,
.summary-item > div:first-child {
    display: grid;
    gap: 4px;
}

.cart-item span,
.summary-item span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.quantity-control {
    display: inline-grid;
    grid-template-columns: 32px 28px 32px;
    align-items: center;
    justify-items: center;
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fffdf9;
}

.quantity-control button {
    width: 32px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.quantity-control span {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 900;
}

.checkout-page {
    min-height: 100vh;
}

.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
    padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 82px);
}

.checkout-form-panel h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 6.4rem);
}

.inquiry-intro {
    max-width: 680px;
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.7;
}

.inquiry-submit {
    width: 100%;
    margin-top: 8px;
    padding-inline: 24px;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 28px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    list-style: none;
    background: var(--line);
}

.checkout-steps li {
    min-width: 0;
    padding: 13px 12px;
    background: #fffdf9;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}

.checkout-steps li.is-active,
.checkout-steps li.is-complete {
    background: var(--ink);
    color: var(--paper);
}

.checkout-step {
    display: none;
}

.checkout-step.is-active {
    display: block;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-grid label,
.choice-group {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.wide-field {
    grid-column: 1 / -1;
}

.field-grid input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    color: var(--ink);
    font: inherit;
}

.field-grid input:focus {
    outline: 3px solid rgba(214, 151, 44, 0.26);
    border-color: rgba(214, 151, 44, 0.72);
}

.choice-group {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.choice-group legend {
    padding: 0 6px;
    color: var(--ink);
}

.choice-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.review-box,
.confirmation-panel,
.order-summary {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 12px 30px rgba(73, 55, 41, 0.08);
}

.review-box p,
.confirmation-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.form-error {
    min-height: 24px;
    margin: 16px 0 0;
    color: #9a3d2b;
    font-weight: 800;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.checkout-actions button {
    min-width: 132px;
    padding: 0 20px;
}

.checkout-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.order-summary {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.order-summary h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

#checkoutItems {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-item {
    padding: 14px;
    border-radius: 8px;
    background: var(--cream);
}

.summary-grand-total {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 1.18rem;
}

.confirmation-panel {
    margin-top: 24px;
}

.confirmation-panel h2 {
    margin-bottom: 0;
}

.confirmation-panel .primary-action {
    margin-top: 18px;
    padding: 0 22px;
}

.status-shell {
    min-height: calc(100vh - 93px);
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 72px) clamp(18px, 6vw, 82px);
}

.status-shell .confirmation-panel {
    width: min(760px, 100%);
    margin: 0;
}

.status-shell h1 {
    margin-bottom: 0;
    font-size: clamp(3rem, 7vw, 6.4rem);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.status-actions a {
    padding: 0 22px;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto auto auto;
        grid-template-areas:
            "brand currency menu cart"
            "search search search search";
        gap: 12px;
    }

    .brand {
        grid-area: brand;
    }

    .cart-button {
        grid-area: cart;
    }

    .header-search {
        width: 100%;
    }

    .menu-button {
        grid-area: menu;
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: clamp(18px, 4vw, 54px);
        right: clamp(18px, 4vw, 54px);
        display: none;
        gap: 0;
        padding: 8px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fffdf9;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links a {
        padding: 14px 16px;
        border-radius: 8px;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: var(--cream);
    }

    .hero,
    .about-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: clamp(480px, 72svh, 720px);
        background:
            linear-gradient(180deg, rgba(255, 248, 242, 0) 38%, rgba(255, 248, 242, 0.9) 100%),
            url("../images/optimized/pet-shop-hero-desktop-png.webp") center / cover no-repeat;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .checkout-shell {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 620px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
        grid-template-areas:
            "brand menu cart"
            "search search currency";
        column-gap: 8px;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: 8px;
    }

    .brand img {
        width: 86px;
        height: 52px;
    }

    .header-search {
        min-width: 0;
    }

    .header-search button {
        padding-inline: 10px;
    }

    .currency-switcher button {
        padding-inline: 7px;
        font-size: 0.82rem;
    }

    .cart-button span:last-of-type {
        display: none;
    }

    .cart-button {
        min-width: 48px;
        min-height: 48px;
        padding-inline: 14px;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.8rem);
    }

    .hero {
        padding-top: 30px;
        min-height: clamp(430px, 68svh, 620px);
        background:
            linear-gradient(180deg, rgba(255, 248, 242, 0) 38%, rgba(255, 248, 242, 0.9) 100%),
            url("../images/optimized/pet-shop-hero-mobile-png.webp") center / cover no-repeat;
    }

    .hero-actions a {
        width: 100%;
    }

    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card { gap: 10px; padding: 8px 8px 10px; }
    .product-visual, .product-image { min-height: 0; aspect-ratio: 1; }
    .product-info h3, .product-info .product-card-title { font-size: 0.94rem; }
    .product-info p, .product-info small { font-size: 0.7rem; }
    .product-pricing strong { font-size: 0.95rem; }
    .product-pricing small { display: none; }
    .add-button { height: 46px; padding: 0 9px; font-size: 0.78rem; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .category-card { min-height: 94px; padding: 15px; }
    .category-card span { font-size: 1.35rem; }

    .product-info {
        flex-direction: column;
        min-height: 0;
    }

    .product-pricing {
        justify-items: start;
        text-align: left;
    }

    .cart-panel {
        top: max(80px, 22dvh);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: none;
        padding: 20px max(18px, env(safe-area-inset-right)) 174px max(18px, env(safe-area-inset-left));
        border-radius: 18px 18px 0 0;
        overflow: hidden;
    }

    .cart-panel.is-open {
        display: flex;
        flex-direction: column;
    }

    .cart-panel > :not(#cartItems) {
        flex: 0 0 auto;
    }

    .cart-panel #cartItems {
        flex: 1 1 auto;
        min-height: 0;
        align-content: start;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .cart-panel-footer {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        padding: 14px max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
        border-top: 1px solid var(--line);
        background: #fffdf9;
    }

    .checkout-shell {
        padding-top: 28px;
    }

    .checkout-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .checkout-steps li {
        padding-inline: 6px;
        font-size: 0.74rem;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        display: grid;
    }

    .checkout-actions button,
    .checkout-actions a {
        width: 100%;
    }

    .cart-item,
    .summary-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .quantity-control {
        grid-template-columns: 40px 32px 40px;
        min-height: 44px;
    }

    .quantity-control button {
        width: 40px;
        height: 44px;
    }

    .product-detail-shell {
        padding-top: 24px;
    }

    .gallery-arrow {
        width: 44px;
        height: 44px;
    }

    .product-detail-copy h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }
}

@media (min-width: 1440px) {
    .shop-section,
    .about-section,
    .contact-section,
    .product-detail-shell,
    .checkout-shell {
        padding-inline: max(82px, calc((100vw - 1440px) / 2));
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Small semantic and accessibility additions inherit the storefront palette. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.breadcrumbs { margin-bottom: 24px; font-size: .85rem; line-height: 1.6; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: var(--muted); }
.breadcrumbs a, .collection-help a, .product-enquiry-help a { text-decoration: underline; text-underline-offset: 3px; }
.storefront-intro { max-width: 760px; margin-bottom: 48px; }
.storefront-intro h1 { font-size: clamp(2.15rem, 5vw, 4.5rem); }
.storefront-intro p, .collection-intro { max-width: 760px; line-height: 1.65; }
.collection-intro { margin-bottom: 28px; }
.collection-help { margin-top: 28px; line-height: 1.65; }
.product-info .product-card-title { font-family: Inter, Arial, sans-serif; font-weight: 700; }
.product-enquiry-help { margin-top: 16px; font-size: .9rem; line-height: 1.6; }
.product-specification { color: var(--muted); line-height: 1.6; }
.product-detail-image img { height: auto; }

/* Keep SEO headings and long product names inside the existing page grid. */
.section-heading > *,
.product-detail-copy,
.checkout-form-panel,
.order-summary,
.breadcrumbs li { min-width: 0; }
.breadcrumbs li,
.product-info h2,
.product-info h3,
.product-info small,
.product-detail-copy h1,
.catalog-page h1,
.status-shell h1 { overflow-wrap: anywhere; }
.catalog-page h1 { margin-bottom: 0; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.05; }
.catalog-page .section-heading { align-items: center; }
.catalog-page .section-heading .secondary-action { justify-self: start; }
.status-shell h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.05; }
.status-actions { align-items: center; }
.confirmation-panel .status-actions .primary-action { margin-top: 0; }

.premium-set-options { display: grid; gap: 12px; margin: 12px 0; }
.premium-set-options fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.premium-set-options legend { font-weight: 700; font-size: .85rem; }
.premium-set-options label { display: grid; gap: 4px; margin: 6px 0; }
.premium-set-options select { width: 100%; padding: 9px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
