/*
   WUME — Shop page Stage-2 DESKTOP layout overrides.

   SCOPE: desktop rules are prefixed `body.is-shop-page` AND wrapped in
   @media (min-width: 992px) so the synced MOBILE grid is left alone. A few
   tile-text rules sit at base level so the new card markup (name / brand /
   price, no description) reads correctly on phones too.

   Figma ref: figma-final/screens/desktop/shop.png. Two-column body: left
   filter sidebar (category list + FILTER BY) + right 3-up product grid; a
   CATEGORY / CONCERN ... SORT BY filter header above. Tiles are borderless,
   edge-to-edge product photos (aspect 333/451) with an uppercase name, a WUME
   brand line and the price.
   NOTE: the amber-oil HERO PHOTO band + transparent overlay nav are deferred —
   the hero photo asset is not in the local design assets (TODO ASSET).
   V01
*/

/* base (all viewports): tile text for the new card markup */
body.is-shop-page .wume-shop-tile-name {
    margin: 14px 0 2px;
    text-transform: uppercase;
    letter-spacing: var(--wume-tracking-caps);
    font-family: var(--wume-font-body);
    font-size: 0.78rem;
    font-weight: var(--wume-w-sub);
    color: var(--wume-black);
    line-height: 1.3;
}
body.is-shop-page .wume-shop-tile-brand {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: var(--wume-tracking-caps);
    font-family: var(--wume-font-body);
    font-size: 0.72rem;
    color: var(--wume-lbrown);
}
body.is-shop-page .wume-shop-tile .wume-product-price {
    font-size: 0.85rem;
    color: var(--wume-black);
    font-weight: var(--wume-w-body);
}
/* tile image (all viewports): edge-to-edge product photo, aspect 333/451 */
body.is-shop-page .wume-shop-tile .wume-product-img {
    width: 100%;
    aspect-ratio: 333 / 451;
    height: auto;
    object-fit: cover;
    background: var(--wume-sand);
    display: block;
}

@media (min-width: 992px) {

    /* 36px gutters / 1368 content width. */
    body.is-shop-page .wume-shop-body > .container {
        max-width: 1440px;
        padding: 0 36px;
    }

    /* Hero: left-aligned 3.5rem title, no subtitle (photo band deferred). */
    body.is-shop-page .wume-hero {
        text-align: left;
        padding: 60px 0 32px;
    }
    body.is-shop-page .wume-hero .container {
        max-width: 1440px;
        padding: 0 36px;
    }
    body.is-shop-page .wume-hero-title {
        font-size: 3.5rem;
        text-align: left;
        margin: 0;
    }
    body.is-shop-page .wume-hero-subtitle { display: none; }

    /* Filter header: CATEGORY / CONCERN tabs (left) + SORT BY (right) + rule. */
    body.is-shop-page .wume-shop-filterbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.18);
        margin-bottom: 32px;
    }
    body.is-shop-page .wume-shop-tabs {
        display: flex;
        gap: 28px;
    }
    body.is-shop-page .wume-shop-tab,
    body.is-shop-page .wume-shop-sort {
        background: none;
        border: 0;
        padding: 0;
        text-transform: uppercase;
        letter-spacing: var(--wume-tracking-caps);
        font-family: var(--wume-font-body);
        font-weight: var(--wume-w-sub);
        font-size: 0.72rem;
        color: var(--wume-black);
        cursor: pointer;
    }
    body.is-shop-page .wume-shop-tab.is-active { text-decoration: underline; text-underline-offset: 4px; }

    /* Two-column body: sidebar (236px) + product grid. */
    body.is-shop-page .wume-shop-layout {
        display: grid;
        grid-template-columns: 236px 1fr;
        column-gap: 48px;
        align-items: start;
    }
    body.is-shop-page .wume-shop-cats {
        list-style: none;
        margin: 0 0 40px;
        padding: 0;
    }
    body.is-shop-page .wume-shop-cats li {
        margin-bottom: 14px;
        text-transform: uppercase;
        letter-spacing: var(--wume-tracking-caps);
        font-size: 0.72rem;
        color: var(--wume-black);
        cursor: pointer;
    }
    body.is-shop-page .wume-shop-filterby {
        margin: 0 0 16px;
        text-transform: uppercase;
        letter-spacing: var(--wume-tracking-caps);
        font-size: 0.72rem;
        color: var(--wume-lbrown);
    }
    body.is-shop-page .wume-shop-filter-group {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
        text-transform: uppercase;
        letter-spacing: var(--wume-tracking-caps);
        font-size: 0.72rem;
        color: var(--wume-black);
    }

    /* Product grid: tighter gutters. */
    body.is-shop-page #product-grid {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 28px;
    }

    /* TILE: borderless, edge-to-edge photo (333/451 cover) + text below. */
    body.is-shop-page .wume-shop-tile {
        display: block;
        text-decoration: none;
        color: inherit;
    }
    body.is-shop-page .wume-shop-tile .wume-product-img {
        width: 100%;
        aspect-ratio: 333 / 451;
        height: auto;
        object-fit: cover;
        background: var(--wume-sand);
        display: block;
    }
    body.is-shop-page .wume-shop-tile-name { margin-top: 16px; }
}
