/* Feuille de style commune. Les valeurs (couleurs, bordures, arrondis...)
   viennent toutes de templates/partials/theme.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; padding-top: var(--nav-h); padding-bottom: 80px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ══ EN-TETE (maquette) ══ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); background: var(--white); border-bottom: var(--border-line); }
.topbar { height: var(--top-h); max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 14px; }
.logo { font-size: 1.2rem; font-weight: var(--fw-bold); letter-spacing: -0.5px; color: var(--text); flex-shrink: 0; text-decoration: none; }
.logo span { color: var(--accent); }
.search { flex: 1; min-width: 0; display: flex; align-items: center; height: 40px; border: var(--border-width-accent) solid var(--accent); border-radius: 22px; overflow: hidden; background: var(--white); }
.search input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 16px; font-size: 0.875rem; color: var(--text); background: transparent; }
.search button { height: 100%; padding: 0 18px; border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: var(--fs-sm); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.search button svg { width: 16px; height: 16px; }
.top-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.top-btn { position: relative; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 20px; color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.top-btn:hover { background: var(--bg); }
.top-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 1px; left: 22px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 0.66rem; font-weight: var(--fw-bold); display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.cart-count.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-tabs-wrap { border-top: var(--border-line); }
.nav-tabs { height: var(--tabs-h); max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; border: var(--border-line-strong); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--muted); white-space: nowrap; flex-shrink: 0; text-decoration: none; background: var(--white); }
.nav-tab.active { background: var(--dominant); border-color: var(--dominant); color: var(--on-dominant); }
.nav-tab svg, .nav-tab i { width: 14px; height: 14px; font-size: 14px; }

/* ══ MISE EN PAGE ══ */
.page { max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter) 40px; }
.page-narrow { max-width: 640px; }
h1 { font-size: 1.5rem; letter-spacing: -0.5px; line-height: 1.25; }
h2 { font-size: 1.1rem; letter-spacing: -0.3px; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel { background: var(--white); border: var(--border-line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin-bottom: 12px; }
.chip { flex-shrink: 0; padding: 5px 12px; border-radius: 20px; border: var(--border-line-strong); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--muted); text-decoration: none; white-space: nowrap; background: var(--white); }
.chip.active { background: var(--dominant); border-color: var(--dominant); color: var(--on-dominant); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* ══ BOUTONS ══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 21px; border: var(--border-width-strong) solid var(--dominant); background: var(--dominant); color: var(--on-dominant); font-weight: 600; font-size: var(--fs-md); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: 0.9; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); opacity: 1; }
.btn-ghost { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger-soft); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }
.wa-link { display: inline-flex; align-items: center; gap: 5px; color: var(--whatsapp-ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.wa-link svg { width: 16px; height: 16px; }

/* ══ FORMULAIRES ══ */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.input { width: 100%; padding: 10px 12px; border: var(--border-line-strong); border-radius: var(--radius-sm); font-size: var(--fs-md); background: var(--white); color: var(--text); font-family: inherit; }
input.input, select.input { height: 42px; }
.input:focus { border-color: var(--accent); outline: none; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); }
.help { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.field.has-error .input { border-color: var(--danger); }
.choice-list { list-style: none; display: grid; gap: 8px; }
.choice-list label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: var(--border-line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: var(--fw-medium); }
.choice-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.inline-choices { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.inline-choices label { display: inline-flex; gap: 6px; align-items: center; font-weight: var(--fw-medium); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.flash { list-style: none; max-width: var(--container); margin: 12px auto 0; padding: 0 var(--gutter); }
.flash li { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 6px; background: var(--white); border: var(--border-line); }
.flash .success { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.flash .error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.flash .warning, .flash .info { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); font-size: 0.88rem; margin-bottom: 16px; }

/* ══ RAYONS DEFILANTS (maquette) ══ */
.category-section { margin-bottom: 18px; background: var(--white); border: var(--border-line); border-radius: var(--radius); padding: 0 16px 16px; }
.category-head { position: sticky; top: var(--nav-h); z-index: var(--z-sticky); display: flex; align-items: center; gap: 10px; background: var(--white); padding: 14px 0 12px; border-radius: var(--radius) var(--radius) 0 0; margin-left: -10px;margin-right: -10px }
.category-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: transparent; transition: background var(--dur) ease; }
.category-head.is-stuck::after { background: var(--border); }
.cat-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.cat-name { flex: none; font-size: var(--fs-lg); font-weight: var(--fw-bold); white-space: nowrap; }
.cat-count, .cat-timer { flex: none; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.cat-timer b { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: var(--radius-xs); background: var(--dominant); color: var(--on-dominant); font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }
.cat-link { flex: none; font-size: 0.8rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.cat-rule { flex: 1 1 auto; height: 1px; background: var(--border); }
.cat-arrows { display: flex; gap: 6px; flex: none; }
.cat-arrow { width: 30px; height: 30px; border-radius: 50%; border: var(--border-line-strong); background: var(--white); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cat-arrow:hover:not(:disabled) { border-color: var(--dominant); }
.cat-arrow:disabled { opacity: 0.35; cursor: default; }
.cat-arrow svg { width: 14px; height: 14px; }
.cards-container { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px -2px -6px; cursor: grab; }
.cards-container::-webkit-scrollbar { display: none; }
.cards-container.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cards-container.is-dragging .p-card { pointer-events: none; }

/* ══ CARTE PRODUIT (maquette) ══ */
.p-card { flex: 0 0 var(--card-w); scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius-card); padding: 6px; transition: box-shadow var(--dur) ease; position: relative; }
.p-card:hover { box-shadow: var(--shadow-md); }
.p-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-card); }
.p-img { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--skeleton); }
.p-img img { width: 100%; height: 100%; object-fit: cover; display: block; color: transparent; font-size: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 7px; border-radius: var(--radius-xs); background: var(--price); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.p-badge.out { background: var(--dominant); }
.p-img .favorite-widget { position: absolute; top: 6px; right: 6px; z-index: 3; }
.p-body { padding: 8px 2px 0; display: flex; flex-direction: column; flex: 1; }
.p-title { font-size: 0.8rem; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; margin-bottom: 6px; }
.p-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-price { font-size: var(--fs-lg); font-weight: 800; color: var(--text); white-space: nowrap; }
.p-price small { font-size: 0.66rem; font-weight: 600; color: var(--muted); }
.p-old { font-size: 0.72rem; color: var(--muted); text-decoration: line-through; }
.p-moq { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.p-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.p-meta { display: flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.p-meta svg { width: 11px; height: 11px; color: var(--star-meta); flex-shrink: 0; }
.p-add { position: relative; z-index: 2; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 10px var(--accent-shadow); transition: transform 0.15s ease; }
.p-add:hover { transform: scale(1.08); }
.p-add svg { width: 14px; height: 14px; }
.p-add.done { background: var(--ok); box-shadow: none; }
.p-add:disabled { background: var(--border); box-shadow: none; cursor: default; }
/* Grille (catalogue, vitrine, favoris) */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 12px; }
.p-grid .p-card { background: var(--white); }

/* ══ SQUELETTE DE CHARGEMENT (facon LinkedIn) ══ */
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton, .p-img.is-loading, .gallery-slide.is-loading, .thumbs button.is-loading { background: linear-gradient(90deg, var(--skeleton) 25%, var(--skeleton-shine) 37%, var(--skeleton) 63%); background-size: 400% 100%; animation: shimmer var(--skeleton-speed) ease infinite; }
.p-img.is-loading img, .gallery-slide.is-loading img, .thumbs button.is-loading img { opacity: 0; }
.p-card.is-skeleton .p-title, .p-card.is-skeleton .p-price-row, .p-card.is-skeleton .p-moq { border-radius: 4px; color: transparent; }
.gallery-slide img, .thumbs button img { transition: opacity .3s ease; }
.sk-line { height: 10px; border-radius: 4px; margin-top: 8px; }
.sk-line.w-80 { width: 80%; } .sk-line.w-60 { width: 60%; } .sk-line.w-40 { width: 40%; height: 14px; }
@media (prefers-reduced-motion: reduce) { .skeleton, .p-img.is-loading { animation: none; } }

/* ══ CATALOGUE + WIDGET FILTRES (repris de Bomakey) ══ */
.catalogue-layout { display: flex; gap: 20px; align-items: flex-start; }
.listings { flex: 1; min-width: 0; }
.listings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.listings-count { font-size: 0.875rem; color: var(--muted); font-weight: var(--fw-medium); }
.btn-filter-trigger { display: none; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; border: var(--border-line-strong); background: var(--white); font-size: var(--fs-sm); font-weight: 600; color: var(--text); cursor: pointer; }
.btn-filter-trigger svg { width: 14px; height: 14px; }
.btn-filter-trigger .filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: none; }
.btn-filter-trigger.has-filters .filter-dot { display: inline-block; }
.sidebar { width: 260px; flex-shrink: 0; position: sticky; top: calc(var(--nav-h) + 20px); align-self: flex-start; background: var(--white); border: var(--border-line); border-radius: var(--radius); padding: 20px; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
.sidebar-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: var(--fw-bold); margin-bottom: 20px; }
.sidebar-title svg { width: 16px; height: 16px; color: var(--muted); }
.filter-label { font-size: 0.72rem; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.filter-group { margin-bottom: 20px; }
.filter-select, .filter-input { width: 100%; padding: 8px 12px; border-radius: var(--radius-sm); border: var(--border-line-strong); font-size: 0.875rem; color: var(--text); background: var(--white); font-family: inherit; }
.filter-select { appearance: none; background-image: 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='%237a7f8c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.filter-input:focus, .filter-select:focus { border-color: var(--accent); outline: none; }
.checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.price-wrap { display: flex; align-items: center; gap: 10px; }
.filter-range { flex: 1; accent-color: var(--accent); cursor: pointer; }
.price-label { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.btn-reset { width: 100%; padding: 10px; background: var(--white); border: var(--border-line-strong); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-reset:hover { background: var(--bg); }
.btn-reset svg { width: 15px; height: 15px; }
.overlay { display: none; position: fixed; inset: 0; background: var(--overlay); z-index: var(--z-overlay); }
.overlay.open { display: block; }
.bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-sheet); background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 0 20px 32px; max-height: 85vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s var(--ease); }
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle-row { display: flex; justify-content: center; padding: 12px 0 8px; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: var(--border-line); margin-bottom: 20px; }
.sheet-header-title { display: flex; align-items: center; gap: 8px; font-weight: var(--fw-bold); }
.sheet-header-title svg { width: 16px; height: 16px; }
.btn-close-sheet { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.loading-more { display: none; }
.end-of-list { text-align: center; color: var(--muted); font-size: var(--fs-sm); padding: 20px; display: none; }
@media (max-width: 700px) {
  .sidebar { display: none; }
  .btn-filter-trigger { display: flex; }
}
@media (min-width: 701px) { .overlay, .bottom-sheet { display: none !important; } }

/* ══ WIDGET FAVORI (format Bomakey + collections) ══ */
.favorite-widget { display: inline-block; position: relative; }
.favorite-btn { background: rgba(255, 255, 255, 0.92); border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.favorite-widget.plain .favorite-btn { background: none; width: auto; height: auto; padding: 4px; }
.bookmark-icon { width: 18px; height: 18px; color: #b9bcc4; transition: color var(--dur) ease, fill var(--dur) ease, transform 0.1s ease; }
.favorite-widget.plain .bookmark-icon { width: 24px; height: 24px; }
.favorite-btn.active .bookmark-icon { color: var(--favorite) !important; fill: var(--favorite) !important; }
.favorite-btn:active .bookmark-icon { transform: scale(1.15); }
.fav-pop { position: absolute; top: calc(100% + 6px); right: 0; width: 230px; background: var(--white); border: var(--border-line); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: 12px; z-index: var(--z-modal); text-align: left; cursor: default; }
.fav-pop[hidden] { display: none; }
.fav-pop-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.fav-pop-close { background: none; border: none; cursor: pointer; color: var(--muted); }
.fav-coll { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 8px; border: none; background: none; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text); cursor: pointer; text-align: left; }
.fav-coll:hover { background: var(--bg); }
.fav-coll.current { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.fav-coll .n { color: var(--muted); font-size: var(--fs-xs); }
.fav-new { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: var(--border-line); }
.fav-new input { flex: 1; min-width: 0; padding: 6px 8px; border: var(--border-line-strong); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.fav-new button { border: none; background: var(--dominant); color: var(--on-dominant); border-radius: var(--radius-sm); padding: 0 10px; font-size: var(--fs-sm); cursor: pointer; }
.fav-remove { margin-top: 8px; width: 100%; border: none; background: none; color: var(--danger); font-size: var(--fs-xs); cursor: pointer; text-decoration: underline; }

/* ══ WIDGET NOTE PAR ETOILES (format Bomakey) ══ */
.star-rating-widget { display: inline-flex; align-items: center; gap: 6px; }
.stars-container { display: flex; cursor: pointer; }
.star-icon { font-size: 22px; color: #ccc; transition: color var(--dur) ease; user-select: none; background: none; border: none; padding: 0 1px; line-height: 1; cursor: pointer; }
.star-icon.active, .star-icon.hover { color: var(--star) !important; }
.rating-info { font-size: 14px; color: var(--muted); }
.stars { color: var(--star); font-size: 0.8rem; letter-spacing: 1px; }
.stars .off { color: var(--border); }

/* ══ FICHE PRODUIT ══ */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; }  .product-layout > * { min-width: 0; } }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--skeleton); border: var(--border-line); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.gallery-main .favorite-widget { position: absolute; top: 12px; right: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--skeleton); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box .price { font-size: 1.7rem; font-weight: 800; }
.price-old { font-size: 0.9rem; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-xs); font-size: 0.72rem; font-weight: var(--fw-bold); background: var(--price); color: #fff; }
.meta-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-tags span { padding: 3px 10px; border-radius: 20px; background: var(--bg); font-size: 0.75rem; color: var(--muted); font-weight: var(--fw-medium); }
.variant-picker { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.variant-picker label { cursor: pointer; }
.variant-picker input { position: absolute; opacity: 0; }
.variant-picker span { display: inline-block; padding: 8px 14px; border: var(--border-line-strong); border-radius: var(--radius-sm); font-size: 0.88rem; }
.variant-picker input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.variant-picker input:disabled + span { opacity: 0.45; text-decoration: line-through; }
.variant-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qty { width: 90px; }
.seller-box { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.review { padding: 12px 0; border-bottom: var(--border-line); }
.review:last-child { border-bottom: 0; }

/* ══ PANIER / COMMANDES ══ */
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: var(--border-line); }
.line:last-child { border-bottom: 0; }
.line img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--skeleton); }
.totals { width: 100%; font-size: 0.92rem; border-collapse: collapse; }
.totals td { padding: 4px 0; }
.totals td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.totals .grand td { font-weight: var(--fw-bold); font-size: 1.05rem; border-top: var(--border-line); padding-top: 10px; }
.summary-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.summary-layout > .panel, .summary-layout > aside { margin-top: 0; }
@media (max-width: 860px) { .summary-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: calc(var(--nav-h) + 16px); }
.status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; background: var(--bg); color: var(--muted); }
.status-PENDING, .status-AWAITING_PAYMENT, .status-PROOF_SUBMITTED { background: var(--warning-soft); color: var(--warning); }
.status-CONFIRMED, .status-SHIPPED { background: var(--info-soft); color: var(--info); }
.status-DELIVERED, .status-COMPLETED, .status-PAID, .status-APPROVED { background: var(--ok-soft); color: var(--ok); }
.status-CANCELLED, .status-REJECTED { background: var(--danger-soft); color: var(--danger); }
.steps { display: flex; list-style: none; gap: 4px; margin: 12px 0; }
.steps li { flex: 1; text-align: center; font-size: 0.72rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--border); }
.steps li.done { border-color: var(--ok); color: var(--text); }
.steps li.current { border-color: var(--accent); color: var(--text); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.78rem; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: var(--border-line); }
.table td { padding: 10px 8px; border-bottom: var(--border-line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.pay-account { border: var(--border-line-strong); border-radius: var(--radius-card); padding: 14px; }
.pay-account + .pay-account { margin-top: 10px; }
.pay-number { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.5px; font-variant-numeric: tabular-nums; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.big-ref { font-family: ui-monospace, Consolas, monospace; font-weight: var(--fw-bold); background: var(--accent-soft); color: var(--accent-ink); padding: 2px 8px; border-radius: var(--radius-xs); }

/* ══ ESPACE VENDEUR ══ */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--white); border: var(--border-line); border-radius: var(--radius); padding: 14px 16px; }
.kpi strong { display: block; font-size: 1.5rem; letter-spacing: -0.5px; }
.kpi span { font-size: 0.8rem; color: var(--muted); }
.variant-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 0.8fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: var(--border-line); }
@media (max-width: 640px) { .variant-row { grid-template-columns: 1fr 1fr; } }
.variant-row .field { margin: 0; }
.variant-row .field .help, .variant-row .field label .muted { display: none; }
.img-edit { display: flex; gap: 10px; flex-wrap: wrap; }
.img-edit label { width: 88px; font-size: 0.75rem; text-align: center; }
.img-edit img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 4px; }

/* ══ MESSAGERIE ══ */
.inbox { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 60vh; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } .inbox.has-active .thread-list-panel { display: none; } }
.thread-list { list-style: none; }
.thread-list a { display: block; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; }
.thread-list a[aria-current="page"], .thread-list a:hover { background: var(--bg); }
.bubbles { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 14px; background: var(--bg); font-size: 0.9rem; }
.bubble.mine { align-self: flex-end; background: var(--dominant); color: var(--on-dominant); }
.bubble time { display: block; font-size: var(--fs-xs); opacity: 0.6; margin-top: 2px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .btn { margin-top: 14px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }

/* ══ NAVIGATION BASSE (Bomakey) ══ */
.bottom-nav { position: fixed; z-index: 150; background: var(--white); border: var(--border-line); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1); display: flex; }
.bottom-nav a { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-size: 0.72rem; font-weight: var(--fw-medium); position: relative; }
.bottom-nav a[aria-current="page"] { color: var(--accent-ink); }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav .sell .icon-box { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px var(--accent-shadow); }
.bottom-nav .sell svg { stroke: var(--on-accent); width: 20px; height: 20px; }
@media (max-width: 767px) {
  .bottom-nav { left: 0; right: 0; bottom: 0; height: 64px; justify-content: space-around; align-items: center; border-width: 1px 0 0; }
  .bottom-nav a { flex-direction: column; gap: 2px; flex: 1; height: 100%; }
  .hide-mobile { display: none !important; }
}
/* Grand ecran : Vendre et Messages passent dans l'en-tete, pas de barre flottante
   (elle recouvrait la barre de filtres). */
@media (min-width: 768px) {
  body { padding-bottom: 24px; }
  .bottom-nav { display: none; }
}
@media (max-width: 767px) { .desktop-only { display: none !important; } }

/* ══ MOBILE (maquette) ══ */
@media (max-width: 700px) {
  .topbar { gap: 10px; }
  .search { height: 36px; }
  .search button { padding: 0 12px; }
  .search button .search-label, .top-btn .top-label { display: none; }
  .top-btn { padding: 6px; }
  .cart-count { left: 16px; }
  .page.home { padding: 12px 0 32px; }
  .home .category-section { border-radius: 0; border-left: none; border-right: none; padding: 0 12px 12px; margin-bottom: 10px; }
  .home .category-head { border-radius: 0; gap: 8px; }
  .cat-name { font-size: 0.92rem; }
  .cat-count, .cat-arrows { display: none; }
  .cat-timer { font-size: 0; }
  .cat-timer b { font-size: 0.74rem; margin-left: 0; }
  .cards-container { gap: 8px; margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; scroll-padding: 0 12px; cursor: auto; }
  .p-card { padding: 0; }
  .p-grid .p-card { padding: 6px; }
  .p-card:hover { box-shadow: none; }
  .p-price { font-size: 0.92rem; }
  .p-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-img img, .p-add, .p-card, .bottom-sheet { transition: none; }
  .cart-count.bump { animation: none; }
}

/* Widget catalogue (copie Bomakey) : pleine largeur dans nos colonnes */
html body .eq-widget.wrap { max-width: none; }  /* plus specifique que le style integre du widget */
.cart-count[hidden] { display: none; }


/* ══ BANNIERES PUBLICITAIRES ══
   1cqw = 1 % de la largeur de la banniere : tailles calculees sur la maquette
   (970 px ou 728 px de large), donc memes proportions sur tous les ecrans. */
.ad-slot { container-type: inline-size; margin: 0 auto 18px; max-width: 970px; }
.ad { position: relative; display: flex; align-items: stretch; overflow: hidden; text-decoration: none;
      background: var(--ad-bg); color: var(--ad-fg); border-radius: 1.2cqw; font-family: var(--font); }
.ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-media { flex: none; background: var(--skeleton); }
.ad-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ad-eyebrow { text-transform: uppercase; font-weight: 700; color: color-mix(in srgb, var(--ad-btn) 55%, var(--ad-fg)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-title { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.ad-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-weight: 700;
          background: var(--ad-btn); color: var(--ad-btn-fg); white-space: nowrap; }
.ad:hover .ad-btn { filter: brightness(1.1); }
.ad-label { position: absolute; background: rgba(0, 0, 0, .75); color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ad:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Grand format 970 x 250 : texte a gauche, photo a droite (valeur px / 9.7 = cqw) */
.ad-billboard { aspect-ratio: 970 / 250; }
.ad-billboard .ad-text { flex: 1; padding: 0 4.5cqw; gap: 1.2cqw; }
.ad-billboard .ad-eyebrow { font-size: 1.25cqw; letter-spacing: .16em; }
.ad-billboard .ad-title { font-size: 3.9cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-billboard .ad-desc { font-size: 1.65cqw; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-billboard .ad-actions { display: flex; align-items: center; gap: 2cqw; margin-top: .8cqw; }
.ad-billboard .ad-btn { height: 4.5cqw; padding: 0 2.3cqw; border-radius: 2.3cqw; font-size: 1.55cqw; }
.ad-billboard .ad-note { font-size: 1.35cqw; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-billboard .ad-media { width: 41.2cqw; }
.ad-billboard .ad-label { top: 1.6cqw; right: 1.2cqw; font-size: 1.05cqw; padding: .35cqw .8cqw; border-radius: .5cqw; }

/* Bandeau 728 x 90 : photo, titre, bouton (valeur px / 7.28 = cqw) */
.ad-leaderboard { aspect-ratio: 728 / 90; align-items: center; }
.ad-leaderboard .ad-media { width: 20.6cqw; align-self: stretch; }
.ad-leaderboard .ad-text { flex: 1; padding: 0 3cqw; gap: .5cqw; }
.ad-leaderboard .ad-eyebrow { font-size: 1.4cqw; letter-spacing: .14em; }
.ad-leaderboard .ad-title { font-size: 2.75cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-leaderboard .ad-btn { height: 6cqw; padding: 0 2.8cqw; border-radius: 3cqw; font-size: 1.9cqw; margin-right: 2.8cqw; }
.ad-leaderboard .ad-label { top: 1cqw; left: 1cqw; right: auto; font-size: 1.2cqw; padding: .3cqw .7cqw; border-radius: .5cqw; }

/* Image seule 970 x 250 : le visuel de l'annonceur occupe tout */
.ad-image { aspect-ratio: 970 / 250; }
.ad-image .ad-label { top: 1.6cqw; right: 1.2cqw; font-size: 1.05cqw; padding: .35cqw .8cqw; border-radius: .5cqw; }



/* Inscription / connexion : Google en premier */
.auth h1 { margin-bottom: 4px; }
.auth > .muted { margin-bottom: 18px; }
.btn-google { height: 50px; background: var(--white); color: var(--text); border-color: var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 1rem; gap: 10px; }
.btn-google:hover { opacity: 1; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.btn-google svg { width: 20px; height: 20px; }
.btn-facebook { height: 50px; gap: 10px; background: #1877F2; border-color: #1877F2; color: #fff; font-size: 1rem; }
.btn-facebook svg { width: 20px; height: 20px; }
.auth-hint { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin: 8px 0 0; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--muted); font-size: var(--fs-sm); }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { margin-top: 16px; text-align: center; }



.pw-wrap{position:relative;display:block}
.pw-wrap input{width:100%;padding-right:48px}
.pw-eye{position:absolute;top:50%;right:4px;transform:translateY(-50%);width:40px;height:40px;
  display:grid;place-items:center;border:0;border-radius:50%;background:none;
  color:#5B5050;font-size:1.2rem;cursor:pointer}
.pw-eye:hover,.pw-eye:focus-visible{color:#B815BB;background:#F6E4F6}
input::-ms-reveal{display:none}   /* évite un 2e œil dans Edge */
