/* Barre de titre des listes de la boutique (partials/_shop_heading.html.twig) :
   « Titre (N résultats) » à gauche, « Trier par: … ⌄ » / « Afficher: … ⌄ » à droite, sur
   une ligne séparée des produits par un filet ; texte de présentation sous les produits (partials/_shop_about.html.twig).
   Tailles en rem (mise à l'échelle desktop, cf. desktop-scale.css). Revert = retirer le
   lien dans shop/index.html.twig. */

.shop-heading {
    margin-bottom: 2rem;
}

.shop-heading-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--home-line, #eceff4);
}

.shop-heading-title {
    margin: 0;
    color: var(--home-ink, #1d2433);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

.shop-heading-count {
    margin-left: .2rem;
    color: var(--home-muted, #6b7385);
    font-size: 1.4rem;
    font-weight: 400;
    white-space: nowrap;
}

/* « Trier par: Tri par défaut ⌄ » : un select sans bordure, la flèche du thème à droite. */
.shop-heading-sort {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: .4rem;
    margin: 0;
}

.shop-heading-sort label {
    margin: 0;
    color: var(--home-ink, #1d2433);
    font-size: 1.4rem;
    font-weight: 500;
    white-space: nowrap;
}

.shop-heading-sort .shop-heading-sort-control + label {
    margin-left: 1.6rem;
}

.shop-heading-sort-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shop-heading-sort-control select {
    height: auto;
    margin: 0;
    padding: .2rem 2rem .2rem 0;
    border: 0;
    background: transparent;
    color: var(--home-text, #3a4153);
    font-family: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    /* Largeur = option choisie (navigateurs récents), au lieu de la plus longue. */
    field-sizing: content;
    -webkit-appearance: none;
    appearance: none;
}

.shop-heading-sort-control select:focus-visible {
    outline: 2px solid var(--home-accent, #F78116);
    outline-offset: 2px;
    border-radius: .2rem;
}

.shop-heading-sort-control i {
    position: absolute;
    right: .2rem;
    color: var(--home-ink, #1d2433);
    font-size: 1.1rem;
    pointer-events: none;
}

@media (max-width: 991px) {
    /* Tri : dans la sidebar de filtres ; nombre par page : barre d'outils mobile. */
    .shop-heading-sort {
        display: none;
    }

    .shop-heading {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 767px) {
    .shop-heading-title {
        font-size: 1.8rem;
    }

    .shop-heading-count {
        font-size: 1.3rem;
    }
}

/* --- Texte de présentation, sous les produits ------------------------------ */
.shop-about {
    margin: 1.6rem 0 4rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--home-line, #eceff4);
}

.shop-about-title {
    margin: 0 0 .8rem;
    color: var(--home-ink, #1d2433);
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
}

.shop-about-text {
    max-width: 92rem;
    margin: 0;
    color: var(--home-muted, #6b7385);
    font-size: 1.35rem;
    line-height: 1.7;
}

/* --- Nom de la catégorie sur sa bannière (shop/index.html.twig) ---------------
   is-on-dark : image sombre → texte blanc ; is-on-light : image claire → texte encre.
   Ton calculé côté serveur (App\Service\ImageTone). */
.shop-default-banner {
    position: relative;
}

.shop-banner-caption {
    position: absolute;
    top: 50%;
    left: 7%;
    z-index: 1;
    max-width: 55%;
    transform: translateY(-50%);
    pointer-events: none; /* le lien de la bannière reste cliquable */
}

.shop-banner-caption-eyebrow,
.shop-banner-caption-title {
    display: block;
    line-height: 1.15;
}

.shop-banner-caption-eyebrow {
    margin-bottom: .6rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.shop-banner-caption-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.shop-banner-caption.is-on-dark {
    color: #fff;
    text-shadow: 0 .1rem .6rem rgba(0, 0, 0, .25);
}

.shop-banner-caption.is-on-light {
    color: var(--home-ink, #1d2433);
}

@media (max-width: 767px) {
    .shop-banner-caption {
        left: 6%;
        max-width: 60%;
    }

    .shop-banner-caption-eyebrow {
        margin-bottom: .3rem;
        font-size: 1.2rem;
    }

    .shop-banner-caption-title {
        font-size: 1.7rem;
    }
}
