/* Boutique publique du professionnel : produits, panier, retrait ou livraison. Couleur d’accent = celle de sa page de réservation. */
.sp {
    --sp-ink: #0a0a0b; --sp-muted: #6e6e78; --sp-line: #ececef; --sp-soft: #f6f6f8;
    min-height: 100vh; background: #fff; color: var(--sp-ink); font-family: Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp a { color: inherit; }
.sp-muted { color: var(--sp-muted); font-size: 14px; }
.sp-demo { margin: 0; padding: 10px 20px; background: #fff4d6; color: #6b4a00; font-size: 14px; font-weight: 600; text-align: center; }

.sp-top {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
    padding: 14px clamp(16px, 3.3vw, 56px); border-bottom: 1px solid var(--sp-line); background: rgb(255 255 255 / .94); backdrop-filter: blur(10px);
}
.sp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.sp-brand img, .sp-initials { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.sp-initials { display: grid; place-items: center; background: var(--sp-accent); color: var(--sp-accent-ink); font-weight: 700; }
.sp-brand span { display: grid; min-width: 0; }
.sp-brand strong { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.sp-brand small { overflow: hidden; color: var(--sp-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sp-cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sp-cats a { padding: 8px 14px; border-radius: 999px; color: #3a3a42; font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.sp-cats a:hover { background: var(--sp-soft); }
.sp-cart-button {
    flex: none; margin-left: auto; padding: 11px 18px; border-radius: 999px; background: var(--sp-ink); color: #fff !important;
    font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
}

.sp-form { padding: 24px clamp(16px, 3.3vw, 56px) 40px; }
.sp-hero {
    display: flex; align-items: flex-end; min-height: 220px; padding: clamp(16px, 2vw, 26px); border-radius: 24px; background-size: cover; background-position: center;
    background-color: #f1f1f4; background-image: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--sp-accent) 30%, transparent), transparent 55%),
        repeating-linear-gradient(135deg, #f4f4f6 0 14px, #eeeef1 14px 28px);
}
.sp-hero-card { max-width: 520px; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgb(0 0 0 / .08); }
.sp-hero h1 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 720; letter-spacing: -.045em; line-height: 1.08; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sp-chips span { padding: 6px 10px; border-radius: 999px; background: var(--sp-soft); font-size: 13px; font-weight: 600; }
.sp-error { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: #fdecec; color: #9b1c1c; font-weight: 550; }

.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(18px, 2.4vw, 36px); align-items: start; margin-top: 30px; }
.sp-group { margin-bottom: 34px; scroll-margin-top: 90px; }
.sp-group h2 { margin: 0 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.sp-card { display: grid; align-content: start; gap: 8px; }
.sp-card.is-out { opacity: .55; }
.sp-photo {
    position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
    background: repeating-linear-gradient(135deg, #f4f4f6 0 12px, #ededf0 12px 24px);
}
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-photo > span { color: #c2c2ca; font-size: 44px; font-weight: 700; }
.sp-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #c2570c; font-size: 12px; font-style: normal; font-weight: 650; }
.sp-badge.is-out { color: #c92a2a; }
.sp-card h3 { margin: 4px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.sp-desc { margin: 0; color: var(--sp-muted); font-size: 13px; line-height: 1.4; }
.sp-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.sp-buy strong { font-size: 16px; }
.sp-out { color: #b0b0b8; font-size: 13px; font-weight: 600; }
.sp-qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--sp-ink); color: #fff; }
.sp-qty input {
    width: 38px; border: 0; background: none; color: inherit; font: inherit; font-weight: 650; text-align: center; -moz-appearance: textfield;
}
.sp-qty input::-webkit-inner-spin-button, .sp-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.sp-step { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #2c2c31; color: #fff; font: inherit; font-size: 18px; cursor: pointer; }
.sp-add { display: none; padding: 8px 14px; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; color: var(--sp-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sp-add:hover { border-color: var(--sp-ink); }
.sp-js .sp-qty.is-zero { padding: 0; background: none; }
.sp-js .sp-qty.is-zero .sp-add { display: inline-block; }
.sp-js .sp-qty.is-zero .sp-step, .sp-js .sp-qty.is-zero input { display: none; }
.sp-qty:not(.is-zero) .sp-add { display: none; }
.sp:not(.sp-js) .sp-step { display: none; }
.sp:not(.sp-js) .sp-qty { background: #fff; color: var(--sp-ink); border: 1px solid var(--sp-line); }

.sp-cart {
    position: sticky; top: 92px; display: grid; gap: 16px; max-height: calc(100vh - 110px); overflow-y: auto;
    padding: 22px; border: 1px solid var(--sp-line); border-radius: 22px; background: #fff; scroll-margin-top: 90px;
}
.sp-cart h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.sp-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-lines li { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.sp-lines li.sp-total, .sp-total { font-weight: 700; }
.sp-totals { display: grid; gap: 6px; margin: 0; padding-top: 12px; border-top: 1px solid var(--sp-line); }
.sp-totals div { display: flex; justify-content: space-between; }
.sp-totals div[hidden] { display: none; }
.sp-totals dt, .sp-totals dd { margin: 0; }
.sp-modes { display: flex; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: #f0f0f3; }
.sp-modes[hidden] { display: none; }
.sp-modes label { flex: 1; }
.sp-modes input, .sp-slot-grid input { position: absolute; opacity: 0; pointer-events: none; }
.sp-modes span { display: block; padding: 9px 10px; border-radius: 999px; color: #55555e; font-weight: 600; text-align: center; cursor: pointer; }
.sp-modes input:checked + span { background: #fff; color: var(--sp-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.sp-modes input:focus-visible + span, .sp-slot-grid input:focus-visible + span { outline: 2px solid var(--sp-accent); outline-offset: 2px; }
.sp-slots, .sp-contact { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sp-slots legend, .sp-contact legend { margin-bottom: 8px; padding: 0; font-weight: 650; }
.sp-slots[aria-invalid="true"] legend { color: #c92a2a; }
.sp-day-chips { display: none; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.sp-js .sp-day-chips { display: flex; }
.sp-day-chips button { flex: none; padding: 7px 12px; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sp-day-chips [aria-pressed="true"] { border-color: var(--sp-ink); background: var(--sp-ink); color: #fff; }
.sp-day-title { margin: 6px 0; font-size: 14px; font-weight: 600; }
.sp-js .sp-day-title { display: none; }
.sp-js .sp-day[hidden] { display: none; }
.sp-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sp-slot-grid label { position: relative; }
.sp-slot-grid span { display: block; padding: 10px 4px; border: 1px solid var(--sp-line); border-radius: 12px; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.sp-slot-grid input:checked + span { border-color: var(--sp-ink); background: var(--sp-ink); color: #fff; }
.sp-field { display: grid; gap: 6px; }
.sp-field > span { font-size: 14px; font-weight: 600; }
.sp-field input, .sp-field textarea {
    width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #e2e2e7; border-radius: 12px; font: inherit; font-size: 16px;
}
.sp-field textarea { min-height: 64px; resize: vertical; }
.sp-field input[aria-invalid="true"] { border-color: #c92a2a; }
.sp-field input:focus, .sp-field textarea:focus { outline: 2px solid var(--sp-accent); outline-offset: 1px; }
.sp-inline { display: flex; gap: 6px; }
.sp-ghost { flex: none; padding: 0 14px; border: 1px solid var(--sp-line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; min-height: 44px; }
.sp-check { margin: 0; font-size: 14px; font-weight: 550; }
.sp-check:empty { display: none; }
.sp-check.is-ok { color: #1f7a45; }
.sp-check.is-ko { color: #b42318; }
.sp-address { display: grid; gap: 6px; }
[data-mode-only][hidden] { display: none !important; }
.sp-submit {
    width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--sp-ink); color: #fff;
    font: inherit; font-size: 17px; font-weight: 650; cursor: pointer;
}
.sp-submit:hover { background: #26262b; }
.sp-submit:disabled { background: #b8b8c0; cursor: not-allowed; }
.sp-inline-button { display: inline-grid; place-items: center; width: auto; text-decoration: none; }
.sp-secure { margin: -6px 0 0; color: var(--sp-muted); font-size: 13px; text-align: center; }

.sp-state { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.sp-state h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.045em; }
.sp-state > p { margin: 0; color: #3a3a42; font-size: 17px; }
.sp-state-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sp-soft); font-size: 28px; font-weight: 700; }
.sp-state-icon.is-ok { background: #e3f5ea; color: #1f7a45; }
.sp-recap { display: grid; gap: 10px; width: 100%; margin: 14px 0; padding: 22px; border: 1px solid var(--sp-line); border-radius: 20px; text-align: left; }
.sp-recap h2 { margin: 0; font-size: 18px; }
.sp-recap p { margin: 0; }
.sp-recap-when { font-weight: 650; }
.sp-foot { padding: 30px 20px 40px; color: var(--sp-muted); font-size: 13px; text-align: center; }
.sp-foot a { color: var(--sp-ink); font-weight: 650; text-decoration: none; }

@media (max-width: 900px) {
    .sp-layout { grid-template-columns: 1fr; }
    .sp-cart { position: static; max-height: none; }
    .sp-cats { display: none; }
    .sp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
    .sp-top { gap: 10px; }
    .sp-brand small { display: none; }
    .sp-hero { min-height: 170px; }
    .sp-cart-button { padding: 10px 14px; }
}
.sp .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp a.sp-submit { color: #fff; }
