/* ==========================================================
   ŁapPromki HOME/LAB V4
   Visual-only layer inspired by the approved Polish mockup.
   Backend/publication logic remains untouched.
   ========================================================== */

:root {
    --lp-navy: #0b3156;
    --lp-purple: #2e0c67;
    --lp-coral: #ff5b55;
    --lp-orange: #ff6a37;
    --lp-yellow: #ffbf22;
    --lp-teal: #159d99;
    --lp-soft-blue: #eff8fb;
    --lp-cream: #fffaf3;
}

body {
    background: #fffdf9;
}

.site-header-v4 {
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid rgba(15, 49, 86, 0.07);
    backdrop-filter: blur(16px);
}

.header-inner-v4 {
    width: min(100% - 48px, 1440px);
    min-height: 122px;
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr auto;
    align-items: center;
    gap: 30px;
}

.brand-image-link-v4 {
    display: block;
    width: min(340px, 25vw);
    line-height: 0;
}

.brand-logo-v4 {
    width: 100%;
    height: 102px;
    display: block;
    object-fit: contain;
    object-position: left center;
    border-radius: 20px;
    mix-blend-mode: multiply;
}

.desktop-nav-v4 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    height: 72px;
}

.desktop-nav-v4 a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    color: var(--lp-navy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 850;
    white-space: nowrap;
}

.desktop-nav-v4 a > span {
    color: var(--lp-coral);
    font-size: 1.35rem;
    font-weight: 950;
}

.desktop-nav-v4 a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
}

.desktop-nav-v4 a.active::after,
.desktop-nav-v4 a:hover::after {
    background: var(--lp-coral);
}

.header-actions-v4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button-v4 {
    width: 56px;
    height: 56px;
    background: #f1f6f8;
    color: var(--lp-navy);
    border: 1px solid rgba(15, 49, 86, 0.03);
}

.lab-pill-v4,
.lab-inline-badge-v4 {
    display: inline-grid;
    place-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #102f4c, #173f60);
    box-shadow: 0 10px 22px rgba(15, 49, 86, 0.15);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.home-v4.shell {
    width: min(100% - 48px, 1440px);
}

.home-v4.main-content {
    padding-top: 22px;
}

.hero-image-banner-v4 {
    overflow: hidden;
    border-radius: 28px;
    background: #eaf9f7;
    box-shadow: 0 16px 36px rgba(15, 49, 86, 0.08);
}

.hero-image-banner-v4 img {
    display: block;
    width: 100%;
    height: auto;
}

.benefit-strip-v4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 22px 14px 18px;
}

.benefit-strip-v4 article {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 950;
}

.benefit-icon.tag { color: var(--lp-coral); background: #ffe9e7; }
.benefit-icon.search { color: var(--lp-teal); background: #dff5f3; }
.benefit-icon.paw { color: var(--lp-yellow); background: #fff5d7; }
.benefit-icon.heart { color: var(--lp-coral); background: #ffe7ea; }

.benefit-strip-v4 strong,
.benefit-strip-v4 small {
    display: block;
}

.benefit-strip-v4 strong {
    color: var(--lp-navy);
    font-size: .91rem;
    line-height: 1.25;
}

.benefit-strip-v4 small {
    margin-top: 5px;
    color: #71849a;
    font-size: .73rem;
    line-height: 1.35;
}

.monitoring-panel-v4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 4px 0 24px;
    padding: 20px 22px;
    border: 1px solid #d9eaf1;
    border-radius: 22px;
    background: linear-gradient(100deg, #f9fcfd, #f2f9fb);
    box-shadow: 0 12px 28px rgba(15, 49, 86, 0.045);
}

.monitoring-copy-v4 {
    min-width: 0;
}

.monitoring-title-v4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-navy);
    font-size: 1rem;
}

.monitoring-status-v4 {
    margin: 6px 0 4px 28px;
    color: #008b87;
    font-size: .82rem;
    font-weight: 900;
}

.monitoring-panel-v4 p {
    margin: 0 0 0 28px;
    max-width: 900px;
    color: #70839a;
    font-size: .78rem;
    line-height: 1.45;
}

.monitoring-link-v4 {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #b9d9e8;
    border-radius: 14px;
    color: var(--lp-navy);
    background: rgba(255,255,255,.68);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 850;
}

.lab-monitoring-v4 {
    border-color: #d6e4f1;
    background: linear-gradient(100deg, #f8fbff, #f2f7fb);
}

.section-heading-v4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.section-heading-v4 h2 {
    margin: 0;
    color: var(--lp-navy);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
}

.section-heading-v4 h2 > span {
    color: var(--lp-coral);
    font-size: .92em;
}

.section-heading-v4 > a {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid #d8e7ee;
    border-radius: 13px;
    color: var(--lp-navy);
    background: white;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 850;
}

.category-showcase-v4 {
    padding: 4px 0 24px;
}

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

.category-card-v4 {
    position: relative;
    min-height: 148px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 42% 1fr auto;
    align-items: center;
    border: 1px solid rgba(15, 49, 86, .06);
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15,49,86,.045);
}

.category-card-v4.dog { background: linear-gradient(115deg, #fff0e7, #fff8f1); }
.category-card-v4.cat { background: linear-gradient(115deg, #eaf9f8, #f4fbfb); }
.category-card-v4.bird { background: linear-gradient(115deg, #fff7db, #fffbee); }

.category-card-v4 > img {
    width: 100%;
    height: 148px;
    object-fit: cover;
    object-position: center;
    align-self: stretch;
}

.category-card-v4 > div {
    min-width: 0;
    padding: 16px 4px 16px 14px;
}

.category-paw-v4 {
    display: inline-block;
    margin-right: 7px;
    color: var(--lp-coral);
    font-size: 1.08rem;
}

.category-card-v4.cat .category-paw-v4 { color: var(--lp-teal); }
.category-card-v4.bird .category-paw-v4 { color: #f1ab00; }

.category-card-v4 strong {
    color: var(--lp-navy);
    font-size: 1.15rem;
}

.category-card-v4 p {
    margin: 7px 0 0;
    color: #59728c;
    font-size: .78rem;
    line-height: 1.4;
}

.category-arrow-v4 {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-right: 16px;
    border-radius: 50%;
    color: var(--lp-coral);
    background: white;
    box-shadow: 0 8px 18px rgba(15,49,86,.08);
    font-size: 2rem;
    font-weight: 700;
}

.category-card-v4.cat .category-arrow-v4 { color: var(--lp-teal); }
.category-card-v4.bird .category-arrow-v4 { color: #f0a500; }

.category-card-v4:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15,49,86,.08);
}

.feed-section-v4 {
    padding-top: 4px;
}

.offers-heading-v4 {
    margin-top: 4px;
    margin-bottom: 16px;
}

.lab-quick-filters-v4 {
    margin: 0 0 14px;
}

.public-empty-state-v4 {
    border: 1px solid #f0e3d8;
    border-radius: 24px;
    background: linear-gradient(100deg, #fff7ed, #fffdf8);
    box-shadow: 0 12px 28px rgba(15,49,86,.04);
}

/* Small click animation: the pet leans in and picks up a gift. */
.gift-pet-animation {
    position: fixed;
    z-index: 1002;
    width: 78px;
    height: 72px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: gift-scene-pop 680ms cubic-bezier(.18,.74,.25,1) forwards;
}

.gift-pet-animation .gift-pet-image {
    position: absolute;
    left: 7px;
    top: 1px;
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(15,49,86,.18));
    transform-origin: 58% 78%;
    animation: pet-grab-gift 680ms ease-in-out forwards;
}

.gift-pet-animation .gift-box-v4 {
    position: absolute;
    left: 42px;
    top: 42px;
    width: 27px;
    height: 24px;
    border-radius: 5px;
    background: #ff605a;
    box-shadow: 0 5px 10px rgba(15,49,86,.18);
    animation: gift-lift-v4 680ms ease-in-out forwards;
}

.gift-pet-animation .gift-box-v4::before,
.gift-pet-animation .gift-box-v4::after {
    content: "";
    position: absolute;
    background: #ffd34f;
}

.gift-pet-animation .gift-box-v4::before {
    left: 11px;
    top: 0;
    width: 5px;
    height: 100%;
}

.gift-pet-animation .gift-box-v4::after {
    left: 0;
    top: 8px;
    width: 100%;
    height: 5px;
}

.gift-pet-animation .gift-ribbon-v4 {
    position: absolute;
    left: 46px;
    top: 35px;
    width: 18px;
    height: 11px;
    border-radius: 10px 10px 2px 2px;
    border: 3px solid #ffd34f;
    border-bottom: 0;
    transform: rotate(-8deg);
    animation: gift-lift-v4 680ms ease-in-out forwards;
}

.gift-pet-animation .gift-spark-v4 {
    position: absolute;
    right: 0;
    top: 20px;
    color: #ffb200;
    font-size: 15px;
    opacity: 0;
    animation: gift-spark-v4 680ms ease-in-out forwards;
}

.gift-pet-animation.is-generic .gift-pet-image {
    display: none;
}

.gift-pet-animation.is-generic::before {
    content: "🐾";
    position: absolute;
    left: 10px;
    top: 8px;
    font-size: 38px;
    animation: pet-grab-gift 680ms ease-in-out forwards;
}

@keyframes gift-scene-pop {
    0% { opacity: 0; transform: translate(-50%, -45%) scale(.72); }
    16% { opacity: 1; }
    82% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -78%) scale(.98); }
}

@keyframes pet-grab-gift {
    0% { transform: rotate(0deg) translate(0, 0) scale(.86); }
    32% { transform: rotate(7deg) translate(7px, 7px) scale(1); }
    62% { transform: rotate(-3deg) translate(9px, 3px) scale(1.03); }
    100% { transform: rotate(0deg) translate(4px, -2px) scale(1); }
}

@keyframes gift-lift-v4 {
    0%, 26% { transform: translate(0, 8px) scale(.8); }
    58% { transform: translate(-9px, -7px) scale(1); }
    100% { transform: translate(-12px, -12px) scale(.94); }
}

@keyframes gift-spark-v4 {
    0%, 45% { opacity: 0; transform: scale(.3) rotate(-15deg); }
    62%, 82% { opacity: 1; transform: scale(1) rotate(8deg); }
    100% { opacity: 0; transform: scale(1.3) rotate(15deg); }
}

@media (max-width: 1080px) {
    .header-inner-v4 {
        grid-template-columns: minmax(210px, 300px) 1fr auto;
        gap: 16px;
    }

    .desktop-nav-v4 {
        gap: 4px;
    }

    .desktop-nav-v4 a {
        padding-inline: 10px;
        font-size: .9rem;
    }

    .benefit-strip-v4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid-v4 {
        grid-template-columns: 1fr;
    }

    .category-card-v4 {
        grid-template-columns: 180px 1fr auto;
    }
}

@media (max-width: 760px) {
    .header-inner-v4,
    .home-v4.shell {
        width: min(100% - 20px, 1440px);
    }

    .header-inner-v4 {
        min-height: 82px;
        grid-template-columns: 1fr auto;
    }

    .brand-image-link-v4 {
        width: min(220px, 58vw);
    }

    .brand-logo-v4 {
        height: 68px;
        border-radius: 14px;
    }

    .desktop-nav-v4 {
        display: none;
    }

    .lab-pill-v4 {
        display: none;
    }

    .icon-button-v4 {
        width: 44px;
        height: 44px;
    }

    .home-v4.main-content {
        padding-top: 10px;
    }

    .hero-image-banner-v4 {
        border-radius: 20px;
    }

    .hero-image-banner-v4 img {
        width: 100%;
        height: auto;
    }

    .benefit-strip-v4 {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 14px 0 12px;
    }

    .benefit-strip-v4 article {
        grid-template-columns: 42px 1fr;
        gap: 9px;
        padding: 7px 4px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .benefit-strip-v4 strong {
        font-size: .78rem;
    }

    .benefit-strip-v4 small {
        font-size: .64rem;
    }

    .monitoring-panel-v4 {
        align-items: flex-start;
        padding: 16px;
        border-radius: 18px;
    }

    .monitoring-link-v4 {
        min-height: 42px;
        padding-inline: 12px;
    }

    .monitoring-link-v4 span {
        display: none;
    }

    .section-heading-v4 {
        align-items: flex-start;
    }

    .section-heading-v4 > a {
        min-height: 38px;
        padding-inline: 10px;
        font-size: .68rem;
    }

    .category-card-v4 {
        min-height: 124px;
        grid-template-columns: 125px 1fr auto;
        border-radius: 18px;
    }

    .category-card-v4 > img {
        height: 124px;
    }

    .category-card-v4 > div {
        padding: 12px 2px 12px 10px;
    }

    .category-card-v4 strong {
        font-size: 1rem;
    }

    .category-card-v4 p {
        font-size: .68rem;
    }

    .category-arrow-v4 {
        width: 36px;
        height: 36px;
        margin-right: 10px;
        font-size: 1.5rem;
    }

    .gift-pet-animation {
        width: 68px;
        height: 64px;
    }

    .gift-pet-animation .gift-pet-image {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 430px) {
    .header-actions-v4 .icon-button-v4:first-of-type {
        display: none;
    }

    .benefit-strip-v4 {
        grid-template-columns: 1fr;
    }

    .benefit-strip-v4 article:nth-child(n+3) {
        display: none;
    }

    .monitoring-panel-v4 p {
        margin-left: 0;
        margin-top: 7px;
    }

    .monitoring-status-v4 {
        margin-left: 0;
    }

    .category-card-v4 {
        grid-template-columns: 104px 1fr auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-card-v4,
    .gift-pet-animation,
    .gift-pet-animation * {
        animation: none !important;
        transition: none !important;
    }
}


/* ==========================================================
   ŁapPromki PUBLIC CARDS V5
   Presentation only: provenance, affiliate disclosure and
   home diversity for clear colour variants.
   ========================================================== */

.monitoring-detail-v5 {
    color: #70839a;
    font-weight: 750;
}

.variant-summary-link-v5 {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -1px 0 7px;
    padding: 4px 9px;
    border: 1px solid #d8eceb;
    border-radius: 999px;
    background: #f2fbfa;
    color: #087f7b;
    text-decoration: none;
    font-size: .65rem;
    font-weight: 850;
    line-height: 1.2;
    transition: transform 150ms ease, background 150ms ease;
}

.variant-summary-link-v5:hover {
    background: #e8f8f6;
    transform: translateY(-1px);
}

.comparison-pill-v5 {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 850;
    line-height: 1.25;
}

.merchant-reference-v5 {
    border: 1px solid #ffd9d8;
    background: #fff1f0;
    color: #c94a4a;
}

.verified-reference-v5 {
    border: 1px solid #cee8f5;
    background: #eef8fd;
    color: #18779f;
}

.card-meta-row-v5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    min-height: 18px;
    margin-top: 5px;
}

.affiliate-note-v5 {
    min-width: 0;
    color: #657789;
    text-decoration: none;
    font-size: .62rem;
    font-weight: 760;
    line-height: 1.35;
}

.affiliate-note-v5:hover {
    color: #3f5568;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-meta-row-v5 .card-time {
    flex: 0 0 auto;
    margin-top: 0;
    text-align: right;
}

@media (max-width: 620px) {
    .comparison-pill-v5 {
        border-radius: 10px;
        white-space: normal;
    }

    .card-meta-row-v5 {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .card-meta-row-v5 .card-time {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .variant-summary-link-v5 {
        transition: none !important;
    }
}

/* ==========================================================
   HOME PRIORITY PASS 2 — 2026-10-03
   Quick categories above offers, search-only mobile header,
   and a denser mobile offer card. Presentation only.
   ========================================================== */

.header-inner-v4 {
    min-height: 96px;
    grid-template-columns: minmax(210px, 300px) 1fr auto;
    gap: 24px;
}

.brand-image-link-v4 {
    width: min(280px, 22vw);
}

.brand-logo-v4 {
    height: 76px;
    border-radius: 16px;
}

.desktop-nav-v4 {
    height: 58px;
}

.icon-button-v4 {
    width: 48px;
    height: 48px;
}

.home-v4.main-content {
    padding-top: 16px;
}

.hero-image-banner-v4 {
    border-radius: 24px;
}

.quick-category-strip-v6 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 880px;
    margin: 12px auto 5px;
}

.quick-category-v6 {
    min-width: 0;
    min-height: 80px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    border: 1px solid rgba(15, 49, 86, .07);
    border-radius: 17px;
    color: var(--lp-navy);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 49, 86, .04);
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.quick-category-v6.dog { background: linear-gradient(115deg, #fff0e7, #fff8f1); }
.quick-category-v6.cat { background: linear-gradient(115deg, #eaf9f8, #f4fbfb); }
.quick-category-v6.bird { background: linear-gradient(115deg, #fff7db, #fffbee); }

.quick-category-v6:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 49, 86, .065);
}

.quick-category-v6.is-active {
    border-color: rgba(20, 158, 157, .52);
    box-shadow: 0 0 0 2px rgba(20, 158, 157, .12), 0 9px 22px rgba(15, 49, 86, .055);
}

.quick-category-v6.is-active strong {
    color: var(--teal-dark);
}

.quick-category-image-v6 {
    width: 94px;
    height: 80px;
    overflow: hidden;
    display: block;
}

.quick-category-image-v6 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* The source cat image contains text on its right side; crop to the animal only. */
.quick-category-v6.cat .quick-category-image-v6 img {
    width: 146%;
    max-width: none;
    object-position: left center;
}

/* Keep the budgie's face fully inside the shallow mobile crop. */
.quick-category-v6.bird .quick-category-image-v6 img {
    object-position: center 25%;
}

.quick-category-v6 strong {
    min-width: 0;
    padding: 8px 12px;
    font-size: .94rem;
    line-height: 1.15;
    text-align: center;
}

.feed-section-v4 {
    padding-top: 12px;
    padding-bottom: 16px;
}

.offers-heading-v4 {
    margin-top: 0;
    margin-bottom: 12px;
}

@media (max-width: 760px) {
    .header-inner-v4 {
        min-height: 66px;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .brand-image-link-v4 {
        width: min(182px, 52vw);
    }

    .brand-logo-v4 {
        height: 54px;
        border-radius: 12px;
    }

    .icon-button-v4 {
        width: 40px;
        height: 40px;
    }

    .home-v4.main-content {
        padding-top: 8px;
    }

    .hero-image-banner-v4 {
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(15, 49, 86, 0.065);
    }

    .quick-category-strip-v6 {
        gap: 7px;
        margin: 9px 0 3px;
    }

    .quick-category-v6 {
        min-height: 78px;
        grid-template-columns: 1fr;
        grid-template-rows: 54px auto;
        border-radius: 14px;
    }

    .quick-category-image-v6 {
        width: 100%;
        height: 54px;
    }

    .quick-category-v6.cat .quick-category-image-v6 img {
        width: 148%;
    }

    .quick-category-v6 strong {
        padding: 5px 3px 6px;
        font-size: .72rem;
        line-height: 1.05;
    }

    .feed-section-v4 {
        padding-top: 9px;
        padding-bottom: 8px;
    }

    .offers-heading-v4 {
        margin-bottom: 9px;
    }

    .section-heading-v4 h2 {
        font-size: 1.48rem;
    }

    /* Keep the public card information, but remove avoidable vertical bulk. */
    .home-v4 .offer-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
        border-radius: 20px;
    }

    .home-v4 .product-visual {
        min-height: 0;
        height: 164px;
        align-self: start;
        border-radius: 15px;
    }

    .home-v4 .product-visual img,
    .home-v4 .product-placeholder {
        min-height: 0;
        height: 100%;
    }

    .home-v4 .product-visual img {
        padding: 6px;
    }

    .home-v4 .animal-corner {
        display: none;
    }

    .home-v4 .offer-topline {
        min-height: 26px;
        gap: 4px;
        padding-right: 30px;
    }

    .home-v4 .animal-chip {
        min-height: 24px;
        padding: 2px 7px 2px 4px;
        font-size: .64rem;
    }

    .home-v4 .animal-chip-image {
        width: 22px;
        height: 22px;
    }

    .home-v4 .subcategory-label {
        font-size: .61rem;
    }

    .home-v4 .favorite-button {
        top: 9px;
        right: 9px;
    }

    .home-v4 .offer-card h3 {
        margin: 4px 0;
        font-size: .92rem;
        line-height: 1.14;
    }

    .home-v4 .variant-summary-link-v5 {
        margin: 0 0 4px;
        padding: 3px 7px;
        font-size: .6rem;
    }

    .home-v4 .price-line {
        gap: 4px 7px;
    }

    .home-v4 .price-line strong {
        font-size: 1.38rem;
    }

    .home-v4 .price-line del {
        font-size: .66rem;
    }

    .home-v4 .best-store {
        margin-top: 1px;
        font-size: .74rem;
    }

    .home-v4 .card-bottom {
        gap: 3px;
        margin-top: 3px;
    }

    .home-v4 .signal-badge,
    .home-v4 .discount-pill,
    .home-v4 .comparison-pill-v5 {
        min-height: 21px;
        padding: 2px 6px;
        font-size: .59rem;
        line-height: 1.18;
    }

    .home-v4 .offer-cta {
        min-height: 35px;
        margin-top: 5px;
        padding: 7px 9px;
        border-radius: 12px;
        font-size: .78rem;
    }

    .home-v4 .card-meta-row-v5 {
        gap: 1px;
        margin-top: 2px;
    }

    .home-v4 .affiliate-note-v5 {
        font-size: .58rem;
    }

    .home-v4 .card-meta-row-v5 .card-time {
        font-size: .55rem;
    }
}

@media (max-width: 430px) {
    /* Search remains the only header action; categories live directly below the hero and in bottom nav. */
    .header-actions-v4 .icon-button-v4:first-of-type {
        display: grid;
    }

    .quick-category-v6 strong {
        font-size: .69rem;
    }
}

@media (max-width: 370px) {
    .quick-category-strip-v6 {
        gap: 5px;
    }

    .quick-category-v6 strong {
        font-size: .65rem;
    }

    .home-v4 .offer-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .home-v4 .product-visual {
        height: 152px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-category-v6 {
        transition: none !important;
    }
}
