/* ==========================================================================
   StockExpress — Fiche produit (/p/:slug). Complète home.css. Mobile + RTL.
   ========================================================================== */

.se-product { --se-primary: #0F766E; --se-primary-dark: #134E4A; --se-border: #E2E8F0; --se-muted: #64748B; }

/* ---------- Fil d'Ariane ------------------------------------------------- */
.se-breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.se-breadcrumb a { color: var(--se-muted); text-decoration: none; }
.se-breadcrumb a:hover { color: var(--se-primary); }
.se-breadcrumb .sep { color: #cbd5e1; margin: 0 .35rem; }

/* ---------- Galerie ------------------------------------------------------ */
.se-gallery .se-gallery-main {
    position: relative; background: #fff; border: 1px solid var(--se-border); border-radius: 16px;
    overflow: hidden; aspect-ratio: 4 / 3;
}
.se-gallery .se-gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #f8fafc; }
.se-gallery .se-gallery-main .se-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #94a3b8; font-size: 3rem; }
.se-gallery .se-gallery-flags { position: absolute; top: .75rem; inset-inline-start: .75rem; display: flex; gap: .4rem; z-index: 2; }
.se-gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.se-gallery-thumbs .se-th {
    width: 72px; height: 72px; border-radius: 10px; object-fit: cover; cursor: pointer;
    border: 2px solid transparent; background: #f8fafc; transition: border-color .15s;
}
.se-gallery-thumbs .se-th:hover { border-color: #cbd5e1; }
.se-gallery-thumbs .se-th.active { border-color: var(--se-primary); }

/* ---------- Pastilles couleur -------------------------------------------- */
.se-colors { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .75rem; }
.se-colors .se-swatch {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--se-border); transition: transform .12s, box-shadow .12s;
}
.se-colors .se-swatch:hover, .se-colors .se-swatch.active { transform: scale(1.12); box-shadow: 0 0 0 2px var(--se-primary); }

/* ---------- Buy box ------------------------------------------------------ */
.se-buybox { background: #fff; border: 1px solid var(--se-border); border-radius: 16px; padding: 1.25rem; }
@media (min-width: 992px) { .se-buybox-sticky { position: sticky; top: 84px; } }
.se-buybox .se-price { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--se-primary); line-height: 1; }
.se-buybox .se-price small { font-size: 1rem; color: var(--se-muted); font-weight: 600; }
.se-buybox .se-old { color: #94a3b8; text-decoration: line-through; }
.se-buybox .se-disc { background: #16a34a; color: #fff; border-radius: 999px; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; }
.se-facts { list-style: none; padding: 0; margin: 0; }
.se-facts li { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; font-size: .9rem; border-bottom: 1px dashed #eef2f6; }
.se-facts li:last-child { border-bottom: 0; }
.se-facts li i { color: var(--se-primary); width: 18px; text-align: center; }
.se-facts li strong { color: #0f172a; }
.se-trust { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.se-trust span { font-size: .74rem; color: #475569; background: #f1f5f9; border-radius: 999px; padding: .25rem .6rem; }
.se-trust i { color: var(--se-primary); }

/* favori */
.se-fav-btn.is-fav { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ---------- Cartes contenu ----------------------------------------------- */
.se-pcontent { background: #fff; border: 1px solid var(--se-border); border-radius: 16px; padding: 1.4rem; }
.se-pcontent h2 { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: .75rem; }
.se-pcontent .se-desc { color: #475569; line-height: 1.7; }
.se-specs { width: 100%; font-size: .9rem; }
.se-specs th { color: var(--se-muted); font-weight: 600; width: 40%; padding: .5rem .25rem; vertical-align: top; }
.se-specs td { padding: .5rem .25rem; color: #0f172a; }
.se-specs tr + tr { border-top: 1px solid #eef2f6; }

/* ---------- Fournisseur -------------------------------------------------- */
.se-supplier-card { background: #fff; border: 1px solid var(--se-border); border-radius: 16px; padding: 1.1rem; }
.se-supplier-card .se-suplogo { width: 48px; height: 48px; border-radius: 12px; background: #ecfdf5; color: var(--se-primary); display: grid; place-items: center; font-weight: 800; flex: none; }

[dir="rtl"] .se-facts li { text-align: right; }
