/* Harris Store : composants (formulaire, urgence, WhatsApp). Couleurs réglables via les variables du thème. */
:root {
	--hs-primary: var(--brand-primary, #0f172a);
	--hs-accent: var(--brand-accent, #f97316);
	--hs-accent-ink: var(--brand-accent-ink, #ffffff);
	--hs-success: var(--color-success, #15803d);
	--hs-danger: var(--color-danger, #c8323b);
	--hs-wa: var(--color-whatsapp, #25d366);
	--hs-border: var(--brand-border, #e2e8f0);
	--hs-muted: var(--brand-muted, #64748b);
	--hs-bg-soft: var(--brand-soft, #f8fafc);
	--hs-radius: var(--brand-radius, 12px);
}

/* Boutons */
.hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.2rem; border-radius: var(--hs-radius); border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .08s ease, filter .15s ease; text-align: center; }
.hs-btn:active { transform: scale(.98); }
.hs-btn--block { display: flex; width: 100%; }
.hs-btn--primary { background: var(--hs-accent); color: var(--hs-accent-ink); }
.hs-btn--primary:hover { filter: brightness(1.05); color: var(--hs-accent-ink); }
.hs-btn--ghost { background: transparent; color: var(--hs-primary); border-color: var(--hs-border); }
.hs-btn--wa { background: var(--hs-wa); color: #fff; }
.hs-btn--wa:hover { color: #fff; filter: brightness(.97); }
.hs-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Formulaire */
.hs-order { margin: 1.25rem 0; scroll-margin-top: 80px; }
.hs-form { background: #fff; border: 2px solid var(--hs-accent); border-radius: calc(var(--hs-radius) + 4px); padding: 1rem; display: grid; gap: .8rem; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.hs-form__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.hs-form__title { font-size: 1.15rem; font-weight: 800; color: var(--hs-primary); }
.hs-pill { font-size: .8rem; font-weight: 700; background: #ecfdf5; color: #047857; padding: .3rem .6rem; border-radius: 999px; }
.hs-field { display: grid; gap: .3rem; min-width: 0; }
.hs-field label, .hs-label { font-weight: 600; font-size: .9rem; color: var(--hs-primary); }
.hs-field abbr { color: var(--hs-danger); text-decoration: none; border: 0; }
.hs-opt { font-weight: 400; color: var(--hs-muted); }
.hs-form input[type=text], .hs-form input[type=tel], .hs-form input[type=email], .hs-form input[type=date], .hs-form input[type=time], .hs-form input[type=number], .hs-form select, .hs-form textarea {
	width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--hs-border); border-radius: calc(var(--hs-radius) - 4px); font-size: 16px; background: #fff; color: #0f172a; box-sizing: border-box; font-family: inherit;
}
.hs-form input:focus, .hs-form select:focus, .hs-form textarea:focus { outline: none; border-color: var(--hs-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hs-accent) 20%, transparent); }
.hs-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hs-phone { display: grid; grid-template-columns: 7.2rem 1fr; gap: .4rem; }
.hs-help { font-size: .8rem; color: var(--hs-muted); }
.hs-field.is-error input, .hs-field.is-error select { border-color: var(--hs-danger); }
.hs-field.is-error .hs-swatch span { border-color: var(--hs-danger); }
.hs-err { color: var(--hs-danger); font-size: .82rem; font-weight: 600; }
.hs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Quantité */
.hs-field--qty { grid-template-columns: 1fr auto; align-items: center; }
.hs-qty { display: inline-flex; border: 1.5px solid var(--hs-border); border-radius: calc(var(--hs-radius) - 4px); overflow: hidden; }
.hs-qty__btn { width: 44px; min-height: 44px; border: 0; background: var(--hs-bg-soft); font-size: 1.3rem; cursor: pointer; color: var(--hs-primary); }
.hs-form .hs-qty input { width: 56px; min-height: 44px; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.hs-qty input::-webkit-outer-spin-button, .hs-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Offres de quantité */
.hs-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.hs-offer { position: relative; display: grid; gap: .15rem; padding: .7rem .6rem; border: 2px solid var(--hs-border); border-radius: var(--hs-radius); background: #fff; cursor: pointer; text-align: center; font: inherit; color: var(--hs-primary); }
.hs-offer.is-active { border-color: var(--hs-accent); background: color-mix(in srgb, var(--hs-accent) 8%, #fff); }
.hs-offer__qty { font-weight: 700; }
.hs-offer__price { font-size: .9rem; }
.hs-offer__save { font-size: .75rem; font-weight: 700; color: var(--hs-success); }
.hs-offer__save:empty { display: none; }

/* Variantes */
.hs-swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.hs-swatch { position: relative; cursor: pointer; }
.hs-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.hs-swatch span { display: inline-block; min-width: 48px; padding: .55rem .9rem; border: 2px solid var(--hs-border); border-radius: calc(var(--hs-radius) - 4px); text-align: center; font-weight: 600; background: #fff; }
.hs-swatch input:checked + span { border-color: var(--hs-accent); background: color-mix(in srgb, var(--hs-accent) 10%, #fff); }
.hs-swatch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hs-accent) 30%, transparent); }
.hs-swatch.is-out span { color: var(--hs-muted); text-decoration: line-through; opacity: .6; }

/* Code promo */
.hs-coupon summary { cursor: pointer; font-size: .9rem; color: var(--hs-muted); text-decoration: underline; }
.hs-coupon input { margin-top: .4rem; text-transform: uppercase; }

/* Total & bouton */
.hs-total { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-top: .6rem; border-top: 1px dashed var(--hs-border); }
.hs-total span { color: var(--hs-muted); font-size: .9rem; }
.hs-total strong { font-size: 1.35rem; color: var(--hs-primary); }
.hs-free { font-size: .9rem; font-weight: 700; color: var(--hs-success); }
.hs-submit { flex-direction: column; gap: .1rem; padding: 1rem; font-size: 1.15rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--hs-accent) 35%, transparent); animation: hs-pulse 2.4s ease-in-out infinite; }
.hs-submit__sub { font-size: .8rem; font-weight: 600; opacity: .9; }
.hs-submit.is-loading { animation: none; opacity: .75; }
.hs-submit.is-loading .hs-submit__label::after { content: ' …'; }
@keyframes hs-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) { .hs-submit { animation: none; } }
.hs-cta-note { margin: 0; text-align: center; font-size: .85rem; font-weight: 600; color: var(--hs-primary); }
.hs-consent { margin: 0; font-size: .75rem; color: var(--hs-muted); text-align: center; }
.hs-msg { padding: .7rem .9rem; border-radius: calc(var(--hs-radius) - 4px); font-weight: 600; }
.hs-msg.is-error { background: #fef2f2; color: #991b1b; }
.hs-msg.is-ok { background: #ecfdf5; color: #065f46; }
.hs-order > .hs-btn--wa { margin-top: .7rem; }

/* Résumé panier */
.hs-cart { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hs-cart__item { display: grid; grid-template-columns: 56px 1fr auto; gap: .6rem; align-items: center; }
.hs-cart__item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.hs-cart__name { display: grid; font-weight: 600; }
.hs-cart__name small { font-weight: 400; color: var(--hs-muted); }
.hs-cart__price { font-weight: 700; white-space: nowrap; }
.hs-cart__coupon, .hs-cart__edit { margin: 0; font-size: .85rem; }

/* Urgence & preuve sociale */
.hs-urgency { display: grid; gap: .5rem; margin: .8rem 0; }
.hs-countdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; border-radius: var(--hs-radius); background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.hs-countdown__label { font-weight: 700; }
.hs-countdown__time { display: inline-flex; gap: .3rem; }
.hs-countdown__time > span { display: inline-grid; justify-items: center; min-width: 44px; padding: .25rem .3rem; border-radius: 8px; background: #9a3412; color: #fff; }
.hs-countdown__time b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hs-countdown__time small { font-size: .65rem; opacity: .85; }
.hs-stock { margin: 0; font-weight: 700; color: var(--hs-danger); }
.hs-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .9rem; color: var(--hs-primary); }

/* WhatsApp flottant */
.hs-wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 9990; width: 58px; height: 58px; border-radius: 50%; background: var(--hs-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: bottom .2s ease, opacity .25s ease, transform .25s ease, visibility .25s; opacity: 0; visibility: hidden; transform: translateY(16px); }
.hs-wa-float.is-shown { opacity: 1; visibility: visible; transform: none; }
.hs-wa-float svg { width: 32px; height: 32px; }
.hs-wa-float.is-shown:hover { color: #fff; transform: scale(1.05); }
.hs-has-sticky .hs-wa-float { bottom: 88px; }

/* Bouton fixe mobile */
/* Bandeau cookies : petite carte en bas, au-dessus des barres fixes, sans masquer le bouton WhatsApp. */
.hs-cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9995; display: flex; align-items: center; gap: .8rem; max-width: 560px; padding: .75rem .8rem .75rem 1rem; background: var(--brand-surface, #fff); color: var(--hs-primary); border: 1px solid var(--hs-border); border-radius: 18px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); font-size: .86rem; line-height: 1.4; }
.hs-cookies[hidden] { display: none; }
.hs-cookies p { margin: 0; flex: 1; }
.hs-cookies a { color: inherit; text-decoration: underline; }
.hs-cookies__ok { flex: 0 0 auto; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--hs-accent); color: var(--hs-accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.hs-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9989; display: flex; align-items: center; gap: .6rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--hs-border); box-shadow: 0 -6px 18px rgba(15, 23, 42, .08); }
.hs-sticky[hidden] { display: none; }
.hs-sticky__info { flex: 1; min-width: 0; display: grid; }
.hs-sticky__name { font-size: .8rem; color: var(--hs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-sticky__price { font-weight: 800; }
.hs-sticky__price del { font-weight: 400; color: var(--hs-muted); font-size: .8em; }
.hs-sticky .hs-btn { flex: 0 0 auto; padding: .8rem 1.4rem; }
@media (min-width: 900px) { .hs-sticky { display: none !important; } .hs-has-sticky .hs-wa-float { bottom: 16px; } }

/* Contact */
.hs-contact { max-width: 560px; display: grid; gap: .8rem; }
.hs-contact__or { margin: 0; text-align: center; color: var(--hs-muted); }
.hs-contact .hs-form { border-width: 1px; border-color: var(--hs-border); }
.hs-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 380px) { .hs-row { grid-template-columns: 1fr; } }

/* Ville par zone */
.hs-field--city input[name="city_other"] { margin-top: .4rem; }

/* Offre au dernier moment */
.hs-bump { display: grid; grid-template-columns: auto 56px 1fr; gap: .6rem; align-items: center; padding: .75rem; border: 2px dashed var(--hs-accent); border-radius: var(--hs-radius); background: color-mix(in srgb, var(--hs-accent) 6%, #fff); cursor: pointer; }
.hs-bump input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--hs-accent); }
.hs-bump.is-checked { border-style: solid; background: color-mix(in srgb, var(--hs-accent) 12%, #fff); }
.hs-bump__img img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.hs-bump__body { display: grid; gap: .1rem; font-size: .9rem; }
.hs-bump__tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--hs-accent); }
.hs-bump__price { font-weight: 800; }
.hs-bump__price del { font-weight: 400; color: var(--hs-muted); margin-left: .3rem; }

/* Page « Ma commande » */
.hs-client { max-width: 560px; margin: 0 auto; display: grid; gap: 1rem; }
.hs-client__title { font-size: 1.5rem; margin: 0; }
.hs-client__box { border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: 1rem; background: #fff; }
.hs-client__box h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.hs-client__confirm { border: 2px solid var(--hs-accent); }
.hs-client__items { list-style: none; margin: 0; padding: 0; }
.hs-client__items li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--hs-border); }
.hs-client__items li:last-child { border-bottom: 0; }
.hs-client__total strong { font-size: 1.15rem; }
.hs-client__meta { margin: .6rem 0 0; color: var(--hs-muted); font-size: .9rem; }
.hs-client__status { margin: 0; padding: .7rem .9rem; border-radius: 8px; font-weight: 700; }
.hs-client__status.is-cancelled { background: #fef2f2; color: #991b1b; }
.hs-client__status.is-warning { background: #fff7ed; color: #9a3412; }
.hs-client__cancel summary { cursor: pointer; color: var(--hs-muted); text-decoration: underline; text-align: center; }
.hs-client__cancel form { display: grid; gap: .6rem; margin-top: .6rem; }
.hs-client__cancel select { width: 100%; min-height: 44px; border: 1px solid var(--hs-border); border-radius: 8px; padding: 0 .5rem; }
.hs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; font-size: .78rem; text-align: center; color: var(--hs-muted); }
.hs-steps li { display: grid; justify-items: center; gap: .3rem; position: relative; }
.hs-steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--hs-border); }
.hs-steps li.is-done span { background: var(--hs-success); }
.hs-steps li.is-done { color: var(--hs-primary); }
.hs-steps li.is-current { font-weight: 800; }

/* Avis */
.hs-review form { display: grid; gap: 1rem; }
.hs-review__product { border: 0; border-top: 1px solid var(--hs-border); padding: .8rem 0 0; margin: 0; display: grid; gap: .5rem; }
.hs-review__product legend { font-weight: 700; padding: 0; }
.hs-review textarea { width: 100%; border: 1.5px solid var(--hs-border); border-radius: 8px; padding: .6rem; font: inherit; font-size: 16px; }
.hs-review__photos { display: inline-grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.hs-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.hs-stars input { position: absolute; opacity: 0; pointer-events: none; }
.hs-stars label { font-size: 2rem; line-height: 1; color: #d1d5db; cursor: pointer; }
.hs-stars input:checked ~ label, .hs-stars label:hover, .hs-stars label:hover ~ label { color: #f59e0b; }
.hs-review-photos, .hs-photo-strip__row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.hs-review-photos img, .hs-photo-strip__row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.hs-photo-strip { margin: 0 0 1rem; }
.hs-photo-strip h3 { font-size: 1rem; margin: 0; }
.hs-photo-strip__row { flex-wrap: nowrap; overflow-x: auto; }

/* Espace livreur */
.hs-courier { max-width: 640px; margin: 0 auto; display: grid; gap: .9rem; }
.hs-courier--login { max-width: 420px; }
.hs-courier--login form p { display: grid; gap: .3rem; }
.hs-courier--login input[type=text], .hs-courier--login input[type=password] { min-height: 48px; border: 1.5px solid var(--hs-border); border-radius: 8px; padding: 0 .7rem; font-size: 16px; }
.hs-courier--login input[type=submit] { min-height: 50px; width: 100%; border: 0; border-radius: var(--hs-radius); background: var(--hs-accent); color: #fff; font-weight: 700; font-size: 1rem; }
.hs-courier__head { display: flex; justify-content: space-between; align-items: center; }
.hs-courier__totals { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.hs-courier__totals > div { display: grid; gap: .1rem; padding: .8rem; border-radius: var(--hs-radius); background: var(--hs-bg-soft); border: 1px solid var(--hs-border); }
.hs-courier__totals span, .hs-courier__totals small { color: var(--hs-muted); font-size: .8rem; }
.hs-courier__totals strong { font-size: 1.2rem; }
.hs-courier__empty { text-align: center; color: var(--hs-muted); padding: 2rem 0; }
.hs-tabs { display: flex; gap: .4rem; overflow-x: auto; }
.hs-tabs a { flex: 0 0 auto; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--hs-border); text-decoration: none; font-weight: 600; font-size: .9rem; }
.hs-tabs a.is-active { background: var(--hs-primary); color: #fff; border-color: var(--hs-primary); }
.hs-ccard { border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: .9rem; display: grid; gap: .45rem; background: #fff; }
.hs-ccard--hs-shipping { border-left: 5px solid var(--hs-accent); }
.hs-ccard--hs-unreachable { border-left: 5px solid var(--hs-danger); }
.hs-ccard--completed { border-left: 5px solid var(--hs-success); opacity: .85; }
.hs-ccard__head { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--hs-muted); }
.hs-ccard__head strong { font-size: 1.15rem; color: var(--hs-primary); }
.hs-ccard__items { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.hs-ccard__note { margin: 0; font-size: .9rem; background: #fefce8; padding: .4rem .6rem; border-radius: 6px; }
.hs-ccard__contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.hs-ccard__contact .hs-btn { padding: .65rem .3rem; font-size: .85rem; }
.hs-ccard__actions { display: grid; gap: .45rem; }
.hs-ccard__actions form { margin: 0; }
.hs-ccard__more summary { cursor: pointer; text-align: center; color: var(--hs-muted); padding: .3rem; }
.hs-ccard__more > * + * { margin-top: .45rem; }
.hs-ccard__refuse { display: grid; gap: .4rem; }
.hs-ccard__refuse select { min-height: 44px; border: 1px solid var(--hs-border); border-radius: 8px; padding: 0 .5rem; }
.hs-btn--danger { color: var(--hs-danger); border-color: #fecaca; }

/* Étapes du formulaire */
.hs-step { display: flex; align-items: center; gap: .55rem; margin: .4rem 0 -.1rem; font-weight: 700; font-size: .95rem; color: var(--hs-primary); }
.hs-step__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hs-primary); color: #fff; font-size: .78rem; }

/* Étiquette d'offre */
.hs-offer { overflow: visible; }
.hs-offer__tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--hs-primary); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }

/* Date et heure en un tap */
.hs-when { display: grid; gap: .45rem; }
.hs-when[hidden] { display: none; }
.hs-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.hs-chips::-webkit-scrollbar { display: none; }
.hs-chips[hidden] { display: none !important; }
.hs-when .hs-label + .hs-chips ~ .hs-label { margin-top: .4rem; }
/* Heures précises du moment choisi (Matin, Midi…) : petite ligne en retrait sous les moments. */
.hs-chips--hours { padding-left: .7rem; border-left: 3px solid var(--hs-border); }
.hs-chips--hours .hs-chip { min-width: 56px; padding: .4rem .6rem; }
.hs-chip { flex: 0 0 auto; display: grid; justify-items: center; gap: 0; min-width: 76px; padding: .5rem .7rem; border: 1.5px solid var(--hs-border); border-radius: calc(var(--hs-radius) - 4px); background: #fff; cursor: pointer; font: inherit; color: var(--hs-primary); line-height: 1.2; }
.hs-chip strong { font-size: .88rem; }
.hs-chip small { font-size: .72rem; color: var(--hs-muted); }
.hs-chip.is-active { border-color: var(--hs-primary); background: var(--hs-primary); color: #fff; }
.hs-chip.is-active small { color: rgba(255, 255, 255, .75); }
.hs-when__native.is-js:not(.is-open) { display: none; }
.hs-when__native.is-js:not(.is-open) + .hs-when__help { display: none; }
