/* Boutique : catalogue + fiche produit (repris des maquettes). */
.plp-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; padding: 36px 0 28px; }
.plp-head h1 { font: 300 clamp(48px, 7vw, 104px)/.9 var(--f-caps); text-transform: uppercase; letter-spacing: .02em; }
.plp-head h1 em { font: italic 400 .42em/1 var(--f-serif); text-transform: none; letter-spacing: 0; color: var(--ink-2); margin-left: .3em; vertical-align: .35em; }
.plp-head p { max-width: 46ch; color: var(--ink-2); }

.univers { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 10px; border: 1px solid var(--line); font: 400 12px/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; background: transparent; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { font: 400 11px/1 var(--f-text); letter-spacing: 0; opacity: .6; }

/* Barre d'outils */
.toolbar { position: sticky; top: var(--hdr); transition: top .35s ease; z-index: 10; background: rgba(245,242,237,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.toolbar-in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.tb-btn { display: inline-flex; align-items: center; gap: 10px; font: 400 12.5px/1 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; }
.tb-btn svg { width: 18px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.tb-btn b { background: var(--peach); font: 600 10px/18px var(--f-text); min-width: 18px; height: 18px; border-radius: 9px; text-align: center; letter-spacing: 0; padding: 0 5px; }
.count { color: var(--ink-2); font-size: 13.5px; margin-right: auto; }
.active { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; padding-bottom: 12px; }
.active:empty { display: none; }
.active .chip { padding: 8px 10px 7px; font-size: 11px; background: var(--paper-2); border-color: transparent; }
.active .chip::after { content: "✕"; font-size: 9px; color: var(--ink-2); }
.active .clear { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); padding: 0 6px; }
select.sort { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231E1C1A' stroke-width='1.2'/%3E%3C/svg%3E") right center/10px no-repeat; border: 0; padding: 8px 22px 8px 0; font: 400 12.5px/1 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.density { display: flex; gap: 6px; }
.density button { width: 26px; height: 26px; display: grid; place-items: center; opacity: .35; }
.density button[aria-pressed="true"] { opacity: 1; }
.density svg { width: 16px; fill: var(--ink); }

/* Mise en page : filtres à gauche */
.plp { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding-top: 32px; padding-bottom: 96px; align-items: start; }
.plp.no-filters { grid-template-columns: 1fr; }
.plp.no-filters .filters { display: none; }
.filters { position: sticky; top: calc(var(--hdr) + 80px); transition: top .35s ease; max-height: calc(100vh - 180px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.filters-head { display: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 18px 0; font: 400 12.5px/1 var(--f-caps); letter-spacing: .26em; text-transform: uppercase; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; font: 300 18px/1 var(--f-text); color: var(--gold); }
.fgroup[open] summary::after { content: "–"; }
.fbody { padding-bottom: 20px; display: grid; gap: 10px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sizes .chip { justify-content: center; padding: 10px 0 9px; font-size: 11.5px; letter-spacing: .12em; }
.sizes .chip:disabled { opacity: .3; cursor: default; text-decoration: line-through; }
.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--ink-2); display: grid; place-items: center; margin: 0; flex: none; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check small { margin-left: auto; color: var(--ink-2); font-size: 12px; }
.check--sub { padding-left: 28px; font-size: 13.5px; }
.fsearch { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 0; font: 400 14px var(--f-text); outline: none; margin-bottom: 4px; }
.fsearch:focus { border-color: var(--ink); }
.brandlist { display: grid; gap: 10px; max-height: 240px; overflow-y: auto; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.price-range input { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 10px 12px; font: 400 14px var(--f-text); color: var(--ink); }
.cond-bar { display: inline-flex; gap: 3px; margin-left: 2px; }
.cond-bar i { width: 12px; height: 3px; background: var(--line); }
.cond-bar i.on { background: var(--gold); }
.data-note { margin-top: 18px; padding: 14px; background: #FFF3B0; color: #5a4a00; font-size: 12.5px; line-height: 1.5; }

/* Grille */
.results .grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.plp.no-filters .results .grid { --cols: 4; }
.card.is-sold .card-img img { opacity: .45; filter: grayscale(.6); }
.card.is-sold .tag { background: var(--ink); color: var(--paper); }
.card-size { color: var(--ink-2); font-size: 12.5px; }
.card-price-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }

.edito { grid-column: span 2; position: relative; background: var(--ink); color: var(--paper); display: grid; align-content: end; gap: 18px; padding: clamp(24px, 3vw, 44px); min-height: 100%; overflow: hidden; }
.edito img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; opacity: .55; }
.edito > * { position: relative; }
.edito .eyebrow { color: #D8CFC3; }
.edito .title { color: var(--paper); }
.edito .title em { color: var(--peach); }

.more { display: grid; justify-items: center; gap: 16px; margin-top: 56px; }
.more p { font-size: 13px; color: var(--ink-2); }
.progress { width: 220px; height: 1px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--ink); }
.more .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.more .btn:hover { background: var(--ink); color: var(--paper); }
.empty { padding: 80px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.empty h3 { font: italic 400 30px/1.2 var(--f-serif); }

.drawer-bg { display: none; }

@media (max-width: 1000px) {
  .plp-head { grid-template-columns: 1fr; padding: 24px 0 20px; }
  .univers { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 20px; scrollbar-width: none; }
  .univers .chip { flex: none; }
  .plp, .plp.no-filters { grid-template-columns: 1fr; padding-top: 20px; gap: 0; }
  .results .grid, .plp.no-filters .results .grid { --cols: var(--mcols, 2); }
  .density { display: none; }
  .edito { grid-column: span 2; min-height: 340px; }
  /* Filtres en tiroir */
  .filters, .plp.no-filters .filters { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); max-height: none; z-index: 60; background: var(--paper); padding: 0 20px 100px; transform: translateX(-100%); transition: transform .3s; }
  .filters.open { transform: none; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; height: 64px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
  .filters-foot { position: fixed; left: 0; bottom: 0; width: min(88vw, 380px); padding: 14px 20px; background: var(--paper); border-top: 1px solid var(--line); }
  .filters-foot .btn { width: 100%; justify-content: center; }
  .drawer-bg { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(30,28,26,.4); opacity: 0; visibility: hidden; transition: .3s; }
  .drawer-bg.open { opacity: 1; visibility: visible; }
}
@media (min-width: 1001px) { .filters-foot { display: none; } }

/* ——— Fiche produit ——— */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: 96px; }

/* Galerie : vignettes verticales + grande image */
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 16px; position: sticky; top: calc(var(--hdr) + 18px); transition: top .35s ease; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumbs button { aspect-ratio: 4/5; background: var(--paper-2); outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.thumbs button[aria-current] { outline-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.stage { position: relative; background: var(--paper-2); aspect-ratio: 4/5; overflow: hidden; cursor: zoom-in; }
.stage-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stage-track::-webkit-scrollbar { display: none; }
.stage-track img { flex: 0 0 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; scroll-snap-align: start; }
.stage .tag { top: 18px; left: 18px; }
.stage-count { position: absolute; right: 18px; bottom: 16px; font: 400 11px/1 var(--f-caps); letter-spacing: .24em; color: var(--ink-2); }

/* Infos */
.info { display: grid; gap: 26px; padding-top: 6px; }
.info-brand { font: 400 12.5px/1 var(--f-caps); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.info h1 { font: 400 clamp(34px, 3.4vw, 48px)/1.05 var(--f-serif); margin-top: 12px; }
.price-row { display: flex; align-items: baseline; gap: 16px; }
.price { font: 300 30px/1 var(--f-caps); letter-spacing: .04em; }
.price-note { font-size: 13px; color: var(--ink-2); }
.unique { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--peach-soft); font-size: 13.5px; line-height: 1.45; }
.unique b { display: block; font: 400 12px/1.4 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; }
.unique svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--ink); fill: none; stroke-width: 1.3; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.spec { padding: 15px 0; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.spec:nth-child(odd) { padding-right: 16px; }
.spec:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.spec dt { font: 400 11px/1 var(--f-caps); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.spec dd { margin: 0; font-size: 15px; }
.spec--missing dd { color: #8a7f00; }
.cond { display: flex; gap: 4px; margin-top: 3px; }
.cond i { width: 22px; height: 3px; background: var(--line); }
.cond i.on { background: var(--gold); }
.size-link { font-size: 12.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.actions .btn { justify-content: center; padding: 20px; font-size: 14px; }
.btn-fav { width: 60px; display: grid; place-items: center; border: 1px solid var(--ink); }
.btn-fav svg { width: 20px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.btn-fav:hover { background: var(--peach-soft); }

.reassure { list-style: none; padding: 0; display: grid; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.reassure li { display: flex; gap: 12px; align-items: center; }
.reassure svg { width: 20px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.3; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font: 400 13px/1 var(--f-caps); letter-spacing: .26em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 22px/1 var(--f-text); color: var(--gold); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 22px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 10px; }
.acc-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.acc-body td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.acc-body td:last-child { text-align: right; color: var(--ink); }
.story { font: italic 400 20px/1.4 var(--f-serif); color: var(--ink); }

.store-note { display: flex; gap: 14px; align-items: center; padding-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.store-note .dot { width: 8px; height: 8px; border-radius: 50%; background: #4E9A6A; box-shadow: 0 0 0 4px rgba(78,154,106,.15); flex: none; }

/* Barre d'achat fixe (téléphone) */
.buybar { display: none; }

@media (max-width: 1000px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .thumbs { display: none; }
  .stage-count { display: block; }
  .specs { grid-template-columns: 1fr 1fr; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 12px var(--gutter); gap: 14px; align-items: center; transform: translateY(100%); transition: transform .25s; }
  .buybar.show { transform: none; }
  .buybar div { flex: 1; min-width: 0; }
  .buybar b { display: block; font: 400 14px/1.2 var(--f-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar span { font: 300 18px/1.2 var(--f-caps); }
  .buybar .btn { padding: 15px 20px; }
  }

/* ——— Spécifique WordPress / WooCommerce ——— */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }
.bag b[hidden] { display: none; }
.store-img { position: relative; background: none; }
.store-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.hero-media > em.todo { position: absolute; inset: auto 24px 24px auto; }

/* Recherche */
.search-panel { border-top: 1px solid var(--line); background: var(--paper); }
.search-panel .wrap { display: flex; gap: 20px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.search-panel input[type=search] { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 12px 0; font: 400 20px var(--f-serif); outline: none; color: var(--ink); }

/* Menu mobile */
.mnav { position: fixed; inset: 0 auto 0 0; width: min(88vw, 400px); z-index: 70; background: var(--paper); padding: 0 24px 40px; overflow-y: auto; box-shadow: 0 0 60px rgba(0,0,0,.18); }
.mnav[hidden] { display: none; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; height: 64px; border-bottom: 1px solid var(--line); }
.mnav-head svg, .mnav-account svg, .filters-head svg { width: 20px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.mnav-list { list-style: none; padding: 0; }
.mnav-list > li { border-bottom: 1px solid var(--line); }
.mnav-list > li > a, .mnav-list summary { display: flex; justify-content: space-between; padding: 20px 0; font: 300 26px/1 var(--f-caps); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; list-style: none; }
.mnav-list summary::-webkit-details-marker { display: none; }
.mnav-list summary::after { content: "+"; font: 300 22px/1 var(--f-text); color: var(--gold); }
.mnav-list details[open] summary::after { content: "–"; }
.mnav-list ul { list-style: none; padding: 0 0 18px; display: grid; gap: 12px; }
.mnav-list ul a, .mnav-list .all { font-size: 15px; color: var(--ink-2); }
.mnav-list .all { display: block; padding-bottom: 12px; color: var(--gold); }
.mnav-account { display: flex; gap: 10px; align-items: center; margin-top: 28px; font: 400 13px/1 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; }
body.mnav-open { overflow: hidden; }
.mega h4 a:hover { color: var(--ink); }

/* Filtres : liens */
.check .box { width: 16px; height: 16px; border: 1px solid var(--ink-2); flex: none; display: grid; place-items: center; }
.check.is-on .box { background: var(--ink); border-color: var(--ink); }
.check.is-on .box::after { content: ""; width: 8px; height: 4px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check:hover { color: var(--ink); }
.sizes a.chip { justify-content: center; }
.price-range .link { font-size: 11.5px; }
.filters-head { font-size: 13px; }
.active a.chip::after { content: "✕"; font-size: 9px; color: var(--ink-2); }
.edito { color: var(--paper); }

/* Prix WooCommerce */
.card-price del, .price del { color: var(--ink-2); font-weight: 400; margin-right: 8px; text-decoration-thickness: 1px; }
.card-price ins, .price ins { text-decoration: none; }
.card-price-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-size { color: var(--ink-2); font-size: 12.5px; }

/* Fiche produit : formulaire WooCommerce */
.actions { display: block; }
.actions form.cart { display: flex; gap: 10px; }
.actions .quantity { display: none; }
.actions .single_add_to_cart_button { flex: 1; display: inline-flex; justify-content: center; align-items: center; padding: 20px; background: var(--ink); color: var(--paper); font: 400 14px/1 var(--f-caps); letter-spacing: .28em; text-transform: uppercase; cursor: pointer; transition: background .25s; }
.actions .single_add_to_cart_button:hover { background: #3a3632; }
.actions .single_add_to_cart_button.loading { opacity: .6; }
.actions .added_to_cart { display: none; }
.info-brand a:hover { color: var(--ink); }
.spec dd a { text-decoration: underline; text-underline-offset: 3px; }
.tag--sold { background: var(--ink); color: var(--paper); }
.unique--sold { background: var(--paper-2); }
.stage-track img { mix-blend-mode: multiply; }
.acc-body a { text-decoration: underline; text-underline-offset: 3px; }

/* Messages WooCommerce */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 20px 0 0; padding: 16px 20px; background: var(--paper-2); border-left: 2px solid var(--gold); font-size: 14.5px; }
.woocommerce-error { border-color: #B3261E; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font: 400 12px/1 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.sizes { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
.sizes a.chip { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.sizes a.chip.is-wide { grid-column: span 2; }
.pdp { margin-top: 24px; }
.spec .cond-bar { margin-left: 10px; vertical-align: middle; }
/* Barre d'administration WordPress (utilisateurs connectés) */
.admin-bar .mnav { top: 32px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mnav { top: 46px; } .admin-bar .site-header { top: 0; } }
