/* ===============================================================
   PILOT GAMING v2 — Core styles
   Theme: Space cosmique + Military HUD accents
   =============================================================== */

:root {
  /* Palette de base */
  --bg-deep: #05080f;
  --bg: #0a0e1a;
  --bg-elev: #0d1b2a;
  --bg-card: #0f1d30;
  --bg-panel: rgba(13, 27, 42, 0.72);
  --border: #1b3b63;
  --border-soft: rgba(27, 59, 99, 0.5);

  /* Texte */
  --text: #e8eef7;
  --text-dim: #9fb2c7;
  --text-muted: #6b7f95;

  /* Accents HUD */
  --accent: #d4a853;        /* dorure HUD */
  --accent-bright: #f5c978;
  --hud: #4da3ff;           /* bleu HUD scanlines */
  --hud-glow: #5fb3ff;
  --alert: #ff5252;
  --success: #7fcf6f;
  --warn: #ffb840;

  /* Mesures */
  --radius: 6px;
  --radius-sm: 4px;
  --maxw: 1280px;
  --nav-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Typo */
  --font-head: 'Orbitron', 'Arial Black', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hud); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--hud-glow); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }

/* ===== Background étoilé ===== */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(77, 163, 255, .07) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 168, 83, .05) 0%, transparent 40%),
    linear-gradient(180deg, #05080f 0%, #0a0e1a 100%);
}
.starfield::before, .starfield::after {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: .5;
  animation: drift 120s linear infinite;
}
.starfield::before {
  background-image:
    radial-gradient(1px 1px at 25% 20%, #fff, transparent),
    radial-gradient(1px 1px at 75% 80%, #fff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent),
    radial-gradient(2px 2px at 15% 60%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(77,163,255,.6), transparent);
  background-size: 400px 400px;
}
.starfield::after {
  background-image:
    radial-gradient(1px 1px at 10% 10%, #fff, transparent),
    radial-gradient(1px 1px at 60% 40%, #fff, transparent),
    radial-gradient(2px 2px at 85% 85%, rgba(212,168,83,.6), transparent);
  background-size: 600px 600px;
  animation-duration: 200s;
  animation-direction: reverse;
}
@keyframes drift {
  from { transform: translate(0,0); }
  to   { transform: translate(-400px,-400px); }
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 8, 15, 0.82);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 18px;
  text-transform: uppercase;
}
.brand-mark {
  width: 40px; height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(212,168,83,.2), transparent 70%);
}
.brand-mark::before {
  content: '◆'; color: var(--accent); font-size: 14px;
}
.nav-links {
  display: flex; gap: 4px; margin-left: auto; align-items: center;
}
.nav-links a {
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  transition: all .2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--accent); background: rgba(212,168,83,.07); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--accent);
}

.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch, .cur-switch {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cart-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(212,168,83,.15), rgba(212,168,83,.05));
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  transition: all .2s var(--ease);
}
.cart-btn:hover { background: rgba(212,168,83,.2); box-shadow: 0 0 20px rgba(212,168,83,.3); }
.cart-count {
  background: var(--accent);
  color: var(--bg-deep);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.burger { display: none; background: none; border: none; color: var(--text); font-size: 24px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,163,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s var(--ease);
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(212,168,83,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,168,83,.5); color: var(--bg-deep); }
.btn-secondary {
  background: transparent;
  color: var(--hud);
  border: 1px solid var(--hud);
}
.btn-secondary:hover { background: rgba(77,163,255,.1); box-shadow: 0 0 20px rgba(77,163,255,.3); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  margin: 0 0 12px;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 50px;
  max-width: 700px;
}

/* ===== Cartes produits ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 40px rgba(212,168,83,.15);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.product-card:hover::before, .product-card:hover::after { opacity: 1; }

.product-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
  display: grid; place-items: center;
}
.product-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform .5s var(--ease);
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .img-placeholder {
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 2px;
}

.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.badge-sale {
  background: var(--alert);
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}
.badge-featured { background: var(--accent); color: var(--bg-deep); }
.badge-low-stock { background: var(--warn); color: var(--bg-deep); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,82,82,.6); }
  50%      { box-shadow: 0 0 0 8px rgba(255,82,82,0); }
}

.product-card .body {
  padding: 20px;
  flex: 1;
  display: flex; flex-direction: column;
}
.product-card .category {
  font-family: var(--font-head);
  color: var(--hud);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card .title {
  font-family: var(--font-head);
  color: var(--text);
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-card .desc {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 16px;
  flex: 1;
}
.product-card .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.price {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}
.price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 15px;
}
.price-from {
  color: var(--text-muted);
  font-size: 12px;
  margin-right: 4px;
}

/* ===== Fiche produit ===== */
.product-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 40px 0;
}
.product-gallery { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.gallery-main {
  aspect-ratio: 1/1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.gallery-thumb {
  aspect-ratio: 1/1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: .6;
  transition: all .2s var(--ease);
  display: grid; place-items: center;
  padding: 6px;
}
.gallery-thumb.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 12px rgba(212,168,83,.3); }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { object-fit: contain; }

.product-info .breadcrumb {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-info h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 12px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}
.product-info .tagline {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.product-price-box {
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}
.product-price-box .big-price {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--accent);
  font-weight: 700;
}
.product-price-box .old-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 18px;
  margin-left: 12px;
}

.variant-selector {
  display: flex; flex-direction: column; gap: 10px;
  margin: 20px 0;
}
.variant-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.variant-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-opt {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s var(--ease);
  font-size: 13px;
}
.variant-opt:hover { border-color: var(--accent); }
.variant-opt.selected {
  border-color: var(--accent);
  background: rgba(212,168,83,.1);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(212,168,83,.25);
}
.variant-opt.disabled { opacity: .4; cursor: not-allowed; }
.variant-opt .add-price { display: block; font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.qty-row { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.qty-picker {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-picker button {
  background: var(--bg-elev);
  border: none;
  color: var(--accent);
  width: 40px; height: 40px;
  font-size: 18px;
}
.qty-picker input {
  background: var(--bg);
  border: none;
  width: 60px;
  text-align: center;
  color: var(--text);
  font-size: 16px;
}

.stock-indicator { font-size: 13px; margin: 8px 0; font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase; }
.stock-in { color: var(--success); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--alert); }

.features-list {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.features-list h3 {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.features-list ul { list-style: none; padding: 0; margin: 0; }
.features-list li {
  padding: 8px 0 8px 28px;
  border-bottom: 1px dashed var(--border-soft);
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  color: var(--accent);
}

.product-long-desc {
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  line-height: 1.8;
  color: var(--text-dim);
}

/* ===== Upsells ===== */
.upsells {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}
.upsells h2 {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

/* ===== Panier ===== */
.cart-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.cart-items {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .img {
  width: 80px; height: 80px;
  background: var(--bg-deep);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 6px;
  display: grid; place-items: center;
}
.cart-item .title { font-family: var(--font-head); color: var(--accent); font-size: 15px; letter-spacing: 1px; }
.cart-item .variant { color: var(--text-dim); font-size: 13px; }
.cart-item .price { font-size: 18px; }
.cart-item .remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  padding: 8px;
}
.cart-item .remove:hover { color: var(--alert); }

.cart-summary {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.cart-summary h3 {
  font-family: var(--font-head);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 0 20px;
}
.cart-summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  color: var(--text-dim);
}
.cart-summary .row.total {
  border-top: 1px solid var(--border);
  margin-top: 12px; padding-top: 16px;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
}
.cart-summary .coupon-row { margin-top: 16px; display: flex; gap: 8px; }
.cart-summary .coupon-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

/* ===== Checkout ===== */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.checkout-form {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.form-section { margin-bottom: 32px; }
.form-section h3 {
  font-family: var(--font-head);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 15px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,168,83,.15);
}
.form-field.error input, .form-field.error select, .form-field.error textarea { border-color: var(--alert); }
.form-field .err-msg { color: var(--alert); font-size: 12px; margin-top: 4px; display: none; }
.form-field.error .err-msg { display: block; }
.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
  color: var(--text-dim);
  cursor: pointer;
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.pay-methods { display: flex; gap: 14px; }
.pay-btn {
  flex: 1;
  padding: 18px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-head);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  transition: all .2s var(--ease);
}
.pay-btn:hover { border-color: var(--accent); }
.pay-btn.selected { border-color: var(--accent); background: rgba(212,168,83,.06); color: var(--accent); }

/* ===== FAQ ===== */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-cat { margin-bottom: 32px; }
.faq-cat h3 {
  font-family: var(--font-head);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
  transition: background .2s var(--ease);
}
.faq-q:hover { background: var(--bg-card); }
.faq-q .chev { color: var(--accent); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
  padding: 0 20px;
  color: var(--text-dim);
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 20px; }

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.review-author { font-family: var(--font-head); color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.review-country { font-size: 12px; color: var(--text-muted); }
.stars { color: var(--accent); letter-spacing: 2px; }
.review-text { color: var(--text-dim); font-size: 14px; margin: 10px 0 0; }

/* ===== Footer ===== */
footer.site-footer {
  margin-top: 80px;
  padding: 60px 0 30px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-dim);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Flash message ===== */
.flash {
  position: fixed;
  top: calc(var(--nav-h) + 20px);
  right: 24px;
  z-index: 200;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--accent);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  min-width: 280px;
  animation: flash-in .3s var(--ease);
}
.flash.error { border-color: var(--alert); }
.flash.success { border-color: var(--success); }
@keyframes flash-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Loading / spinner ===== */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(212,168,83,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Custom service section ===== */
.custom-form {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links a { padding: 8px 10px; font-size: 12px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-wrap, .checkout-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-deep);
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .burger { display: block; margin-left: auto; }
  .hero { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .pay-methods { flex-direction: column; }
}
