/* =============================================================
   S Fashion — Base styles + canonical components
   Depends on system/tokens.css being loaded first.
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap&subset=cyrillic,cyrillic-ext,latin,latin-ext");

/* ---------- Reset / base ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Type roles ------------------------------------- */
.t-display    { font-family: var(--font-display); font-weight: 400; }
.t-display-md { font-family: var(--font-display); font-weight: 500; }
.t-body       { font-family: var(--font-body); }
.t-mono       { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: var(--lh-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-headline    { font-family: var(--font-display); font-weight: 400; font-size: var(--text-4xl); line-height: var(--lh-4xl); color: var(--ink); }
.section-headline { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: var(--lh-2xl); color: var(--ink); }
.lead             { font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--lh-lg); color: var(--ink-soft); }

/* ---------- Buttons --------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;             /* mobile hit target */
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: var(--border-ink);
}
.btn-primary:hover { background: var(--brand-rose-deep); border-color: var(--brand-rose-deep); }
.btn-primary:active { background: var(--ink); transform: translateY(1px); }
.btn-primary:disabled { background: var(--ink-muted); border-color: var(--ink-muted); cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: var(--border-ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* Rose button — ONE per page maximum (therapeutic block CTA). */
.btn-rose {
  background: var(--brand-rose);
  color: var(--ink);
  border: 1px solid var(--brand-rose);
}
.btn-rose:hover { background: var(--brand-rose-deep); border-color: var(--brand-rose-deep); color: var(--paper); }

/* ---------- Inputs ---------------------------------------- */
.input {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: var(--border-1);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color var(--t-base) var(--ease);
}
.input::placeholder { color: var(--ink-muted); }
.input:focus { border-color: var(--ink); outline: none; }

/* ---------- Cards ----------------------------------------- */
.product-card {
  background: var(--paper);
  border: var(--border-1);
  border-radius: var(--radius);
  transition: border-color var(--t-base) var(--ease);
}
.product-card:hover { border-color: var(--ink); }
.product-card__image {
  aspect-ratio: 4 / 5;
  background: var(--bone-warm);
}
.product-card__body { padding: 16px 16px 20px; }
.product-card__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.product-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin: 4px 0 8px;
}
.product-card__price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--ink);
}
.product-card__price--was {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bone-warm);
  border-radius: var(--radius);
  overflow: hidden;
}
.category-card__label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--paper);
}

/* ---------- Header ---------------------------------------- */
.header {
  background: var(--paper);
  border-bottom: var(--border-1);
}
.header__top {
  padding: 8px 0;
  border-bottom: var(--border-1);
  font-size: 12px;
  color: var(--ink-muted);
}
.header__main {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--t-base) var(--ease);
}
.header__nav-link:hover { color: var(--brand-rose-deep); }

/* ---------- Layout container ------------------------------ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}
@media (max-width: 1023px) {
  .container { padding-inline: var(--page-pad-tab); }
}
@media (max-width: 767px) {
  .container { padding-inline: var(--page-pad-mob); }
}

/* ---------- Section rhythm -------------------------------- */
.section { padding-block: var(--section-y); }
.section--bone      { background: var(--bone); }
.section--bone-warm { background: var(--bone-warm); }
.section--paper     { background: var(--paper); }
.section--rose-mist { background: var(--brand-rose-mist); }  /* once per page */
@media (max-width: 1023px) { .section { padding-block: var(--section-y-tablet); } }
@media (max-width: 767px)  { .section { padding-block: var(--section-y-mobile); } }

/* ---------- Photo placeholder (briefed, not stock) -------- */
.photo-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bone-warm) 0 14px,
      var(--bone) 14px 28px
    );
  border: var(--border-1);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  padding: 16px;
}
.photo-placeholder__label {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.photo-placeholder__kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
