/* ===== NEW PR — Earn the Standard ===== */
:root {
  --ink: #0a0a0a;
  --bg: #ffffff;
  --soft: #f4f4f4;
  --line: #e6e6e6;
  --muted: #8a8a8a;
  --white: #ffffff;
  /* darkish cobalt accent */
  --accent: #2f3ed1;
  --accent-glow: rgba(74, 94, 230, 0.55);
  --accent-haze: rgba(38, 52, 150, 0.22);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; }

.kicker { font-weight: 700; letter-spacing: .28em; font-size: .72rem; color: var(--muted); }

.btn {
  display: inline-block; background: var(--ink); color: var(--white);
  font-weight: 700; letter-spacing: .12em; font-size: .8rem;
  padding: 16px 32px; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background .18s, color .18s; font-family: inherit;
}
.btn:hover { background: var(--white); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-light { background: transparent; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Ticker */
.ticker { background: var(--ink); color: var(--white); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: scroll 30s linear infinite; }
.ticker-track span { font-weight: 700; font-size: .72rem; letter-spacing: .18em; padding: 9px 0; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; color: var(--ink); }
.logo-word { font-weight: 800; font-size: 1.05rem; letter-spacing: .18em; }
.nav { display: flex; gap: 32px; }
.nav a { font-weight: 600; font-size: .85rem; letter-spacing: .03em; opacity: .8; }
.nav a:hover { opacity: 1; color: var(--accent); }
.cart-btn { background: none; border: none; font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .08em; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cart-count { background: var(--accent); color: var(--white); border-radius: 50%; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; padding: 0 5px; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 50% 8%, var(--accent-haze), transparent 60%), var(--ink); color: var(--white); text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; padding: 48px 32px 110px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: clamp(90px, 18vw, 150px); color: var(--white); margin-bottom: 28px; }
.hero-word { font-weight: 800; font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: .22em; line-height: 1; }
.hero-tag { color: #9aa6e8; letter-spacing: .42em; font-size: clamp(.7rem, 2vw, .9rem); font-weight: 600; margin: 22px 0 40px; }

/* Sections */
.section { max-width: 1240px; margin: 0 auto; padding: 90px 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 40px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: .06em; }
.section-head span { color: var(--muted); font-weight: 600; letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { cursor: pointer; }
.card-img {
  aspect-ratio: var(--ar, 5 / 8); background: var(--soft); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* Sprite holds front + back (and sometimes 2 products in a 2x2 grid).
     --bg scales it; --front/--back slide to the right cell on hover. */
  background-size: var(--bg, 200% 100%); background-position: var(--front, 0% center);
  transition: background-position .55s ease;
}
.card-img .ph { width: 38%; color: rgba(10,10,10,.14); }
.card:hover .card-img { background-position: var(--back, 100% center); box-shadow: 0 14px 38px rgba(47, 62, 209, .22); }
.card-tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--white); font-weight: 700; font-size: .62rem; letter-spacing: .12em; padding: 5px 9px; z-index: 2; }
.card-info { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 600; font-size: .92rem; gap: 10px; }
.card-info .price { font-weight: 800; white-space: nowrap; }
.card-quick { margin-top: 4px; font-size: .76rem; color: var(--muted); letter-spacing: .04em; }

/* Brand */
.brand { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; border-top: 1px solid var(--line); }
.brand-img { background: radial-gradient(120% 100% at 30% 25%, var(--accent-haze), transparent 60%), var(--ink); display: flex; align-items: center; justify-content: center; }
.brand-mark { width: 40%; color: var(--white); opacity: .9; }
.brand-text { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.brand-text h2 { font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; letter-spacing: .04em; }
.brand-text p { max-width: 460px; color: #444; font-size: 1.02rem; line-height: 1.65; }
.brand-text .btn { align-self: flex-start; margin-top: 8px; }

/* Newsletter */
.news { background: var(--soft); text-align: center; padding: 100px 32px; }
.news h2 { font-weight: 800; font-size: clamp(1.8rem, 6vw, 3rem); letter-spacing: .06em; }
.news p { color: #555; margin: 14px 0 30px; }
.news-form { display: inline-flex; gap: 0; max-width: 480px; width: 100%; }
.news-form input { flex: 1; padding: 16px 18px; border: 1.5px solid var(--ink); border-right: none; background: var(--white); color: var(--ink); font: inherit; outline: none; }
.news-form input:focus { border-color: var(--accent); box-shadow: -3px 0 0 var(--accent); }
.news-form input::placeholder { color: var(--muted); }
.news-msg { margin-top: 18px; font-weight: 700; }

/* Footer */
.footer { background: radial-gradient(90% 140% at 80% 0%, var(--accent-haze), transparent 55%), var(--ink); color: var(--white); padding: 48px 32px 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid #2a2a2a; flex-wrap: wrap; gap: 16px; }
.footer .logo-mark { color: var(--white); }
.socials { display: flex; gap: 26px; font-weight: 600; font-size: .9rem; }
.socials a { opacity: .75; }
.socials a:hover { opacity: 1; color: #8f9bef; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; color: #888; font-size: .82rem; flex-wrap: wrap; gap: 8px; letter-spacing: .04em; }

/* ===== Modal (quick view) ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--white); max-width: 860px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; z-index: 3; color: var(--ink); }
.modal-img { background: var(--soft); aspect-ratio: var(--ar, 5 / 8); background-size: var(--bg, 200% 100%); background-position: var(--front, 0% center); display: flex; align-items: center; justify-content: center; transition: background-position .55s ease; }
.modal-img:hover { background-position: var(--back, 100% center); }
.modal-img .ph { width: 38%; color: rgba(10,10,10,.14); }
.modal-body { padding: 48px 40px; display: flex; flex-direction: column; gap: 12px; }
.modal-body h3 { font-weight: 800; font-size: 1.7rem; letter-spacing: .04em; }
.modal-price { font-weight: 800; font-size: 1.3rem; }
.modal-desc { color: #555; line-height: 1.6; font-size: .95rem; }
.modal-label { font-weight: 700; font-size: .78rem; letter-spacing: .12em; margin-top: 8px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 48px; padding: 11px 12px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 600; cursor: pointer; transition: .15s; }
.size:hover { border-color: var(--ink); }
.size.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.modal-add { margin-top: 14px; }

/* ===== Cart drawer ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 110; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: var(--white); z-index: 120; transform: translateX(100%);
  transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.12);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-weight: 800; letter-spacing: .12em; font-size: 1rem; }
.drawer-close { background: none; border: none; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { color: var(--muted); text-align: center; padding: 60px 20px; font-weight: 500; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line-img { width: 64px; height: 80px; background: var(--soft); background-size: var(--bg, 200% 100%); background-position: var(--front, 0% center); display: flex; align-items: center; justify-content: center; }
.cart-line-img .ph { width: 50%; color: rgba(10,10,10,.16); }
.cart-line-name { font-weight: 700; font-size: .9rem; }
.cart-line-meta { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font: inherit; font-weight: 700; line-height: 1; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line-price { font-weight: 800; font-size: .9rem; }
.cart-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .72rem; text-decoration: underline; padding: 0; }
.drawer-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; }
.drawer-note { color: var(--muted); font-size: .76rem; margin: 8px 0 16px; }
.checkout-err { color: #c0202a; font-size: .82rem; margin-top: 12px; font-weight: 600; }

/* ===== Product page (PDP) — style Gymshark ===== */
.pdp { max-width: 1340px; margin: 0 auto; padding: 22px 28px 90px; }
.pdp-back { display: inline-block; font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.pdp-back:hover { color: var(--ink); }
.pdp-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }

/* Gallery : collage face + dos */
.pdp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-tile {
  position: relative; margin: 0; aspect-ratio: var(--ar, 5 / 8);
  background-color: var(--soft); background-repeat: no-repeat; overflow: visible; cursor: crosshair;
  display: flex; align-items: center; justify-content: center;
}
.pdp-tile .ph { width: 32%; color: rgba(10,10,10,.14); }
.pdp-lens {
  position: absolute; border: 1.5px solid rgba(10,10,10,.45); background: rgba(255,255,255,.18);
  pointer-events: none; z-index: 4;
}
.pdp-zoom {
  position: absolute; width: 170px; height: 170px;
  background-repeat: no-repeat; background-color: var(--soft);
  border: 1px solid var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3);
  pointer-events: none; z-index: 6;
}

/* Info column (sticky) */
.pdp-info { position: sticky; top: 86px; }
.pdp-badge {
  display: inline-block; background: #fdecec; color: #c0202a; font-weight: 800;
  font-size: .72rem; letter-spacing: .04em; padding: 6px 10px; border-radius: 4px; margin-bottom: 16px;
}
.pdp-name { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .02em; }
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 16px; }
.pdp-price { font-weight: 800; font-size: 1.4rem; }
.pdp-price.sale { color: #c0202a; }
.pdp-compare { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 1.05rem; }

.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.pdp-rating .stars { color: #111; display: inline-flex; gap: 1px; }
.pdp-rating .score { font-weight: 700; font-size: .9rem; }
.pdp-rating .count { color: var(--muted); font-size: .85rem; text-decoration: underline; }

.pdp-colors { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pdp-swatch {
  width: 52px; height: 64px; border: 1.5px solid var(--line); background-repeat: no-repeat;
  background-color: var(--soft); transition: border-color .15s;
}
.pdp-swatch:hover { border-color: var(--muted); }
.pdp-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.pdp-color-name { font-size: .85rem; color: #333; margin-bottom: 24px; }

.pdp-size-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pdp-size-head > span { font-size: .9rem; font-weight: 600; }
.pdp-guide { font-weight: 700; font-size: .82rem; text-decoration: underline; }
.pdp-guide:hover { color: var(--muted); }

.pdp-size-box { border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.pdp-size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pdp-size {
  position: relative; border: none; background: none; font: inherit; font-weight: 600;
  padding: 16px 6px; border-radius: 10px; cursor: pointer; text-align: center; transition: .12s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pdp-size:hover { background: var(--soft); }
.pdp-size.active { background: var(--accent); color: var(--white); }
.pdp-size.out { color: var(--muted); cursor: not-allowed; }
.pdp-size.out .lbl { text-decoration: line-through; }
.pdp-size .bell { color: var(--muted); }
.pdp-size-advice { text-align: center; font-size: .82rem; color: #444; padding: 12px 0 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.pdp-size-advice strong { text-decoration: underline; }

.pdp-stocknote { color: #c0202a; font-size: .82rem; font-weight: 600; margin-top: 12px; }

.btn-pill {
  display: block; width: 100%; text-align: center; background: var(--ink); color: var(--white);
  border: none; border-radius: 999px; padding: 20px; font-family: inherit; font-weight: 800;
  letter-spacing: .08em; font-size: .9rem; cursor: pointer; margin: 22px 0 34px; transition: background .15s, opacity .15s;
}
.btn-pill:hover { background: var(--accent); }
.btn-pill:disabled { opacity: .4; cursor: not-allowed; }

.pdp-desc { border-top: 1px solid var(--line); padding-top: 22px; }
.pdp-desc h3 { font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.pdp-desc p { color: #444; line-height: 1.7; font-size: .96rem; }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 28px; }
  .pdp-info { position: static; }
  .pdp-zoom { display: none; }       /* pas de loupe au tactile */
  .pdp-tile { cursor: default; }
}

/* ===== Drop teaser ===== */
.drop {
  position: relative;
  background: radial-gradient(100% 120% at 50% 50%, var(--accent-haze), transparent 62%), var(--ink);
  color: var(--white); text-align: center;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px 30px; overflow: hidden; isolation: isolate;
}
.drop-ghost {
  position: absolute; top: 50%; left: 50%; width: min(58vh, 92vw); height: auto;
  transform: translate(-50%, -50%); opacity: .06;
  pointer-events: none; user-select: none; z-index: 0;
  animation: ghostZoom 9s ease-in-out infinite;
}
.drop-inner { position: relative; z-index: 1; }
.drop-kicker { letter-spacing: .42em; font-size: .78rem; color: #9a9a9a; font-weight: 700; margin-bottom: 26px; }
.drop-title {
  font-weight: 900; font-size: clamp(3rem, 16vw, 11rem); line-height: .86; letter-spacing: .02em;
  transform-origin: center; animation: dropZoom 3.4s ease-in-out infinite;
}
.drop-sub { color: #cfcfcf; max-width: 420px; margin: 20px auto 26px; font-size: .96rem; }
.drop-kicker { margin-bottom: 18px; }
.drop .btn { background: transparent; color: var(--white); border-color: var(--white); }
.drop .btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

@keyframes dropZoom {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(74,94,230,0); }
  50%      { transform: scale(1.11); text-shadow: 0 0 52px var(--accent-glow); }
}
@keyframes ghostZoom {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: .05; }
  50%      { transform: translate(-50%, -50%) scale(1.22) rotate(4deg); opacity: .10; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-title, .drop-ghost { animation: none; }
}

[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .brand { grid-template-columns: 1fr; }
  .brand-img { min-height: 280px; }
  .brand-text { padding: 56px 32px; }
  .nav { display: none; }
  .modal { grid-template-columns: 1fr; }
  .modal-img { aspect-ratio: var(--ar, 5/8); max-height: 56vh; }
  .news-form { flex-direction: column; gap: 10px; }
  .news-form input { border-right: 1.5px solid var(--ink); }
}
