/* Homepage product gallery. Shared cards and filters elsewhere keep their styling. */
.page-section.browse-section {
    position: relative;
    isolation: isolate;
    margin-top: 72px;
    padding-top: 64px;
    gap: 24px;
    color: #f5f5f3;
    scroll-margin-top: 104px;
}

.browse-section::before {
    content: "";
    position: absolute;
    inset: 0 -95px -80px;
    z-index: -1;
    background: linear-gradient(180deg, #10111200, #101112 420px);
    border-top: 1px solid #303132;
    pointer-events: none;
}

.browse-heading-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 28px;
    margin-bottom: 16px;
}

.browse-eyebrow {
    margin: 0 0 16px;
    color: #d1b64e;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.browse-heading-title {
    margin: 0;
    color: #f5f5f3;
    font-size: clamp(36px, 4.1vw, 54px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.browse-heading-title span { color: #a5a6a3; }
.browse-intro { margin: 0 0 3px; color: #a6a7a9; font-size: 14px; line-height: 1.7; }
.browse-discovery { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; width: 100%; }
.browse-collections { display: flex; flex-wrap: wrap; gap: 6px; }
.browse-section button, .browse-search input { font-family: inherit; }
.browse-collection {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid #343638;
    border-radius: 30px;
    background: transparent;
    color: #bfc0c2;
    font-size: 12px;
    font-weight: 550;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.browse-collection:hover { color: #fff; border-color: #777; }
.browse-collection[aria-pressed="true"] { color: #e7c765; background: #2b281b; border-color: #7c6a32; }
.browse-collection[data-browse-collection="G PLATE"][aria-pressed="true"] { color: #d9dde0; background: #292c2f; border-color: #60666b; }
.browse-collection[data-browse-collection="G-LESS"][aria-pressed="true"] { color: #c1d0d6; background: #233035; border-color: #597078; }
.browse-collection[data-browse-collection="ICONIC"][aria-pressed="true"] { color: #e5e9ef; background: #30343a; border-color: #949da9; }
.collection-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px #7778; }
.collection-dot--g { background: #777b7f; }
.collection-dot--less { background: #88a5b0; }
.collection-dot--premium { background: #c9aa57; }
.collection-dot--iconic { background: #c4cbd5; }
.browse-search { display: flex; align-items: center; gap: 9px; width: 252px; padding: 0 13px; border: 1px solid #343638; border-radius: 12px; background: #18191a; }
.browse-search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #92969a; stroke-width: 1.6; }
.browse-search input { min-width: 0; width: 100%; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; color-scheme: dark; }
.browse-search input::placeholder { color: #a6a7a9; opacity: 1; }
.browse-search:focus-within { outline: 2px solid #e4c75f; outline-offset: 3px; }
.browse-section :is(button, a):focus-visible { outline: 2px solid #e4c75f; outline-offset: 4px; }
.browse-section .pf-toolbar { padding-top: 20px; margin: 0; border-top: 1px solid #2c2d2f; }
.browse-section .pf-toolbar-count { color: #aaadb0; font-size: 12px; }
.browse-section .pf-select { color: #ddd; background: #1b1c1e; border-color: #383a3c; font-size: 12px; }
.browse-section .pf-sort-label { color: #a6a7a9; font-size: 12px; }
.browse-section .pf-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 28px; }
.browse-section .pf-panel { padding: 8px 20px 8px 0; gap: 25px; background: transparent; border: 0; border-right: 1px solid #2c2d2f; border-radius: 0; box-shadow: none; scrollbar-width: thin; }
.browse-section .pf-head { border: 0; padding: 0 0 4px; }
.browse-section .pf-title { color: #e7e7e5; font-size: 13px; font-weight: 550; text-transform: none; }
.browse-section .pf-label { font-size: 11px; font-weight: 500; color: #b2b4b6; }
.browse-section .pf-options { gap: 5px; }
.browse-section .pf-option { padding: 5px 0; gap: 10px; min-height: 36px; border: 0; border-radius: 5px; }
.browse-section .pf-option[aria-pressed="true"] { background: transparent; }
.browse-section .pf-check { width: 16px; height: 16px; flex-basis: 16px; }
.browse-section .pf-check-empty, .browse-section .pf-check-fill { border-radius: 4px; }
.browse-section .pf-check-fill { background: #c9ad55; }
.browse-section .pf-check-fill::before { width: 7px; height: 4px; }
.browse-section .pf-option .badge { background: none; border: 0; padding: 0; color: #d0d1d2; font-size: 11px; }
.browse-section .pf-range-values { color: #c9c9c6; font-weight: 450; font-size: 10px; }
.browse-section .pf-range-active { background: #c9ad55; }
.browse-section .pf-range-input::-webkit-slider-thumb { background: #d2ba70; border-radius: 50%; }
.browse-section .pf-range-input::-moz-range-thumb { background: #d2ba70; border-radius: 50%; }
.browse-section .pf-pattern-field { min-width: 0; }
.browse-section .pf-pattern-row { gap: 8px; }
.browse-section .pf-clear-btn { padding: 0; min-height: 44px; border: 0; font-weight: 450; font-size: 12px; color: #b5b7b9; text-decoration: underline; text-underline-offset: 4px; }
.browse-section .pf-clear-btn:hover { background: transparent; color: #fff; }
.browse-section .pf-mobile-filter-btn { color: #dededb; background: #1b1c1e; border-color: #383a3c; min-height: 44px; }
.browse-results { min-width: 0; }
#plates-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#plates-list plate-card { display: block; min-width: 0; height: 100%; content-visibility: auto; contain-intrinsic-size: auto 334px; }
#plates-list .card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 334px;
    padding: 24px;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--showroom-border);
    border-radius: 20px;
    color: var(--showroom-ink);
    box-shadow: none;
    backdrop-filter: none;
    transition: box-shadow .25s ease, border-color .25s ease;
}
#plates-list .card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; padding: 0; }
#plates-list .showroom-collection-label { padding: 0; color: var(--showroom-accent); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
#plates-list .card-header > span.badge { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; color: var(--showroom-muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
#plates-list .card-header > span.badge::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
#plates-list .showroom-story { display: none; }
#plates-list .showroom-stage { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; padding: 28px 0 25px; }
#plates-list .showroom-stage::before { content: ""; position: absolute; left: 12%; right: 12%; top: 56%; height: 24px; border-radius: 50%; background: #0004; filter: blur(12px); transform: scaleY(.4); }
#plates-list license-plate { z-index: 1; width: min(100%, 310px); min-width: 0; max-width: 100%; height: auto; aspect-ratio: 5.17; flex-shrink: 0; border-width: 2px; border-radius: 7px; box-shadow: 0 3px 0 #181818, 0 14px 22px #0004; transform: perspective(800px) rotateX(7deg) rotateZ(-3deg); transition: transform .35s ease; container-type: inline-size; }
#plates-list license-plate .plate { border-radius: 0 4px 4px 0; }
#plates-list license-plate .band { border-radius: 4px 0 0 4px; font-size: clamp(9px, 4.5cqi, 15px); padding: 4px; }
#plates-list license-plate .mirror { font-size: clamp(23px, 14.5cqi, 56px); letter-spacing: .1em; padding-left: .1em; text-shadow: 0 1px 0 #ffffff45, 0 2px 1px #0003; -webkit-text-stroke: .5px #0005; }
#plates-list .showroom-detail { position: relative; margin: 26px 0 0; color: var(--showroom-muted); font-size: 11px; letter-spacing: .05em; }
#plates-list .card-bottom { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 19px; border-top: 1px solid var(--showroom-line); }
#plates-list .price-tag { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--showroom-ink); background: none; -webkit-text-fill-color: currentColor; text-align: left; line-height: 1.15; }
#plates-list .showroom-price-label { font-size: 11px; font-weight: 450; color: var(--showroom-muted); letter-spacing: .025em; }
#plates-list .price-amount { font-size: clamp(19px, 2vw, 24px); letter-spacing: -.04em; font-weight: 550; font-variant-numeric: tabular-nums; }
#plates-list .card-bottom .price-tag { order: -1; }
#plates-list .card-buy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; position: static; float: none; min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--showroom-line); border-radius: 30px; background: transparent; color: var(--showroom-ink); font-size: 11px; font-weight: 550; line-height: 1; white-space: nowrap; box-shadow: none; transition: background .2s, color .2s; }
#plates-list .card-buy-btn:hover { background: #ffffff0c; border-color: var(--showroom-border-hover); color: var(--showroom-accent); }
#plates-list .showroom-action-arrow { font-size: 17px; line-height: 1; }
#plates-list [spotlight] { grid-column: 1 / -1; contain-intrinsic-size: auto 366px; }
#plates-list [spotlight] .card { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 28px; min-height: 366px; padding: 28px 32px; }
#plates-list [spotlight] .card-header { grid-column: 1 / -1; }
#plates-list [spotlight] .showroom-story { display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
#plates-list .showroom-eyebrow { color: var(--showroom-muted); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
#plates-list .showroom-statement { margin: 12px 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.04; letter-spacing: -.05em; font-weight: 600; white-space: pre-line; }
#plates-list .showroom-copy { margin: 0; max-width: 230px; font-size: 12px; line-height: 1.6; color: var(--showroom-muted); text-wrap: pretty; }
#plates-list [spotlight] .showroom-stage { min-width: 0; padding: 26px 0 0; }
#plates-list [spotlight] license-plate { width: 100%; max-width: 370px; transform: perspective(800px) rotateY(-9deg) rotateZ(-6deg); }
#plates-list [spotlight] .card-bottom { grid-column: 1 / -1; padding-top: 16px; }
#plates-list [spotlight] .card-buy-btn { background: var(--showroom-button); color: var(--showroom-button-ink); border-color: var(--showroom-border); padding: 0 20px; }
#plates-list [spotlight] .card-buy-btn:hover { background: var(--showroom-button-hover); border-color: var(--showroom-border-hover); color: var(--showroom-button-ink); }
.browse-more { overflow-anchor: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 0 8px; }
.browse-more[hidden], .browse-more-button[hidden] { display: none; }
#browse-progress { color: #9b9fa3; font-size: 11px; }
.browse-more-button, .browse-state button { display: inline-flex; align-items: center; gap: 30px; min-height: 46px; border: 1px solid #4b4e51; border-radius: 30px; padding: 0 22px; background: transparent; color: #f0f0ee; font-size: 12px; cursor: pointer; }
.browse-more-button:hover, .browse-state button:hover { background: #ffffff0c; border-color: #9a9c9f; }
.browse-more-button span { font-size: 22px; font-weight: 300; }
.browse-personalise { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 30px; border: 1px solid #353638; border-radius: 20px; background: linear-gradient(110deg, #242629, #191a1b); color: #f3f3ef; text-decoration: none; transition: border-color .2s; }
.browse-personalise:hover { border-color: #8f8152; }
.browse-personalise div > span { color: #b8b8b5; font-size: 10px; }
.browse-personalise strong { display: block; margin-top: 7px; font-size: 27px; font-weight: 500; letter-spacing: -.04em; }
.browse-personalise p { margin: 9px 0 0; color: #a4a8ab; font-size: 12px; line-height: 1.5; }
.browse-personalise-arrow { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border: 1px solid #777050; border-radius: 50%; color: #d5be77; font-size: 22px; }
.browse-loading, .browse-state { grid-column: 1 / -1; width: 100%; min-height: 334px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 32px; border: 1px solid #353638; border-radius: 20px; background: #1a1c1e; color: #aeb2b5; text-align: center; }
.browse-state h3 { margin: 0; color: #eee; font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.browse-state p { margin: 0 0 6px; max-width: 340px; font-size: 13px; line-height: 1.7; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    /* content-visibility on the host clips paint outside its box. Keep the
       frame still and its highlight inset; only the plate moves on hover. */
    #plates-list .card:hover { box-shadow: inset 0 0 0 1px var(--showroom-line); border-color: var(--showroom-border-hover); }
    #plates-list .card:hover license-plate { transform: perspective(800px) rotateX(0) rotateZ(0) translateY(-4px); }
}
@media (max-width: 1100px) and (min-width: 835px) {
    .page-section.browse-section { padding-left: 28px; padding-right: 28px; }
    .browse-section .pf-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 20px; }
    #plates-list .card { padding: 20px; }
    #plates-list [spotlight] .card { padding: 26px; }
}
@media (max-width: 834px) {
    .page-section.browse-section { margin-top: 48px; padding-top: 40px; gap: 20px; }
    .browse-section::before { inset: 0 0 -80px; }
    .browse-heading-wrap { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 8px; }
    .browse-heading-title { font-size: clamp(36px, 6.5vw, 48px); }
    .browse-intro { font-size: 13px; }
    .browse-section .pf-layout { grid-template-columns: minmax(0, 1fr); }
    .browse-section .pf-panel.filter-modal-open { padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); background: #191b1d; border: 1px solid #444; border-radius: 24px 24px 0 0; gap: 20px; }
    .browse-section .pf-panel.filter-modal-open .pf-option { min-height: 44px; }
    .browse-section .pf-panel.filter-modal-open .pf-title { font-size: 17px; }
    .browse-section .pf-panel.filter-modal-open .pf-close { color: #fff; min-width: 44px; min-height: 44px; }
    .browse-section .pf-panel.filter-modal-open .pf-apply-btn { min-height: 44px; }
    .browse-section .pf-toolbar { gap: 16px; }
    .browse-section .pf-sort-label { display: none; }
}
@media (max-width: 600px) {
    .browse-discovery { gap: 14px; }
    .browse-collections { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
    .browse-collection { min-height: 42px; padding: 0 6px; font-size: 10px; gap: 5px; }
    .collection-dot { display: none; }
    .browse-search { width: 100%; }
    .browse-search input { font-size: 16px; }
    #plates-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    #plates-list .card { min-height: 330px; padding: 24px; }
    #plates-list [spotlight] .card { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 26px 24px; }
    #plates-list [spotlight] .showroom-story { padding: 28px 0 8px; }
    #plates-list [spotlight] .showroom-statement { font-size: 37px; }
    #plates-list [spotlight] .showroom-copy { max-width: 250px; }
    #plates-list [spotlight] .showroom-stage { padding: 28px 6px 24px; min-height: 166px; }
    #plates-list [spotlight] license-plate { max-width: 340px; }
    #plates-list [spotlight] .card-bottom { padding-top: 20px; }
    #plates-list .price-amount { font-size: 24px; }
    .browse-personalise { padding: 26px 22px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .browse-section *, .browse-section *::before, .browse-section *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
