/* ==========================================================================
   SenMakete — Catalogue public (vitrine des vendeurs)
   Moderne épuré, mobile d'abord.
   ========================================================================== */

:root {
    --v-brand: var(--brand);
    --v-brand-600: var(--brand-600);
    --v-brand-50: var(--brand-50);
    --v-bg: #ffffff;
    --v-bg-soft: var(--surface-soft);
    --v-text: var(--ink);
    --v-muted: var(--ink-muted);
    --v-border: var(--line);
    --v-border-strong: var(--line-strong);
    --v-danger: #dc2626;
    --v-warning: #b45309;
    --v-whatsapp: #1fa855;
    --v-radius: 14px;
    --v-radius-sm: 10px;
    --v-shadow: 0 1px 3px rgba(17, 24, 39, .08), 0 6px 16px rgba(17, 24, 39, .06);
    --v-header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.vitrine {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--v-text);
    background: var(--v-bg);
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}
.vitrine main { flex: 1; }
.vitrine img { max-width: 100%; display: block; }
a { color: inherit; }
.vitrine h1, .vitrine h2, .vitrine h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.vitrine p { margin: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.v-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .v-container { padding: 0 24px; } }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.v-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--v-border);
}
.v-header-inner { height: var(--v-header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.v-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.v-brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--v-border); }
.v-brand-initiale {
    display: grid; place-items: center; font-weight: 800;
    background: var(--v-brand-50); color: var(--v-brand); border-color: transparent;
}
.v-brand-sen { background: var(--v-brand); color: #fff; }
.v-brand-name { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v-cart-btn {
    position: relative; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    color: var(--v-text); text-decoration: none;
    border: 1px solid var(--v-border);
}
.v-cart-btn:hover { background: var(--v-bg-soft); }
.v-cart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--v-brand); color: #fff; font-size: .72rem; font-weight: 700;
    display: grid; place-items: center; border: 2px solid #fff;
}

.v-preview-banner { background: #fffbeb; color: #92400e; border-bottom: 1px solid #fde68a; font-size: .85rem; padding: .55rem 0; text-align: center; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.v-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .65rem 1.2rem;
    border-radius: 12px; border: 1px solid var(--v-border-strong);
    background: #fff; color: var(--v-text);
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .05s;
}
.v-btn:hover { background: var(--v-bg-soft); }
.v-btn:active { transform: scale(.98); }
.v-btn:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.v-btn svg { flex-shrink: 0; }
.v-btn-primary { background: var(--v-brand); border-color: var(--v-brand); color: #fff; }
.v-btn-primary:hover { background: var(--v-brand-600); border-color: var(--v-brand-600); }
.v-btn-dark { background: var(--v-text); border-color: var(--v-text); color: #fff; }
.v-btn-dark:hover { background: #000; }
.v-btn-whatsapp { background: var(--v-whatsapp); border-color: var(--v-whatsapp); color: #fff; }
.v-btn-whatsapp:hover { background: #178f47; border-color: #178f47; }
.v-btn-block { width: 100%; }
.v-btn-sm { min-height: 38px; padding: .45rem .85rem; font-size: .85rem; border-radius: 10px; }
.v-btn[disabled], .v-btn.is-disabled { opacity: .5; pointer-events: none; }

/* --------------------------------------------------------------------------
   En-tête de boutique
   -------------------------------------------------------------------------- */

.v-store-head { padding: 1.5rem 0 1rem; }
.v-store-id { display: flex; align-items: center; gap: 1rem; }
.v-store-logo {
    width: 72px; height: 72px; border-radius: 20px; object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--v-border); box-shadow: var(--v-shadow);
}
.v-store-logo.v-brand-initiale { font-size: 1.8rem; }
.v-store-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.v-store-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .3rem; color: var(--v-muted); font-size: .88rem; }
.v-store-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.v-store-desc { margin-top: 1rem; color: #374151; max-width: 680px; white-space: pre-line; }
.v-store-actions { display: flex; gap: .5rem; margin-top: 1.1rem; }
.v-store-actions .v-btn { flex: 1; min-width: 0; }
@media (max-width: 639px) {
    .v-store-actions .v-btn-share { flex: 0 0 46px; padding: 0; }
    .v-store-actions .v-btn-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@media (min-width: 640px) {
    .v-store-head { padding: 2.5rem 0 1.25rem; }
    .v-store-logo { width: 96px; height: 96px; border-radius: 24px; }
    .v-store-name { font-size: 2rem; }
    .v-store-actions .v-btn { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   Barre d'outils du catalogue : recherche + catégories
   -------------------------------------------------------------------------- */

.v-toolbar {
    position: sticky; top: var(--v-header-h); z-index: 30;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    padding: .75rem 0 .5rem;
    border-bottom: 1px solid var(--v-border);
}
.v-search { position: relative; }
.v-search input {
    width: 100%; height: 46px; padding: 0 2.75rem 0 2.75rem;
    border: 1px solid var(--v-border-strong); border-radius: 12px;
    background: var(--v-bg-soft); font: inherit; font-size: 16px; color: var(--v-text);
}
.v-search input:focus { outline: none; background: #fff; border-color: var(--v-brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.v-search > svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--v-muted); pointer-events: none; }
.v-search-clear {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
    color: var(--v-muted); text-decoration: none;
}

.v-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .65rem 0 .15rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v-chips::-webkit-scrollbar { display: none; }
.v-chip {
    flex-shrink: 0; padding: .45rem .95rem; border-radius: 999px;
    border: 1px solid var(--v-border); background: #fff;
    font-size: .87rem; font-weight: 600; color: #374151; text-decoration: none; white-space: nowrap;
}
.v-chip:hover { border-color: var(--v-border-strong); }
.v-chip.is-active { background: var(--v-text); border-color: var(--v-text); color: #fff; }

/* --------------------------------------------------------------------------
   Grille de produits
   -------------------------------------------------------------------------- */

.v-section { padding: 1.25rem 0 2.5rem; }
.v-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.v-section-title { font-size: 1.1rem; font-weight: 700; }
.v-count { color: var(--v-muted); font-size: .88rem; }

.v-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem; }
@media (min-width: 640px) { .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; } }
@media (min-width: 1024px) { .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; } }

.v-card { position: relative; display: flex; flex-direction: column; }
.v-card-media {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden;
    border-radius: var(--v-radius); background: var(--v-bg-soft);
}
.v-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.v-card:hover .v-card-media img { transform: scale(1.04); }
.v-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--v-border-strong); }
.v-card-badge {
    position: absolute; top: .5rem; left: .5rem;
    padding: .2rem .55rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; background: rgba(17, 24, 39, .8); color: #fff;
}
.v-card-badge-warning { background: #fff; color: var(--v-warning); }
.v-card-body { padding: .6rem .1rem 0; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.v-card-title {
    font-size: .92rem; font-weight: 500; color: #374151; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v-card-title::after { content: ''; position: absolute; inset: 0; } /* toute la carte est cliquable */
.v-card-price { font-weight: 700; font-size: 1rem; color: var(--v-text); }
.v-card-media-wrap { position: relative; }
.v-card-add { position: absolute; right: .5rem; bottom: .5rem; z-index: 2; margin: 0; }
.v-card-add-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: #fff; color: var(--v-text);
    box-shadow: 0 2px 8px rgba(17, 24, 39, .18);
    display: grid; place-items: center; cursor: pointer;
    transition: transform .1s, background .15s;
}
.v-card-add-btn:hover { background: var(--v-brand); color: #fff; }
.v-card-add-btn:active { transform: scale(.92); }
.v-card.is-out .v-card-media img { opacity: .55; }

/* --------------------------------------------------------------------------
   Vide / erreurs
   -------------------------------------------------------------------------- */

.v-empty { text-align: center; padding: 3.5rem 1rem; }
.v-empty-icon {
    width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1rem;
    display: grid; place-items: center; background: var(--v-bg-soft); color: var(--v-muted);
}
.v-empty h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.v-empty p { color: var(--v-muted); max-width: 380px; margin: 0 auto 1.25rem; }

/* --------------------------------------------------------------------------
   Fiche produit
   -------------------------------------------------------------------------- */

.v-breadcrumb { display: flex; align-items: center; gap: .4rem; padding: 1rem 0; font-size: .85rem; color: var(--v-muted); overflow: hidden; white-space: nowrap; }
.v-breadcrumb a { color: var(--v-muted); text-decoration: none; }
.v-breadcrumb a:hover { color: var(--v-text); }
.v-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; color: var(--v-text); }

.v-product { display: grid; gap: 1.25rem; padding-bottom: 2rem; }
@media (min-width: 900px) { .v-product { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; } }
.v-product-media { margin: 0 -16px; background: var(--v-bg-soft); aspect-ratio: 1; overflow: hidden; }
.v-product-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .v-product-media { margin: 0; border-radius: 20px; } }
@media (min-width: 900px) { .v-product-media { position: sticky; top: calc(var(--v-header-h) + 1rem); } }

.v-product-cat { font-size: .8rem; font-weight: 600; color: var(--v-brand); text-transform: uppercase; letter-spacing: .05em; }
.v-product-name { font-size: 1.5rem; font-weight: 800; margin-top: .35rem; letter-spacing: -.02em; }
@media (min-width: 900px) { .v-product-name { font-size: 2rem; } }
.v-product-price { font-size: 1.5rem; font-weight: 800; margin-top: .6rem; }
.v-stock { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .88rem; font-weight: 600; }
.v-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.v-stock-ok { color: #047857; }
.v-stock-low { color: var(--v-warning); }
.v-stock-out { color: var(--v-danger); }
.v-product-desc { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--v-border); color: #374151; }
.v-product-desc p { white-space: pre-line; }
.v-product-desc h2 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--v-text); }

.v-buy { display: grid; gap: .6rem; margin-top: 1.5rem; }
.v-buy-row { display: flex; gap: .6rem; }
.v-buy-row .v-btn { flex: 1; }
.v-in-cart { font-size: .85rem; color: var(--v-muted); text-align: center; }
.v-in-cart a { color: var(--v-brand); font-weight: 600; }

.v-stepper {
    display: inline-flex; align-items: center; flex-shrink: 0;
    border: 1px solid var(--v-border-strong); border-radius: 12px; height: 46px; overflow: hidden;
}
.v-stepper button {
    width: 42px; height: 100%; border: 0; background: none; cursor: pointer;
    font-size: 1.25rem; color: var(--v-text); display: grid; place-items: center;
}
.v-stepper button:hover { background: var(--v-bg-soft); }
.v-stepper button:disabled { color: var(--v-border-strong); cursor: default; background: none; }
.v-stepper input {
    width: 40px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 700; font-size: 16px;
    -moz-appearance: textfield; background: none; color: var(--v-text);
}
.v-stepper input::-webkit-outer-spin-button, .v-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v-stepper-sm { height: 36px; border-radius: 10px; }
.v-stepper-sm button { width: 34px; font-size: 1.05rem; }
.v-stepper-sm input { width: 32px; font-size: 15px; }

.v-trust { display: grid; gap: .6rem; margin-top: 1.5rem; padding: 1rem; border-radius: var(--v-radius); background: var(--v-bg-soft); font-size: .88rem; color: #374151; }
.v-trust div { display: flex; gap: .6rem; align-items: flex-start; }
.v-trust svg { flex-shrink: 0; color: var(--v-brand); margin-top: 1px; }

/* Barre d'achat collante (mobile) */
.v-sticky-bar {
    position: fixed; inset: auto 0 0 0; z-index: 35;
    padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--v-border);
    box-shadow: 0 -4px 16px rgba(17, 24, 39, .06);
    display: flex; gap: .6rem; align-items: center;
}
.v-sticky-bar .v-btn { flex: 1; }
.v-sticky-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.v-sticky-info small { color: var(--v-muted); font-size: .78rem; }
.v-sticky-info strong { font-size: 1.05rem; white-space: nowrap; }
body.has-sticky { padding-bottom: 84px; }
@media (min-width: 900px) {
    .v-sticky-bar.only-mobile { display: none; }
    body.has-sticky { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Panier & commande
   -------------------------------------------------------------------------- */

.v-page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; padding: 1.5rem 0 1rem; }
.v-layout-cart { display: grid; gap: 1.5rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .v-layout-cart { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 2rem; } }

.v-panel { border: 1px solid var(--v-border); border-radius: var(--v-radius); background: #fff; }
.v-panel + .v-panel { margin-top: 1rem; }
.v-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--v-border); }
.v-panel-head a { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; min-width: 0; }
.v-panel-head .v-brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.v-panel-body { padding: 1rem; }
.v-panel-foot { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: var(--v-bg-soft); border-top: 1px solid var(--v-border); border-radius: 0 0 var(--v-radius) var(--v-radius); font-size: .92rem; }

.v-line { display: flex; gap: .85rem; padding: 1rem; border-bottom: 1px solid var(--v-border); }
.v-line:last-child { border-bottom: 0; }
.v-line-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--v-bg-soft); flex-shrink: 0; }
.v-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.v-line-top { display: flex; justify-content: space-between; gap: .75rem; }
.v-line-name { font-weight: 600; font-size: .95rem; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-line-unit { font-size: .82rem; color: var(--v-muted); }
.v-line-total { font-weight: 700; white-space: nowrap; }
.v-line-bottom { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.v-line-remove {
    border: 0; background: none; color: var(--v-muted); cursor: pointer;
    font: inherit; font-size: .82rem; font-weight: 500; padding: .35rem; display: inline-flex; align-items: center; gap: .25rem;
}
.v-line-remove:hover { color: var(--v-danger); }
.v-line form { margin: 0; }

.v-summary { position: sticky; top: calc(var(--v-header-h) + 1rem); }
.v-summary h2 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.v-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; color: #374151; }
.v-summary-total { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0 0; margin-top: .5rem; border-top: 1px solid var(--v-border); font-weight: 800; font-size: 1.1rem; }
.v-summary-note { font-size: .82rem; color: var(--v-muted); margin-top: .75rem; }
.v-summary .v-btn { margin-top: 1rem; }

.v-field { margin-bottom: 1rem; }
.v-field label, .v-field .field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.v-field input, .v-field .form-control {
    width: 100%; height: 48px; padding: 0 .9rem;
    border: 1px solid var(--v-border-strong); border-radius: 12px;
    font: inherit; font-size: 16px; background: #fff; color: var(--v-text);
}
.v-field input:focus { outline: none; border-color: var(--v-brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.v-field .field-errors { list-style: none; margin: .35rem 0 0; padding: 0; color: var(--v-danger); font-size: .85rem; font-weight: 500; }
.v-field .field-help { margin: .35rem 0 0; font-size: .82rem; color: var(--v-muted); }
.v-field .field-required { color: var(--v-danger); margin-left: .15rem; }

.v-mini-line { display: flex; align-items: center; gap: .65rem; padding: .5rem 0; font-size: .9rem; }
.v-mini-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--v-bg-soft); }
.v-mini-line span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-mini-qty { color: var(--v-muted); font-size: .82rem; }

/* --------------------------------------------------------------------------
   Confirmation
   -------------------------------------------------------------------------- */

.v-success { text-align: center; padding: 2.5rem 0 1.5rem; }
.v-success-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1rem;
    display: grid; place-items: center; background: var(--v-brand-50); color: var(--v-brand);
}
.v-success h1 { font-size: 1.5rem; font-weight: 800; }
.v-success p { color: var(--v-muted); margin-top: .5rem; }
.v-confirm { max-width: 560px; margin: 0 auto; padding-bottom: 2.5rem; }
.v-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .75rem; }
.v-steps li { display: flex; gap: .75rem; font-size: .92rem; color: #374151; }
.v-steps b {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: .8rem; background: var(--v-bg-soft); color: var(--v-text);
}

/* --------------------------------------------------------------------------
   Annuaire des boutiques
   -------------------------------------------------------------------------- */

.v-hero { padding: 2rem 0 1rem; }
.v-hero h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.v-hero p { color: var(--v-muted); margin-top: .4rem; max-width: 560px; }
@media (min-width: 768px) { .v-hero { padding: 3rem 0 1.5rem; } .v-hero h1 { font-size: 2.25rem; } }

.v-stores { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .v-stores { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .v-stores { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.v-store-card {
    display: flex; align-items: center; gap: .9rem; padding: 1rem;
    border: 1px solid var(--v-border); border-radius: var(--v-radius);
    text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.v-store-card:hover { border-color: var(--v-border-strong); box-shadow: var(--v-shadow); }
.v-store-card .v-brand-logo { width: 56px; height: 56px; border-radius: 14px; font-size: 1.3rem; }
.v-store-card-body { flex: 1; min-width: 0; }
.v-store-card-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-store-card-meta { font-size: .84rem; color: var(--v-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-store-card > svg { color: var(--v-muted); flex-shrink: 0; }

/* Produits similaires : défilement horizontal sur mobile */
.v-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: none; }
.v-rail::-webkit-scrollbar { display: none; }
.v-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .v-rail { grid-auto-columns: 28%; } }
@media (min-width: 1024px) { .v-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 1.25rem; } }

/* --------------------------------------------------------------------------
   Notifications
   -------------------------------------------------------------------------- */

.v-toasts {
    position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
    top: calc(var(--v-header-h) + .75rem);
    width: calc(100% - 32px); max-width: 440px;
    display: grid; gap: .5rem; pointer-events: none;
}
.v-toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: .6rem;
    padding: .75rem 1rem; border-radius: 12px;
    background: var(--v-text); color: #fff; font-size: .9rem; font-weight: 500;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .25);
    animation: v-toast-in .25s ease;
    transition: opacity .3s, transform .3s;
}
.v-toast-error { background: #991b1b; }
.v-toast.is-hiding { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.v-toast span { flex: 1; }
.v-toast-action { color: #86efac !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
@keyframes v-toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.v-footer { border-top: 1px solid var(--v-border); padding: 1.5rem 0; margin-top: 1rem; background: var(--v-bg-soft); font-size: .85rem; color: var(--v-muted); }
.v-footer-store { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-bottom: .6rem; color: #374151; }
.v-footer-store strong { color: var(--v-text); }
.v-footer a { color: var(--v-text); font-weight: 600; text-decoration: none; }
.v-footer a:hover { text-decoration: underline; }

.only-mobile { display: flex; }
@media (min-width: 900px) { .only-mobile { display: none !important; } }
.only-desktop { display: none; }
@media (min-width: 900px) { .only-desktop { display: block; } }

/* ==========================================================================
   Catalogue — version « pro » : couverture, carte boutique, tri, panier flottant
   ========================================================================== */

.v-cover {
    position: relative; height: 128px; overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 160% at 0% 0%, var(--brand-400) 0%, var(--brand) 45%, var(--brand-900) 100%);
}
.v-cover::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.v-cover::after {
    content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; z-index: -1;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
}
@media (min-width: 768px) { .v-cover { height: 180px; } }

.v-storecard {
    position: relative; margin-top: -56px;
    background: #fff; border: 1px solid var(--v-border); border-radius: 22px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
    padding: 1.25rem;
}
@media (min-width: 768px) { .v-storecard { margin-top: -84px; padding: 1.75rem 2rem; } }
.v-storecard-top { display: flex; gap: 1rem; align-items: flex-start; }
.v-storecard .v-store-logo { width: 76px; height: 76px; border-radius: 20px; margin-top: -48px; border: 4px solid #fff; box-shadow: var(--v-shadow); background: #fff; }
@media (min-width: 768px) { .v-storecard .v-store-logo { width: 112px; height: 112px; border-radius: 28px; margin-top: -72px; font-size: 2.4rem; } }
.v-storecard-id { flex: 1; min-width: 0; }
.v-storecard .v-store-name { font-size: 1.4rem; line-height: 1.15; }
@media (min-width: 768px) { .v-storecard .v-store-name { font-size: 2rem; } }
.v-verified { display: inline-flex; vertical-align: middle; margin-left: .35rem; color: var(--v-brand); }
.v-storecard-body { display: grid; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 900px) { .v-storecard-body { grid-template-columns: 1fr auto; align-items: end; } }
.v-storecard .v-store-desc { margin-top: 0; }
.v-storecard .v-store-actions { margin-top: 0; }

.v-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.v-stat {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .7rem; border-radius: 999px; background: var(--v-bg-soft);
    font-size: .8rem; font-weight: 600; color: #334155;
}
.v-stat svg { color: var(--v-muted); }
.v-stat-wa { background: #dcfce7; color: #15803d; }
.v-stat-wa svg { color: #16a34a; }

.v-trust-strip { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; justify-content: center; padding: 1rem 0 .25rem; font-size: .82rem; color: var(--v-muted); }
.v-trust-strip span { display: inline-flex; align-items: center; gap: .35rem; }
.v-trust-strip svg { color: var(--v-brand); }

/* Barre d'outils : recherche + tri */
.v-toolbar-row { display: flex; gap: .5rem; }
.v-toolbar-row .v-search { flex: 1; }
.v-sort select {
    height: 46px; padding: 0 2.1rem 0 .85rem; max-width: 210px;
    border: 1px solid var(--v-border-strong); border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center;
    -webkit-appearance: none; appearance: none;
    font: inherit; font-size: .9rem; font-weight: 600; color: var(--v-text); cursor: pointer;
}
.v-sort select:focus { outline: none; border-color: var(--v-brand); box-shadow: 0 0 0 3px var(--brand-ring); }
@media (max-width: 420px) { .v-sort select { max-width: 120px; font-size: .82rem; } }
.v-chip small { font-size: .72rem; font-weight: 700; opacity: .6; margin-left: .15rem; }
.v-chip.is-active { background: var(--v-brand); border-color: var(--v-brand); }

.v-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.v-results-head h2 { font-size: 1.05rem; font-weight: 700; }
.v-results-head a { font-size: .85rem; color: var(--v-brand); font-weight: 600; text-decoration: none; }

/* Cartes produit : finitions */
.v-card-media { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04); }
.v-card-cat { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--v-muted); }
.v-card-add-btn { background: var(--v-brand); color: #fff; box-shadow: 0 4px 12px var(--brand-shadow); }
.v-card-add-btn:hover { background: var(--v-brand-600); }

/* Panier flottant */
.v-cartbar {
    position: fixed; z-index: 36; left: 50%; transform: translateX(-50%);
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: calc(100% - 32px); max-width: 480px;
    display: flex; align-items: center; gap: .85rem;
    padding: .6rem .6rem .6rem 1rem; border-radius: 16px;
    background: var(--v-text); color: #fff; text-decoration: none;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .3);
    animation: v-cartbar-in .3s ease;
}
.v-cartbar-count {
    min-width: 30px; height: 30px; padding: 0 .4rem; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .15); font-weight: 800; font-size: .9rem;
}
.v-cartbar-text { flex: 1; min-width: 0; line-height: 1.2; }
.v-cartbar-text small { display: block; opacity: .7; font-size: .75rem; }
.v-cartbar-text strong { font-size: 1rem; }
.v-cartbar-cta { background: #fff; color: var(--v-text); padding: .6rem 1rem; border-radius: 11px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
body.has-cartbar { padding-bottom: 90px; }
@keyframes v-cartbar-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* Étapes de commande */
.v-progress { display: flex; align-items: center; gap: .5rem; padding: 1.25rem 0 .25rem; font-size: .82rem; font-weight: 600; color: var(--v-muted); }
.v-progress li { display: inline-flex; align-items: center; gap: .4rem; }
.v-progress ol { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.v-progress li + li::before { content: ""; width: 24px; height: 2px; background: var(--v-border-strong); border-radius: 2px; margin-right: .1rem; }
.v-progress b {
    width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid var(--v-border-strong); font-size: .75rem;
}
.v-progress .is-done { color: var(--v-brand); }
.v-progress .is-done b { background: var(--v-brand); border-color: var(--v-brand); color: #fff; }
.v-progress .is-current { color: var(--v-text); }
.v-progress .is-current b { border-color: var(--v-brand); color: var(--v-brand); }

/* Visionneuse photo */
.v-product-media { cursor: zoom-in; position: relative; }
.v-zoom-hint {
    position: absolute; right: .75rem; bottom: .75rem; width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--v-text); box-shadow: var(--v-shadow);
}
.v-lightbox {
    position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px;
    background: rgba(2, 6, 23, .92); cursor: zoom-out;
}
.v-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.v-lightbox button {
    position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px; border: 0;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.v-product-seller {
    display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; padding: .85rem 1rem;
    border: 1px solid var(--v-border); border-radius: 14px; text-decoration: none;
}
.v-product-seller:hover { border-color: var(--v-border-strong); }
.v-product-seller .v-brand-logo { width: 42px; height: 42px; border-radius: 12px; }
.v-product-seller span { flex: 1; min-width: 0; line-height: 1.3; }
.v-product-seller b { display: block; }
.v-product-seller small { color: var(--v-muted); font-size: .82rem; }
@media (max-width: 479px) {
    .v-progress ol { flex-wrap: nowrap; }
    .v-progress li:not(.is-current) .v-progress-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* Favoris (partagés avec la place de marché) */
.v-fav {
    position: absolute; right: .5rem; top: .5rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15); transition: transform .15s;
}
.v-fav svg { fill: none; stroke: var(--v-text); stroke-width: 2; transition: fill .15s, stroke .15s; }
.v-fav:hover { transform: scale(1.08); }
.v-fav.is-on svg, .v-btn-fav.is-on svg { fill: #e11d48; stroke: #e11d48; }
.v-fav.is-pop, .v-btn-fav.is-pop { animation: v-pop .3s ease; }
@keyframes v-pop { 50% { transform: scale(1.15); } }
.v-btn-fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.v-product-where { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .6rem; font-size: .85rem; color: var(--v-muted); }
.v-product-where span { display: inline-flex; align-items: center; gap: .3rem; }
.v-header-actions { display: flex; align-items: center; gap: .4rem; }
.v-fav-link { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--v-text); border: 1px solid var(--v-border); text-decoration: none; }
.v-fav-link:hover { background: var(--v-bg-soft); }
.v-fav-link .v-cart-count[hidden] { display: none; }

.v-card-badge-une { background: var(--accent); color: #fff; }
