/* =============================================================
   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; }

/* 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: uppercase; 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: uppercase; 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: uppercase; 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: uppercase; 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: uppercase; 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: uppercase; 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: uppercase; 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: uppercase; 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; }
.cat-banner-title { font-size: clamp(1.8rem, 2.9vw, 2.55rem); }
.nw { white-space: nowrap; }
