/* ==========================================================================
   Boutique InterCar — design system e-commerce (thème SOMBRE, cohérent site)
   BEM ic-store-* — aligné sur le ic-* existant. Primary orange #fd5631. WCAG AA.
   ========================================================================== */
:root {
  --store-primary: #fd5631;          /* Orange CTA InterCar (marque) */
  --store-primary-dark: #e0431f;
  --store-primary-soft: rgba(253,86,49,.14);
  --store-on-primary: #ffffff;
  --store-bg-card: #1c2029;
  --store-bg-soft: #171a21;
  --store-bg-elevated: #232834;
  --store-text-primary: #e9ecef;
  --store-text-muted: #97a0ad;
  --store-border: #2a2f3a;
  --store-border-strong: #3a4150;
  --store-success: #2bbf6a;
  --store-danger: #ff5d5d;
  --store-rating-star: #f5b301;
  --store-radius-card: 14px;
  --store-radius-pill: 999px;
  --store-shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.22);
  --store-shadow-card-hover: 0 8px 24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.3);
  --store-shadow-pop: 0 24px 60px rgba(0,0,0,.55);
  --store-container: 1240px;
}

/* Le site est en thème sombre (body.bg-dark) : la boutique s'y fond. */
.ic-store {
  background: transparent;
  color: var(--store-text-primary);
  font-family: inherit;
  line-height: 1.5;
  min-height: 60vh;
  padding-bottom: 3rem;
}
.ic-store *, .ic-store *::before, .ic-store *::after { box-sizing: border-box; }
.ic-store a { color: inherit; text-decoration: none; }
.ic-store img { max-width: 100%; display: block; }
.ic-store__container { max-width: var(--store-container); margin: 0 auto; padding: 0 1rem; }
.ic-store h1, .ic-store h2, .ic-store h3 { color: var(--store-text-primary); margin: 0 0 .5rem; line-height: 1.2; }
.ic-store h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.ic-store h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }

/* --- Boutons --------------------------------------------------------------- */
.ic-store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--store-radius-pill);
  font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  text-align: center; line-height: 1.1;
}
.ic-store-btn:active { transform: translateY(1px); }
/* Texte FONCÉ sur orange vif : contraste AA (~6:1) en gardant la couleur de marque. */
.ic-store-btn--primary { background: var(--store-primary); color: #1a1100; box-shadow: 0 4px 16px rgba(253,86,49,.35); }
.ic-store-btn--primary:hover { background: #ff6e4d; color: #1a1100; box-shadow: 0 6px 22px rgba(253,86,49,.45); }
.ic-store-btn--dark { background: var(--store-bg-elevated); color: var(--store-text-primary); border-color: var(--store-border-strong); }
.ic-store-btn--dark:hover { background: #2b313d; }
.ic-store-btn--ghost { background: transparent; color: var(--store-text-primary); border-color: var(--store-border-strong); }
.ic-store-btn--ghost:hover { border-color: var(--store-primary); color: var(--store-primary); }
.ic-store-btn--block { width: 100%; }
.ic-store-btn--lg { min-height: 56px; font-size: 1.1rem; }

/* --- Trust strip ----------------------------------------------------------- */
.ic-store-trust { background: var(--store-bg-card); border-top: 1px solid var(--store-border); border-bottom: 1px solid var(--store-border); }
.ic-store-trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: var(--store-container); margin: 0 auto; padding: .9rem 1rem;
}
.ic-store-trust__item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--store-text-muted); font-weight: 600; }
.ic-store-trust__item svg { width: 22px; height: 22px; color: var(--store-primary); flex: 0 0 auto; }
@media (max-width: 720px) {
  .ic-store-trust__grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .ic-store-trust__item { font-size: .8rem; }
}

/* --- Hero ------------------------------------------------------------------ */
.ic-store-hero {
  background:
    radial-gradient(900px 380px at 15% -120px, rgba(253,86,49,.22), transparent 70%),
    linear-gradient(135deg, #14171d 0%, #1b1f27 60%, #232834 100%);
  color: #fff; padding: 2.6rem 1rem 3rem; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--store-border);
}
.ic-store-hero__inner { max-width: var(--store-container); margin: 0 auto; position: relative; z-index: 1; }
.ic-store-hero h1 { color: #fff; max-width: 20ch; }
.ic-store-hero__sub { color: #c4ccd6; font-size: 1.05rem; max-width: 54ch; margin-bottom: 1.4rem; }
.ic-store-hero__search { display: flex; gap: .5rem; max-width: 560px; }
.ic-store-hero__search input {
  flex: 1; min-height: 52px; border-radius: var(--store-radius-pill); border: 1px solid var(--store-border-strong);
  padding: 0 1.2rem; font-size: 1rem; background: #0f1218; color: var(--store-text-primary);
}
.ic-store-hero__search input::placeholder { color: #7c8593; }
.ic-store-hero__search input:focus { outline: none; border-color: var(--store-primary); }
.ic-store-hero__cats { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.ic-store-hero__cat {
  display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--store-radius-pill);
  padding: .55rem 1.1rem; font-weight: 600; color: #e9ecef; transition: background .15s, border-color .15s;
}
.ic-store-hero__cat:hover { background: var(--store-primary-soft); border-color: var(--store-primary); color: #fff; }

/* --- Section --------------------------------------------------------------- */
.ic-store-section { padding: 2.2rem 0; }
.ic-store-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.ic-store-section__head a { color: var(--store-primary); font-weight: 600; white-space: nowrap; }

/* --- Grid + card ----------------------------------------------------------- */
.ic-store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1024px) { .ic-store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .ic-store-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }

.ic-store-card {
  background: var(--store-bg-card); border: 1px solid var(--store-border);
  border-radius: var(--store-radius-card); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--store-shadow-card); transition: box-shadow .18s ease, transform .18s ease, border-color .18s;
  position: relative;
}
.ic-store-card:hover { box-shadow: var(--store-shadow-card-hover); transform: translateY(-3px); border-color: var(--store-border-strong); }
/* Visuel produit sur fond clair : les images brandées ont un fond studio clair,
   on garde une plaque blanche pour ne pas casser le packshot. */
.ic-store-card__media { position: relative; aspect-ratio: 1 / 1; background: #f4f6f9; overflow: hidden; }
.ic-store-card__img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s, transform .25s; }
.ic-store-card__badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.ic-store-card__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.ic-store-card__brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--store-text-muted); font-weight: 700; }
.ic-store-card__title { font-size: .92rem; font-weight: 600; color: var(--store-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ic-store-card__title:hover { color: var(--store-primary); }
.ic-store-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.ic-store-card__quickadd {
  border: none; background: var(--store-primary); color: #1a1100; width: 42px; height: 42px;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex: 0 0 auto; transition: transform .12s, background .15s;
}
.ic-store-card__quickadd:hover { background: var(--store-primary-dark); }
.ic-store-card__quickadd:active { transform: scale(.92); }
.ic-store-card__quickadd svg { width: 22px; height: 22px; }

/* --- Badges ---------------------------------------------------------------- */
.ic-store-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; padding: .28rem .6rem; border-radius: var(--store-radius-pill); line-height: 1; }
.ic-store-badge--trend { background: linear-gradient(90deg,#fb7185,#f43f5e); color: #fff; box-shadow: 0 2px 10px rgba(244,63,94,.45); cursor: help; }
.ic-store-badge--promo { background: var(--store-danger); color: #fff; }
/* Solide foncé pour rester lisible par-dessus le packshot clair. */
.ic-store-badge--stock { background: rgba(15,18,23,.88); color: #ffd1c2; border: 1px solid rgba(253,86,49,.6); }

/* --- Prix ------------------------------------------------------------------ */
.ic-store-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.ic-store-price__now { font-size: 1.2rem; font-weight: 800; color: #fff; }
.ic-store-price__now--lg { font-size: 2rem; color: #fff; }
.ic-store-price__was { font-size: .9rem; color: var(--store-text-muted); text-decoration: line-through; }
.ic-store-price__tax { font-size: .75rem; color: var(--store-text-muted); font-weight: 500; }

/* --- Rating ---------------------------------------------------------------- */
.ic-store-rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--store-text-muted); }
.ic-store-rating__stars { color: var(--store-rating-star); letter-spacing: .05em; font-size: .95rem; }

/* --- Breadcrumb ------------------------------------------------------------ */
.ic-store-breadcrumb { font-size: .82rem; color: var(--store-text-muted); padding: 1rem 0 .2rem; }
.ic-store-breadcrumb a:hover { color: var(--store-primary); text-decoration: underline; }
.ic-store-breadcrumb span[aria-current] { color: var(--store-text-primary); font-weight: 600; }

/* --- Catalogue : layout filtres + grille ----------------------------------- */
.ic-store-catalog { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .ic-store-catalog { grid-template-columns: 1fr; } }
.ic-store-filters { background: var(--store-bg-card); border: 1px solid var(--store-border); border-radius: var(--store-radius-card); padding: 1.1rem; position: sticky; top: 90px; }
.ic-store-filters__group { padding: .7rem 0; border-bottom: 1px solid var(--store-border); }
.ic-store-filters__group:last-child { border-bottom: none; }
.ic-store-filters__title { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; color: var(--store-text-primary); }
.ic-store-filters label { display: flex; align-items: center; gap: .5rem; font-size: .87rem; padding: .2rem 0; color: var(--store-text-muted); cursor: pointer; }
.ic-store-filters label:hover { color: var(--store-text-primary); }
.ic-store-filters input[type=number] { width: 5.5rem; padding: .35rem .5rem; border: 1px solid var(--store-border-strong); border-radius: 8px; background: var(--store-bg-soft); color: var(--store-text-primary); }
.ic-store-filters input[type=checkbox] { accent-color: var(--store-primary); }
.ic-store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; color: var(--store-text-muted); }
.ic-store-toolbar select { padding: .55rem .8rem; border: 1px solid var(--store-border-strong); border-radius: 10px; background: var(--store-bg-card); color: var(--store-text-primary); font-weight: 600; }
.ic-store-filters__mobile-toggle { display: none; }
@media (max-width: 900px) {
  .ic-store-filters { position: static; display: none; }
  .ic-store-filters.is-open { display: block; }
  .ic-store-filters__mobile-toggle { display: inline-flex; }
}

/* --- Fiche produit --------------------------------------------------------- */
.ic-store-pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 2.4rem; padding-top: 1rem; }
@media (max-width: 920px) { .ic-store-pdp { grid-template-columns: 1fr; gap: 1.4rem; } }
.ic-store-gallery__main { background: #f4f6f9; border: 1px solid var(--store-border); border-radius: var(--store-radius-card); aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ic-store-gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.ic-store-gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.ic-store-gallery__thumb { width: 72px; height: 72px; border: 2px solid var(--store-border); border-radius: 10px; overflow: hidden; background: #f4f6f9; cursor: pointer; padding: 0; }
.ic-store-gallery__thumb.is-active { border-color: var(--store-primary); }
.ic-store-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.ic-store-buybox { background: var(--store-bg-card); border: 1px solid var(--store-border); border-radius: var(--store-radius-card); padding: 1.4rem; box-shadow: var(--store-shadow-card); }
.ic-store-buybox h1 { font-size: 1.4rem; }
.ic-store-buybox__row { display: flex; align-items: center; gap: .8rem; margin: .6rem 0; flex-wrap: wrap; }
.ic-store-qty { display: inline-flex; align-items: center; border: 1px solid var(--store-border-strong); border-radius: 12px; overflow: hidden; }
.ic-store-qty button { width: 44px; height: 44px; border: none; background: var(--store-bg-elevated); font-size: 1.3rem; cursor: pointer; color: var(--store-text-primary); }
.ic-store-qty button:hover { background: #2b313d; }
.ic-store-qty input { width: 48px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--store-border-strong); border-right: 1px solid var(--store-border-strong); font-weight: 700; background: var(--store-bg-soft); color: var(--store-text-primary); }
.ic-store-buybox select { background: var(--store-bg-soft); color: var(--store-text-primary); border: 1px solid var(--store-border-strong); }
.ic-store-payments { display: flex; gap: .4rem; align-items: center; margin-top: .9rem; flex-wrap: wrap; color: var(--store-text-muted); font-size: .8rem; }
.ic-store-payments span { background: var(--store-bg-soft); border: 1px solid var(--store-border); border-radius: 6px; padding: .25rem .5rem; font-weight: 700; font-size: .72rem; color: var(--store-text-muted); }

.ic-store-specs { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.ic-store-specs th, .ic-store-specs td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--store-border); font-size: .9rem; }
.ic-store-specs th { color: var(--store-text-muted); font-weight: 600; width: 42%; }

/* --- Accordéon / FAQ ------------------------------------------------------- */
.ic-store-acc { border: 1px solid var(--store-border); border-radius: 12px; overflow: hidden; background: var(--store-bg-card); }
.ic-store-acc__item + .ic-store-acc__item { border-top: 1px solid var(--store-border); }
.ic-store-acc__head { width: 100%; text-align: left; background: var(--store-bg-card); border: none; padding: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .95rem; color: var(--store-text-primary); }
.ic-store-acc__head:hover { background: var(--store-bg-elevated); }
.ic-store-acc__body { padding: 0 1rem 1rem; color: var(--store-text-muted); font-size: .9rem; display: none; }
.ic-store-acc__item.is-open .ic-store-acc__body { display: block; }
.ic-store-acc__item.is-open .ic-store-acc__chevron { transform: rotate(180deg); }
.ic-store-acc__chevron { transition: transform .2s; flex: 0 0 auto; }

/* --- Sticky CTA mobile ----------------------------------------------------- */
.ic-store-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--store-bg-card);
  border-top: 1px solid var(--store-border-strong); box-shadow: 0 -6px 24px rgba(0,0,0,.4);
  display: none; align-items: center; gap: 1rem; padding: .7rem 1rem;
  transform: translateY(110%); transition: transform .25s ease;
}
.ic-store-sticky-cta.is-visible { transform: translateY(0); }
@media (max-width: 920px) { .ic-store-sticky-cta { display: flex; } }
.ic-store-sticky-cta .ic-store-btn { flex: 1; }

/* --- Mini panier drawer ---------------------------------------------------- */
.ic-store-drawer__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 1050; }
.ic-store-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.ic-store-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--store-bg-card);
  z-index: 1060; transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: var(--store-shadow-pop); color: var(--store-text-primary);
}
.ic-store-drawer.is-open { transform: translateX(0); }
.ic-store-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem; border-bottom: 1px solid var(--store-border); }
.ic-store-drawer__head h3 { margin: 0; font-size: 1.1rem; color: var(--store-text-primary); }
.ic-store-drawer__close { background: none; border: none; cursor: pointer; padding: .3rem; color: var(--store-text-primary); }
.ic-store-drawer__items { flex: 1; overflow-y: auto; padding: .5rem 1.1rem; }
.ic-store-drawer__empty { text-align: center; color: var(--store-text-muted); padding: 3rem 1rem; }
.ic-store-drawer__line { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--store-border); align-items: center; }
.ic-store-drawer__line img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--store-border); border-radius: 8px; background: #f4f6f9; }
.ic-store-drawer__line-info { flex: 1; min-width: 0; }
.ic-store-drawer__line-title { font-size: .85rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--store-text-primary); }
.ic-store-drawer__rm { background: none; border: none; color: var(--store-text-muted); cursor: pointer; font-size: 1rem; padding: .2rem .4rem; }
.ic-store-drawer__rm:hover { color: var(--store-danger); }
.ic-store-drawer__foot { padding: 1.1rem; border-top: 1px solid var(--store-border); }
.ic-store-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: .9rem; }

/* --- Cart page ------------------------------------------------------------- */
.ic-store-cart { display: grid; grid-template-columns: 1fr 340px; gap: 1.6rem; align-items: start; padding-top: 1.2rem; }
@media (max-width: 860px) { .ic-store-cart { grid-template-columns: 1fr; } }
.ic-store-cart__line { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--store-border); align-items: center; }
.ic-store-cart__line img { width: 90px; height: 90px; object-fit: contain; background: #f4f6f9; border: 1px solid var(--store-border); border-radius: 10px; }
.ic-store-summary { background: var(--store-bg-card); border: 1px solid var(--store-border); border-radius: var(--store-radius-card); padding: 1.3rem; position: sticky; top: 90px; }
.ic-store-summary__row { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--store-text-muted); }
.ic-store-summary__row--total { color: var(--store-text-primary); font-weight: 800; font-size: 1.25rem; border-top: 1px solid var(--store-border); margin-top: .5rem; padding-top: .8rem; }

/* --- Checkout -------------------------------------------------------------- */
.ic-store-checkout { display: grid; grid-template-columns: 1fr 360px; gap: 1.8rem; align-items: start; padding-top: 1.2rem; }
@media (max-width: 880px) { .ic-store-checkout { grid-template-columns: 1fr; } }
.ic-store-form { background: var(--store-bg-card); border: 1px solid var(--store-border); border-radius: var(--store-radius-card); padding: 1.5rem; }
.ic-store-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ic-store-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .2rem; }
.ic-store-field--full { grid-column: 1 / -1; }
.ic-store-field label { font-size: .85rem; font-weight: 600; color: var(--store-text-primary); }
.ic-store-field input, .ic-store-field select { min-height: 46px; border: 1px solid var(--store-border-strong); border-radius: 10px; padding: 0 .8rem; font-size: 1rem; background: var(--store-bg-soft); color: var(--store-text-primary); }
.ic-store-field input:focus, .ic-store-field select:focus { outline: 2px solid var(--store-primary); border-color: var(--store-primary); }
.ic-store-field.has-error input { border-color: var(--store-danger); }
.ic-store-field .errorlist { color: var(--store-danger); font-size: .8rem; list-style: none; padding: 0; margin: 0; }

/* --- Empty state / alerts -------------------------------------------------- */
.ic-store-empty { text-align: center; padding: 4rem 1rem; color: var(--store-text-muted); }
.ic-store-alert { border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0; font-weight: 600; }
.ic-store-alert--info { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.ic-store-alert--warn { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.ic-store-alert--success { background: rgba(43,191,106,.12); color: #6ee7a8; border: 1px solid rgba(43,191,106,.3); }

/* --- Catégories vignettes (Nos rayons) ------------------------------------- */
.ic-store-cattiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 760px){ .ic-store-cattiles { grid-template-columns: 1fr; } }
.ic-store-cattile { background: var(--store-bg-card); border: 1px solid var(--store-border); border-radius: var(--store-radius-card); padding: 1.4rem; box-shadow: var(--store-shadow-card); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ic-store-cattile:hover { transform: translateY(-3px); box-shadow: var(--store-shadow-card-hover); border-color: var(--store-border-strong); }
.ic-store-cattile__title { font-size: 1.15rem; font-weight: 700; color: var(--store-text-primary); display: inline-flex; align-items: center; gap: .5rem; }
.ic-store-cattile__title:hover { color: var(--store-primary); }
.ic-store-cattile__subs { list-style: none; padding: 0; margin: .8rem 0 0; columns: 2; }
.ic-store-cattile__subs li { margin-bottom: .35rem; break-inside: avoid; }
.ic-store-cattile__subs a { color: var(--store-text-muted); font-size: .85rem; }
.ic-store-cattile__subs a:hover { color: var(--store-primary); }

/* --- Related strip (maillage interne pages services/blog) ------------------ */
.ic-store-related-strip { background: var(--store-bg-soft); border: 1px solid var(--store-border); border-radius: var(--store-radius-card); padding: 1.4rem; margin: 2rem 0; }

/* --- Sous-navigation catégorie (chips) ------------------------------------- */
.ic-store-subnav { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.ic-store-subnav__chip {
  display: inline-flex; align-items: center; background: var(--store-bg-card);
  border: 1px solid var(--store-border); border-radius: var(--store-radius-pill);
  padding: .5rem 1rem; font-weight: 600; font-size: .88rem; color: var(--store-text-primary);
  transition: border-color .15s, color .15s;
}
.ic-store-subnav__chip:hover { border-color: var(--store-primary); color: var(--store-primary); }

/* Masqué visuellement, lu par les lecteurs d'écran (titres de structure h2). */
.ic-store-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ic-store-skip { position: absolute; left: -999px; }
.ic-store-skip:focus { left: 1rem; top: 1rem; background: var(--store-bg-card); color: var(--store-text-primary); padding: .5rem 1rem; z-index: 2000; border-radius: 8px; }

/* ==========================================================================
   Responsive mobile (≤ 640px) — panier, checkout, fiche, padding bas sticky
   ========================================================================== */
@media (max-width: 640px) {
  .ic-store__container { padding: 0 .85rem; }
  .ic-store-hero { padding: 1.8rem 1rem 2rem; }
  .ic-store-hero__search { flex-direction: column; }
  .ic-store-hero__search .ic-store-btn { width: 100%; }
  .ic-store-section { padding: 1.5rem 0; }

  /* Panier : la ligne se réorganise (image + infos en haut, total en bas) */
  .ic-store-cart__line {
    grid-template-columns: 72px 1fr; grid-template-areas: "img info" "img total";
    column-gap: .8rem; row-gap: .3rem; padding: .9rem 0;
  }
  .ic-store-cart__line > a:first-child { grid-area: img; }
  .ic-store-cart__line img { width: 72px; height: 72px; }
  .ic-store-cart__line > div:nth-child(2) { grid-area: info; }
  .ic-store-cart__line > div:last-child { grid-area: total; align-self: end; text-align: left; }

  /* Récap : non sticky, pleine largeur, placé sous le contenu */
  .ic-store-summary { position: static; }

  /* Checkout : une seule colonne de champs ; récap au-dessus */
  .ic-store-form__grid { grid-template-columns: 1fr; }
  .ic-store-checkout { display: flex; flex-direction: column; }
  .ic-store-checkout aside { order: -1; }

  /* Fiche produit : galerie au-dessus du bloc achat (déjà 1 col) + padding bas
     pour ne pas masquer le contenu derrière la barre sticky d'achat */
  .ic-store { padding-bottom: 88px; }
  .ic-store-buybox { padding: 1.1rem; }
  .ic-store-gallery__thumb { width: 60px; height: 60px; }

  /* Boutons pleine largeur plus confortables au pouce */
  .ic-store-btn { min-height: 50px; }
}

/* Tablette : grille produits 2 colonnes plus lisible */
@media (min-width: 641px) and (max-width: 760px) {
  .ic-store-grid { grid-template-columns: repeat(2, 1fr); }
}
