/* =========================================================================
   RISEN — Design system
   Toutes les valeurs de ce fichier sont MESUREES sur la reference live
   (outfitters.com.pk) aux points de rupture 390 et 1440. Ne pas les
   "ameliorer" : la reference decide.
   ========================================================================= */

:root {
  /* --- Encre & papier ------------------------------------------------ */
  --ink:        #121212;          /* mesure : rgb(18,18,18) */
  --ink-body:   rgba(18,18,18,.75);
  --ink-sub:    #202020;          /* sous-titre de carte */
  --ink-60:     #5c5c5c;
  --ink-40:     #8f8f8f;
  --ink-20:     #c9c9c9;
  --line:       #e3e3e3;
  --line-strong:#b8b8b8;
  --paper:      #ffffff;
  --surface:    #f6f6f6;
  --overlay:    rgba(0,0,0,.45);

  --sale:       #a4131b;
  --oos:        var(--ink-40);
  --ok:         #17603c;

  /* --- Typographie ---------------------------------------------------- */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-body:   15px;              /* mesure : 15px */
  --ls-global: .6px;              /* mesure : 0.6px partout */

  /* Carte produit — mobile 390 */
  --fs-card-title: 11px;  --lh-card-title: 16px;
  --fs-card-sub:    8px;  --lh-card-sub: 11.2px;  --ls-card-sub: 1.3px;
  --fs-card-price:  9px;  --lh-card-price: 13.5px; --ls-card-price: 1px;

  /* Fiche produit */
  --fs-pdp-title: 16px;
  --fs-pdp-price: 20px;  --ls-pdp-price: 1.3px;

  --fs-label: 11px;  --ls-label: .12em;

  /* --- Mise en page — mesures ----------------------------------------- */
  --container: 1440px;
  --gutter: 15px;                 /* mesure mobile : 15px */
  --grid-gap-x: 3px;              /* mesure mobile : 3px  */
  --grid-gap-y: 20px;             /* mesure mobile : 20px */
  --grid-cols: 2;                 /* mesure mobile : 2 colonnes */
  --rail-gap: 10px;               /* mesure : rails d'accueil */
  --header-h: 51px;               /* mesure mobile : 51px */
  --announce-h: 34px;

  /* --- Formes — rayon zero partout (mesure : 0px) --------------------- */
  --radius: 0;
  --border: 1px solid var(--line);
  --border-ink: 1px solid var(--ink);

  /* --- Cibles ---------------------------------------------------------- */
  --btn-h: 47px;                  /* mesure : bouton d'achat 47px */
  --tap: 44px;                    /* plancher tactile, invisible */

  --ratio-product: 2 / 3;         /* mesure : --ratio-percent 149.948% */
  --ratio-hero-m: 3 / 5;          /* mesure : 390x651 */
  --ratio-hero-d: 16 / 10;        /* mesure : 1440x900 */
  --ease: cubic-bezier(.22,.61,.36,1);

  /* --- Espacement ------------------------------------------------------ */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 40px; --s8: 64px;
}

@media (min-width: 750px) {
  :root { --grid-cols: 3; --gutter: 24px; --grid-gap-x: 6px; --grid-gap-y: 32px; }
}

@media (min-width: 990px) {
  :root {
    --gutter: 32px;               /* mesure desktop : 32px */
    --grid-cols: 5;               /* mesure desktop : 5 colonnes */
    --grid-gap-x: 6px;            /* mesure desktop : 6px */
    --grid-gap-y: 40px;           /* mesure desktop : 40px */
    --header-h: 59px;             /* mesure desktop : 59px */
    --fs-card-title: 12px;  --lh-card-title: 16px;
    --fs-card-price: 12px;  --lh-card-price: 18px;
    --btn-h: 47px;
  }
}

:root { color-scheme: light; }

/* =========================================================================
   Reset
   ========================================================================= */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: var(--ls-global);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* =========================================================================
   Primitives
   ========================================================================= */

.risen-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.risen-container--flush { padding-inline: 0; }

/* La reference ne met PAS de padding vertical sur ses sections : chaque bloc
   porte sa propre hauteur d'image. On garde le meme principe. */
.risen-section { padding-block: 0; }

.risen-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s5) var(--s3);
}
.risen-section__head h2 {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-global);
}
.risen-section__link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--ls-global);
  border-bottom: var(--border-ink);
  white-space: nowrap;
}

.risen-label {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--ink-60);
}
.risen-muted { color: var(--ink-60); }
.risen-num { font-variant-numeric: tabular-nums; }

/* =========================================================================
   Boutons — hauteur mesuree 47px, rayon 0, noir plein
   ========================================================================= */

.risen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--btn-h);
  padding-inline: 30px;                 /* mesure : padding 0 30px */
  font-size: 15px;                      /* mesure : 15px */
  font-weight: 500;                     /* mesure : 500 */
  text-transform: uppercase;
  letter-spacing: 1px;                  /* mesure : 1px */
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.risen-btn:hover { background: var(--paper); color: var(--ink); }
.risen-btn[disabled], .risen-btn[aria-disabled="true"] {
  background: var(--ink-20); border-color: var(--ink-20); cursor: not-allowed;
}
.risen-btn--ghost { background: transparent; color: var(--ink); }
.risen-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.risen-btn--full { width: 100%; }

.risen-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
}

/* =========================================================================
   Champs
   ========================================================================= */

.risen-field { display: block; margin-bottom: var(--s4); }
.risen-field > span {
  display: block; margin-bottom: var(--s2);
  font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: var(--ls-label); color: var(--ink-60);
}
.risen-input {
  width: 100%;
  min-height: var(--btn-h);
  padding: var(--s3) var(--s4);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.risen-input:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.risen-input[aria-invalid="true"] { border-color: var(--sale); }
.risen-error { display: block; margin-top: var(--s2); font-size: 12px; color: var(--sale); }

/* =========================================================================
   Accessibilite
   ========================================================================= */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.risen-skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  padding: var(--s3) var(--s4); background: var(--ink); color: var(--paper);
}
.risen-skip:focus { top: var(--s3); }
