/* ==========================================================
   BOUTIQUE : styles de la page boutique et de la fiche produit
   ========================================================== */


/* ---------- Section principale ---------- */

.shop {
    --shop-accent: #fe4f51;
    --shop-dark:   #0c1031;
    --shop-text:   #4a5170;
    --shop-muted:  #6b7290;

    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 48px 25px 64px;
    background: #fbf8fb;
    font-family: inherit;

    /* Coupe les bulles décoratives sur les deux axes,
       sans bloquer le défilement de la page */
    overflow: clip;
}

.shop *,
.shop *::before,
.shop *::after {
    box-sizing: border-box;
}

/* Bulles décoratives douces */
.shop::before,
.shop::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
}

.shop::before {
    width: 380px;
    height: 380px;
    top: -120px;
    left: -100px;
    background: #ffe3e3;
}

.shop::after {
    width: 420px;
    height: 420px;
    bottom: -160px;
    right: -120px;
    background: #e4e8ff;
}

.shop__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1312px;
    min-width: 0;
    margin: 0 auto;
}

/* Focus visible au clavier */
.shop a:focus-visible,
.shop button:focus-visible,
.shop input:focus-visible,
.shop select:focus-visible {
    outline: 3px solid var(--shop-dark);
    outline-offset: 2px;
}


/* ---------- Fil d'Ariane et titres ---------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--shop-muted);
}

.crumbs a {
    color: var(--shop-text);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--shop-accent);
}

.shop__title {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 800;
    color: var(--shop-dark);
}

.shop__lead {
    max-width: 640px;
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--shop-text);
}


/* ---------- Recherche et tri ---------- */

.bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.bar__search {
    position: relative;
    flex: 1 1 280px;
}

.bar__search i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--shop-muted);
}

.bar input,
.bar select {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 40px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 10px rgba(12, 16, 49, .06);
    color: var(--shop-dark);
    font: 500 14px inherit;
}

.bar input {
    padding-left: 46px;
}

.bar__sort {
    flex: 0 1 220px;
}

.bar__sort select {
    cursor: pointer;
}


/* ---------- Catégories (boutons) ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 40px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 2px 10px rgba(12, 16, 49, .06);
    color: var(--shop-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}

.chip i {
    color: var(--shop-accent);
}

.chip:hover {
    transform: translateY(-2px);
}

.chip--on {
    background: var(--shop-dark);
    color: #fff;
}

.shop__count {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--shop-muted);
}


/* ---------- Grille de produits ---------- */

.shop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
    transition: opacity .2s;
}

[wire\:loading] {
    opacity: .6;
}


/* ---------- Carte produit ---------- */

.card-prod {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(12, 16, 49, .06);
    transition: transform .3s, box-shadow .3s;
}

.card-prod:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(12, 16, 49, .12);
}

.card-prod__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    margin: 10px 10px 0;
    border-radius: 20px;
    background: var(--tint);
}

.card-prod__icon {
    position: absolute;
    font-size: 74px;
    color: var(--ink);
    opacity: .16;
}

.card-prod__media {
    overflow: hidden;   /* garde les coins arrondis */
}

.card-prod__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;  
    object-fit: cover;
    object-position: center;   /* garde le centre de l'image */
}

.card-prod__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.card-prod__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.card-prod__name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.card-prod__name a {
    color: var(--shop-dark);
    text-decoration: none;
}

.card-prod__name a:hover {
    color: var(--shop-accent);
}

.card-prod__specs {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--shop-muted);
}

.card-prod__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.card-prod__price {
    font-size: 21px;
    font-weight: 800;
    color: var(--shop-dark);
}

.card-prod__price small {
    font-size: 12px;
    font-weight: 700;
    color: var(--shop-muted);
}

.stock {
    font-size: 12.5px;
    font-weight: 600;
    color: #1f7a4d;
    white-space: nowrap;
}

.stock--out {
    color: #b4541f;
}

.card-prod__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 12px;
    border-radius: 40px;
    background: #fff0f0;
    color: #c2393b !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .25s, color .25s;
}

.card-prod__btn:hover {
    background: var(--shop-accent);
    color: #fff !important;
}


/* ---------- Aucun résultat ---------- */

.empty {
    padding: 48px 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .8);
    text-align: center;
    color: var(--shop-text);
}

.empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 38px;
    color: var(--shop-accent);
}

.empty a {
    font-weight: 700;
    color: var(--shop-accent);
}


/* ---------- Fiche produit ---------- */

.pd {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}

.pd__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 460px;
    border-radius: 32px;
    background: var(--tint);
}

.pd__icon {
    position: absolute;
    font-size: 170px;
    color: var(--ink);
    opacity: .13;
}

.pd__media img {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(12, 16, 49, .18));
}

.pd__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.pd__cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.pd__name {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--shop-dark);
}

.pd__specs {
    margin: 0 0 18px;
    color: var(--shop-muted);
}

.pd__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 34px;
    font-weight: 800;
    color: var(--shop-dark);
}

.pd__price small {
    font-size: 16px;
    color: var(--shop-muted);
}

.pd__text {
    margin: 0 0 22px;
    line-height: 1.7;
    color: var(--shop-text);
}

.pd__buy {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}


/* ---------- Quantité et bouton de commande ---------- */

.qty {
    display: inline-flex;
    align-items: center;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(12, 16, 49, .08);
}

.qty button {
    width: 46px;
    height: 50px;
    border: 0;
    background: none;
    font-size: 20px;
    color: var(--shop-dark);
    cursor: pointer;
}

.qty button:hover {
    color: var(--shop-accent);
}

.qty output {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    flex: 1 1 220px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 40px;
    background: var(--shop-accent);
    box-shadow: 0 10px 22px rgba(254, 79, 81, .28);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .25s;
}

.btn:hover {
    background: var(--shop-dark);
}


/* ---------- Avantages (fiche produit) ---------- */

.perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .8);
    font-size: 13.5px;
    color: var(--shop-text);
}

.perks i {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fff0f0;
    color: var(--shop-accent);
}


/* ---------- Description et caractéristiques ---------- */

.pd__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 44px;
}

.panel {
    padding: 26px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(12, 16, 49, .06);
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: var(--shop-dark);
}

.panel p {
    margin: 0;
    line-height: 1.7;
    color: var(--shop-text);
}

.panel dl {
    margin: 0;
}

.panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #eef0f6;
    font-size: 14.5px;
}

.panel dl div:last-child {
    border-bottom: 0;
}

.panel dt {
    color: var(--shop-muted);
}

.panel dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: var(--shop-dark);
}

.shop__section-title {
    margin: 52px 0 20px;
    font-size: 24px;
    font-weight: 800;
    color: var(--shop-dark);
}


/* ---------- Bandeau de garanties ---------- */

.shop__trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}

.trust {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 2px 12px rgba(12, 16, 49, .05);
}

.trust i {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff0f0;
    color: var(--shop-accent);
    font-size: 18px;
}

.trust strong {
    display: block;
    font-size: 14px;
    color: var(--shop-dark);
}

.trust span {
    font-size: 12.5px;
    color: var(--shop-muted);
}


/* ---------- Tablette ---------- */

@media (max-width: 1000px) {

    .pd,
    .pd__cols {
        grid-template-columns: 1fr;
    }

    .pd__media {
        height: 360px;
    }

    .shop__trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------- Téléphone ---------- */

@media (max-width: 600px) {

    .shop {
        padding: 28px 12px 44px;
    }

    .shop__title {
        font-size: 25px;
    }

    .shop__lead {
        font-size: 14px;
    }

    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 4px 10px;
    }

    .chip {
        flex: none;
        padding: 10px 16px;
    }

    .shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card-prod {
        border-radius: 20px;
    }

    .card-prod__media {
        height: 130px;
        margin: 7px 7px 0;
        border-radius: 15px;
    }

    .card-prod__icon {
        font-size: 50px;
    }

    .card-prod__body {
        padding: 12px 12px 14px;
    }

    .card-prod__name {
        font-size: 14px;
    }

    .card-prod__specs {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .card-prod__row {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 12px;
    }

    .card-prod__price {
        font-size: 17px;
    }

    .card-prod__btn {
        padding: 10px;
        font-size: 13px;
    }

    .pd__media {
        height: 280px;
        border-radius: 24px;
    }

    .pd__name {
        font-size: 25px;
    }

    .pd__price {
        font-size: 28px;
    }

    .perks,
    .shop__trust {
        grid-template-columns: 1fr;
    }
}


/* ---------- Animations réduites à la demande de l'utilisateur ---------- */

@media (prefers-reduced-motion: reduce) {

    .shop *,
    .shop *::before {
        transition: none !important;
    }

    .card-prod:hover,
    .chip:hover {
        transform: none;
    }
}




/* ---------- Bouton de commande WhatsApp ---------- */

.pd__order-btn {
    display: inline-flex;
    flex: 1 1 220px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 40px;
    background: var(--shop-accent);
    box-shadow: 0 10px 22px rgba(254, 79, 81, .28);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .25s, transform .25s;
}

.pd__order-btn:hover {
    background: var(--shop-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

.pd__order-btn i {
    font-size: 18px;
}

/* Mobile */
@media (max-width: 600px) {
    .pd__order-btn {
        flex-basis: 100%;
        padding: 14px 18px;
        font-size: 14px;
    }
}
a.card-prod__media {
    color: inherit;
    text-decoration: none;
}

.card-prod__name a {
    color: inherit;
    text-decoration: none;
}

.card-prod__name a:hover {
    color: var(--shop-accent);
}


/* ---------- Liens : pas de changement de couleur après un clic ---------- */

.shop a:visited {
    color: inherit;
}

.crumbs a,
.crumbs a:visited {
    color: var(--shop-text);
}

.crumbs a:hover {
    color: var(--shop-accent);
}

.card-prod__name a,
.card-prod__name a:visited {
    color: var(--shop-dark) !important;
}

.card-prod__name a:hover {
    color: var(--shop-accent) !important;
}

.pd__cat,
.pd__cat:visited {
    color: var(--ink);
}

.shop__more a,
.shop__more a:visited {
    color: var(--shop-dark);
}

.shop__more a:hover {
    color: var(--shop-accent);
}

.empty a,
.empty a:visited {
    color: var(--shop-accent);
}

a.card-prod__media,
a.card-prod__media:visited {
    color: inherit;
}