/* Boutique de libation : vitrine épurée (grandes cartes produit, tri, panier latéral). Chargé après theme.css, uniquement par boutique.html. */

.shop-front { padding-block: 28px 56px; }
html.no-scroll, body.no-scroll { overflow: hidden; } /* la page racine masque déjà son débordement horizontal : il faut verrouiller les deux */

/* ---------- Garanties ---------- */
.shop-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 24px; padding: 0 0 20px; list-style: none; border-bottom: 1px solid var(--line); }
.shop-trust li { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: .9375rem; font-weight: 500; }
.shop-trust svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--forest-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Abonnement aux alertes (boutique fermée ou produits à venir) ---------- */
.shop-alert { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 24px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, #fff9e8, #f8edd2); border: 1px solid rgba(231, 178, 74, .6); scroll-margin-top: 90px; }
.shop-alert[hidden] { display: none; }
.shop-alert-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--forest); color: var(--gold); }
.shop-alert-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-alert-body { flex: 1; min-width: 0; }
.shop-alert h2 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; letter-spacing: -.005em; }
.shop-alert p.small { margin: 0 0 14px; }
.alert-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.alert-row input { flex: 1 1 220px; min-width: 0; border-radius: 999px; background: #fff; }
.alert-row .btn { flex: 0 0 auto; }
.shop-alert .check { margin-bottom: 4px; font-size: .875rem; }
.shop-alert .status { min-height: 0; margin-top: 8px; font-size: .9375rem; }
@media (max-width: 520px) { .shop-alert { flex-direction: column; gap: 12px; padding: 16px; } }
.pc-notify { justify-self: start; font-size: .875rem; font-weight: 600; }

/* ---------- Recherche, catégories, tri ---------- */
.shop-bar { display: grid; gap: 14px; margin-bottom: 22px; }
.shop-search { position: relative; }
.shop-search svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.shop-search input { padding-inline-start: 46px; border-radius: 999px; background: #fff; }
.shop-bar .filters { margin-inline: 0; padding-inline: 0; }
.shop-sort { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shop-count { margin: 0; color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.shop-sort select { width: auto; min-width: 190px; min-height: 44px; border-radius: 999px; padding-inline: 18px 42px; font-weight: 600; font-size: .9375rem; }
@media (min-width: 900px) {
  .shop-bar { grid-template-columns: minmax(240px, 1fr) auto; align-items: center; }
  .shop-bar .filters { grid-column: 1 / -1; grid-row: 2; }
  .shop-sort { grid-row: 1; grid-column: 2; }
}

/* ---------- Grille et cartes ---------- */
.shop-front .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .shop-front .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .shop-front .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .shop-front .shop-grid { gap: 10px; } }
.shop-front .product { gap: 0; padding: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: #fff; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.shop-front .product:hover { box-shadow: 0 14px 34px rgba(11, 31, 24, .12); transform: translateY(-3px); border-color: var(--line-2); }
.pc-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: linear-gradient(160deg, #f8f1e1, #efe3c6); }
.pc-media[data-cat="huile"] { background: linear-gradient(160deg, #f6ecd2, #ead7a4); }
.pc-media[data-cat="encens"] { background: linear-gradient(160deg, #f1ece4, #ded3c4); }
.pc-media[data-cat="parcours"] { background: linear-gradient(160deg, #e3efe6, #c9dfd0); }
.pc-media svg { width: 62%; height: 62%; filter: drop-shadow(0 8px 10px rgba(11, 31, 24, .12)); transition: transform .3s ease; }
.shop-front .product:hover .pc-media svg { transform: scale(1.05); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-kind { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--forest); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pc-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 14px 16px; }
@media (min-width: 720px) { .pc-body { padding: 16px 18px 18px; } }
.pc-title { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.pc-ref { margin: 0; color: var(--gold-deep); font-size: .8125rem; font-weight: 600; }
.pc-desc { margin: 2px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-more { margin-top: 2px; }
.pc-more summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--forest-2); }
.pc-more ul { margin: 0 0 4px; padding-inline-start: 18px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.pc-sizes { margin-top: 6px; }
.pc-sizes legend { padding: 0; margin-bottom: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pc-sizes { border: 0; min-width: 0; padding: 0; }
.pc-size-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-size { min-width: 42px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 600 .875rem/1 var(--font-body); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.pc-size:hover { border-color: var(--forest); }
.pc-size[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.pc-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 12px; }
.shop-front .price { font-family: var(--font-body); font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; }
.shop-front .price small { font-size: .75rem; }
.pc-add { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: .9375rem; }
.shop-front .soon { justify-self: start; }

/* ---------- Panier latéral ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(11, 31, 24, .55); opacity: 0; transition: opacity .25s ease; }
.drawer-overlay[hidden] { display: none; }
.drawer-overlay.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 95; width: 440px; max-width: 100%; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 44px rgba(11, 31, 24, .25);
  visibility: hidden; transform: translateX(100%); transition: transform .28s ease, visibility 0s linear .28s;
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); box-shadow: 18px 0 44px rgba(11, 31, 24, .25); }
.cart-drawer.is-open { visibility: visible; transform: none; transition: transform .28s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef3ee; color: var(--ink); cursor: pointer; }
.drawer-close:hover { background: #e1eae2; }
.drawer-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fbfdfb; }
.drawer-foot .field { margin-bottom: 12px; }
.drawer-foot .check { margin-bottom: 12px; font-size: .875rem; }
.drawer-foot .status { margin-top: 8px; min-height: 0; font-size: .9375rem; }
.drawer-empty { display: grid; justify-items: center; gap: 12px; padding: 48px 12px; text-align: center; color: var(--ink-2); }
.drawer-empty svg { width: 64px; height: 64px; fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.drawer-empty strong { color: var(--ink); font-size: 1.125rem; }
.drawer-empty[hidden], .drawer-body [hidden], .drawer-foot[hidden] { display: none; }
.cart-drawer .cart-lines { margin-bottom: 16px; }
.cart-drawer .cart-line:first-child { padding-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .drawer-overlay, .shop-front .product, .pc-media svg { transition: none; }
}

/* Écran bas (téléphone à l'horizontale, petite fenêtre) : tout le panier défile d'un bloc, l'en-tête reste visible */
@media (max-height: 700px) {
  .cart-drawer { overflow-y: auto; overscroll-behavior: contain; }
  .drawer-head { position: sticky; inset-block-start: 0; z-index: 2; background: #fff; }
  .drawer-body { flex: none; overflow: visible; }
}
