/* on-ce.com/boutique/ (plan boutique phase 1, task 10): catalogue, product sheet, cart drawer, orders, sign-in.
   Loaded after landing.css (tokens, buttons, footer). Patterns of a Shopify theme (Dawn), ON-CE Again identity:
   dark background, amber, Chakra Petch titles. Mobile first; every button >= 44 px. No inline style (CSP). */

.shop { background: var(--dark); }
/* Same bar as the landing's scrolled header (.site-header.is-scrolled + .header-bar): same edges as the footer
   (`max(var(--gutter), (100% - var(--max)) / 2)`), same logo size, same colours. */
.shop-header { position: sticky; top: 0; z-index: 20; background-color: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.shop-bar { display: flex; align-items: center; gap: 16px; padding: 10px max(var(--gutter), calc((100% - var(--max)) / 2)); }
.shop-bar .brand-logo { height: 28px; width: auto; }
.shop-nav { display: flex; align-items: center; gap: 4px 20px; margin-left: auto; font-size: 15px; font-weight: 500; }
.shop-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: none; }
.shop-nav a:hover, .shop-nav a[aria-current="page"] { color: var(--amber); }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--white); cursor: pointer; }
.cart-btn:hover { color: var(--amber); }
.cart-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #000; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
@media (max-width: 720px) {
  .shop-bar { height: 56px; padding: 0 12px 0 20px; gap: 12px; }
  .shop-bar .brand-logo { height: 18px; }
  .shop-nav { gap: 14px; font-size: 14px; }
}

.shop-main { padding: 48px max(var(--gutter), calc((100% - var(--max)) / 2)) 96px; min-height: 60vh; }
.shop-narrow { padding-left: max(var(--gutter), calc((100% - 560px) / 2)); padding-right: max(var(--gutter), calc((100% - 560px) / 2)); }
.shop-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.shop-head .h1 { font-size: clamp(36px, 4.4vw, 64px); overflow-wrap: anywhere; }
.shop-state { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 48px 0; }
.shop-loading { color: var(--text-3); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.back-link::before { content: "←"; margin-right: 8px; }
.back-link:hover { color: var(--amber); }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--amber); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--amber-hover); }
.vat-note { margin: 0; color: var(--text-3); font-size: 13px; }
.form-status { margin: 12px 0 0; min-height: 1em; font-size: 15px; }
.form-status.error { color: #ff8a80; }
.form-status.ok { color: var(--amber); }

/* ---------- Catalogue grid (Dawn cards: big image, name, price; second image on hover) ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--white); text-decoration: none; }
.card:hover { color: var(--white); }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--card-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease, transform 0.5s ease; }
.card-media .card-alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media .card-alt { opacity: 1; }
  .card:hover .card-media img:only-of-type { transform: scale(1.03); }
}
.card-badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.75); color: var(--white); font-size: 12px; font-weight: 600; }
.card-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
.card-price { margin: 0; color: var(--text-2); font-size: 15px; }
.card.is-out .card-media img { opacity: 0.55; }
.placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a1a, #111); }

/* ---------- Product sheet ---------- */
.product { display: grid; gap: 28px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: 72px; } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 16px; background: var(--card-2); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .gallery-track { scroll-behavior: auto; } }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumb { flex: 0 0 64px; width: 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card-2); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--amber); }
.product-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.product-name { overflow-wrap: anywhere; }
.product-price { margin: 0; font-size: 22px; font-weight: 600; }
.option { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.option legend { padding: 0; margin-bottom: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-width: 52px; min-height: 44px; padding: 0 16px; border: 1.5px solid #555; border-radius: 999px; background: transparent; color: var(--white); font: inherit; font-size: 15px; cursor: pointer; }
.pill:hover { border-color: var(--white); }
.pill[aria-pressed="true"] { border-color: var(--amber); background: var(--amber); color: #000; font-weight: 700; }
.collection-filter { margin: 0 0 28px; scroll-margin-top: 88px; }
.collection-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.collection-tile a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--card-2); color: var(--white); text-decoration: none; }
.collection-tile.is-wide { grid-column: span 2; }
.collection-tile.is-wide a { aspect-ratio: 2 / 1; }
.collection-tile img, .collection-tile .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collection-tile a::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.collection-name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: 18px; font-weight: 700; line-height: 1.25; }
@media (hover: hover) { .collection-tile a:hover img { transform: scale(1.03); } }
/* « Clubs » (porteur 05/11/2026): the clubs' collections, below the standard ones, the club's logo on its tile. */
.club-collections { margin: 0 0 8px; }
.club-collections-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.club-collections-lead { margin: 0 0 16px; color: var(--text-2); }
.collection-tile .collection-club-logo { position: absolute; top: 12px; left: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--card-2); transition: none; }
.collection-name > span { display: block; }
.collection-club { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
@media (min-width: 900px) {
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
  /* Wide tile = 2 of the 3 columns, as tall as its square neighbours (owner 05/11/2026); alone on its row, about 2:1. */
  .collection-tile.is-wide a { aspect-ratio: 2.1 / 1; height: 100%; }
}
.pill.is-out { color: var(--text-3); border-style: dashed; text-decoration: line-through; }
.pill.is-out[aria-pressed="true"] { background: #333; border-color: #777; color: var(--text-2); }
.qty-row { display: flex; align-items: center; gap: 16px; }
.qty-row > span { color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #555; border-radius: 999px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--white); font: inherit; font-size: 20px; cursor: pointer; }
.stepper button:hover:not(:disabled) { color: var(--amber); }
.stepper button:disabled { color: #555; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.add-bar { display: flex; }
.add-bar .btn { flex: 1; }
.add-btn:disabled { opacity: 1; background: #333; color: var(--text-2); cursor: not-allowed; }
@media (max-width: 899px) {
  /* Sticky add button at the bottom of the screen on a phone, as in Shopify themes. */
  .add-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(11, 11, 11, 0.94); border-top: 1px solid #222; }
}
.add-status { margin: -10px 0 0; min-height: 1em; color: var(--amber); font-size: 14px; }
.reassure { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid #222; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); font-size: 15px; }
.reassure li { display: flex; gap: 10px; }
.reassure li::before { content: "✓"; color: var(--amber); font-weight: 700; }
.product-desc { display: flex; flex-direction: column; gap: 12px; color: var(--text-2); }
.product-desc p { margin: 0; }
.related { margin-top: 72px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- Drawer and panels: native <dialog> (focus kept inside, Esc closes) ---------- */
.drawer, .sheet { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid #2a2a2a; background: var(--card); color: var(--white); }
.drawer[open], .sheet[open] { display: flex; flex-direction: column; animation: slide-in 0.25s ease-out; }
.drawer::backdrop, .sheet::backdrop { background: rgba(0, 0, 0, 0.6); }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .sheet[open] { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid #2a2a2a; }
.drawer-title { margin: 0; font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--white); cursor: pointer; }
.icon-btn:hover { background: #222; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--text-2); }
.sheet-body p { margin: 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid #222; }
.cart-thumb { width: 72px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--card-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-name { margin: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cart-options { margin: 0; color: var(--text-3); font-size: 14px; }
.cart-warn { margin: 0; color: #ff8a80; font-size: 13px; }
.cart-line.is-out .cart-thumb img { opacity: 0.5; }
.cart-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-controls .stepper button { width: 40px; height: 44px; font-size: 18px; }
.cart-remove { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-remove:hover { color: var(--amber); }
.cart-amount { margin: 0; font-weight: 600; white-space: nowrap; }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 0; color: var(--text-2); }
.cart-empty p { margin: 0; }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2a2a; background: var(--card); }
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.totals dt { color: var(--text-2); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .total { font-size: 18px; font-weight: 700; color: var(--white); }
.drawer-foot .btn { width: 100%; }
.drawer-foot .form-status { margin: 0; }
.drawer-note { margin: 0; color: var(--text-3); font-size: 13px; text-align: center; }
.drawer-note a { color: var(--text-2); }

/* ---------- Order page (confirmation, status timeline, summary) ---------- */
.order { display: flex; flex-direction: column; gap: 36px; max-width: 720px; }
.order .shop-head { margin-bottom: 0; }
.order-pending { padding: 20px; border: 1px solid #333; border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.order-pending p { margin: 0; color: var(--text-2); }
.order-app-return { margin: 0; color: var(--text-2); }
.order-status { margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--card); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; color: var(--text-3); font-size: 14px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: #333; }
.timeline li.is-done { color: var(--white); }
.timeline li.is-done::before { background: var(--amber); }
.timeline li.is-current { font-weight: 700; }
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 18px 26px; }
  .timeline li::before { top: 4px; bottom: 0; left: 6px; right: auto; width: 4px; height: auto; }
}
.order-tracking { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.order-summary { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; background: var(--card); }
.order-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-line { display: flex; justify-content: space-between; gap: 16px; }
.order-line span:last-child { white-space: nowrap; }
.order-line small { display: block; color: var(--text-3); font-size: 14px; }

/* ---------- My orders ---------- */
.orders { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.orders a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; border: 1px solid #2a2a2a; border-radius: 14px; background: var(--card); color: var(--white); text-decoration: none; }
.orders a:hover { border-color: var(--amber); color: var(--white); }
.orders .muted { font-size: 14px; }
.orders-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* ---------- Sign-in ---------- */
.shop-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text-2); }
.field input { min-height: 52px; padding: 0 16px; border: 1px solid #444; border-radius: 12px; background: var(--card); color: var(--white); font: inherit; font-size: 17px; }
.field input:focus-visible { border-color: var(--amber); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; color: var(--text-2); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--amber); }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.orders-view { grid-column: 1 / -1; color: var(--amber); font-size: 14px; font-weight: 600; }

/* Sign-in: Apple / Google above the e-mail code, as on the shared pages. */
.shop-providers { gap: 12px; margin-bottom: 18px; }
.shop-providers .btn { width: 100%; }
.shop-or { text-align: center; margin: 4px 0 0; }
