/* =========================================================
   BFT — Shop Page
   Editorial product discovery
   ========================================================= */

.shop-page {
    background: var(--color-background);
}

.shop-hero {
    padding: clamp(48px, 6vw, 78px) 0 0;
    border-bottom: 0;
}

.shop-hero__eyebrow {
    color: var(--color-accent-dark);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.shop-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
    gap: clamp(40px, 8vw, 130px);
    align-items: center;
    padding: 24px 0 42px;
}

.shop-hero__kicker {
    margin-bottom: 14px;
    color: var(--color-text-soft);
    font-size: 1rem;
}

.shop-hero h1 {
    font-size: clamp(3.5rem, 7vw, 7rem);
    letter-spacing: -.055em;
    line-height: .92;
}

.shop-hero h1 em,
.shop-note h2 em {
    color: var(--color-accent);
    font-style: italic;
    font-weight: 500;
}

.shop-hero__title {
    min-width: 0;
}

.shop-hero__statement {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 470px;
    margin-top: 28px;
}

.shop-hero__line {
    flex: 0 0 1px;
    width: 1px;
    min-height: 78px;
    background: var(--color-accent);
    opacity: .55;
}

.shop-hero__intro {
    max-width: 430px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 1rem;
    line-height: 1.8;
}

.shop-products {
    padding-top: 54px;
    padding-bottom: clamp(64px, 8vw, 100px);
    scroll-margin-top: 120px;
}

.shop-toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.shop-toolbar h2 {
    margin-top: 8px;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -.035em;
}

.shop-result-count {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: .82rem;
}

.shop-filters {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
}

.shop-filter {
    position: relative;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-filter label {
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.shop-select-wrap {
    position: relative;
    z-index: 1;
}

.shop-select-wrap::after {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: var(--color-text-soft);
    content: "";
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.shop-filter select {
    min-width: 150px;
    min-height: 44px;
    padding: 8px 42px 8px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-primary);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.shop-filter select:focus,
.shop-filter select:hover {
    border-color: var(--color-accent);
}

.shop-filter select:focus {
    box-shadow: 0 0 0 4px rgba(166,106,69,.1);
}

.shop-clear-filters {
    align-self: center;
    margin-left: 4px;
    color: var(--color-accent-dark);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.shop-clear-filters:hover {
    color: var(--color-primary);
}

.shop-product-grid {
    align-items: stretch;
}

.shop-product-grid .product-card {
    height: 100%;
}

.shop-product-grid .product-card__body {
    display: flex;
    flex-direction: column;
    min-height: 205px;
}

.shop-product-grid .product-card__bottom {
    margin-top: auto;
    padding-top: 14px;
}

.shop-load-status {
    padding: 24px 0 6px;
    color: var(--color-muted);
    font-size: .78rem;
    text-align: center;
}

.shop-load-sentinel {
    height: 1px;
}

.shop-loading-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.shop-loading-card__image,
.shop-loading-card__line,
.shop-loading-card__bottom {
    position: relative;
    overflow: hidden;
    background: var(--color-surface-soft);
}

.shop-loading-card__image {
    aspect-ratio: 1 / 1;
}

.shop-loading-card__body {
    padding: 20px;
}

.shop-loading-card__line {
    height: 11px;
    margin-bottom: 11px;
    border-radius: 999px;
}

.shop-loading-card__line--title {
    width: 76%;
    height: 15px;
}

.shop-loading-card__line--short {
    width: 42%;
}

.shop-loading-card__bottom {
    width: 58%;
    height: 38px;
    margin-top: 24px;
    border-radius: 999px;
}

.shop-loading-card__image::after,
.shop-loading-card__line::after,
.shop-loading-card__bottom::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    animation: bftSkeleton 1.35s ease-in-out infinite;
}

@keyframes bftSkeleton {
    100% { transform: translateX(100%); }
}

.shop-product-card-enter {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;
}

.shop-product-card-enter.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

.shop-empty {
    min-height: 390px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 40px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-align: center;
}

.shop-empty__number {
    color: var(--color-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.shop-empty p {
    max-width: 430px;
    margin-bottom: 14px;
    color: var(--color-text-soft);
}

.shop-note {
    padding: clamp(58px, 7vw, 90px) 0;
    background: var(--color-surface-soft);
    border-top: 1px solid var(--color-border);
}

.shop-note__inner {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: end;
}

.shop-note h2 {
    margin-top: 12px;
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
    letter-spacing: -.045em;
    line-height: .98;
}

.shop-note__inner > p {
    max-width: 470px;
    color: var(--color-text-soft);
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .shop-filters {
        gap: 8px;
    }

    .shop-filter {
        gap: 6px;
    }

    .shop-filter select {
        min-width: 135px;
    }
}

@media (max-width: 820px) {
    .shop-hero {
        padding-top: 42px;
    }

    .shop-hero__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-bottom: 34px;
    }

    .shop-hero h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .shop-hero__statement {
        margin-top: 0;
    }

    .shop-hero__intro {
        max-width: 600px;
    }

    .shop-products {
        padding-top: 42px;
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
    }

    .shop-filters {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .shop-filter {
        display: block;
    }

    .shop-filter label {
        display: block;
        margin: 0 0 6px 2px;
        font-size: .72rem;
    }

    .shop-clear-filters {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: 2px;
    }

    .shop-select-wrap,
    .shop-filter select {
        width: 100%;
    }

    .shop-filter select {
        min-width: 0;
    }

    .shop-note__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .shop-hero {
        padding-top: 34px;
    }

    .shop-hero__grid {
        gap: 16px;
        padding-bottom: 26px;
    }

    .shop-hero__statement {
        gap: 12px;
    }

    .shop-hero__line {
        min-height: 64px;
    }

    .shop-hero h1 {
        font-size: clamp(2.75rem, 14vw, 4.2rem);
    }

    .shop-hero__kicker,
    .shop-hero__intro {
        font-size: .9rem;
    }

    .shop-products {
        padding-top: 36px;
        padding-bottom: 64px;
    }

    .shop-toolbar h2 {
        font-size: 2rem;
    }

    .shop-filters {
        grid-template-columns: 1fr 1fr;
    }

    .shop-filter:first-child {
        grid-column: 1 / -1;
    }

    .shop-filter select {
        min-height: 42px;
        padding-right: 38px;
        font-size: .76rem;
    }

    .shop-filter label {
        font-size: .7rem;
    }

    .shop-product-grid {
        gap: 12px;
    }

    .shop-product-grid .product-card__body {
        min-height: 0;
    }

    .shop-note {
        padding-block: 56px;
    }

    .shop-note h2 {
        font-size: 2.55rem;
    }
}

/* BFT — unified compact filter dropdowns */
.shop-filters { display:flex; align-items:flex-end; justify-content:flex-end; flex-wrap:nowrap; gap:10px; }
.shop-filter { flex-direction:column; align-items:stretch; gap:6px; }
.shop-filter label { padding-left:2px; font-size:.72rem; }
.shop-select-wrap { width:150px; }
.shop-native-select { display:none !important; }
.shop-custom-select { position:relative; display:block; width:100%; }
.shop-custom-select__button { position:relative; display:block; width:100%; min-height:44px; padding:8px 38px 8px 14px; border:1px solid var(--color-border-strong); border-radius:var(--radius-pill); background:var(--color-surface); color:var(--color-primary); font-family:inherit; font-size:.78rem; font-weight:600; line-height:1.2; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.shop-custom-select__button::after { position:absolute; top:50%; right:15px; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; color:var(--color-text-soft); content:""; pointer-events:none; transform:translateY(-65%) rotate(45deg); }
.shop-filter:has(.shop-custom-select.is-open) { z-index:1000; }
.shop-custom-select.is-open .shop-custom-select__button { border-color:var(--color-accent); box-shadow:0 0 0 4px rgba(166,106,69,.1); }
.shop-custom-select.is-open .shop-custom-select__button::after { transform:translateY(-25%) rotate(225deg); }
.shop-custom-select__menu { position:absolute; top:calc(100% + 6px); left:0; z-index:100; display:none; width:100%; max-height:250px; padding:5px; overflow-y:auto; border:1px solid var(--color-border-strong); border-radius:14px; background:var(--color-surface); box-shadow:0 12px 30px rgba(50,30,20,.12); }
.shop-custom-select.is-open .shop-custom-select__menu { display:block; }
.shop-custom-select__option { display:block; width:100%; padding:10px 11px; border:0; border-radius:9px; background:transparent; color:var(--color-primary); font-family:inherit; font-size:.78rem; font-weight:600; line-height:1.25; text-align:left; cursor:pointer; }
.shop-custom-select__option:hover, .shop-custom-select__option[aria-selected="true"] { background:var(--color-surface-soft); }
@media (max-width:820px) {
 .shop-toolbar { align-items:flex-start; flex-direction:column; gap:18px; }
 .shop-filters { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 .shop-filter { min-width:0; } .shop-select-wrap { width:100%; }
 .shop-custom-select__button { min-height:42px; padding-left:11px; padding-right:28px; font-size:.72rem; }
 .shop-custom-select__button::after { right:10px; width:6px; height:6px; }
 .shop-clear-filters { grid-column:1 / -1; justify-self:end; margin-top:2px; }
}
@media (max-width:520px) {
 .shop-products { padding-top:38px; } .shop-toolbar { gap:15px; margin-bottom:20px; } .shop-filters { gap:7px; }
 .shop-filter label { font-size:.64rem; } .shop-custom-select__button { min-height:40px; font-size:.68rem; }
 .shop-custom-select__option { font-size:.74rem; padding:9px 10px; }
}


/* =========================================================
   BFT — Final shop card / filter refinements
   ========================================================= */
.shop-select-wrap::after {
    display: none;
}

.shop-product-grid .product-card {
    height: auto;
}

.shop-product-grid .product-card__body {
    min-height: 0;
}

.shop-product-grid .product-card__bottom {
    margin-top: 14px;
    padding-top: 0;
}

@media (max-width: 520px) {
    .shop-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .shop-filter:first-child {
        grid-column: auto;
    }

    .shop-filter label {
        font-size: .62rem;
    }

    .shop-custom-select__button {
        min-height: 40px;
        padding-left: 9px;
        padding-right: 24px;
        font-size: .66rem;
    }

    .shop-custom-select__button::after {
        right: 9px;
        width: 5px;
        height: 5px;
    }

    .shop-clear-filters {
        grid-column: 1 / -1;
    }
}
