/* ════════════════════════════════════════════════════════════════════════
   NEWERA · CATEGORY LANDING PAGE — Premium D2C Redesign
   ────────────────────────────────────────────────────────────────────────
   Goals: Product discovery · Conversion clarity · Mobile-first · Trust
   Brand colour: #018771 (teal) · Category accent injected via --cat-acc
   ════════════════════════════════════════════════════════════════════════ */

/* ─────────── Design tokens (page-scoped) ─────────── */
.catpage {
    --cat-acc: #018771; /* default brand accent, overridden inline per category */
    --cat-acc-soft: #018771;
    --ink-1: #0b1220;
    --ink-2: #1f2937;
    --ink-3: #475569;
    --ink-4: #64748b;
    --ink-5: #94a3b8;
    --line: #e6e9ee;
    --line-soft: #eef1f5;
    --surface: #ffffff;
    --surface-alt: #f7f8fb;
    --surface-3: #f1f3f7;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04);
    --shadow-2: 0 4px 14px rgba(15,23,42,.06), 0 12px 28px rgba(15,23,42,.06);
    --shadow-3: 0 10px 24px rgba(15,23,42,.10), 0 22px 48px rgba(15,23,42,.10);
    --discount: #e11d48; /* eye-catching rose for % off */
    --discount-soft: #fff1f2;
    --success: #047857;
    --warn: #b45309;
    --font-display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
    --font-body: 'Manrope', 'Inter', system-ui, sans-serif;
    background: var(--surface-alt);
    min-height: 100vh;
    color: var(--ink-1);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

    .catpage * {
        box-sizing: border-box;
    }

/* Shared container */
.catpage-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.catpage-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 4vw, 88px) 0 clamp(48px, 4vw, 108px);
    color: #fff;
    isolation: isolate;
}

/* Decorative layers */
.catpage-hero__mesh,
.catpage-hero__noise,
.catpage-hero__glow,
.catpage-hero__bubble {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.catpage-hero__mesh {
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 80%);
}

.catpage-hero__glow {
    inset: -10% -5% 0 -5%;
    background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(255,255,255,.18) 0%, transparent 60%), radial-gradient(ellipse 50% 40% at 20% 100%, rgba(255,255,255,.10) 0%, transparent 70%);
}

.catpage-hero__bubble {
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    filter: blur(1px);
}

    .catpage-hero__bubble.b1 {
        width: 320px;
        height: 320px;
        top: -90px;
        left: -90px;
        background: rgba(255,255,255,.07);
    }

    .catpage-hero__bubble.b2 {
        width: 520px;
        height: 520px;
        top: -220px;
        right: -160px;
        background: rgba(255,255,255,.04);
    }

    .catpage-hero__bubble.b3 {
        width: 180px;
        height: 180px;
        bottom: -50px;
        left: 22%;
        background: rgba(255,255,255,.06);
    }

.catpage-hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

/* Breadcrumb chip */
.catpage-crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

    .catpage-crumb a {
        color: rgba(255,255,255,.78);
        text-decoration: none;
        transition: color .18s;
    }

        .catpage-crumb a:hover {
            color: #fff;
        }

    .catpage-crumb i {
        font-size: 9px;
        opacity: .55;
    }

    .catpage-crumb .here {
        color: #fff;
        font-weight: 700;
    }

/* Title */
.catpage-hero__title {
    font-family: var(--font-display);
    font-size: clamp(34px, 6.4vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #fff; /* override layout.css h1 dark color */
    text-shadow: 0 2px 18px rgba(0,0,0,.22);
}

    .catpage-hero__title .accent-bar {
        /* Removed: the horizontal white dash before the category name reads as a
           stray line with no semantic meaning. Hidden without touching HTML. */
        display: none;
    }

.catpage-hero__tag {
    font-size: clamp(15px, 1.8vw, 21px);
    font-weight: 500;
    color: #fff;
    opacity: .92;
    margin: 0 0 28px;
    max-width: 540px;
    line-height: 1.45;
}

/* Hard guarantee: every heading/text node on a dark-gradient surface stays white,
   even when site-wide rules like `h1,h2,h3 { color: var(--ink) }` exist. */
.catpage-hero h1,
.catpage-hero h2,
.catpage-hero p,
.catpage-hero span:not(.pcard__sub):not(.catpage-pill__count):not(.catpage-shelf__badge),
.catpage-bottomcta h1,
.catpage-bottomcta h2,
.catpage-bottomcta p {
    color: #fff;
}

/* Stat strip — clean horizontal */
.catpage-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 28px;
    padding: 14px 20px;
    /* Increased from rgba(255,255,255,.08) — was too transparent to read
       numbers and labels clearly on the dark category gradients */
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    width: fit-content;
    max-width: 100%;
}

.catpage-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 22px;
    min-width: 92px;
}

    .catpage-stat + .catpage-stat {
        border-left: 1px solid rgba(255,255,255,.25);
    }

.catpage-stat__num {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    text-align: center;
    color: #fff;
}

    .catpage-stat__num sup {
        font-size: .5em;
        vertical-align: super;
        opacity: .85;
        margin-left: 1px;
    }

.catpage-stat__label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    /* Removed opacity:.78 — explicit rgba is more predictable than opacity
       which compounds with any parent opacity, making labels nearly invisible */
    color: rgba(255,255,255,.82);
    font-weight: 700;
}

/* CTAs */
.catpage-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catpage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    line-height: 1;
    white-space: nowrap;
}

.catpage-btn--primary {
    background: #fff;
    color: #0b1220;
    box-shadow: 0 6px 22px rgba(0,0,0,.28);
}

    .catpage-btn--primary:hover {
        transform: translateY(-2px);
        color: #0b1220;
        box-shadow: 0 10px 28px rgba(0,0,0,.34);
    }

.catpage-btn--ghost {
    /* Increased background from .10 → .18 and border from .45 → .70
       so the outline reads clearly on the dark category-specific gradients
       (blue for Adhesive, dark red for Sealant, etc.) */
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .catpage-btn--ghost:hover {
        background: rgba(255,255,255,.28);
        color: #fff;
        transform: translateY(-2px);
    }

/* Visual side — product hero image */
.catpage-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 32vw, 380px);
}

.catpage-hero__visual-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.34) 0%, rgba(255,255,255,.15) 32%, transparent 64%);
    filter: blur(2px);
}

.catpage-hero__img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: clamp(220px, 48vw, 420px);
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(0,0,0,.42)) drop-shadow(0 4px 12px rgba(0,0,0,.28));
    animation: catpage-float 6s ease-in-out infinite;
}

@keyframes catpage-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Floating chips around hero image (desktop) */
.catpage-hero__chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff; /* solid white — was rgba(.95) which competes with gradient */
    color: #0b1220; /* guaranteed dark ink — not overridden by the .catpage-hero span rule */
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(0,0,0,.30), 0 2px 8px rgba(0,0,0,.18);
    animation: catpage-float 5s ease-in-out infinite;
    white-space: nowrap;
}

/* Override the broad .catpage-hero span{color:#fff} rule so chip text stays dark */
.catpage-hero .catpage-hero__chip {
    color: #0b1220 !important;
}

.catpage-hero__chip i {
    color: var(--cat-acc);
    font-size: 13px;
}

.catpage-hero__chip.chip-tl {
    top: 8%;
    left: 4%;
    animation-delay: -1s;
}

.catpage-hero__chip.chip-br {
    bottom: 8%;
    right: 4%;
    animation-delay: -2.5s;
}

/* ════════════════════════════════════════════════════════════════════════
   TRUST STRIP
   ════════════════════════════════════════════════════════════════════════ */
.catpage-trust {
    margin-top: -28px;
    position: relative;
    z-index: 4;
}

.catpage-trust__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

.catpage-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    min-width: 0;
}

    .catpage-trust__item + .catpage-trust__item {
        border-left: 1px solid var(--line-soft);
    }

.catpage-trust__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(1,135,113,.10), rgba(46,219,182,.10));
    color: var(--cat-acc);
    font-size: 16px;
}

.catpage-trust__text {
    min-width: 0;
}

.catpage-trust__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-1);
    line-height: 1.2;
}

.catpage-trust__sub {
    display: block;
    font-size: 11.5px;
    color: var(--ink-4);
    margin-top: 2px;
}



.catpage-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .18s, color .18s, background .18s, transform .18s;
}

    .catpage-pill i {
        font-size: 11px;
        opacity: .8;
    }

    .catpage-pill:hover {
        border-color: var(--cat-acc);
        color: var(--cat-acc);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,.05);
    }

.catpage-pill--all {
    background: var(--cat-acc);
    border-color: var(--cat-acc);
    color: #fff;
}

    .catpage-pill--all:hover {
        color: #fff;
        opacity: .92;
    }

.catpage-pill__count {
    background: rgba(0,0,0,.10);
    color: inherit;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    line-height: 1.4;
}

.catpage-pill--all .catpage-pill__count {
    background: rgba(255,255,255,.28);
}

/* ════════════════════════════════════════════════════════════════════════
   BRAND GRID — static, responsive; replaces scrolling marquee
   ════════════════════════════════════════════════════════════════════════ */
.cat-brands-section {
    background: #fff;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: clamp(20px, 3vw, 36px) 0;
    margin-top: 28px;
}

.cat-brands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.cat-brands-label {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cat-acc);
}

.cat-brands-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-5);
}

/* Responsive auto-fill grid: min 88px per column on mobile, up to 128px on desktop */
.cat-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(80px, 12vw, 120px), 1fr));
    gap: clamp(12px, 2vw, 20px);
}

/* Individual brand tile */
.cat-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: clamp(10px, 2vw, 14px) 8px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--surface-alt);
    transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
    cursor: pointer;
}

    .cat-brand-item:hover {
        border-color: color-mix(in srgb, var(--cat-acc) 50%, transparent);
        background: color-mix(in srgb, var(--cat-acc) 5%, #fff);
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

/* Circle frame */
.cat-brand-circle {
    width: clamp(52px, 10vw, 68px);
    height: clamp(52px, 10vw, 68px);
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
    border: 1.5px solid var(--line);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: border-color .2s;
}

.cat-brand-item:hover .cat-brand-circle {
    border-color: color-mix(in srgb, var(--cat-acc) 45%, transparent);
}

/* Brand logo image */
.cat-brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    display: block;
}

/* Fallback initials pill */
.cat-brand-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 800;
    color: #fff;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Brand name label */
.cat-brand-name {
    font-size: clamp(10px, 1.5vw, 12px);
    font-weight: 700;
    color: var(--ink-3);
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}

.cat-brand-item:hover .cat-brand-name {
    color: var(--cat-acc);
}

/* ════════════════════════════════════════════════════════════════════════
   PRODUCT SHELVES (per subcategory)
   ════════════════════════════════════════════════════════════════════════ */
.catpage-shelf {
    padding: clamp(28px, 2vw, 48px) 0;
    position: relative;
    /* Establish a stacking context so shelf content never bleeds over
       adjacent sections or the sticky site header */
    isolation: isolate;
}

    .catpage-shelf + .catpage-shelf {
        border-top: 1px solid var(--line-soft);
    }

    .catpage-shelf:nth-of-type(even) {
        background: var(--surface);
    }

/* Shelf header — NOT sticky; scrolls normally with its shelf */
.catpage-shelf__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(18px, 2.5vw, 24px);
    flex-wrap: wrap;
    /* Explicitly non-sticky; kill any inherited position:sticky from parent sheets */
    position: static;
    z-index: auto;
}

.catpage-shelf__title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.catpage-shelf__accent {
    width: 5px;
    height: 38px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--cat-acc), color-mix(in srgb, var(--cat-acc) 50%, transparent));
    flex-shrink: 0;
}

.catpage-shelf__title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--ink-1);
    letter-spacing: -.015em;
    line-height: 1.1;
    margin: 0;
}

.catpage-shelf__sub {
    display: block;
    font-size: 12.5px;
    color: var(--ink-4);
    font-weight: 500;
    margin-top: 4px;
}

.catpage-shelf__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat-acc) 12%, transparent);
    color: var(--cat-acc);
    border: 1px solid color-mix(in srgb, var(--cat-acc) 22%, transparent);
    margin-left: 8px;
    vertical-align: middle;
}

.catpage-shelf__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.catpage-shelf__viewall {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

    .catpage-shelf__viewall:hover {
        border-color: var(--cat-acc);
        color: var(--cat-acc);
        background: color-mix(in srgb, var(--cat-acc) 5%, transparent);
    }

    .catpage-shelf__viewall i {
        transition: transform .2s;
    }

    .catpage-shelf__viewall:hover i {
        transform: translateX(3px);
    }

/* Desktop scroll arrow controls */
.catpage-scrollbtn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    box-shadow: var(--shadow-1);
    font-size: 13px;
}

    .catpage-scrollbtn:hover:not(:disabled) {
        border-color: var(--cat-acc);
        color: var(--cat-acc);
        transform: translateY(-1px);
        box-shadow: var(--shadow-2);
    }

    .catpage-scrollbtn:disabled {
        opacity: .35;
        cursor: not-allowed;
    }

@media (min-width: 769px) {
    .catpage-scrollbtn {
        display: inline-flex;
    }
}

/* Horizontal scroll rail */
.catpage-shelf__rail {
    display: flex;
    gap: clamp(12px, 1.5vw, 20px);
    overflow-x: auto;
    padding: 6px 4px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    scroll-padding-left: 4px;
}

    .catpage-shelf__rail::-webkit-scrollbar {
        height: 6px;
    }

    .catpage-shelf__rail::-webkit-scrollbar-track {
        background: transparent;
    }

    .catpage-shelf__rail::-webkit-scrollbar-thumb {
        background: var(--line);
        border-radius: 99px;
    }

        .catpage-shelf__rail::-webkit-scrollbar-thumb:hover {
            background: #cbd5e1;
        }

/* ════════════════════════════════════════════════════════════════════════
   PRODUCT CARD — Premium ecommerce
   ════════════════════════════════════════════════════════════════════════ */
.pcard {
    flex: 0 0 clamp(168px, 20vw, 248px);
    background: #fff;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--line);
    /* overflow:hidden on the card clips the hover lift shadow — removed;
       overflow is now set per-region (.pcard__media handles image clip) */
    overflow: visible;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    position: relative;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    opacity: 0;
    transform: translateX(18px);
    /* Create own stacking context so hover shadow doesn't bleed */
    isolation: isolate;
}

    .pcard.visible {
        opacity: 1;
        transform: translateX(0);
        transition: opacity .45s ease, transform .45s ease, box-shadow .28s ease, border-color .28s ease;
    }

    .pcard:hover {
        border-color: color-mix(in srgb, var(--cat-acc) 50%, transparent);
        transform: translateY(-6px);
        box-shadow: var(--shadow-3);
    }

/* Media area — aspect-ratio enforces fixed proportions; immune to Tailwind img{height:auto} */
.pcard__media {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f3f7 100%);
    text-decoration: none;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.pcard__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 10px;
    transition: transform .45s ease;
    display: block;
}

.pcard:hover .pcard__img {
    transform: scale(1.07);
}

.pcard__img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #cbd5e1;
    font-size: 40px;
}

/* Badges on media */
.pcard__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    align-items: flex-start;
}

.pcard__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 6px;
    line-height: 1.2;
    letter-spacing: .02em;
    box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

.pcard__badge--off {
    background: var(--discount);
    color: #fff;
}

.pcard__badge--brand {
    background: rgba(15,23,42,.82);
    color: #fff;
    backdrop-filter: blur(4px);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Top-right wishlist button — always visible */
.pcard__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    border: 1.5px solid rgba(255,255,255,.7);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink-3);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}

    .pcard__fav:hover {
        color: #ef4444;
        border-color: #fecaca;
        transform: scale(1.08);
    }

    .pcard__fav[data-in-wishlist="true"] {
        color: #ef4444;
    }

        .pcard__fav[data-in-wishlist="true"] i {
            font-weight: 900;
        }



/* Body */
.pcard__body {
    padding: 12px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.pcard__sub {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--cat-acc);
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1;
}

.pcard__name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-1);
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    transition: color .18s;
    margin: 0;
}

    .pcard__name:hover {
        color: var(--cat-acc);
    }

/* Rating */
.pcard__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 4px;
}

    .pcard__rating .star {
        font-size: 11px;
        color: #f59e0b;
    }

        .pcard__rating .star.muted {
            color: #e2e8f0;
        }

.pcard__rating-num {
    font-size: 11px;
    color: var(--ink-4);
    font-weight: 600;
    margin-left: 4px;
}

/* Price */
.pcard__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.pcard__price {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--ink-1);
    line-height: 1;
    letter-spacing: -.01em;
}

.pcard__price-mrp {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-5);
    text-decoration: line-through;
}

.pcard__save {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--success);
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

/* Add to cart CTA — full width */
.pcard__cta {
    margin-top: 10px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--cat-acc);
    background: #fff;
    color: var(--cat-acc);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
    line-height: 1;
}

    .pcard__cta i {
        font-size: 11.5px;
    }

    .pcard__cta:hover {
        background: var(--cat-acc);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px color-mix(in srgb, var(--cat-acc) 30%, transparent);
    }

    .pcard__cta[data-in-cart="true"] {
        background: var(--cat-acc);
        color: #fff;
    }

        .pcard__cta[data-in-cart="true"]:hover {
            background: color-mix(in srgb, var(--cat-acc) 85%, #000);
        }

.pcard__cta--guest {
    border-color: var(--line);
    color: var(--ink-2);
}

    .pcard__cta--guest:hover {
        border-color: var(--cat-acc);
        background: var(--cat-acc);
        color: #fff;
    }

/* ── View-more end card ── */
.pcard-viewmore {
    flex: 0 0 clamp(150px, 16vw, 200px);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: start;
    position: relative;
    color: #fff;
    background: var(--cat-acc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 12px;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, filter .25s;
}

    .pcard-viewmore:hover {
        transform: translateY(-6px);
        filter: brightness(1.08);
        box-shadow: var(--shadow-3);
        color: #fff;
    }

.pcard-viewmore__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: grid;
    place-items: center;
    font-size: 22px;
    backdrop-filter: blur(6px);
}

.pcard-viewmore__label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.pcard-viewmore__count {
    font-size: 11.5px;
    opacity: .9;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════
   INFO BAND (SEO content + reassurance)
   ════════════════════════════════════════════════════════════════════════ */
.catpage-info {
    background: #fff;
    border-top: 1px solid var(--line-soft);
    padding: clamp(32px, 2vw, 56px) 0;
}

.catpage-info__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.catpage-info__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    color: var(--ink-1);
    margin: 0 0 12px;
    letter-spacing: -.015em;
    line-height: 1.15;
}

    .catpage-info__title .accent {
        color: var(--cat-acc);
    }

.catpage-info__body {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-3);
}

    .catpage-info__body p + p {
        margin-top: 12px;
    }

.catpage-info__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.catpage-info__feature {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-alt);
    align-items: flex-start;
    transition: border-color .2s, transform .2s;
}

    .catpage-info__feature:hover {
        border-color: var(--cat-acc);
        transform: translateY(-2px);
    }

    .catpage-info__feature i {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: color-mix(in srgb, var(--cat-acc) 12%, transparent);
        color: var(--cat-acc);
        font-size: 14px;
    }

.catpage-info__feature-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink-1);
    line-height: 1.2;
    display: block;
    margin-bottom: 3px;
}

.catpage-info__feature-text {
    font-size: 12.5px;
    color: var(--ink-4);
    line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════════════════
   BOTTOM CTA
   ════════════════════════════════════════════════════════════════════════ */
.catpage-bottomcta {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) clamp(16px, 5vw, 60px);
    text-align: center;
    color: #fff;
    isolation: isolate;
}

    .catpage-bottomcta::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
        background-size: 44px 44px;
        mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
        pointer-events: none;
    }

.catpage-bottomcta__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.catpage-bottomcta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.catpage-bottomcta__title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: #fff; /* override layout.css h2 dark color */
    text-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.catpage-bottomcta__sub {
    font-size: clamp(14px, 1.8vw, 17px);
    opacity: .88;
    margin: 0 0 28px;
    line-height: 1.5;
}

.catpage-bottomcta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE FLOATING FILTER BUTTON
   ════════════════════════════════════════════════════════════════════════ */
.catpage-mobile-fab {
    display: none;
}

@media (max-width: 768px) {
    .catpage-mobile-fab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 84px; /* clear of mobile-bottom-nav from global overrides */
        right: 16px;
        z-index: 60;
        padding: 12px 18px;
        background: var(--ink-1);
        color: #fff;
        border: none;
        border-radius: 999px;
        font-weight: 800;
        font-size: 13px;
        letter-spacing: .03em;
        box-shadow: 0 12px 28px rgba(0,0,0,.30);
        cursor: pointer;
        text-decoration: none;
    }

        .catpage-mobile-fab i {
            font-size: 14px;
        }
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .catpage-hero__inner {
        gap: 28px;
    }

    .catpage-info__inner {
        grid-template-columns: 1fr;
    }
}

/* Small tablet & large phone */
@media (max-width: 768px) {
    .catpage-hero {
        padding-top: clamp(28px, 6vw, 48px);
        padding-bottom: clamp(36px, 6vw, 56px);
    }

    .catpage-hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 12px;
        align-items: center;
    }

    .catpage-hero__visual {
        display: flex;
        min-height: clamp(140px, 28vw, 220px);
    }

    .catpage-hero__img {
        max-height: clamp(140px, 28vw, 220px);
    }

    .catpage-hero__chip {
        display: none;
    }

    .catpage-hero__stats {
        width: 100%;
        padding: 12px 4px;
    }

    .catpage-stat {
        padding: 4px 14px;
        min-width: auto;
        flex: 1;
    }

    .catpage-trust__inner {
        grid-template-columns: 1fr 1fr;
    }

    .catpage-trust__item:nth-child(2) {
        border-left: 1px solid var(--line-soft);
    }

    .catpage-trust__item:nth-child(3) {
        border-left: none;
        border-top: 1px solid var(--line-soft);
    }

    .catpage-trust__item:nth-child(4) {
        border-top: 1px solid var(--line-soft);
    }

    .catpage-shelf__head {
        align-items: flex-start;
    }

    .catpage-info__features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .catpage-hero__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catpage-hero__visual {
        min-height: clamp(110px, 48vw, 180px);
        justify-content: center;
    }

    .catpage-hero__img {
        max-height: clamp(110px, 48vw, 180px);
    }

    .catpage-hero__title {
        font-size: 36px;
        text-align: center;
    }

    .catpage-hero__tag {
        font-size: 14.5px;
        text-align: center;
    }

    .catpage-stat__num {
        font-size: 20px;
    }

    .catpage-stat__label {
        font-size: 8px;
        text-align: center;
    }

    .catpage-hero__actions {
        justify-content: center;
    }


    .catpage-trust__item {
        padding: 12px 14px;
        gap: 10px;
    }

    .catpage-trust__icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .catpage-trust__title {
        font-size: 12.5px;
    }

    .catpage-trust__sub {
        font-size: 10.5px;
    }

    /* Brand grid: 3 columns on small mobile so circles aren't enormous */
    .cat-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-brand-circle {
        width: 52px;
        height: 52px;
    }

    /* Product cards: fixed narrow width so 2+ are clearly visible at once */
    .pcard {
        flex: 0 0 158px;
    }

    .pcard__name {
        font-size: 13px;
    }

    .pcard__price {
        font-size: 15.5px;
    }

    .pcard-viewmore {
        flex: 0 0 140px;
        padding: 18px 12px;
    }

    /* Shelf head: stack vertically on very small screens */
    .catpage-shelf__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .catpage-shelf__actions {
        align-self: flex-end;
    }

    .catpage-info__features {
        grid-template-columns: 1fr;
    }
}

/* Print friendly */
@media print {
    .catpage-hero, .catpage-bottomcta,
    .catpage-mobile-fab,
    .pcard__fav, .pcard__overlay, .pcard__cta {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .catpage-hero__img,
    .catpage-hero__chip,
    .pcard,
    .catpage-shelf__viewall i {
        animation: none !important;
        transition-duration: 0ms !important;
    }
}

/* Focus styles for keyboard a11y */
.catpage a:focus-visible,
.catpage button:focus-visible {
    outline: 2.5px solid color-mix(in srgb, var(--cat-acc) 80%, #fff);
    outline-offset: 2px;
    border-radius: 8px;
}
