/* AutoDia Suisse — Design system automobile */
:root {
  --bg: #0c0e12;
  --bg-elevated: #151920;
  --bg-surface: #1c222c;
  --bg-muted: #242b36;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f4f7;
  --text-muted: #c5ccd8;
  --text-soft: #b0b8c6;
  --accent: #e10600;
  --accent-hover: #ff1a14;
  --accent-soft: rgba(225, 6, 0, 0.14);
  --accent-blue: #2f6fed;
  --accent-blue-soft: rgba(47, 111, 237, 0.16);
  --success: #1f9d55;
  --gold: #d4a017;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 72px;
  --banner-h: 36px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(225, 6, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 30%, rgba(47, 111, 237, 0.14), transparent 50%),
    linear-gradient(180deg, #10131a 0%, var(--bg) 40%, #0a0c10 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Top banner —— */
.top-banner {
  background: linear-gradient(90deg, #1a1f28, #2a303c 50%, #1a1f28);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.top-banner span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #8a0000);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(225, 6, 0, 0.35);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--accent);
}

.brand-flag {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.brand-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-tag {
  font-size: 0.7rem;
  color: #e8ecf2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1c222c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: #f2f4f7;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 2.4rem;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: rgba(47, 111, 237, 0.55);
  background: #242b36;
}

.lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: block;
}

.lang-caret {
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa3b2;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 100%;
  background: #1c222c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  color: #f2f4f7;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.65rem;
  border-radius: 7px;
  text-align: left;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(47, 111, 237, 0.2);
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.cart-btn:hover,
.cart-btn.is-active {
  background: var(--bg-surface);
  border-color: rgba(47, 111, 237, 0.45);
}

.cart-btn:active {
  transform: scale(0.97);
}

.cart-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(225, 6, 0, 0.5);
}

/* —— Product —— */
.product {
  padding: 2.5rem 0 4rem;
}

.product-secondary {
  border-top: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

/* Gallery */
.gallery {
  position: sticky;
  top: calc(var(--banner-h) + var(--header-h) + 1rem);
}

.gallery-main {
  position: relative;
  background:
    linear-gradient(160deg, #1a1f28 0%, #0e1116 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

/* Masque le widget blanc (ovale/curseur) sur le bord droit de l’image */
.gallery-main::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: clamp(28px, 6%, 56px);
  height: 64%;
  background: #0e1116;
  border-radius: 12px 0 0 12px;
  pointer-events: none;
  z-index: 2;
  box-shadow: -18px 0 28px 12px #0e1116;
}

.gallery-main img {
  width: 104%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  cursor: zoom-in;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.gallery-main img.is-switching {
  opacity: 0.4;
  transform: scale(1.02);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.85rem;
  position: relative;
  z-index: 3;
}

.thumb {
  position: relative;
  z-index: 3;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: var(--bg-elevated);
  aspect-ratio: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s, transform 0.2s;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 10%;
  background: linear-gradient(90deg, transparent, #0e1116 70%);
  pointer-events: none;
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.thumb img {
  width: 110%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.thumb:hover {
  transform: translateY(-2px);
}

.thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem 1.5rem;
  background: rgba(3, 5, 8, 0.92);
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  width: min(100%, 1100px);
  height: min(78vh, 900px);
  display: grid;
  place-items: center;
  overflow: auto;
}

.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.lightbox-close,
.lightbox-toolbar {
  position: absolute;
  z-index: 4;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-toolbar {
  top: 1rem;
  left: 50%;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
}

.lightbox-toolbar button {
  min-width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 700;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(21, 25, 32, 0.92);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-nav[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  z-index: 950;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 5, 8, 0.72);
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer-panel {
  width: min(100%, 430px);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 36px rgba(0, 0, 0, 0.3);
}

.cart-drawer-header,
.cart-drawer-total,
.cart-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-drawer-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h2 {
  margin: 0;
  font-family: var(--font-display);
}

.cart-drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.cart-drawer-items {
  display: grid;
  gap: 1rem;
  flex: 1;
  margin: 0;
  padding: 1rem 0;
  overflow-y: auto;
  list-style: none;
}

.cart-drawer-item {
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-drawer-item-info {
  flex: 1;
}

.cart-drawer-item-name {
  display: block;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.cart-drawer-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.cart-drawer-item-actions button {
  min-width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
}

.cart-drawer-remove {
  color: var(--accent) !important;
}

.cart-drawer-empty {
  padding: 2rem 0;
  color: var(--text-muted);
}

.cart-recommendations {
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--border);
}

.cart-recommendations[hidden] {
  display: none;
}

.cart-recommendations h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cart-recommendation-items {
  display: grid;
  gap: 0.65rem;
}

.cart-recommendation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.cart-recommendation img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
}

.cart-recommendation-name {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.cart-recommendation-price {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cart-recommendation button {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.cart-drawer-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cart-drawer-total {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Product info */
.product-info {
  padding-top: 0.25rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #b8c0ce;
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: #f2f4f7;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.rating span {
  color: var(--text-muted);
  font-weight: 500;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 600;
}

.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.25);
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.price-currency {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-old {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-note {
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 600;
}

.features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.features li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--text-muted);
  font-size: 1rem;
}

.features li strong {
  color: var(--text);
  font-weight: 600;
}

.feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon.blue {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
}

.rating .stars {
  letter-spacing: -0.08em;
}

.feature-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purchase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
}

.qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  transition: background 0.15s;
}

.qty-control button:hover {
  background: var(--bg-muted);
}

.qty-control input {
  width: 48px;
  height: 40px;
  border: none;
  border-inline: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.05rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(225, 6, 0, 0.4);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.add-to-cart:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(225, 6, 0, 0.5);
}

.add-to-cart:active {
  transform: translateY(1px);
}

.add-to-cart.added {
  background: linear-gradient(180deg, #24b866 0%, var(--success) 100%);
  box-shadow: 0 10px 28px rgba(31, 157, 85, 0.35);
}

.add-to-cart svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.payment-label {
  width: 100%;
  font-size: 0.8rem;
  color: #d5dae3;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 58px;
  padding: 0 0.65rem;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pay-badge.visa {
  color: #1a1f71;
  font-style: italic;
  font-size: 0.95rem;
}

.pay-badge.mc {
  gap: 2px;
  background: #fff;
}

.pay-badge.mc .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.pay-badge.mc .dot.r {
  background: #eb001b;
}

.pay-badge.mc .dot.o {
  background: #f79e1b;
  margin-left: -6px;
}

.pay-badge.apple {
  background: #000;
  color: #fff;
  font-weight: 600;
  gap: 0.25rem;
  font-size: 0.78rem;
}

.pay-badge.apple::before {
  content: "";
  width: 12px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath fill='black' d='M11.5 9.1c0-2 1.6-3 1.7-3.1-0.9-1.4-2.4-1.5-2.9-1.6-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.7-.7C2.5 4.5.9 5.6.3 7.4c-1.3 2.3-.3 5.7 1 7.6.6.9 1.4 1.9 2.4 1.9 1 0 1.3-.6 2.5-.6 1.2 0 1.5.6 2.5.6 1 0 1.7-1 2.3-1.9.7-1 1-2 1-2.1-.1 0-1.9-.7-1.9-3zM9.4 3.3c.5-.6.9-1.5.8-2.3-.8 0-1.7.5-2.3 1.2-.5.6-1 1.5-.9 2.3.9.1 1.8-.4 2.4-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 17'%3E%3Cpath fill='black' d='M11.5 9.1c0-2 1.6-3 1.7-3.1-0.9-1.4-2.4-1.5-2.9-1.6-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.7-.7C2.5 4.5.9 5.6.3 7.4c-1.3 2.3-.3 5.7 1 7.6.6.9 1.4 1.9 2.4 1.9 1 0 1.3-.6 2.5-.6 1.2 0 1.5.6 2.5.6 1 0 1.7-1 2.3-1.9.7-1 1-2 1-2.1-.1 0-1.9-.7-1.9-3zM9.4 3.3c.5-.6.9-1.5.8-2.3-.8 0-1.7.5-2.3 1.2-.5.6-1 1.5-.9 2.3.9.1 1.8-.4 2.4-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pay-badge.twint {
  background: #000;
  color: #fff;
  letter-spacing: 0.04em;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  text-align: center;
  font-size: 0.8rem;
  color: #c5ccd8;
  line-height: 1.35;
}

.trust-item strong {
  display: block;
  color: #f0f3f7;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--bg-surface);
  border: 1px solid rgba(31, 157, 85, 0.4);
  color: var(--text);
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: min(360px, calc(100vw - 2rem));
  font-size: 0.95rem;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080a0d;
  padding: 2.75rem 0 1.5rem;
  color: #d0d6e0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-line {
  margin: 0 0 0.35rem;
  color: #d5dae3;
  line-height: 1.5;
}

.footer-line a {
  color: #e8ecf4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.footer-line a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a {
  color: #d5dae3;
  text-decoration: none;
  width: fit-content;
  transition: color 0.15s;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #b8c0ce;
}

/* Legal / contact pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: #fff;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
  color: #fff;
}

.legal-content p,
.legal-intro {
  margin: 0 0 0.85rem;
  color: #d5dae3;
  line-height: 1.65;
}

.legal-content a {
  color: #9db7ff;
}

.legal-content section {
  margin-bottom: 0.5rem;
}

.contact-card {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  margin-top: 1.25rem;
}

.contact-card p {
  margin: 0 0 0.85rem;
  color: #e8ecf4;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-actions .checkout-btn,
.contact-actions .btn-secondary {
  width: auto;
  margin: 0;
  min-width: 160px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* —— Cart page —— */
.cart-page {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - var(--banner-h) - var(--header-h) - 120px);
}

.cart-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
  color: #ffffff;
}

.cart-empty {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.cart-empty p {
  color: #f5f5f5;
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(47, 111, 237, 0.5);
  background: var(--accent-blue-soft);
  color: #c9d9ff;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(47, 111, 237, 0.28);
  border-color: var(--accent-blue);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.cart-items-wrap {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: visible;
  color: #ffffff;
  min-width: 0;
}

.cart-table-head {
  display: none;
  grid-template-columns: minmax(0, 1.8fr) 0.7fr 0.9fr 0.7fr;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #252525;
  color: #ffffff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cart-table-head span:nth-child(2),
.cart-table-head span:nth-child(3),
.cart-table-head span:nth-child(4) {
  text-align: center;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-cross-sell {
  max-height: none;
  padding: 1rem;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-cross-sell[hidden] {
  display: none;
}

.cart-cross-sell h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cart-cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.cart-cross-sell-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
  padding: 0.6rem;
  text-align: center;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
}

.cart-cross-sell-card img {
  max-width: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.cart-item img,
.cart-page img,
.cart-drawer img,
.cart-table img,
.recommended-product img,
.cart-cross-sell-card img,
.cart-recommendation img,
[class*="cart"] img {
  display: none !important;
  max-width: 80px !important;
  max-height: 80px !important;
  width: 80px !important;
  height: auto !important;
  object-fit: contain !important;
  visibility: hidden !important;
}

.cart-page .cart-item-product > a,
.cart-item-thumb-link {
  display: none !important;
}

.cart-page .cart-items-wrap {
  min-width: 0;
}

.cart-cross-sell-card-info {
  display: grid;
  width: 100%;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
}

.cart-cross-sell-card-info a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cart-cross-sell-card-info strong {
  color: #fff;
  font-size: 0.9rem;
}

.cart-cross-sell-card-info button {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.cart-cross-sell-card-info button:hover {
  background: var(--accent);
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 15px;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #1e1e1e;
  overflow: visible;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-product {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 15px;
  align-items: center;
}

.cart-item-product img {
  width: 80px;
  max-width: 80px;
  height: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0e1116;
}

.cart-item-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cart-item-name:hover {
  color: #dbe7ff;
}

.cart-item-inline-price {
  color: #f0f0f0;
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: #c8c8c8;
  font-size: 0.8rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item-remove:hover {
  color: var(--accent);
}

.cart-item-price,
.cart-item-total {
  text-align: center;
  font-weight: 600;
  color: #f0f0f0;
}

.cart-item-price {
  min-width: 78px;
  text-align: left;
}

.cart-item-total {
  display: none;
  color: #ffffff;
}

.cart-item-qty {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.qty-control.compact button {
  width: 34px;
  height: 34px;
}

.qty-control.compact input {
  width: 40px;
  height: 34px;
  font-size: 0.9rem;
}

.cart-summary {
  background-color: #252525;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.5rem;
  position: sticky;
  top: calc(var(--banner-h) + var(--header-h) + 1rem);
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  overflow: visible;
}

.cart-summary h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.summary-row strong {
  color: #ffffff;
  font-weight: 700;
}

.summary-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.05rem;
  color: #ffffff;
}

.summary-total strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  min-height: 52px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(225, 6, 0, 0.35);
  transition: filter 0.2s, transform 0.15s;
  position: relative;
  z-index: 80;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.cart-sticky-checkout {
  display: none;
}

.checkout-btn:hover {
  filter: brightness(1.08);
}

.checkout-btn:active {
  transform: translateY(1px);
}

.checkout-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}

.link-back {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  color: #d0d0d0;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-back:hover {
  color: #ffffff;
}

.cart-pay {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cart-pay .payment-label {
  color: #e8e8e8;
}

/* —— Success / confirmation —— */
.success-page {
  padding: 2.75rem 0 4rem;
  min-height: calc(100vh - var(--banner-h) - var(--header-h) - 120px);
}

.success-card {
  max-width: 640px;
  margin: 0 auto;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #24b866, var(--success));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(31, 157, 85, 0.35);
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: #ffffff;
}

.success-lead {
  margin: 0 0 1rem;
  color: #e8e8e8;
  font-size: 1.05rem;
  line-height: 1.55;
}

.success-tracking {
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(47, 111, 237, 0.16);
  border: 1px solid rgba(47, 111, 237, 0.35);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.success-steps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.success-steps li {
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f0f0f0;
  font-size: 0.95rem;
}

.success-steps strong {
  color: #ffffff;
  margin-right: 0.35rem;
}

.success-actions {
  margin-bottom: 1.25rem;
}

.success-home {
  display: inline-flex;
  width: auto;
  min-width: min(100%, 280px);
  margin-top: 0;
}

.success-help {
  margin: 0;
  font-size: 0.9rem;
  color: #c8c8c8;
}

.success-help a {
  color: #9db7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Admin suivi —— */
.admin-card {
  text-align: left;
}

.admin-card .success-title,
.admin-card .success-lead {
  text-align: center;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0f0f0;
}

.admin-form input {
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.admin-form input:focus {
  outline: none;
  border-color: rgba(47, 111, 237, 0.7);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-actions .checkout-btn,
.admin-actions .btn-secondary {
  flex: 1 1 200px;
  margin-top: 0;
  width: auto;
}

.admin-preview {
  margin: 1.25rem 0;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.admin-preview summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.admin-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #d8d8d8;
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-info > * {
  animation: fadeUp 0.55s ease both;
}

.product-info > *:nth-child(1) { animation-delay: 0.05s; }
.product-info > *:nth-child(2) { animation-delay: 0.1s; }
.product-info > *:nth-child(3) { animation-delay: 0.15s; }
.product-info > *:nth-child(4) { animation-delay: 0.2s; }
.product-info > *:nth-child(5) { animation-delay: 0.25s; }
.product-info > *:nth-child(6) { animation-delay: 0.3s; }
.product-info > *:nth-child(7) { animation-delay: 0.35s; }
.product-info > *:nth-child(8) { animation-delay: 0.4s; }

.gallery-main {
  animation: fadeUp 0.6s ease both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .gallery {
    position: static;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .trust-item {
    text-align: left;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
  }

  .trust-item strong {
    display: inline;
    margin: 0;
  }

  .trust-item strong::after {
    content: " —";
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    order: 1;
    z-index: 35;
  }

  .cart-items-wrap {
    order: 0;
  }

  .cart-page {
    padding-bottom: 7.5rem;
  }

  .cart-sticky-checkout:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.45);
  }

  .cart-sticky-checkout strong {
    color: #fff;
    white-space: nowrap;
  }

  .cart-sticky-checkout .checkout-btn {
    margin-top: 0;
    flex: 1 1 auto;
  }

  .cart-table-head {
    display: none;
  }

  .cart-item {
    gap: 12px;
  }

  .cart-item-product,
  .cart-item-qty {
    width: 100%;
  }

  .cart-item-qty {
    justify-content: space-between;
  }

  .cart-item-price,
  .cart-item-total,
  .cart-item-qty {
    justify-content: flex-start;
    text-align: left;
  }

  .cart-item-price::before {
    content: "Prix : ";
    color: var(--text-soft);
    font-weight: 500;
  }

  .cart-item-total::before {
    content: "Total : ";
    color: var(--text-soft);
    font-weight: 500;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 64px;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-flag {
    width: 32px;
    height: 32px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .lang-btn-label {
    display: none;
  }

  .lang-btn {
    padding: 0.45rem 0.55rem;
  }

  .cart-btn .cart-label {
    display: none;
  }

  .top-banner {
    font-size: 0.72rem;
  }

  .price {
    font-size: 2rem;
  }

  .add-to-cart {
    font-size: 1.15rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--max));
  }
}
