/* ============================================================================
   CATALOGUE chezvous.re — 26/10/2026 (lot 1 : rayon, recherche, carte produit)
   Chargée par _ProductBox.cshtml (Html.AppendCssFileParts, dédoublonnée) : toute
   page qui affiche une carte la reçoit. Changer le ?d= dans _ProductBox à chaque
   modification (cache 7 jours).
   Palette : marine #0F2C40 · orange action #F26522 · orange foncé / promo #C2410C ·
   vert stock #1f7a4d · lien #00708c · gris #5b6b73 · bord #e6ebee.
   ============================================================================ */

/* ---------- 1. La carte produit (partagée : accueil, rayon, recherche, fiche) ---------- */
.product-box.cv-carte { border: 1px solid #e6ebee; border-radius: 12px; background: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; height: 100%; box-shadow: none; transition: transform .2s ease, box-shadow .2s ease; }
@media (min-width: 769px) { .product-box.cv-carte:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15,44,64,.10); z-index: 2; } }
.cv-carte .cv-carte__img { display: flex; align-items: center; justify-content: center; height: 150px; padding: 10px; background: #fff; }
.cv-carte .cv-carte__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cv-carte .labels-container { top: 8px; left: 8px; gap: 3px; }
.cv-carte .badge-custom { font-size: 10px; padding: 3px 7px; border-radius: 6px; box-shadow: none; letter-spacing: .2px; }
.cv-carte .badge-discount { background: #C2410C; }
.cv-carte .pbox-wish { width: 28px; height: 28px; top: 8px; right: 8px; border-color: #e6ebee; color: #9aa6ae; }
.cv-carte .pbox-wish .mdi { font-size: 15px; }
.cv-carte .cv-carte__corps { display: flex; flex-direction: column; flex: 1 1 auto; padding: 8px 10px 10px; min-width: 0; }
.cv-carte .cv-carte__nom { margin: 0; }
.cv-carte .cv-carte__nom a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: #0F2C40; text-decoration: none; }
.cv-carte .cv-carte__nom a:hover { color: #00708c; }
.cv-carte .cv-carte__attrs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; min-height: 18px; }
.cv-carte .cv-carte__attrs img { height: 18px; width: auto; }
.cv-carte .cv-carte__attrs .cv-rep { font-size: 10px; font-weight: 800; color: #1f7a4d; border: 1px solid #1f7a4d; border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.cv-carte .cv-carte__attrs .cv-rep--bas { color: #C2410C; border-color: #C2410C; }
.cv-carte .cv-carte__attrs .cv-dur { font-size: 10px; font-weight: 800; color: #0F2C40; border: 1px solid #cfdbe1; border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.cv-carte .cv-carte__prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.cv-carte .cv-carte__prix .actual-price { font-size: 15px; font-weight: 800; color: #0F2C40; }
.cv-carte .cv-carte__prix .actual-price.has-promo { color: #C2410C; }
.cv-carte .cv-carte__prix .old-price { font-size: 11px; color: #6B7A86; text-decoration: line-through; }
.cv-carte .cv-carte__prix .cv-carte__depuis { font-size: 11px; color: #5b6b73; }
.cv-carte .btn-add-cart { margin-top: 8px; width: 100%; min-height: 38px; border: 0; border-radius: 10px; background: #F26522; color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.cv-carte .btn-add-cart:hover { background: #d9561a; color: #fff; }
.cv-carte .btn-add-cart .mdi { font-size: 16px; }
.cv-carte .catalog-quantity { display: none; }
@media (min-width: 992px) { .cv-carte .cv-carte__img { height: 170px; } .cv-carte .cv-carte__nom a { font-size: 13px; } .cv-carte .cv-carte__prix .actual-price { font-size: 16px; } }

/* ---------- 2. Page de rayon / recherche ---------- */
.cv-cat { --marine: #0F2C40; --orange: #F26522; --vert: #1f7a4d; --lien: #00708c; --gris: #5b6b73; --bord: #e6ebee; color: var(--marine); }
.cv-cat__tete h1 { font-size: 22px; line-height: 1.15; font-weight: 800; color: var(--marine); margin: 6px 0 4px; text-wrap: balance; }
.cv-cat__compte { font-size: 13px; color: var(--gris); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cv-cat__compte b { color: var(--vert); font-weight: 700; }
.cv-cat__desc { margin: -4px 0 12px; }
.cv-cat__desc > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--lien); display: inline-flex; align-items: center; gap: 6px; }
.cv-cat__desc > summary::-webkit-details-marker { display: none; }
.cv-cat__desc[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.cv-cat__desc-corps { font-size: 14px; line-height: 1.55; color: #3D4F5C; margin-top: 8px; }
.cv-cat__desc-corps, .cv-cat__desc-corps * { font-family: inherit !important; font-size: 14px !important; color: #3D4F5C !important; background: transparent !important; }
.cv-cat__desc-corps h1, .cv-cat__desc-corps h2, .cv-cat__desc-corps h3 { font-size: 15px !important; font-weight: 800 !important; color: var(--marine) !important; margin: 10px 0 4px; }

.cv-barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 8px 0; margin: 0 0 8px; background: #fff; border-bottom: 1px solid #eef2f4; }
.cv-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 2px solid var(--marine); border-radius: 999px; background: #fff; color: var(--marine) !important; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.cv-pill--tri { border-color: #cfdbe1; font-weight: 600; position: relative; padding-right: 10px; }
.cv-pill--tri select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--marine); padding: 0 18px 0 0; cursor: pointer; outline: none; max-width: 52vw; text-overflow: ellipsis; }
.cv-pill--tri .fa-chevron-down { position: absolute; right: 12px; font-size: 10px; pointer-events: none; }
.cv-pill .cv-pill__nb { background: var(--orange); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; }
.cv-barre__compte { margin-left: auto; font-size: 12px; color: var(--gris); white-space: nowrap; }
.cv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.cv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #E6F0F5; color: var(--marine) !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.cv-chip .fa-xmark { color: #C2410C; font-size: 11px; }
.cv-chip--tout { background: transparent; color: var(--lien) !important; }

.cv-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cv-grille > .product-container { min-width: 0; margin: 0 !important; padding: 0 !important; max-width: none !important; flex: none !important; width: auto !important; }
.cv-grille > .product-container > .product-box { height: 100%; }
@media (min-width: 768px) { .cv-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1200px) { .cv-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cv-plus { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 420px; margin: 16px auto 6px; min-height: 46px; border: 2px solid var(--marine); border-radius: 999px; background: #fff; color: var(--marine) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.cv-plus.loading { opacity: .6; pointer-events: none; }
.cv-cat .pagination { justify-content: center; gap: 4px; margin: 8px 0 14px; flex-wrap: wrap; }
.cv-cat .pagination .page-item { list-style: none; }
.cv-cat .pagination .page-link { border: 0; border-radius: 8px; color: var(--marine); font-size: 13px; font-weight: 600; padding: 6px 10px; background: transparent; }
.cv-cat .pagination .current-page .page-link { background: #E6F0F5; font-weight: 800; }
.cv-cat .pagination .total-summary { display: none; }

.cv-vide { text-align: center; padding: 30px 10px; color: var(--gris); font-size: 14px; }
.cv-vide b { color: var(--marine); display: block; font-size: 18px; margin-bottom: 8px; }
.cv-vide .cv-chips { justify-content: center; margin-top: 12px; }

/* ---------- 3. Filtres (colonne ordinateur, volet mobile) ---------- */
.cv-filtres { display: flex; flex-direction: column; gap: 10px; }
.cv-fb { border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; background: #fff; }
.cv-fb > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: #f7f9fa; font-size: 14px; font-weight: 800; color: var(--marine); cursor: pointer; }
.cv-fb > summary::-webkit-details-marker { display: none; }
.cv-fb > summary .fa-chevron-down { font-size: 11px; transition: transform .15s ease; }
.cv-fb[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.cv-fb__corps { padding: 6px 14px 12px; }
.cv-fb ul { list-style: none; margin: 0; padding: 0; }
.cv-fb li a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--marine); text-decoration: none; }
.cv-fb li a:hover { color: var(--lien); }
.cv-fb li a .cv-fb__nb { color: #8a97a0; font-size: 12px; }
.cv-fb li.actif a { color: #C2410C; font-weight: 700; }
.cv-fb__tous { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--lien); }
.cv-fb__bascule { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--marine) !important; text-decoration: none !important; }
.cv-fb__bascule small { color: #8a97a0; font-weight: 500; }
.cv-sw { flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #cfdbe1; position: relative; transition: background .15s ease; }
.cv-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s ease; }
.cv-sw--on { background: var(--vert); }
.cv-sw--on::after { left: 19px; }
.cv-fb__groupe { margin-bottom: 8px; }
.cv-fb__groupe-titre { font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .4px; margin: 6px 0 4px; }
.cv-fb__options { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-fb__options a { display: inline-block; padding: 5px 10px; border: 1px solid #cfdbe1; border-radius: 999px; font-size: 12px; color: var(--marine); text-decoration: none; }
.cv-fb__options a:hover { border-color: var(--marine); }
.cv-fb__options a.actif { background: var(--marine); color: #fff; border-color: var(--marine); }
.cv-fb__couleur { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #cfdbe1; }

/* volet mobile : on réutilise les classes existantes du gabarit (filter-offcanvas…) */
.filter-offcanvas .filter-body { padding: 14px 16px; }
.filter-offcanvas .filter-header h5 { font-weight: 800; color: var(--marine); }
.filter-offcanvas .btn-filter-apply { background: var(--orange); border-radius: 12px; }
@media (min-width: 992px) { .cv-filtres--mobile { display: none; } }

/* ---------- 4. « Tous les rayons » ---------- */
.cv-tous { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.cv-tous__rayon h2 { font-family: 'Tsukimi Rounded', 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px; color: var(--marine); margin: 0 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cv-tous__rayon h2 a { color: var(--marine); text-decoration: none; }
.cv-tous__rayon h2 small { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--lien); white-space: nowrap; }
.cv-tous__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cv-tous__sous { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border: 1px solid var(--bord); border-radius: 12px; background: #fff; color: var(--marine) !important; text-decoration: none !important; min-width: 0; }
.cv-tous__sous img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #f3f6f8; }
.cv-tous__sous span { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.cv-tous__sous small { display: block; font-size: 11px; color: var(--vert); font-weight: 700; }
@media (min-width: 768px) { .cv-tous__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cv-tous__rayon h2 { font-size: 24px; } }
@media (min-width: 1200px) { .cv-tous__liste { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
