.shop-hero h1 { max-width: 850px; }
.shop-hero .lead { max-width: 55ch; }
.shop-section { padding-top: 48px; }
.shop-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-bottom: 28px; }
.shop-heading h2 { margin: 0; }
.shop-heading > span { font-size: .8rem; color: var(--texte-doux); }
.shop-empty { padding: clamp(28px, 6vw, 64px); border: 1px solid var(--ligne); background: #f5f8fb; max-width: 900px; }
.shop-empty__number { display: block; color: #74899c; font: 500 .72rem var(--font-corps); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 20px; }
.shop-empty h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.shop-empty p { max-width: 58ch; color: var(--texte-doux); }
.shop-empty a { font-size: .9rem; text-underline-offset: 4px; }
.shop-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 260px)); justify-content: start; gap: 24px 20px; }
.shop-product { min-width: 0; display: flex; flex-direction: column; align-items: start; border-bottom: 1px solid var(--ligne); padding-bottom: 18px; }
.shop-product__image { width: 100%; height: 185px; object-fit: contain; background: #f5f6f8; margin-bottom: 12px; }
.shop-product__placeholder { width: 100%; height: 185px; display: grid; place-items: center; background: #f5f6f8; color: var(--bleu-logo); font: 500 .8rem var(--font-corps); margin-bottom: 18px; }
.shop-product h3 { font-size: 1.1rem; line-height: 1.25; margin-bottom: 8px; }
.shop-product p { color: var(--texte-doux); font-size: .8rem; line-height: 1.5; margin-bottom: 10px; }
.shop-product__price { color: var(--bleu-logo); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.shop-product .btn { margin-top: auto; padding: .85em 1.1em; font-size: .8rem; min-height: 42px; line-height: 1.3; }
.shop-order-section[hidden], .shop-empty[hidden] { display: none; }
.shop-order-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 32px; }
.shop-form { min-width: 0; }
.shop-form fieldset { min-width: 0; border: 0; border-bottom: 1px solid var(--ligne); padding: 0 0 28px; margin: 0 0 28px; }
.shop-form legend { font-family: var(--font-titre); font-weight: 600; font-size: 1.25rem; color: var(--bleu-logo); margin-bottom: 20px; }
.shop-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shop-selected-name { font-weight: 600; }
.shop-form .field { margin-bottom: 18px; }
.shop-summary { position: sticky; top: calc(var(--header-h) + 24px); background: #ffffff; border: 1px solid var(--ligne); padding: 28px; }
.shop-summary h3 { font-size: 1.3rem; }
.shop-summary dl { display: grid; gap: 14px; margin: 24px 0; }
.shop-summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; font-size: .85rem; }
.shop-summary dt { color: var(--texte-doux); }
.shop-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.shop-summary__total { border-top: 1px solid var(--ligne); padding-top: 18px; font-weight: 600; }
.shop-summary > p { font-size: .75rem; color: var(--texte-doux); margin: 0; }
.shop-status { margin: 16px 0 0; font-size: .9rem; color: var(--bleu-logo); }
.shop-status.is-error { color: #a0231c; }
.shop-availability { font-size: .85rem; color: var(--texte-doux); }
.shop-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.shop-steps li { border-top: 1px solid var(--ligne); padding-top: 20px; }
.shop-steps span { display: block; color: var(--accent-texte); font-size: .75rem; margin-bottom: 16px; }
.shop-steps h3 { font-size: 1.15rem; }
.shop-steps p { font-size: .9rem; color: var(--texte-doux); margin: 0; }
.shop-form .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media (max-width: 850px) { .shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } .shop-order-layout { grid-template-columns: minmax(0, 1fr); } .shop-summary { position: static; grid-row: 1; } }
@media (max-width: 560px) { .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .shop-steps { grid-template-columns: minmax(0, 1fr); } .shop-heading h2 { font-size: 1.8rem; } .shop-fields { grid-template-columns: minmax(0, 1fr); gap: 0; } .shop-summary { padding: 22px; } .shop-form > .btn { width: 100%; } }

.shop-demo { padding: 14px 18px; margin-bottom: 28px; border-left: 3px solid var(--bleu-logo); background: #edf4fa; color: var(--bleu-logo); font-size: .85rem; line-height: 1.6; }
.shop-demo[hidden], .shop-example-contact[hidden] { display: none; }
.shop-example-contact { padding: 8px 0; background: none; border: 0; color: var(--bleu-logo); font: 500 .85rem var(--font-corps); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

@media (max-width: 560px) {
  .shop-product__image, .shop-product__placeholder { height: clamp(120px, 34vw, 170px); }
  .shop-product h3 { font-size: .95rem; }
  .shop-product p { font-size: .75rem; }
  .shop-product__price { font-size: .85rem; }
  .shop-product .btn { width: 100%; min-height: 44px; padding: .75em .6em; font-size: .75rem; }
}

/* Parcours de commande en panneau latéral, une étape à la fois. */
body.shop-checkout-open { overflow: hidden; }
.shop-checkout { box-sizing: border-box; position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #ffffff; color: var(--texte); overflow: hidden; }
.shop-checkout[open] { display: flex; flex-direction: column; }
.shop-checkout::backdrop { background: rgba(2,18,32,.62); }
.shop-checkout__header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--ligne); flex: none; }
.shop-checkout__header h2 { flex: 1; margin: 0; text-transform: none; font-size: 1.35rem; }
.shop-checkout__header button { min-height: 40px; padding: 8px; border: 0; background: none; color: var(--bleu-logo); font: 500 .8rem var(--font-corps); cursor: pointer; }
.shop-checkout__header button[hidden] { display: none; }
.shop-checkout__progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--ligne); flex: none; }
.shop-checkout__progress li { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #697581; padding-bottom: 8px; border-bottom: 2px solid transparent; }
.shop-checkout__progress li[aria-current="step"] { color: var(--bleu-logo); font-weight: 600; border-color: var(--bleu-logo); }
.shop-checkout .shop-form { display: flex; flex-direction: column; overflow-y: auto; flex: 1; min-height: 0; gap: 0; }
.shop-checkout .shop-form fieldset { flex: 1; margin: 0; padding: 24px; border: 0; }
.shop-checkout .shop-form fieldset[hidden] { display: none; }
.shop-checkout .shop-form legend { padding-top: 24px; font-size: 1.15rem; margin-bottom: 18px; }
.shop-checkout .shop-summary { position: static; margin-top: 24px; padding: 22px; background: #f5f8fb; }
.shop-checkout .shop-summary h3 { font-size: 1.1rem; }
.shop-checkout__footer { position: sticky; bottom: 0; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid var(--ligne); flex: none; }
.shop-checkout__footer > .btn { width: 100%; }
.shop-checkout__footer > .btn[hidden] { display: none; }
.shop-checkout__footer .shop-availability { font-size: .72rem; margin: 0 0 12px; }
.shop-checkout__footer .shop-status { font-size: .78rem; line-height: 1.5; }
.shop-checkout__footer .shop-status:empty { margin: 0; }
.shop-pickup { font-size: .85rem; color: var(--texte-doux); }
@media (max-width: 560px) { .shop-checkout__header, .shop-checkout__progress { padding-inline: 18px; } .shop-checkout .shop-form fieldset { padding: 18px; } .shop-checkout__footer { padding-inline: 18px; } }

.shop-product-gallery { width: 100%; margin-bottom: 14px; }
.shop-product-gallery .shop-product__image { margin-bottom: 0; }
.shop-product-gallery__controls { display: flex; gap: 6px; margin-top: 8px; }
.shop-product-gallery__controls button { flex: 1; min-height: 36px; padding: 6px 10px; font: 500 .75rem var(--font-corps); background: #ffffff; color: var(--bleu-logo); border: 1px solid var(--ligne); border-radius: 2px; cursor: pointer; }
.shop-product-gallery__controls button[aria-pressed="true"] { background: var(--bleu-logo); border-color: var(--bleu-logo); color: #ffffff; }
.shop-product-gallery--detail .shop-product__image { height: 230px; }
@media (max-width: 560px) { .shop-product-gallery__controls button { min-height: 40px; padding-inline: 6px; font-size: .7rem; } .shop-product-gallery--detail .shop-product__image { height: 200px; } }

.shop-product-gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: #f5f6f8; cursor: zoom-in; }
body.shop-photo-open { overflow: hidden; }
.shop-photo-dialog { box-sizing: border-box; width: min(900px, calc(100vw - 24px)); max-width: 100%; max-height: calc(100dvh - 24px); padding: 18px; margin: auto; border: 0; border-radius: 4px; background: #ffffff; overflow-y: auto; }
.shop-photo-dialog::backdrop { background: rgba(2,18,32,.85); }
.shop-photo-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.shop-photo-dialog__header h2 { margin: 0; font-size: 1.05rem; text-transform: none; }
.shop-photo-dialog__header button { flex: none; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ligne); background: #ffffff; color: var(--bleu-logo); font: 500 .8rem var(--font-corps); cursor: pointer; }
#shop-photo-large { display: block; width: 100%; height: max(180px, calc(100dvh - 225px)); object-fit: contain; background: #f5f6f8; }
#shop-photo-caption { text-align: center; font-size: .8rem; color: var(--texte-doux); margin: 10px 0 0; }
#shop-photo-views { max-width: 360px; margin: 14px auto 0; }
#shop-photo-views[hidden] { display: none; }

.shop-collection { margin-bottom: clamp(32px, 5vw, 64px); }

@media (min-width: 1100px) {
  .shop-collection .shop-products {
    max-width: 1080px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .shop-collection .shop-product__image,
  .shop-collection .shop-product__placeholder {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Réservation : plusieurs tailles ou coloris dans une même demande */
.shop-reservation-add { margin-top: 14px; }
.shop-reservation-line { border: 1px solid var(--ligne); border-radius: 8px; padding: 14px 16px 6px; margin-top: 14px; background: #fff; }
.shop-reservation-line__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--bleu-logo); }
.shop-reservation-remove { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .9rem; color: var(--bleu-logo); text-decoration: underline; cursor: pointer; }
.shop-reservation-line__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.shop-reservation-line__field { margin-bottom: 12px; min-width: 0; }
.shop-reservation-line__field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.shop-reservation-line__field select, .shop-reservation-line__field input { width: 100%; }
