/* ============================================================
   Académie Bungee Canada — Design system
   Palette extraite du logo, appliquée avec parcimonie (le rouge
   reste réservé aux accents critiques : promo, urgence, badges).
   ============================================================ */

:root {
  /* Couleurs de marque */
  --color-navy: #1B2A4A;
  --color-blue: #22407A;
  --color-violet: #6B2FA0;
  --color-teal: #3FBFC4;
  --color-red: #D6294F;

  /* Neutres */
  --color-bg: #FAFAFB;
  --color-bg-alt: #F0F1F5;
  --color-white: #FFFFFF;
  --color-border: #E2E4EA;
  --color-text: #1B2430;
  --color-text-muted: #5B6472;

  /* Typographie */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espacement (échelle de 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* Rayons / ombres */
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.12);

  --container-max: 1200px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, picture, video { max-width: 100%; display: block; }
button { font: inherit; }

/* ---------- Typographie ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 var(--space-3); }

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--space-6); }
.section-alt { background: var(--color-bg-alt); }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .9rem; min-height: 44px; }

.btn-primary { background: var(--color-blue); color: var(--color-white); }
.btn-primary:hover { background: var(--color-navy); text-decoration: none; }

.btn-secondary { background: var(--color-violet); color: var(--color-white); }
.btn-secondary:hover { background: #5a2585; text-decoration: none; }

.btn-outline { background: transparent; border-color: var(--color-blue); color: var(--color-blue); }
.btn-outline:hover { background: var(--color-blue); color: var(--color-white); text-decoration: none; }

.btn-light { background: var(--color-white); color: var(--color-navy); }
.btn-light:hover { background: var(--color-bg-alt); text-decoration: none; }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--color-white); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: var(--color-white); text-decoration: none; }

/* ---------- Badges (accent rouge réservé : promo, urgence) ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-accent { background: var(--color-red); color: var(--color-white); }
.badge-teal { background: var(--color-teal); color: var(--color-navy); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--color-navy); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--color-blue); }

/* ---------- Alertes ---------- */
.alert {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: .95rem;
}
.alert-error { background: #FCEAEE; color: #9A1B3A; border: 1px solid #F3B4C2; }
.alert-success { background: #E8F7F1; color: #0F6B4A; border: 1px solid #A9E3CB; }

/* ---------- Carte ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

/* ---------- Pages d'authentification ---------- */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-3);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.auth-card h1 { text-align: center; font-size: 1.6rem; }
.auth-card .auth-footer { text-align: center; margin-top: var(--space-3); font-size: .9rem; color: var(--color-text-muted); }

.dev-quick-login {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px dashed #F0D48A;
  border-radius: var(--radius-sm);
  background: #FFF9EC;
  text-align: center;
}
.dev-quick-login__label { font-size: .78rem; color: #7A5A00; margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: .03em; }
.dev-quick-login__buttons { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  .section { padding-block: var(--space-4); }
  .auth-card { padding: var(--space-4); }
}

/* ============================================================
   Header & navigation
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
  /* Le header a besoin de plus de largeur que le reste du contenu (logo +
     8 liens de nav + panier + langue + connexion sur une seule ligne) —
     override ciblé du max-width hérité de .container. */
  max-width: 1360px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-navy);
  margin-right: auto;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo img { width: 52px; height: 52px; object-fit: contain; }
.site-logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
  color: var(--color-navy);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav > ul > li > a {
  color: var(--color-navy);
  font-weight: 600;
  font-size: .95rem;
  padding: var(--space-2) 0;
}
.primary-nav > ul > li > a:hover { color: var(--color-blue); text-decoration: none; }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) 0;
  flex-direction: column;
  gap: 0;
}
.dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-weight: 500;
}
.dropdown li a:hover { background: var(--color-bg-alt); text-decoration: none; }
.has-dropdown.is-open .dropdown { display: flex; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--color-navy);
}
.cart-link:hover { color: var(--color-blue); }
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-red);
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-account-actions { display: none; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.lang-switch a { color: var(--color-text-muted); }
.lang-switch a.is-active { color: var(--color-blue); }
.lang-switch a:hover { text-decoration: none; color: var(--color-blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .site-logo__text { display: none; }

  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--space-4);
  }
  .primary-nav > ul > li > a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }

  .dropdown {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-3);
  }

  .site-header__actions { display: none; }

  .mobile-account-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) var(--space-4);
  }
  .mobile-account-actions .lang-switch { justify-content: center; padding-bottom: var(--space-2); }
  .mobile-account-actions .btn { width: 100%; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: #C9D2E3;
  margin-top: var(--space-7);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.site-footer__brand img { width: 60px; height: 60px; object-fit: contain; margin-bottom: var(--space-3); }
.site-footer__brand p { color: #C9D2E3; max-width: 320px; }

.site-footer h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer a { color: #C9D2E3; }
.site-footer a:hover { color: var(--color-teal); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-3);
  font-size: .85rem;
  color: #8E9AB5;
}
.site-footer__bottom p { margin: 0; }

/* ============================================================
   Page d'accueil
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 45%, var(--color-violet) 85%, var(--color-red) 130%);
  color: var(--color-white);
  text-align: center;
  padding-block: var(--space-7);
}
.hero h1 { color: var(--color-white); }
.hero-subtitle {
  color: rgba(255,255,255,.92);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto var(--space-4);
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.section .lede {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 720px;
}

.section-title { margin-bottom: var(--space-2); }
.section-subtitle { color: var(--color-text-muted); margin-bottom: var(--space-4); }

.solution-card {
  display: block;
  text-align: center;
  color: var(--color-text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.solution-card h3 { margin-bottom: var(--space-2); }
.solution-card p { color: var(--color-text-muted); margin-bottom: 0; font-size: .95rem; }

.solution-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-white);
}
.solution-badge--blue { background: var(--color-blue); }
.solution-badge--violet { background: var(--color-violet); }
.solution-badge--teal { background: var(--color-teal); color: var(--color-navy); }
.solution-badge--red { background: var(--color-red); }

.formation-spotlight {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
}
.formation-spotlight h2 { color: var(--color-white); }

.product-card { text-align: center; }
.product-card h3 { margin-bottom: var(--space-2); }
.product-price { font-family: var(--font-heading); font-weight: 700; color: var(--color-blue); font-size: 1.1rem; margin: 0; }

.empty-state {
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-4) 0;
}

.testimonial-card { display: flex; flex-direction: column; gap: var(--space-3); }
.testimonial-content { font-size: 1.05rem; color: var(--color-text); }
.testimonial-author { font-weight: 600; color: var(--color-navy); margin: 0; }
.testimonial-author span { font-weight: 400; color: var(--color-text-muted); }

.final-cta {
  background: linear-gradient(135deg, var(--color-violet), var(--color-blue));
  color: var(--color-white);
  text-align: center;
}
.final-cta h2 { color: var(--color-white); }
.final-cta p { color: rgba(255,255,255,.92); font-size: 1.1rem; }

.text-center { text-align: center; }

/* ============================================================
   Boutique & fiche produit
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-blue); }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: .9rem;
}
.filter-pill:hover { border-color: var(--color-blue); color: var(--color-blue); text-decoration: none; }
.filter-pill.is-active { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }

.product-tile { color: var(--color-text); text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.product-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.product-tile h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }

.product-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-white);
}
.product-thumb--large { max-width: 420px; font-size: 4rem; }
.thumb--blue { background: linear-gradient(135deg, var(--color-blue), var(--color-navy)); }
.thumb--violet { background: linear-gradient(135deg, var(--color-violet), #4a1f70); }
.thumb--teal { background: linear-gradient(135deg, var(--color-teal), #2a8488); color: var(--color-navy); }
.thumb--red { background: linear-gradient(135deg, var(--color-red), #9a1b3a); }

.price-original { text-decoration: line-through; color: var(--color-text-muted); font-weight: 400; margin-right: var(--space-2); }
.price-sale { color: var(--color-red); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-price--large { font-size: 1.6rem; margin-bottom: var(--space-3); }
.product-description { color: var(--color-text-muted); margin-bottom: var(--space-4); }

.product-form { max-width: 360px; }
.field--quantity input { max-width: 100px; }

.stock-status { font-weight: 600; margin-bottom: var(--space-3); }
.stock-status.in-stock { color: #0F6B4A; }
.stock-status.out-of-stock { color: var(--color-red); }

.product-sku { color: var(--color-text-muted); font-size: .85rem; margin-top: var(--space-3); }

.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;
}

/* ============================================================
   Panier
   ============================================================ */
.cart-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
@media (max-width: 640px) {
  .cart-line {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "thumb info"
      "thumb qty"
      "total total"
      "remove remove";
  }
  .cart-line__thumb { grid-area: thumb; }
  .cart-line__info { grid-area: info; }
  .cart-line__qty { grid-area: qty; }
  .cart-line__total { grid-area: total; text-align: left; }
  .cart-line__remove { grid-area: remove; justify-self: end; }
}

.cart-line__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-white);
}

.cart-line__info a { color: var(--color-navy); font-weight: 600; }
.cart-line__variant { color: var(--color-text-muted); font-size: .85rem; margin: 2px 0; }
.cart-line__price { color: var(--color-text-muted); font-size: .9rem; margin: 0; }

.cart-line__qty { display: flex; align-items: center; gap: var(--space-2); }
.cart-line__qty input { width: 64px; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }

.cart-line__total { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); text-align: right; }

.btn-remove {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.btn-remove:hover { border-color: var(--color-red); color: var(--color-red); }

.cart-summary {
  max-width: 360px;
  margin-left: auto;
  text-align: right;
}
.cart-summary__total { font-size: 1.1rem; margin-bottom: var(--space-3); }
.cart-summary__total strong { color: var(--color-navy); font-family: var(--font-heading); }
.btn-link { display: inline-block; margin-top: var(--space-3); color: var(--color-text-muted); }

/* ============================================================
   Tunnel de commande (adresse, paiement, confirmation)
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-4);
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.address-mode-toggle {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.address-mode-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.address-option {
  display: block;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  cursor: pointer;
  font-size: .9rem;
}
.address-option input { margin-right: var(--space-2); }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}

.checkout-summary { position: sticky; top: 90px; }
.checkout-summary__list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.checkout-summary__item { display: flex; align-items: center; gap: var(--space-2); font-size: .9rem; }
.checkout-summary__thumb {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: .9rem; color: var(--color-white);
  flex-shrink: 0;
}
.checkout-summary__name { flex: 1; color: var(--color-text); }
.checkout-summary__price { font-weight: 600; color: var(--color-navy); white-space: nowrap; }
.checkout-summary__note { color: var(--color-text-muted); font-size: .85rem; }

.checkout-summary__line { display: flex; justify-content: space-between; font-size: .95rem; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.checkout-summary__total { display: flex; justify-content: space-between; font-size: 1.15rem; border-top: 1px solid var(--color-border); padding-top: var(--space-3); margin-top: var(--space-2); margin-bottom: var(--space-4); }
.checkout-summary__total strong { color: var(--color-navy); font-family: var(--font-heading); }

.payment-simulated-notice {
  background: #FFF6E5;
  border: 1px solid #F0D48A;
  color: #7A5A00;
}

.confirmation-header { text-align: center; margin-bottom: var(--space-5); }
.confirmation-order-number { font-size: 1.1rem; }
.cart-line--summary { grid-template-columns: 1fr auto; }

/* ============================================================
   Espace client
   ============================================================ */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-4);
}
@media (max-width: 760px) {
  .account-layout { grid-template-columns: 1fr; }
}

.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { padding: 10px 14px; border-radius: var(--radius-sm); color: var(--color-text); font-weight: 600; font-size: .95rem; }
.account-nav a:hover { background: var(--color-bg-alt); text-decoration: none; }
.account-nav a.is-active { background: var(--color-blue); color: var(--color-white); }
@media (max-width: 760px) {
  .account-nav { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
}

.account-content { min-width: 0; }
.account-card { margin-bottom: var(--space-4); }

.orders-table { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.orders-table__row {
  display: grid;
  grid-template-columns: 1fr 120px 160px 100px;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.orders-table__row:hover { border-color: var(--color-blue); text-decoration: none; }
.orders-table__number { font-weight: 600; color: var(--color-navy); }
.orders-table__date { color: var(--color-text-muted); font-size: .9rem; }
.orders-table__total { font-weight: 700; text-align: right; color: var(--color-navy); }

@media (max-width: 640px) {
  .orders-table__row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "number total" "date status";
  }
  .orders-table__number { grid-area: number; }
  .orders-table__total { grid-area: total; text-align: right; }
  .orders-table__date { grid-area: date; }
  .orders-table__row .order-status { grid-area: status; justify-self: end; }
}

.order-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.order-status--pending { background: #FFF6E5; color: #7A5A00; }
.order-status--paid { background: #E8F7F1; color: #0F6B4A; }
.order-status--processing { background: #E7EEFB; color: var(--color-blue); }
.order-status--shipped { background: #EFE7FB; color: var(--color-violet); }
.order-status--completed { background: #E8F7F1; color: #0F6B4A; }
.order-status--cancelled { background: #FCEAEE; color: #9A1B3A; }
.order-status--refunded { background: #F0F1F5; color: var(--color-text-muted); }

.field-hint { display: block; color: var(--color-text-muted); font-size: .8rem; margin-top: 4px; }

.address-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.address-card { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); font-size: .9rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 760px; margin-inline: auto; }
.faq-category-title { margin-top: var(--space-5); }
.faq-category-title:first-child { margin-top: 0; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; display: inline-block; width: 1.2em; color: var(--color-blue); font-weight: 700; }
.faq-item[open] summary::before { content: '−'; }
.faq-item p { margin: var(--space-3) 0 0; color: var(--color-text-muted); }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-5);
  margin-top: var(--space-4);
  align-items: start;
}
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}
