:root {
    --aliva-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --aliva-ease-quick: cubic-bezier(0.16, 1, 0.3, 1);
    --aliva-ring: rgba(217, 200, 179, 0.48);
    --aliva-ring-strong: rgba(255, 255, 255, 0.72);
    --aliva-shadow-hover: 0 28px 80px rgba(32, 26, 20, 0.18);
    --aliva-shadow-soft: 0 18px 54px rgba(30, 28, 24, 0.12);
    --aliva-cta-bg: #15110d;
    --aliva-cta-bg-hover: #3c3128;
    --aliva-logo-teal: #12c6bd;
    --aliva-logo-ink: #202124;
    --aliva-logo-paper: rgba(255, 255, 255, 0.92);
}

* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-padding-top: 96px;
    max-width: 100%;
    overflow-x: clip;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

img,
svg,
video {
    max-width: 100%;
}

img {
    display: block;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.page,
.page-shell {
    max-width: 100%;
    overflow-x: clip;
}

.material-symbols-outlined {
    width: 1em;
    min-width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex: 0 0 auto;
    font-family: "Material Symbols Outlined" !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    -webkit-font-smoothing: antialiased;
    speak: never;
}

button,
a,
input,
select,
summary {
    outline: none;
}

:where(a, button, input, select, summary):focus-visible {
    outline: 2px solid var(--aliva-ring);
    outline-offset: 4px;
    box-shadow: 0 0 0 7px rgba(217, 200, 179, 0.14);
}

:where(input, select):focus {
    border-color: rgba(217, 200, 179, 0.55);
    box-shadow: 0 0 0 4px rgba(217, 200, 179, 0.13);
}

::selection {
    background: rgba(217, 200, 179, 0.35);
    color: #17181d;
}

.brand,
.brand-lockup,
.nav-links a,
.action-btn,
.nav-button,
.search-wide,
.magnetic-btn,
.cart-button,
.favorite,
.chip,
.page-stub,
.sort,
.site-footer-form button {
    transition:
        transform 320ms var(--aliva-ease),
        box-shadow 320ms var(--aliva-ease),
        border-color 320ms ease,
        background-color 320ms ease,
        color 260ms ease,
        opacity 260ms ease,
        filter 320ms ease;
}

.brand,
.brand-lockup,
.magnetic-btn,
.cart-button,
.nav-links a,
.nav-button,
.action-btn {
    will-change: transform;
}

.magnetic-btn {
    isolation: isolate;
}

.magnetic-target {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    pointer-events: none;
}

:where(.magnetic-btn, .cart-button, .nav-button, .action-btn, .chip, .page-stub, .line-card a, .footer-link, .site-footer-links a, .site-footer-form button) {
    min-height: 40px;
}

:where(.search-wide button, .favorite) {
    min-width: 40px;
    min-height: 40px;
}

:where(.search-wide input, .range-row input, .mini-select, .sort, .site-footer-form input) {
    min-height: 40px;
}

.check {
    min-height: 36px;
}

.check input {
    min-width: 18px;
    min-height: 18px;
}

:where(.footer-link, .site-footer-links a, footer .link-hover) {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.search-wide button,
footer .relative.group > button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
}

.favorite {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
}

:where(p, li, a, button, label, strong, small, input, select, summary) {
    min-width: 0;
    overflow-wrap: break-word;
}

:where(h1, h2, h3, h4) {
    min-width: 0;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: manual;
}

:where(h1, h2, h3, .brand-name, .price, .hero-title, .section-title, .product-title, .care-lines h2, .site-footer-logo, #brand-logo span:first-child, .aliva-word, .aliva-care) {
    letter-spacing: 0 !important;
}

.aliva-brand-wordmark {
    --aliva-logo-word-size: 2.35rem;
    --aliva-logo-care-size: 0.98rem;
    --aliva-logo-gap: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aliva-logo-gap);
    max-width: 100%;
    color: var(--aliva-logo-ink);
    font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    text-decoration: none;
    text-transform: none !important;
    white-space: nowrap;
}

.aliva-word {
    display: inline-flex;
    align-items: baseline;
    color: var(--aliva-logo-ink) !important;
    font-family: "Helvetica Neue", Arial, "Plus Jakarta Sans", sans-serif !important;
    font-size: var(--aliva-logo-word-size) !important;
    font-weight: 300 !important;
    line-height: 0.9 !important;
    text-transform: none !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    filter: none !important;
    animation: none !important;
}

.aliva-a {
    color: var(--aliva-logo-teal) !important;
    -webkit-text-fill-color: var(--aliva-logo-teal) !important;
}

.aliva-care {
    display: inline-block;
    color: var(--aliva-logo-ink) !important;
    font-family: "Arial Narrow", "Aptos", "Helvetica Neue", Arial, sans-serif !important;
    font-size: var(--aliva-logo-care-size) !important;
    font-stretch: expanded;
    font-weight: 300 !important;
    line-height: 0.95 !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    transform: none;
}

.brand-divider,
.aliva-brand-divider {
    width: 1px !important;
    height: 2.05rem !important;
    flex: 0 0 auto;
    background: linear-gradient(180deg, transparent, rgba(32, 33, 36, 0.22), transparent) !important;
}

.brand.aliva-brand-wordmark,
.brand-lockup.aliva-brand-wordmark,
#brand-logo.aliva-brand-wordmark,
.aliva-brand-wordmark--menu,
.site-footer-logo.aliva-brand-wordmark,
.footer-logo.aliva-brand-wordmark {
    padding: 0.48rem 1.05rem 0.56rem !important;
    border: 1px solid rgba(255, 255, 255, 0.66) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--aliva-logo-paper)) !important;
    box-shadow:
        0 18px 48px rgba(23, 24, 29, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
    -webkit-text-fill-color: initial !important;
    backdrop-filter: blur(18px) saturate(122%);
}

.brand.aliva-brand-wordmark,
.brand-lockup.aliva-brand-wordmark {
    min-height: 4rem !important;
}

.brand-lockup.aliva-brand-wordmark {
    gap: var(--aliva-logo-gap) !important;
}

#brand-logo.aliva-brand-wordmark {
    --aliva-logo-word-size: 4.25rem;
    --aliva-logo-care-size: 1.55rem;
    --aliva-logo-gap: 1.25rem;
    pointer-events: auto;
}

#brand-logo.aliva-brand-wordmark .aliva-word,
#brand-logo.aliva-brand-wordmark .aliva-a {
    font-size: var(--aliva-logo-word-size) !important;
}

#brand-logo.aliva-brand-wordmark .aliva-care {
    font-size: var(--aliva-logo-care-size) !important;
}

#brand-logo.aliva-brand-wordmark .brand-divider {
    height: 3rem !important;
}

.aliva-brand-wordmark--menu {
    --aliva-logo-word-size: 2rem;
    --aliva-logo-care-size: 0.78rem;
    --aliva-logo-gap: 0.72rem;
}

.site-footer-logo.aliva-brand-wordmark,
.footer-logo.aliva-brand-wordmark {
    --aliva-logo-word-size: 2.25rem;
    --aliva-logo-care-size: 0.86rem;
    --aliva-logo-gap: 0.72rem;
    margin: 0 !important;
    width: max-content;
}

.metallic-logo.aliva-word,
.metallic-logo.aliva-brand-wordmark,
.metallic-logo-hero.aliva-word {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    filter: none !important;
}

#section-hero #brand-logo.aliva-brand-wordmark {
    --aliva-logo-teal: #10bdb6;
    --aliva-logo-ink: #1f2524;
    --aliva-logo-paper: rgba(255, 250, 241, 0.96);
    border-color: rgba(255, 252, 244, 0.78) !important;
}

#section-hero #brand-logo.aliva-brand-wordmark .brand-divider {
    background: linear-gradient(180deg, transparent, rgba(39, 39, 36, 0.34), transparent) !important;
}

#section-hero .hero-el {
    opacity: 1 !important;
    visibility: visible !important;
}

#section-hero .hero-el span[class~="text-[10px]"] {
    color: rgba(250, 242, 230, 0.68) !important;
    text-shadow: 0 8px 22px rgba(24, 20, 17, 0.32);
}

#section-hero h1.hero-el:not(.hero-manifesto-accent) {
    color: rgba(255, 250, 242, 0.97) !important;
    text-shadow: 0 10px 30px rgba(22, 19, 17, 0.42);
}

#section-hero .hero-manifesto-accent {
    color: rgba(238, 225, 205, 0.9) !important;
    text-shadow: 0 12px 34px rgba(28, 23, 20, 0.32);
}

#section-hero p.hero-el {
    color: rgba(252, 244, 233, 0.72) !important;
    text-shadow: 0 9px 24px rgba(24, 20, 18, 0.32);
}

#section-hero .hero-pet-nav {
    justify-content: center !important;
    gap: clamp(1.2rem, 2.2vw, 2.55rem) !important;
}

#section-hero .hero-pet-link {
    min-width: 0;
    position: relative;
    gap: 0.82rem;
}

#section-hero .hero-pet-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2.05rem;
    width: 72%;
    height: 0.85rem;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(62, 86, 88, 0.22) 0%, rgba(62, 86, 88, 0) 72%);
    filter: blur(8px);
    opacity: 0.48;
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

#section-hero .hero-pet-link:hover::before {
    opacity: 0.62;
    transform: translateX(-50%);
}

#section-hero .hero-pet-label,
#section-hero .hero-pet-link > span:last-child {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(43, 54, 56, 0.82);
    text-shadow: 0 1px 8px rgba(255,255,255,0.72);
    transition: color 0.45s ease, letter-spacing 0.45s ease, transform 0.45s ease;
}

#section-hero .hero-pet-link:hover .hero-pet-label,
#section-hero .hero-pet-link:hover > span:last-child {
    color: rgba(29, 40, 42, 0.92);
    letter-spacing: 0.44em;
    transform: translateY(-0.1rem);
}

@media (min-width: 768px) {
    #section-hero .hero-pet-chip {
        width: clamp(5.15rem, 5.45vw, 6.25rem) !important;
        height: clamp(5.15rem, 5.45vw, 6.25rem) !important;
    }
}

#stacking-accessories .cat-litter-solid-bg {
    background: linear-gradient(
        112deg,
        #f4c3a5 0%,
        #f6d1b7 38%,
        #e2d8b8 72%,
        #c3c6a2 100%
    );
}

.cat-litter-tile-grid {
    overflow: hidden;
}

.cat-litter-tile-grid > div {
    min-width: 0;
    will-change: transform;
}

.cat-litter-tile-grid img {
    background: rgba(255, 255, 255, 0.42);
}

.repellent-carousel-grid {
    overflow: hidden;
}

.repellent-carousel-grid > div {
    min-width: 0;
    will-change: transform, opacity;
}

.repellent-carousel-grid > div:nth-child(n+5) {
    display: none;
}

@media (max-width: 767px) {
    #brand-logo.aliva-brand-wordmark {
        --aliva-logo-word-size: 2.35rem;
        --aliva-logo-care-size: 0.78rem;
        --aliva-logo-gap: 0.72rem;
        padding: 0.5rem 0.88rem 0.58rem !important;
    }

    #brand-logo.aliva-brand-wordmark .brand-divider {
        height: 2rem !important;
    }
}

@media (max-width: 640px) {
    .brand.aliva-brand-wordmark,
    .brand-lockup.aliva-brand-wordmark,
    .site-footer-logo.aliva-brand-wordmark,
    .footer-logo.aliva-brand-wordmark {
        --aliva-logo-word-size: clamp(1.72rem, 7.2vw, 2.08rem);
        --aliva-logo-care-size: clamp(0.62rem, 2.5vw, 0.78rem);
        --aliva-logo-gap: clamp(0.48rem, 2.4vw, 0.68rem);
        width: fit-content;
        min-width: 0;
        max-width: 100%;
        padding: 0.48rem clamp(0.68rem, 3vw, 0.9rem) 0.54rem !important;
    }

    .brand.aliva-brand-wordmark .aliva-care,
    .brand-lockup.aliva-brand-wordmark .aliva-care,
    .site-footer-logo.aliva-brand-wordmark .aliva-care,
    .footer-logo.aliva-brand-wordmark .aliva-care {
        min-width: 0;
        max-width: 100%;
    }

    :where(h1, h2, h3, h4, .hero-title, .section-title, .product-title) {
        overflow-wrap: break-word !important;
    }
}

@media (max-width: 380px) {
    .brand.aliva-brand-wordmark,
    .brand-lockup.aliva-brand-wordmark,
    .site-footer-logo.aliva-brand-wordmark,
    .footer-logo.aliva-brand-wordmark {
        --aliva-logo-word-size: clamp(1.58rem, 7vw, 1.9rem);
        --aliva-logo-care-size: clamp(0.56rem, 2.45vw, 0.7rem);
        --aliva-logo-gap: 0.44rem;
        padding-inline: 0.62rem !important;
    }

    .brand.aliva-brand-wordmark .brand-divider,
    .brand-lockup.aliva-brand-wordmark .brand-divider,
    .site-footer-logo.aliva-brand-wordmark .brand-divider,
    .footer-logo.aliva-brand-wordmark .brand-divider {
        height: 1.7rem !important;
    }
}

:where(.magnetic-btn, .cart-button, .nav-button, .main-cta, .nav-links a, .page-stub, .line-card a) {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

:where(.magnetic-btn, .cart-button, .nav-button, .main-cta) {
    height: auto !important;
    min-height: 2.55rem;
}

.hero-cta-btn {
    flex-shrink: 0;
    min-width: max-content;
}

.hero-cta-btn .magnetic-target {
    white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 768px) {
    .hero-action-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
        row-gap: 0.9rem !important;
        column-gap: 1rem !important;
    }
}

.product-footer .magnetic-btn,
.hero-actions .magnetic-btn:first-child {
    background: var(--aliva-cta-bg) !important;
    border-color: rgba(21, 17, 13, 0.86) !important;
    color: #ffffff !important;
}

.product-footer .magnetic-btn .bg-slide,
.hero-actions .magnetic-btn:first-child .bg-slide,
.cart-button::before {
    background: linear-gradient(135deg, var(--aliva-cta-bg-hover), var(--aliva-cta-bg)) !important;
}

.product-footer .magnetic-btn .magnetic-target,
.hero-actions .magnetic-btn:first-child .magnetic-target {
    color: #ffffff !important;
}

.cart-button {
    gap: 0.65rem;
    background: var(--aliva-cta-bg) !important;
}

.cart-button:hover {
    background: var(--aliva-cta-bg-hover) !important;
}

.magnetic-btn::after,
.cart-button::after,
.nav-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 42%, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 360ms var(--aliva-ease);
}

.magnetic-btn:hover::after,
.magnetic-btn:focus-visible::after,
.cart-button:hover::after,
.cart-button:focus-visible::after,
.nav-button:hover::after,
.nav-button:focus-visible::after {
    opacity: 0.75;
}

.cart-button,
.nav-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.cart-button > *,
.nav-button > *,
.magnetic-btn > * {
    position: relative;
    z-index: 1;
}

:where(.nav-links a, .nav-button, .action-btn, .magnetic-btn, .cart-button, .favorite, .chip, .page-stub):active {
    transform: translateY(1px) scale(0.99);
}

:where(.product-card, .line-card, .filter-group, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .footer-box, .glass-panel, .showcase-tile) {
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform, box-shadow, border-color;
    transition:
        transform 520ms var(--aliva-ease),
        box-shadow 520ms var(--aliva-ease),
        border-color 420ms ease,
        background-color 420ms ease,
        filter 520ms ease;
}

:where(.product-card, .line-card, .filter-group, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .footer-box, .glass-panel, .showcase-tile)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.32), transparent 36%);
    transition: opacity 420ms var(--aliva-ease);
}

:where(.product-card, .line-card, .filter-group, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .footer-box, .glass-panel, .showcase-tile) > * {
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    :where(.product-card, .line-card, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .filter-group, .footer-box):hover {
        transform: translateY(-4px);
        border-color: var(--aliva-ring-strong);
        box-shadow: var(--aliva-shadow-hover);
    }

    :where(.product-card, .line-card, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .filter-group, .footer-box, .glass-panel, .showcase-tile):hover::after {
        opacity: 0.62;
    }

    :where(.product-card, .line-card, .showcase-tile):hover img {
        filter: saturate(1.05) contrast(1.015);
    }
}

@media (hover: none), (pointer: coarse) {
    :where(.magnetic-btn, .cart-button, .product-card, .line-card, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .filter-group, .footer-box, .glass-panel, .showcase-tile):hover {
        transform: none !important;
    }

    .magnetic-target {
        transform: none !important;
    }
}

:where(.product-media img, .line-card img, .showcase-tile img, .hero-pack, .hero-stage img, .hero-showcase img) {
    transition:
        transform 760ms var(--aliva-ease),
        filter 760ms var(--aliva-ease),
        opacity 420ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-media img,
    .line-card:hover img {
        transform: none;
    }
}

.reveal {
    filter: blur(10px);
    transition:
        opacity 760ms var(--aliva-ease),
        transform 760ms var(--aliva-ease),
        filter 760ms var(--aliva-ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    filter: blur(0);
}

.catalog-grid .reveal:nth-child(2),
.product-grid .product-card:nth-child(2),
.stat-grid .reveal:nth-child(2),
.guide-grid .reveal:nth-child(2),
.notes-grid .reveal:nth-child(2),
.line-grid .line-card:nth-child(2) {
    --reveal-delay: 70ms;
}

.catalog-grid .reveal:nth-child(3),
.product-grid .product-card:nth-child(3),
.stat-grid .reveal:nth-child(3),
.guide-grid .reveal:nth-child(3),
.notes-grid .reveal:nth-child(3),
.line-grid .line-card:nth-child(3) {
    --reveal-delay: 120ms;
}

.catalog-grid .reveal:nth-child(4),
.product-grid .product-card:nth-child(4),
.guide-grid .reveal:nth-child(4),
.notes-grid .reveal:nth-child(4) {
    --reveal-delay: 160ms;
}

@keyframes aliva-rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    html.aliva-polish-ready .product-grid .product-card,
    html.aliva-polish-ready .filters .filter-group,
    html.aliva-polish-ready .line-grid .line-card {
        animation: aliva-rise-in 680ms var(--aliva-ease) both;
        animation-delay: calc(min(var(--aliva-index, 0), 10) * 36ms);
    }
}

.site-footer {
    background-position: center top;
}

.site-footer-form input {
    transition:
        border-color 260ms ease,
        box-shadow 260ms ease,
        color 260ms ease;
}

.site-footer-form input:focus {
    color: #f4f4f5;
}

.hero-title,
.section-title,
h1,
h2,
h3 {
    text-wrap: balance;
}

.hero-lead,
.section-lead,
.product-text,
.site-footer-copy,
.footer-about {
    text-wrap: pretty;
}

#stack-stage .stack-panel h3 {
    max-width: 100%;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: manual;
    text-wrap: balance;
}

@media (min-width: 1024px) {
    #stack-stage .stack-panel h3 {
        font-size: clamp(3.1rem, 3.9vw, 4rem) !important;
        line-height: 1.06 !important;
    }

    #stack-stage .stack-panel .max-w-2xl {
        max-width: 46rem !important;
    }
}

@media (max-height: 760px) and (min-width: 768px) {
    #section-hero .absolute.inset-0.z-20 {
        padding-top: clamp(2rem, 5vh, 4rem) !important;
        padding-bottom: clamp(1.5rem, 4vh, 3rem) !important;
    }

    #section-hero .space-y-5 {
        gap: 0.75rem !important;
    }

    #section-hero h1.hero-el:not(.hero-manifesto-accent) {
        font-size: clamp(1.8rem, 5vh, 2.4rem) !important;
        line-height: 1.15 !important;
    }

    #section-hero .hero-manifesto-accent {
        font-size: clamp(3rem, 9vh, 4.4rem) !important;
        line-height: 1.05 !important;
    }

    #section-hero p.hero-el {
        font-size: clamp(0.95rem, 2.4vh, 1.05rem) !important;
        line-height: 1.45 !important;
    }

    .hero-action-row {
        gap: 1.25rem !important;
    }

    .hero-cta-btn {
        padding: 0.95rem 1.6rem !important;
    }

    .hero-pet-chip {
        width: clamp(4.2rem, 11vh, 5.4rem) !important;
        height: clamp(4.2rem, 11vh, 5.4rem) !important;
    }

    #stack-stage .stack-panel h3 {
        font-size: clamp(2.35rem, 7.4vh, 4.2rem) !important;
        line-height: 1.04 !important;
        margin-bottom: 1rem !important;
    }

    #stack-stage .stack-panel p {
        font-size: clamp(1rem, 2.5vh, 1.35rem) !important;
        line-height: 1.45 !important;
        margin-bottom: 1.35rem !important;
    }
}

@media (max-width: 767px) {
    #stack-stage,
    #stack-stage .stack-panel {
        min-height: 640px;
        height: max(100svh, 640px) !important;
    }

    .hero-cta-btn,
    .hero-pet-nav {
        max-width: calc(100vw - 2rem);
    }

    #section-hero .hero-pet-nav {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: min(100%, 22rem) !important;
        gap: clamp(0.4rem, 2.8vw, 0.7rem) !important;
    }

    #section-hero .hero-pet-link {
        min-width: 0 !important;
        gap: 0.44rem !important;
    }

    #section-hero .hero-pet-chip {
        width: clamp(3.25rem, 15.2vw, 4rem) !important;
        height: clamp(3.25rem, 15.2vw, 4rem) !important;
    }

    #section-hero .hero-pet-label,
    #section-hero .hero-pet-link > span:last-child {
        font-size: clamp(0.37rem, 1.75vw, 0.45rem) !important;
        letter-spacing: 0.18em !important;
        max-width: 100%;
        overflow-wrap: normal;
        white-space: nowrap;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 767px) {
        #section-hero.stack-panel,
        #section-hero .panel-content-inner {
            min-height: 100dvh !important;
            height: 100dvh !important;
        }
    }
}

@media (max-width: 720px) {
    html {
        scroll-padding-top: 72px;
    }

    .page-shell .topbar-wrap {
        padding-top: 12px !important;
    }

    .page-shell .topbar,
    .page-shell .container {
        width: min(100% - 24px, 640px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-shell .topbar {
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.7rem !important;
        border-radius: 1.45rem !important;
    }

    .page-shell .topbar .brand.aliva-brand-wordmark {
        width: fit-content !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .page-shell .nav-links {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr)) !important;
        gap: 0.42rem !important;
        overflow: visible !important;
        padding: 0.05rem 0 0.1rem !important;
    }

    .page-shell .nav-links a {
        width: auto !important;
        min-width: 0 !important;
        min-height: 2.35rem !important;
        max-width: 100% !important;
        padding: 0 0.78rem !important;
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }

    .page-shell .hero {
        padding-top: 20px !important;
    }

    .page-shell .hero-grid {
        gap: 18px !important;
    }

    .page-shell .hero-copy {
        order: 0 !important;
        max-width: 100% !important;
        padding-top: 0 !important;
    }

    .page-shell .hero-stage,
    .page-shell .hero-showcase {
        order: -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-shell .hero-stage {
        min-height: auto !important;
    }

    .page-shell .hero-stage .hero-pack {
        max-width: min(42vw, 148px) !important;
    }

    .page-shell .hero-stage.hero-stage--packs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 16px !important;
    }

    .page-shell .hero-showcase {
        padding: 14px !important;
    }

    .page-shell .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .page-shell .showcase-tile,
    .page-shell .showcase-tile--large,
    .page-shell .showcase-tile--small {
        grid-column: auto !important;
        min-height: clamp(118px, 34vw, 160px) !important;
    }

    .page-shell .hero-stage img:not(.hero-stage-bg):not(.hero-pack) {
        max-height: 46vh;
        object-fit: contain !important;
    }

    .page-shell .hero-title {
        font-size: clamp(2rem, 9.4vw, 2.55rem) !important;
        line-height: 1.02 !important;
    }

    .page-shell .hero-title span {
        font-size: clamp(1.25rem, 6.5vw, 1.75rem) !important;
        line-height: 1.08 !important;
    }

    .page-shell .hero-lead,
    .page-shell .hero-subcopy {
        font-size: clamp(0.94rem, 4vw, 1.08rem) !important;
        line-height: 1.55 !important;
    }

    .page-shell .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .page .catalog-nav-inner {
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 0.65rem !important;
        min-height: 3.4rem !important;
    }

    .page .nav-button {
        min-height: 2.4rem !important;
        padding-inline: 0.9rem !important;
    }

    .page .search-wide {
        height: 2.45rem !important;
        min-width: 0 !important;
    }

    .page .catalog-hero {
        padding: 1.25rem 0 0.9rem !important;
    }

    .page .catalog-layout {
        gap: 0.95rem !important;
    }

    .page .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.62rem !important;
        padding-bottom: 0.75rem !important;
    }

    .page .filters h2 {
        grid-column: 1 / -1;
    }

    .page .filter-group {
        padding: 0.72rem !important;
    }

    .page .filter-title {
        font-size: 0.68rem !important;
    }

    .page .reveal,
    .page .filter-group,
    .page .product-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    #section-hero .hero-el,
    #section-hero #brand-logo.aliva-brand-wordmark {
        opacity: 1 !important;
        visibility: visible !important;
    }

    #section-hero #brand-logo.aliva-brand-wordmark {
        --aliva-logo-word-size: clamp(1.84rem, 8vw, 2.28rem);
        --aliva-logo-care-size: clamp(0.62rem, 2.7vw, 0.76rem);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 241, 0.9)) !important;
        box-shadow: 0 18px 48px rgba(10, 10, 12, 0.2), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    }

    #section-hero h1.hero-el:not(.hero-manifesto-accent) {
        max-width: min(19rem, calc(100vw - 2rem)) !important;
        font-size: clamp(1rem, 4.7vw, 1.18rem) !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    #section-hero .hero-manifesto-accent {
        max-width: min(20rem, calc(100vw - 2rem)) !important;
        font-size: clamp(1.9rem, 8.2vw, 2.35rem) !important;
        line-height: 1.05 !important;
    }

    :where(.product-card, .line-card, .filter-group, .wide-card, .guide-card, .note-card, .stat-card, .formula-card, .footer-box):hover {
        transform: none;
    }

    :where(a, button, input, select, summary):focus-visible {
        outline-offset: 3px;
        box-shadow: 0 0 0 5px rgba(217, 200, 179, 0.12);
    }
}

@media (max-width: 767px) {
    .reveal,
    .fade-up-el,
    .feature-card-new,
    .phi-text {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    body.stack-preload #stack-stage > .stack-panel:not(#section-hero) {
        opacity: 1 !important;
        visibility: visible !important;
    }

    #stack-stage {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    #stack-stage .stack-panel {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #section-hero.stack-panel {
        min-height: 100svh !important;
        overflow: hidden !important;
    }

    #section-hero .panel-content-inner {
        min-height: 100svh !important;
        height: 100svh !important;
        overflow: hidden !important;
    }

    #stack-stage .stack-panel:not(#section-hero) {
        padding: 0 14px 18px !important;
        background: #18181b !important;
    }

    #stack-stage .stack-panel:not(#section-hero) .panel-content-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        height: auto !important;
        min-height: auto !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    #stack-stage .stack-panel:not(#section-hero) .panel-content-inner > div[class*="absolute lg:relative"] {
        position: relative !important;
        inset: auto !important;
        order: 1 !important;
        height: auto !important;
        min-height: 220px !important;
        opacity: 1 !important;
        overflow: visible !important;
        transform: none !important;
    }

    #stack-stage .stack-panel:not(#section-hero) .panel-content-inner > div[style*="position: relative"] {
        order: 2 !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 1.35rem !important;
        transform: none !important;
    }

    #stack-stage .repellent-carousel-grid,
    #stack-stage .cat-litter-tile-grid {
        min-height: 360px !important;
        max-height: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(150px, auto) !important;
        grid-template-rows: none !important;
    }

    #stack-stage .cat-litter-tile-grid img,
    #stack-stage .repellent-carousel-grid img {
        object-fit: contain !important;
    }

    #stacking-care .panel-content-inner > div[class*="absolute lg:relative"] {
        min-height: 250px !important;
    }

    #stacking-care .panel-content-inner > div[class*="absolute lg:relative"] img {
        object-fit: contain !important;
    }

    #stack-stage .stack-panel:not(#section-hero) h3 {
        font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
        line-height: 1.06 !important;
        margin-bottom: 1rem !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    #stack-stage .stack-panel:not(#section-hero) p {
        font-size: clamp(1rem, 4.2vw, 1.15rem) !important;
        line-height: 1.48 !important;
        margin-bottom: 1.25rem !important;
    }

    #stack-stage .stack-panel:not(#section-hero) .magnetic-btn {
        width: 100% !important;
        max-width: 20rem !important;
        justify-content: center !important;
        padding: 1rem 1.2rem !important;
    }
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
