/* Boutique : mêmes couleurs ORT, mise en page indépendante du paiement futur. */
.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: .3rem;
  border-radius: 1rem;
  background: #fff;
  color: var(--blue-deep);
  font-size: .75rem;
}
.nav-cart { white-space: nowrap; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.shop-section { background: #f8fafc; }
.shop-hero__details { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; font-size: .85rem; color: #ceeafa; }
.shop-hero__details span::before { content: "✓"; margin-right: .5rem; color: var(--cyan); }
.shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.shop-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.shop-heading h2 small { display: inline-block; font-size: .9rem; border: 1px solid #c8dbe7; border-radius: 2rem; padding: .3rem .65rem; vertical-align: middle; }
.shop-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.shop-notice { padding: 1.2rem 1.5rem; border: 1px solid #d5e5ef; border-left: 3px solid var(--blue); border-radius: .8rem; background: #f0f7fb; color: #35556b; font-size: .95rem; margin-block: 1.5rem; line-height: 1.6; }
.shop-notice p { margin: .5rem 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; margin-top: 2.5rem; }
.product-card { position: relative; isolation: isolate; min-width: 0; border: 1px solid #e1e8ee; background: white; border-radius: 1.4rem; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.product-card::after { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 75% 0%, rgb(18 185 229 / .16), transparent 38%); content: ""; opacity: 0; transition: opacity .25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .product-card:hover { border-color: #9bcce3; transform: translateY(-6px); box-shadow: 0 20px 48px #10365820; }
  .product-card:hover::after { opacity: 1; }
  .product-card:hover .product-card__visual > img { transform: scale(1.045); }
}
.product-card__visual { position: relative; display: block; aspect-ratio: 1.2; background: #eaf2f8; overflow: hidden; }
.product-card__visual > img, .product-detail__visual > img, .cart-line__image > img, .editor-photo > img { width: 100%; height: 100%; object-fit: contain; }
.product-card__visual > img { transition: transform .45s cubic-bezier(.2, .75, .25, 1), opacity .25s ease; }
.product-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .75rem; background: radial-gradient(ellipse at 70% 20%, #fff 0, #e5f2f9 55%, #ccdfed 100%); color: var(--blue-deep); }
.product-placeholder img { width: 30%; max-width: 120px; height: auto; }
.product-placeholder span { font-weight: 750; letter-spacing: -.02em; font-size: 1.2rem; }
.product-placeholder small { font-size: .75rem; color: #526b7a; }
.product-label { position: absolute; top: 1rem; left: 1rem; padding: .4rem .8rem; border-radius: 2rem; background: white; color: var(--blue-deep); font-size: .8rem; font-weight: 650; }
.product-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-card__body .eyebrow { font-size: .7rem; margin-bottom: .7rem; }
.product-card h3 { font-size: 1.25rem; line-height: 1.35; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.product-excerpt { color: #657684; font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 1.3rem; }
.product-card__price { margin-top: auto; margin-bottom: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.product-card__price strong { font-size: 1.45rem; color: var(--blue-deep); }
.stock-label { font-size: .8rem; color: #286647; }
.stock-label--empty { color: #866136; }
.product-card .button { width: 100%; }
.shop-back { display: inline-block; margin-bottom: 2rem; }
.shop-detail-section { padding-top: calc(var(--header-height) + 3rem); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.product-detail__visual { aspect-ratio: 1; border-radius: 1.5rem; overflow: hidden; background: #edf4f8; }
.product-detail__body { padding-block: 1.5rem; }
.product-detail h1 { font-size: clamp(2rem, 3vw, 3.5rem); line-height: 1.15; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.product-detail__price { font-size: 2.2rem; font-weight: 750; color: var(--blue-deep); margin-block: .8rem; }
.shop-description { margin-block: 2rem; white-space: pre-line; overflow-wrap: anywhere; color: #536777; }
.shop-buy { display: flex; align-items: end; gap: 1rem; margin-block: 2rem; }
.shop-buy label { width: 6rem; flex-shrink: 0; }
.shop-buy .button { flex: 1; }
.shop-muted { font-size: .88rem; color: #617486; line-height: 1.6; }
.shop-error { color: #96332e; font-weight: 600; font-size: .9rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: 2.5rem; }
.cart-line { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 1.5rem; border-bottom: 1px solid #dce5ed; padding-block: 1.7rem; }
.cart-line:first-child { padding-top: 0; }
.cart-line__image { aspect-ratio: 1; border-radius: .9rem; overflow: hidden; background: #eaf2f8; }
.cart-line__image .product-placeholder span, .cart-line__image .product-placeholder small { display: none; }
.cart-line__image .product-placeholder img { width: 55%; }
.cart-line__body h2 { font-size: 1.1rem; margin: 0 0 .4rem; overflow-wrap: anywhere; }
.cart-line__body p { margin: .4rem 0; font-size: .9rem; }
.cart-line__total { white-space: nowrap; }
.quantity-form { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.quantity-form label { width: 4.7rem; }
.quantity-form .button { padding: .65rem .8rem; font-size: .85rem; }
.shop-remove { display: inline-block; border: 0; padding: .4rem 0; font: inherit; font-size: .85rem; background: none; color: #576f80; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.shop-summary, .shop-panel { padding: clamp(1.3rem, 2.5vw, 2.5rem); background: white; border: 1px solid #dce5ed; border-radius: 1.3rem; min-width: 0; }
.shop-summary h2 { margin-top: 0; font-size: 1.5rem; }
.shop-summary dl { margin-block: 2rem; }
.shop-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; margin-block: .9rem; font-size: .95rem; }
.shop-summary dd { margin: 0; white-space: nowrap; }
.shop-summary .summary-total { border-top: 1px solid #dce5ed; padding-top: 1.2rem; margin-top: 1.5rem; font-size: 1.3rem; font-weight: 750; }
.shop-summary .button { width: 100%; margin-top: .8rem; }
.shop-summary .text-link { display: inline-block; font-size: .9rem; margin-top: 1rem; }
.shop-empty { text-align: center; padding: clamp(2rem, 6vw, 6rem) 1.5rem; border: 1px dashed #c4d7e4; border-radius: 1.5rem; background: white; }
.shop-empty h2 { font-size: 2rem; margin-block: .8rem; }
.shop-empty p { color: #617486; }
.shop-empty .text-link { display: block; margin-top: 1.5rem; }
.checkout-lines { list-style: none; padding: 0; margin: 2rem 0; }
.checkout-lines li { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; border-bottom: 1px solid #e1e9f0; overflow-wrap: anywhere; }
.checkout-lines strong { flex-shrink: 0; }
.checkout-lines small { display: block; color: #617486; }
.order-list { display: grid; gap: 1rem; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #dce5ed; padding: 1.5rem; border-radius: 1rem; background: white; }
.order-row:hover { border-color: var(--blue); }
.order-row small { display: block; color: #617486; margin-top: .3rem; }
.order-status { display: inline-block; border-radius: 2rem; padding: .4rem .9rem; font-size: .8rem; background: #edf2f6; color: #536979; }
.order-status--awaiting_payment { background: #fff4dd; color: #825510; }
.order-status--paid, .order-status--ready, .order-status--collected { background: #e4f4eb; color: #216342; }
.shop-panel > .order-status { margin-bottom: 1rem; }
.shop-editor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.shop-editor .shop-panel { display: grid; gap: 1.5rem; }
.shop-editor .shop-muted { margin: 0; }
.shop-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.shop-editor .shop-checkbox { display: flex; align-items: center; gap: .8rem; }
.shop-checkbox input { width: 1.2rem; height: 1.2rem; }
.editor-photo { aspect-ratio: 1; overflow: hidden; border-radius: .9rem; background: #edf4f8; }
.stock-form { display: flex; gap: .5rem; align-items: center; }
.stock-form label { width: 6.5rem; flex-shrink: 0; }
.stock-form .button { padding: .6rem .7rem; font-size: .8rem; }
.shop-inventory table { min-width: 900px; }
.shop-inventory td:first-child { min-width: 170px; }
.shop-inventory small { display: block; }
.shop-orders-heading { margin-top: 3rem; }
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .shop-summary { max-width: 100%; }
  .product-detail, .shop-editor { grid-template-columns: 1fr; }
  .product-detail__visual { max-height: 580px; }
  .shop-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card__visual { aspect-ratio: 1.35; }
  .shop-hero__details { gap: .6rem 1rem; font-size: .75rem; }
  .cart-line { grid-template-columns: 70px minmax(0, 1fr); gap: 1rem; }
  .cart-line__total { grid-column: 2; }
  .quantity-form { flex-wrap: wrap; }
  .order-row { align-items: start; flex-direction: column; }
  .shop-form-row { grid-template-columns: 1fr; }
  .shop-buy { flex-wrap: wrap; }
}
 .payment-choice { display:grid; gap:.75rem; margin:1.25rem 0; border:0; padding:0; }
 .payment-choice legend { margin-bottom:.55rem; font-weight:750; color:var(--ink); }
 .payment-choice label { display:flex; gap:.8rem; align-items:flex-start; padding:1rem; border:1px solid var(--line); border-radius:.8rem; cursor:pointer; background:#fff; }
 .payment-choice label:has(input:checked) { border-color:var(--cyan); background:#f1fbfe; box-shadow:0 0 0 3px #12b9e51a; }
 .payment-choice input { margin-top:.28rem; accent-color:var(--blue); }
 .payment-choice span { display:grid; gap:.15rem; }
 .payment-choice small { color:var(--muted); }
