/* ============================================================
   Templace Design System — colors_and_type.css
   ------------------------------------------------------------
   Visual identity inspired by Todomoda (https://pe.todomoda.com)
   adapted for Templace — a Latin American marketplace of
   templates for special days (Mother's Day, Father's Day,
   Valentine's, weddings, birthdays, holidays).

   Use:  <link rel="stylesheet" href="colors_and_type.css">
   ============================================================ */

/* ---------- Fonts ----------
   Substitutions noted in README.md
   - DM Sans: closest neutral grotesk match to Todomoda's UI font
   - Archivo Black: closest match to the bold italic logo wordmark
   - Manrope: secondary humanist for editorial moments
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Archivo+Black&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* ============================================================
     COLORS — Brand
     ============================================================ */
  --pink-50:  #FFF1F8;   /* lightest tint, badge backgrounds */
  --pink-100: #FFD9EC;
  --pink-200: #FFB1D7;
  --pink-300: #FF7AB8;
  --pink-400: #F8459E;
  --pink-500: #ED1B7E;   /* PRIMARY — Todomoda fuchsia */
  --pink-600: #C8146A;
  --pink-700: #9D0E54;
  --pink-800: #6E0A3B;

  --pink:    var(--pink-500);
  --pink-hover: var(--pink-600);
  --pink-press: var(--pink-700);

  /* ============================================================
     COLORS — Ink / Neutrals
     ============================================================ */
  --black:     #111111;   /* body text, secondary buttons */
  --ink-1:     #111111;   /* primary text */
  --ink-2:     #3A3A3A;   /* secondary text */
  --ink-3:     #6B6B6B;   /* tertiary / muted */
  --ink-4:     #9A9A9A;   /* placeholder, disabled */
  --line:      #E5E5E5;   /* default borders */
  --line-soft: #EEEEEE;   /* subtle dividers */
  --bg:        #FFFFFF;   /* page background */
  --bg-soft:   #FAFAFA;   /* section fill */
  --bg-warm:   #F5F2EF;   /* warm panel (rare, editorial use) */

  /* ============================================================
     COLORS — Accents (sparingly used; mostly for category & promo)
     ============================================================ */
  --yellow:    #FFD629;   /* sale tags, highlights */
  --yellow-soft: #FFF4B8;
  --red:       #E11D2A;   /* OFERTA / urgency */
  --green:     #1FA956;   /* in stock / success */
  --lilac:     #C8A6FF;   /* Friends Club / loyalty */
  --lilac-soft:#EFE3FF;
  --mint:      #B8F1D9;   /* fresh promo background */
  --peach:     #FFD3BD;   /* warm promo background */
  --sky:       #BFE3FF;   /* secondary promo background */

  /* ============================================================
     COLORS — Semantic
     ============================================================ */
  --color-text:        var(--ink-1);
  --color-text-muted:  var(--ink-3);
  --color-link:        var(--ink-1);
  --color-link-hover:  var(--pink-500);
  --color-bg:          var(--bg);
  --color-bg-alt:      var(--bg-soft);
  --color-border:      var(--line);
  --color-primary:     var(--pink-500);
  --color-on-primary:  #FFFFFF;
  --color-success:     var(--green);
  --color-warning:     var(--yellow);
  --color-danger:      var(--red);
  --color-sale:        var(--red);
  --color-sale-bg:     var(--yellow);

  /* ============================================================
     TYPOGRAPHY — Families
     ============================================================ */
  --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-sans:    "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Manrope", Georgia, serif; /* editorial / About / blog */
  --font-mono:    "SFMono-Regular", Menlo, Consolas, monospace;

  /* Sizes — 4px base */
  --fs-xxs: 10px;
  --fs-xs:  12px;
  --fs-sm:  13px;
  --fs-md:  14px;
  --fs-base:15px;
  --fs-lg:  16px;
  --fs-xl:  18px;
  --fs-2xl: 22px;
  --fs-3xl: 28px;
  --fs-4xl: 36px;
  --fs-5xl: 48px;
  --fs-6xl: 64px;
  --fs-display: 88px;

  /* Line heights */
  --lh-tight: 1.05; /* @kind font */
  --lh-snug:  1.2; /* @kind font */
  --lh-base:  1.5; /* @kind font */
  --lh-loose: 1.7; /* @kind font */

  /* Letter spacing */
  --ls-display: -0.02em; /* @kind font */
  --ls-tight: -0.01em; /* @kind font */
  --ls-base:  0; /* @kind font */
  --ls-wide:  0.04em; /* @kind font */
  --ls-eyebrow: 0.14em; /* @kind font */

  /* Weights */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */
  --fw-extra:   800; /* @kind font */

  /* ============================================================
     SPACING — 4px base
     ============================================================ */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ============================================================
     RADIUS
     ============================================================ */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ============================================================
     SHADOWS
     ============================================================ */
  --shadow-xs: 0 1px 2px rgba(17,17,17,0.04);
  --shadow-sm: 0 1px 3px rgba(17,17,17,0.06), 0 1px 2px rgba(17,17,17,0.04);
  --shadow-md: 0 6px 16px rgba(17,17,17,0.08), 0 2px 4px rgba(17,17,17,0.04);
  --shadow-lg: 0 18px 36px rgba(17,17,17,0.12), 0 6px 12px rgba(17,17,17,0.06);
  --shadow-pink: 0 8px 24px rgba(237,27,126,0.25);

  /* ============================================================
     MOTION
     ============================================================ */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --dur-fast:  120ms; /* @kind other */
  --dur-base:  200ms; /* @kind other */
  --dur-slow:  320ms; /* @kind other */

  /* ============================================================
     LAYOUT
     ============================================================ */
  --container-max: 1440px;
  --container-pad: 24px;
  --nav-height: 100px;       /* desktop sticky nav (promo strip + main bar) */
  --nav-height-mobile: 64px;
  --promo-strip-height: 32px;

  /* ============================================================
     ICONS
     ============================================================ */
  --icon-xs: 14px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --icon-xl: 32px;
  --icon-stroke: 1.75;
}

/* ============================================================
   SEMANTIC TYPE — apply directly OR copy declarations
   ============================================================ */
html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-style: italic;
  text-transform: lowercase;
  margin: 0 0 var(--space-4);
}
h2, .h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-extra);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}
h3, .h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-3);
}
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-2);
}
h5, .h5 {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin: 0;
}

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

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ink-2);
}

.eyebrow--pink { color: var(--pink-500); }

.price {
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--ink-1);
}
.price--was {
  font-weight: var(--fw-regular);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  text-decoration: line-through;
  margin-right: var(--space-2);
}
.price--sale {
  color: var(--pink-500);
}

.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xxs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--ink-1);
  color: #fff;
}
.badge--sale  { background: var(--yellow); color: var(--ink-1); }
.badge--new   { background: var(--ink-1); color: #fff; }
.badge--pink  { background: var(--pink-500); color: #fff; }
.badge--free  { background: var(--green); color: #fff; }
.badge--soft  { background: var(--pink-50); color: var(--pink-600); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--pink-500);
  color: #fff;
}
.btn--primary:hover { background: var(--pink-600); }

.btn--dark {
  background: var(--ink-1);
  color: #fff;
}
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink-1);
  border: 1.5px solid var(--ink-1);
  padding: 12.5px 26.5px;
}
.btn--ghost:hover { background: var(--ink-1); color: #fff; }

.btn--link {
  background: transparent;
  color: var(--ink-1);
  padding: 0;
  border-radius: 0;
  border-bottom: 2px solid var(--pink-500);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* sizes */
.btn--sm { padding: 8px 16px; font-size: var(--fs-xs); }
.btn--lg { padding: 18px 36px; font-size: var(--fs-lg); }

/* ============================================================
   INPUTS
   ============================================================ */
.input {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--ink-1);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-out);
}
.input:focus {
  outline: none;
  border-color: var(--pink-500);
}
.input::placeholder { color: var(--ink-4); }

/* ============================================================
   LINKS
   ============================================================ */
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.hr-pink { border: 0; border-top: 2px solid var(--pink-500); }
.hr-line { border: 0; border-top: 1px solid var(--line); }
