/* =============================================================
   Tee Print Vibe: catalogue styles
   Main menu mega panels, category landing + listing pages,
   filters and the catalogue product card.
   Relies on the tokens defined in site.css (:root).
   ============================================================= */

/* ---------------- Main menu mega panels ---------------- */
.mega.cmega {
    border-top: 3px solid var(--blue);
    border-bottom: 0;
    border-radius: 0 0 16px 16px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    z-index: 5;
}
.cmega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.75rem; padding: 1.4rem 1.5rem 1.6rem; }
.cmega-inner.is-grouped { grid-template-columns: minmax(0, 1fr) 220px; }
.cmega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem 1rem; align-content: start; }
.cmega-card {
    display: flex; align-items: center; gap: .7rem;
    padding: .4rem .5rem; border-radius: 10px;
    color: var(--text-strong); font-size: .9rem; font-weight: 500; line-height: 1.3;
    transition: background .15s ease, color .15s ease;
}
.cmega-card:hover { background: var(--mist); color: var(--blue); }
.cmega-thumb { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; overflow: hidden; background: var(--mist-deep); border: 1px solid var(--line); }
.cmega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cmega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem 1.4rem; align-content: start; }
.cmega-head {
    display: block; margin: 0 0 .35rem;
    font-family: var(--font-display); font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--blue);
}
.cmega-head:hover { color: var(--gold-dark); }
.cmega-col .cmega-head + .cmega-head { margin-top: .75rem; }
.cmega-col ul { list-style: none; margin: 0; padding: 0; }
.cmega-col li a { display: block; padding: .2rem 0; font-size: .86rem; color: var(--text); line-height: 1.35; }
.cmega-col li a:hover { color: var(--blue); }
.cmega-aside {
    display: flex; flex-direction: column; align-self: start;
    border-radius: 14px; overflow: hidden;
    background: var(--navy); color: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cmega-aside:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cmega-aside img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cmega-aside-body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1.05rem; }
.cmega-aside-body strong { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.cmega-aside-body > span:not(.cmega-aside-cta) { font-size: .78rem; color: #c8d6d6; line-height: 1.45; }
.cmega-aside-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .25rem; font-size: .8rem; font-weight: 700; color: var(--gold); }

.drop.drop-right { left: auto; right: 0; }

/* ---------------- Header: compact (stuck) state ---------------- */
/* The spacer takes over the height the header gives up when it collapses (set in site.js). */
.header-spacer { height: 0; overflow-anchor: none; pointer-events: none; }
.site-header { overflow-anchor: none; }
@keyframes hdrIn { from { opacity: .3; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes hdrOut { from { opacity: .3; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.site-header.hdr-in { animation: hdrIn .26s cubic-bezier(.2, .75, .25, 1); }
.site-header.hdr-out { animation: hdrOut .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .site-header.hdr-in, .site-header.hdr-out { animation: none; } }

/* ---------------- Header: dropdown behaviour ---------------- */
/* Smooth fade + slide for every panel. Visibility flips only after the fade-out finishes. */
.main-nav .drop,
.main-nav .mega {
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* With JS, site.js drives .open (hover intent + close delay); disable the instant CSS hover. */
.main-nav.js-nav .nav-item:not(.open):hover > .drop,
.main-nav.js-nav .nav-item:not(.open):hover > .mega { opacity: 0; visibility: hidden; transform: translateY(6px); }
.main-nav .nav-item.open > .drop,
.main-nav .nav-item.open > .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
/* No-JS fallback: hover or keyboard focus opens the panel. */
.main-nav:not(.js-nav) .nav-item:hover > .drop,
.main-nav:not(.js-nav) .nav-item:hover > .mega,
.main-nav:not(.js-nav) .nav-item:focus-within > .drop,
.main-nav:not(.js-nav) .nav-item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.main-nav:not(.js-nav) .nav-item:hover > .nav-link .chev,
.main-nav:not(.js-nav) .nav-item:focus-within > .nav-link .chev { transform: rotate(180deg); }
.main-nav .nav-link .chev { transition: transform .18s ease; }
.main-nav .nav-item.open > .nav-link { color: var(--blue); }
.main-nav .nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.main-nav .nav-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: 8px; }
/* Current section */
.main-nav .nav-item.is-current > .nav-link { color: var(--blue); box-shadow: inset 0 -3px 0 var(--gold); }
/* While a panel is open only that item is marked, so no other item looks active underneath it */
.main-nav .nav-list:has(> .nav-item.open) > .nav-item.is-current:not(.open) > .nav-link { color: var(--text-strong); box-shadow: none; }
.main-nav .nav-item.open > .nav-link { box-shadow: inset 0 -3px 0 var(--gold); }
@media (prefers-reduced-motion: reduce) {
    .main-nav .drop, .main-nav .mega, .main-nav .nav-link .chev { transition: none !important; }
}

/* Printing services dropdown (UV Printing item) */
.drop.drop-svc { min-width: 250px; padding: .5rem; }
.drop-svc .drop-label { padding: .35rem .75rem .3rem; font-family: var(--font-display); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.drop-svc li a { border-radius: 8px; padding: .48rem .75rem; }
.drop-svc li a.is-feature { font-weight: 700; color: var(--blue); }
.drop-svc .drop-all { margin-top: .3rem; padding-top: .3rem; }

/* Brands mega panel: logo tiles, A-Z columns, View All */
.mega.bmega { border-top: 3px solid var(--blue); border-bottom: 0; border-radius: 0 0 16px 16px; max-height: calc(100vh - 190px); overflow-y: auto; z-index: 5; }
.bmega-inner { padding: 1.35rem 1.6rem 1.4rem; }
.bmega-head { margin: 0 0 .65rem; font-family: var(--font-display); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.bmega-logos { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.bmega-logo {
    display: flex; align-items: center; justify-content: center; height: 74px; padding: .75rem 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bmega-logo img { width: auto; max-width: 100%; max-height: 36px; object-fit: contain; opacity: .82; transition: opacity .18s ease; }
.bmega-logo:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.bmega-logo:hover img { opacity: 1; }
.bmega-list { list-style: none; margin: 0; padding: 0 0 1rem; columns: 4; column-gap: 1.75rem; border-bottom: 1px solid var(--line); }
.bmega-list li { break-inside: avoid; }
.bmega-list a { display: block; padding: .3rem 0; font-size: .9rem; color: var(--text); transition: color .15s ease, transform .15s ease; }
.bmega-list a:hover { color: var(--blue); transform: translateX(2px); }
.bmega-all { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .88rem; font-weight: 700; color: var(--blue); }
.bmega-all:hover { color: var(--gold-dark); }
@media (max-width: 1100px) {
    .bmega-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bmega-list { columns: 3; }
}

/* Mobile drawer: nested groups */
a.drawer-toggle { color: var(--text-strong); }
.drawer-sub a.drawer-subhead { font-weight: 700; color: var(--blue); padding-top: .6rem; }
.drawer-sub a.drawer-leaf { padding-left: 1.6rem; font-size: .9rem; }

/* ---------------- Breadcrumbs ---------------- */
.cat-page { padding-bottom: 0; }
.cat-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 1.35rem 0 1rem; font-size: .82rem; }
.cat-crumbs li { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-muted); }
.cat-crumbs li:not(:last-child)::after { content: "/"; color: #b5c0cc; }
.cat-crumbs a { color: var(--text-muted); }
.cat-crumbs a:hover { color: var(--blue); }
.cat-crumbs [aria-current] { color: var(--text-strong); font-weight: 600; }

/* ---------------- Landing: sidebar + banner ---------------- */
.cat-landing-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.cat-side-box {
    height: auto;
    border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
    padding: 1.2rem 1.1rem 1.1rem; box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
}
.cat-side-title { font-family: var(--font-display); font-size: .92rem; font-weight: 700; text-transform: none; letter-spacing: .03em; color: var(--navy); margin: 0 0 .45rem; }
.cat-side-list + .cat-side-title { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cat-side-list { list-style: none; margin: 0; padding: 0; }
.cat-side-list a { display: block; padding: .24rem 0; font-size: .9rem; color: var(--text); line-height: 1.35; transition: color .15s ease, padding .15s ease; }
.cat-side-list a:hover { color: var(--blue); padding-left: .2rem; }
.cat-side-list a.is-group { font-weight: 600; color: var(--text-strong); }
.cat-side-sub { list-style: none; margin: .1rem 0 .45rem .15rem; padding: 0 0 0 .7rem; border-left: 2px solid var(--line); }
.cat-side-sub a { font-size: .84rem; padding: .16rem 0; }

.cat-banner {
    position: relative; min-height: 378px;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border-radius: 20px; overflow: hidden;
    background: linear-gradient(120deg, var(--navy) 0%, var(--blue-dark) 38%, var(--blue) 100%);
    color: #fff; box-shadow: var(--shadow-md);
}
.cat-banner:not(.has-media) { grid-template-columns: 1fr; }
.cat-banner-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2.75rem 2.25rem 2.5rem 3rem; }
.cat-banner-title { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.9rem); text-transform: none; letter-spacing: .01em; margin: 0 0 .7rem; }
.cat-banner-text { color: rgba(255, 255, 255, .86); font-size: 1rem; line-height: 1.6; max-width: 440px; margin: 0 0 1.5rem; }
.cat-banner-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(252, 169, 12, .35); }
.cat-banner-btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.cat-banner-feats { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .92); }
.cat-banner-feats li { display: inline-flex; align-items: center; gap: .35rem; }
.cat-banner-feats svg { color: var(--gold); }
.cat-banner-media { position: relative; }
.cat-banner-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}

/* ---------------- Top Picks ---------------- */
.cat-picks { padding: 3.25rem 0 4rem; }
.cat-picks-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cat-picks-head .section-title { margin: 0; }
.cat-tabs.pop-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 0 1.5rem; padding-bottom: .35rem; scrollbar-width: thin; }
.cat-tabs.pop-tabs .btn { flex: 0 0 auto; white-space: nowrap; border-radius: 10px; }

/* Group cards (browse by category, All Products index) */
.cat-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cat-group {
    display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease;
}
.cat-group:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-group-media { display: block; aspect-ratio: 16 / 9; background: var(--mist-deep); overflow: hidden; }
.cat-group-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-group:hover .cat-group-media img { transform: scale(1.04); }
.cat-group-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; }
.cat-group-title { font-size: 1.1rem; text-transform: none; margin: 0 0 .5rem; }
.cat-group-title a { color: var(--text-strong); }
.cat-group-title a:hover { color: var(--blue); }
.cat-group-text { font-size: .88rem; color: var(--text-muted); margin: 0 0 .6rem; }
.cat-group-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-group-links a { display: inline-block; padding: .28rem .6rem; font-size: .78rem; font-weight: 500; color: var(--text); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s ease, color .15s ease; }
.cat-group-links a:hover { border-color: var(--blue); color: var(--blue); }
.cat-group-all { margin-top: auto; padding-top: .9rem; font-size: .85rem; font-weight: 700; color: var(--blue); }

/* ---------------- Listing ---------------- */
.cat-listing { padding-bottom: 4rem; }
.cat-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin: .25rem 0 1.5rem; }
.cat-list-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); text-transform: none; margin: 0; }
.cat-list-tag { margin: 0; max-width: 460px; text-align: right; color: var(--text-muted); font-size: .95rem; line-height: 1.55; }

.cat-rounds {
    display: flex; gap: 1.1rem; justify-content: safe center;
    overflow-x: auto; scroll-snap-type: x proximity;
    padding: .25rem .25rem 1rem; margin: 0 0 1.25rem; scrollbar-width: thin;
}
.cat-round { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; scroll-snap-align: start; color: var(--text-strong); font-size: .8rem; font-weight: 600; line-height: 1.3; }
.cat-round-img { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--mist); border: 2px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .18s ease, transform .18s ease; }
.cat-round-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-round:hover { color: var(--blue); }
.cat-round:hover .cat-round-img { border-color: var(--blue); transform: translateY(-2px); }
.cat-round.is-active { color: var(--blue); }
.cat-round.is-active .cat-round-img { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 105, 107, .15); }

/* Filter bar */
.fbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .85rem 0; margin-bottom: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fbar-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.fdrop { position: relative; }
.fdrop-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
    font-family: var(--font-text); font-size: .88rem; font-weight: 600; color: var(--text-strong);
    cursor: pointer; list-style: none; user-select: none; line-height: 1.2;
    transition: border-color .15s ease, color .15s ease;
}
.fdrop-btn::-webkit-details-marker { display: none; }
.fdrop-btn:hover, .fdrop[open] > .fdrop-btn, .fdrop.is-active > .fdrop-btn { border-color: var(--blue); color: var(--blue); }
.fdrop-chev { transition: transform .15s ease; }
.fdrop[open] .fdrop-chev { transform: rotate(180deg); }
.fdrop-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 .3rem; border-radius: 6px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; }
.fdrop-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
    min-width: 230px; max-height: 330px; overflow-y: auto;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
    padding: .45rem;
}
.fdrop-panel ul { list-style: none; margin: 0; padding: 0; }
.fdrop-panel.is-colour { min-width: 300px; }
.fdrop-panel.is-colour ul { display: grid; grid-template-columns: 1fr 1fr; }
.fopt { display: flex; align-items: center; gap: .55rem; padding: .42rem .5rem; border-radius: 8px; color: var(--text); font-size: .87rem; line-height: 1.3; }
.fopt:hover { background: var(--mist); color: var(--text-strong); }
.fopt-box { width: 16px; height: 16px; flex: 0 0 16px; border: 1.5px solid #b8c2cf; border-radius: 4px; background: #fff; }
.fopt.is-on { color: var(--text-strong); font-weight: 600; }
.fopt.is-on .fopt-box {
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / 11px no-repeat;
    border-color: var(--blue);
}
.fopt-swatch { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px #c9d1db; }
.fbar-all { background: var(--navy); border-color: var(--navy); color: #fff; }
.fbar-all:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.fbar-all .fdrop-count { background: var(--gold); color: var(--navy-deep); }
.fbar-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.fbar-count { font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.fbar-sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); }
.fbar-sort select {
    padding: .55rem 2.1rem .55rem .85rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697991' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") no-repeat right .65rem center;
    -webkit-appearance: none; appearance: none;
    font-family: var(--font-text); font-size: .88rem; font-weight: 600; color: var(--text-strong); cursor: pointer;
}
.fbar-sort select:focus { outline: none; border-color: var(--blue); }

.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: -.4rem 0 1.25rem; }
.fchip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 8px; background: rgba(5, 105, 107, .09); color: var(--blue); font-size: .8rem; font-weight: 600; }
.fchip:hover { background: var(--blue); color: #fff; }
.fchip-clear { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-decoration: underline; margin-left: .25rem; }
.fchip-clear:hover { color: var(--blue); }

/* All Filters drawer */
.fdrawer { position: fixed; inset: 0; z-index: 400; }
.fdrawer[hidden] { display: none; }
.fdrawer-backdrop { position: absolute; inset: 0; background: rgba(6, 32, 33, .45); opacity: 0; transition: opacity .22s ease; }
.fdrawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
    display: flex; flex-direction: column; margin: 0;
    background: var(--paper); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .22s ease;
}
.fdrawer.is-open .fdrawer-backdrop { opacity: 1; }
.fdrawer.is-open .fdrawer-panel { transform: none; }
.fdrawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.fdrawer-head strong { font-family: var(--font-display); font-size: 1.05rem; text-transform: none; color: var(--text-strong); }
.fdrawer-x { background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--text-strong); display: inline-flex; }
.fdrawer-body { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.25rem; }
.fgroup { border: 0; margin: 0 0 1.35rem; padding: 0 0 1.1rem; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { font-family: var(--font-display); font-size: .88rem; font-weight: 700; text-transform: none; letter-spacing: .03em; color: var(--navy); margin-bottom: .55rem; padding: 0; }
.fgroup-opts { display: grid; gap: .35rem; }
.fgroup-opts.is-colour { grid-template-columns: 1fr 1fr; }
.fcheck { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--text); cursor: pointer; }
.fcheck input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.fdrawer-foot { display: flex; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.fdrawer-foot .btn { flex: 1 1 0; justify-content: center; font-size: .92rem; padding: .7rem 1rem; }

/* Empty state */
.cat-empty { text-align: center; padding: 3rem 1.25rem; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--text-muted); }
.cat-empty svg { color: var(--blue); margin: 0 auto .75rem; }
.cat-empty-title { font-size: 1.3rem; text-transform: none; margin: 0 0 .4rem; }
.cat-empty p { max-width: 520px; margin: 0 auto 1.25rem; }

/* ---------------- Catalogue product card ---------------- */
.pcard-grid.cat-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.pcard.pcard-cl { overflow: visible; display: flex; flex-direction: column; }
.pcard-cl .pcard-media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: #f3f5f8; }
.pcard-badges { position: absolute; top: .7rem; left: .7rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.pcard-flag {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .32rem .55rem; border-radius: 6px;
    background: var(--gold); color: var(--navy-deep);
    font-family: var(--font-display); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1;
    box-shadow: var(--shadow-sm);
}
.pcard-flag-eco { background: #e3f3e8; color: #1d6b3a; }
.pcard-cl .pcard-body { padding: .95rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.pcard-cl .pcard-title { font-size: 1rem; line-height: 1.35; margin: 0 0 .15rem; }
.pcard-style { font-size: .78rem; color: var(--text-muted); margin-bottom: .55rem; }
.pcard-cl .pcard-swatches { flex-wrap: wrap; gap: .28rem; margin-bottom: .55rem; }
.pcard-cl .pcard-swatch { width: 15px; height: 15px; }
.pcard-rating { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--text-muted); margin-bottom: .3rem; }
.pcard-stars {
    position: relative; display: inline-block; width: 76px; height: 14px; flex: 0 0 76px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d9dee5'%3E%3Cpath d='M12 1.5l2.7 6.1l6.6 .7l-4.9 4.5l1.3 6.5l-5.7 -3.3l-5.7 3.3l1.3 -6.5l-4.9 -4.5l6.6 -.7z'/%3E%3C/svg%3E") left center / 15.2px 14px repeat-x;
}
.pcard-stars::before {
    content: ""; position: absolute; inset: 0; width: var(--rating, 0%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FCA90C'%3E%3Cpath d='M12 1.5l2.7 6.1l6.6 .7l-4.9 4.5l1.3 6.5l-5.7 -3.3l-5.7 3.3l1.3 -6.5l-4.9 -4.5l6.6 -.7z'/%3E%3C/svg%3E") left center / 15.2px 14px repeat-x;
}
.pcard-rating-num { font-weight: 700; color: var(--text-strong); }
.pcard-meta { font-size: .8rem; color: var(--text); }
.pcard-sep { color: #c3ccd6; margin: 0 .2rem; }
.pcard-price50 { position: relative; margin-top: auto; padding-top: .65rem; font-size: .8rem; color: var(--text-muted); line-height: 1.4; }
.pcard-price50::before { content: ""; display: block; border-top: 1px dashed var(--line); margin-bottom: .6rem; margin-top: .1rem; }
.pcard-price50 strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--blue); margin-right: .1rem; }
.pcard-tip { display: inline-flex; vertical-align: -3px; color: var(--text-muted); cursor: help; outline: none; }
.pcard-tip:hover, .pcard-tip:focus { color: var(--blue); }
.pcard-tip-box {
    position: absolute; left: -.2rem; right: -.2rem; bottom: calc(100% + .35rem); z-index: 6;
    padding: .6rem .75rem; border-radius: 10px;
    background: var(--navy); color: #fff; font-size: .74rem; font-weight: 500; line-height: 1.45;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    pointer-events: none;
}
.pcard-tip:hover .pcard-tip-box, .pcard-tip:focus .pcard-tip-box, .pcard-tip:focus-within .pcard-tip-box { opacity: 1; visibility: visible; transform: none; }

/* ---------------- Why Choose (per category) ---------------- */
.cwhy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.cwhy-item { display: flex; gap: .9rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm); }
.cwhy-check { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.cwhy-title { font-size: 1rem; text-transform: none; letter-spacing: .01em; margin: .3rem 0 .3rem; }
.cwhy-text { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

.cat-advice .post-card { display: flex; flex-direction: column; }
.cat-advice .post-card-text { font-size: .875rem; color: var(--text-muted); margin: .5rem 0 0; line-height: 1.55; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .cmega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cmega-inner, .cmega-inner.is-grouped { grid-template-columns: minmax(0, 1fr) 200px; }
    .cat-landing-grid { grid-template-columns: 210px minmax(0, 1fr); }
    .cat-banner-body { padding: 2.25rem 1.75rem 2.25rem 2.25rem; }
    .pcard-grid.cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .cat-landing-grid { grid-template-columns: 1fr; gap: 1rem; }
    .cat-side { order: 2; }
    .cat-side-box { max-height: none; height: auto; padding: 1rem; }
    .cat-side-list { display: flex; flex-wrap: wrap; gap: .4rem; }
    .cat-side-list a, .cat-side-list a:hover { padding: .32rem .65rem; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; }
    .cat-side-sub { display: none; }
    .cat-banner, .cat-banner.has-media { grid-template-columns: 1fr; min-height: 0; }
    .cat-banner-media { order: -1; height: 200px; }
    .cat-banner-media img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
    .cat-banner-body { padding: .5rem 1.4rem 1.75rem; }
    .cwhy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-list-head { flex-direction: column; align-items: flex-start; }
    .cat-list-tag { text-align: left; }
}

@media (max-width: 640px) {
    .cat-rounds { justify-content: flex-start; gap: .8rem; }
    .cat-round { flex-basis: 80px; font-size: .74rem; }
    .cat-round-img { width: 68px; height: 68px; }
    .fbar { padding: .7rem 0; }
    .fbar .fdrop { display: none; }
    .fbar-count { display: none; }
    .fbar-right { margin-left: 0; }
    .fbar-sort > span { display: none; }
    .cwhy-grid, .cat-groups { grid-template-columns: 1fr; }
    .cat-picks { padding: 2.25rem 0 3rem; }
}

@media (max-width: 520px) {
    .pcard-grid.cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .pcard-cl .pcard-body { padding: .7rem .7rem .85rem; }
    .pcard-cl .pcard-title { font-size: .86rem; }
    .pcard-style, .pcard-meta, .pcard-rating, .pcard-price50 { font-size: .72rem; }
    .pcard-reviews { display: none; }
    .pcard-price50 strong { font-size: .95rem; }
    .pcard-flag { font-size: .58rem; padding: .26rem .42rem; }
    .pcard-cl .pcard-overlay { display: none; }
    .cat-banner-title { font-size: 1.6rem; }
    .cat-banner-feats { gap: .4rem .9rem; font-size: .75rem; }
}

/* Image links through to the product; overlay only captures its buttons */
.pcard-imglink { display: block; width: 100%; height: 100%; }
.pcard-cl .pcard-overlay { pointer-events: none; }
.pcard-cl .pcard-overlay .btn { pointer-events: auto; }
.pcard.pcard-cl[hidden] { display: none; }

/* Colour swatch hover: two stacked image layers crossfade (site.js) */
.pcard-cl .pcard-imglink { position: relative; }
.pcard-cl .pcard-media img.pcard-img { opacity: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .22s ease; }
.pcard-cl .pcard-media img.pcard-img.is-front { opacity: 1; }
.pcard-cl .pcard-media img.pcard-img-alt { position: absolute; inset: 0; }
.pcard-cl .pcard-swatch {
    position: relative; flex: 0 0 auto; padding: 0; margin: 0;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}
.pcard-cl .pcard-swatch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.pcard-cl .pcard-swatch:hover { transform: scale(1.12); box-shadow: 0 0 0 1px var(--text-muted); }
.pcard-cl .pcard-swatch.is-active { box-shadow: 0 0 0 2px var(--blue); }
.pcard-cl .pcard-swatch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pcard-cl a.pcard-swatch-more:hover { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .pcard-cl .pcard-media img.pcard-img { transition: none; } }
.cat-banner-title { font-size: clamp(1.8rem, 2.9vw, 2.55rem); }
.nw { white-space: nowrap; }

/* =============================================================
   Category landing (RushOrder layout): sidebar left, content flows right
   ============================================================= */
.cat-landing { padding-bottom: 4rem; }
.cat-main { min-width: 0; display: flex; flex-direction: column; gap: 2.75rem; }
.cat-side-sec + .cat-side-sec { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cat-side-list a.cat-side-all { margin-top: .3rem; font-weight: 700; color: var(--blue); }
.cat-main .cat-picks { padding: 0; }
.cat-block .cat-picks-head { align-items: center; }
.cat-block .section-title { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.cat-block-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.cat-block-link:hover { color: var(--gold-dark); }
.cat-main .cat-tabs.pop-tabs { margin-bottom: 1.25rem; }
.pcard-grid.cat-cards.cat-cards-main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.cat-groups.cat-groups-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

/* Shop By Style tiles */
.cat-styles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-style { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; color: var(--text-strong); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.cat-style-img { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f3f5f8; border: 1px solid var(--line); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.cat-style-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cat-style:hover { color: var(--blue); }
.cat-style:hover .cat-style-img { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-style:hover .cat-style-img img { transform: scale(1.04); }

/* Brand logo tiles (landing + /brands) */
.cat-brand-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.cat-brand-tile {
    display: flex; align-items: center; justify-content: center; height: 88px; padding: 1rem 1.2rem;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cat-brand-tile img { max-width: 100%; max-height: 40px; width: auto; object-fit: contain; opacity: .85; transition: opacity .18s ease; }
.cat-brand-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-brand-tile:hover img { opacity: 1; }

/* Brands page */
.brands-page-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.brands-page-grid li { display: flex; flex-direction: column; gap: .5rem; }
.brands-page-grid .cat-brand-tile { height: 110px; }
.brands-page-grid .cat-brand-tile img { max-height: 46px; }
.brands-page-name { font-size: .88rem; font-weight: 600; color: var(--text-strong); text-align: center; }
.brands-page-name:hover { color: var(--blue); }
.brand-tile-fallback { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-strong); text-transform: uppercase; letter-spacing: .03em; text-align: center; }

@media (max-width: 1280px) {
    .pcard-grid.cat-cards.cat-cards-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-groups.cat-groups-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: banner first, sidebar turns into scrollable chip rows under it, then the content */
@media (max-width: 900px) {
    .cat-landing-grid { gap: 1.25rem; }
    .cat-main { display: contents; }
    .cat-main > .cat-banner { order: 1; }
    .cat-side { order: 2; min-width: 0; }
    .cat-main > .cat-block { order: 3; min-width: 0; margin-top: 1rem; }
    .cat-side-box { border: 0; box-shadow: none; padding: 0; background: none; }
    .cat-side-sec + .cat-side-sec { margin-top: .8rem; padding-top: 0; border-top: 0; }
    .cat-side-title { font-size: .78rem; margin-bottom: .4rem; }
    .cat-side-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; -webkit-overflow-scrolling: touch; }
    .cat-side-list::-webkit-scrollbar { display: none; }
    .cat-side-list > li { flex: 0 0 auto; }
    .cat-side-list a, .cat-side-list a:hover { white-space: nowrap; background: var(--paper); border-radius: 999px; padding: .38rem .8rem; }
    .cat-side-list a.cat-side-all { margin-top: 0; border-color: var(--blue); }
    .cat-block .cat-picks-head { margin-bottom: .75rem; }
}
@media (max-width: 640px) {
    .cat-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
    .cat-style { font-size: .76rem; }
    .cat-style-img { border-radius: 12px; }
    .cat-brand-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .cat-brand-tile { height: 70px; padding: .7rem; }
    .cat-groups.cat-groups-main { grid-template-columns: 1fr; }
    .cat-block-link { font-size: .78rem; }
}

/* =============================================================
   In-place filtering: loading state
   ============================================================= */
.cat-results { position: relative; }
.cat-results .pcard-grid, .cat-results .cat-empty, .cat-results .pagination-wrap { transition: opacity .2s ease; }
.cat-results.is-loading .pcard-grid,
.cat-results.is-loading .cat-empty,
.cat-results.is-loading .pagination-wrap { opacity: .45; pointer-events: none; }
.cat-results::before {
    content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; z-index: 3;
    border-radius: 3px; background: var(--gold); opacity: 0; transition: opacity .15s ease;
}
.cat-results.is-loading::before { opacity: 1; animation: catLoad 1s ease-in-out infinite; }
@keyframes catLoad { 0% { left: 0; width: 0; } 50% { left: 20%; width: 55%; } 100% { left: 100%; width: 0; } }
.cat-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fbar-sort label { cursor: pointer; }
@media (max-width: 640px) { .fbar-sort > label { display: none; } }

/* =============================================================
   Mobile product grids: 2 per row with compact cards
   ============================================================= */
@media (max-width: 640px) {
    .pcard-grid.cat-cards,
    .pcard-grid.cat-cards.cat-cards-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .pcard-cl .pcard-body { padding: .6rem .6rem .75rem; }
    .pcard-cl .pcard-title { font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .pcard-style { font-size: .7rem; margin-bottom: .35rem; }
    .pcard-cl .pcard-swatches { gap: .2rem; margin-bottom: .4rem; }
    .pcard-cl .pcard-swatch { width: 11px; height: 11px; }
    .pcard-cl .pcard-swatch-more { font-size: .64rem; }
    .pcard-rating { font-size: .7rem; gap: .25rem; margin-bottom: .2rem; }
    .pcard-stars { width: 58px; flex-basis: 58px; height: 11px; background-size: 11.6px 11px; }
    .pcard-stars::before { background-size: 11.6px 11px; }
    .pcard-reviews { display: none; }
    .pcard-meta { font-size: .68rem; line-height: 1.35; }
    .pcard-price50 { font-size: .68rem; padding-top: .45rem; }
    .pcard-price50::before { margin-bottom: .4rem; }
    .pcard-price50 strong { font-size: .92rem; }
    .pcard-tip { display: none; }
    .pcard-badges { top: .45rem; left: .45rem; }
    .pcard-flag { font-size: .55rem; padding: .24rem .4rem; }
    .pcard-cl .pcard-overlay { display: none; }
    .cat-tabs.pop-tabs .btn { font-size: .78rem; padding: .45rem .8rem; }

    /* /products index category cards: 2 per row */
    .cat-groups.cat-groups-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .cat-groups-index .cat-group-body { padding: .65rem .7rem .8rem; }
    .cat-groups-index .cat-group-title { font-size: .86rem; margin-bottom: .35rem; }
    .cat-groups-index .cat-group-text { display: none; }
    .cat-groups-index .cat-group-links { gap: .25rem; }
    .cat-groups-index .cat-group-links li:nth-child(n+4) { display: none; }
    .cat-groups-index .cat-group-links a { font-size: .66rem; padding: .2rem .4rem; }
    .cat-groups-index .cat-group-all { font-size: .74rem; padding-top: .55rem; }
}

/* Product page: single printed price + read-only size list */
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; margin: .9rem 0 1.25rem; padding: .85rem 1.1rem; border-radius: 12px; background: rgba(5, 105, 107, .07); border: 1px solid rgba(5, 105, 107, .15); }
.pdp-price-from { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.pdp-price strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--blue); }
.pdp-price small { font-size: .9rem; color: var(--text); }
.pdp-sizes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pdp-sizes li { min-width: 44px; padding: .4rem .6rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: .78rem; font-weight: 700; color: var(--text-strong); }

/* Category pages + reviews: headings in Title Case (no forced capitals), same font, size and weight */
.cat-page .section-title,
.cat-page .prose h2,
.cat-page .prose h3,
.reviews .section-title { text-transform: none; letter-spacing: 0; }
.cat-page .reviews .section-kicker { text-transform: none; letter-spacing: .04em; }

/* Product card colour swatches: rounded squares like RushOrder, max 7 + "+N colours" */
.pcard-cl .pcard-swatches { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: .3rem; margin-bottom: .55rem; }
.pcard-cl .pcard-swatch { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(15, 37, 38, .22); flex: 0 0 auto; }
.pcard-cl .pcard-swatch::after { border-radius: 7px; inset: -3px; }
.pcard-cl .pcard-swatch:hover { transform: scale(1.1); }
.pcard-cl .pcard-swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--blue); }
.pcard-cl .pcard-swatch-more { font-size: .8rem; color: var(--text-muted); white-space: nowrap; margin-left: .15rem; }
@media (max-width: 620px) {
    .pcard-cl .pcard-swatches { gap: .2rem; }
    .pcard-cl .pcard-swatch { width: 15px; height: 15px; border-radius: 4px; }
    .pcard-cl .pcard-swatch-more { font-size: .64rem; }
}

/* Product card hover: whole card clickable, hover effects only on the image */
.pcard.pcard-cl { cursor: pointer; }
.pcard.pcard-cl:hover { transform: none; box-shadow: var(--shadow-sm); }
.pcard.pcard-cl:hover .pcard-media img { transform: none; }
.pcard.pcard-cl:hover .pcard-overlay { opacity: 0; }
.pcard-cl .pcard-media:hover img.pcard-img { transform: scale(1.06); }
.pcard-cl .pcard-overlay {
    background: rgba(6, 32, 33, .5);
    gap: .7rem;
    transition: opacity .22s ease;
}
.pcard.pcard-cl .pcard-media:hover .pcard-overlay,
.pcard.pcard-cl .pcard-media:focus-within .pcard-overlay { opacity: 1; }
.pcard-cl .pcard-overlay .btn {
    min-width: 140px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transform: translateY(6px);
    transition: transform .22s ease, background-color .2s ease, color .2s ease;
}
.pcard-cl .pcard-media:hover .pcard-overlay .btn { transform: none; }
.pcard-cl .pcard-overlay .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.pcard-cl .pcard-overlay .btn-primary:hover { background: #fff; border-color: #fff; color: var(--blue); }
.pcard-cl .pcard-overlay .btn-outline-light { background: #fff; border-color: #fff; color: var(--blue); }
.pcard-cl .pcard-overlay .btn-outline-light:hover { background: var(--gold); border-color: var(--gold); color: #0f2526; }
.pcard-cl .pcard-title a:hover { color: var(--blue); }
.pcard.pcard-cl, .pcard.pcard-cl a, .pcard.pcard-cl button { -webkit-tap-highlight-color: transparent; }
.pcard-cl .pcard-swatch:focus:not(:focus-visible) { outline: none; }
