/* MJM shop — design tokens (v2, 2026-09-28). Single source of truth for the OpenCart theme. */
:root {
  /* ground & surfaces */
  --bg: #F5F4F1;
  --surface: #FFFFFF;
  --surface-2: #F7F6F3;
  --surface-3: #ECEBE7;        /* segmented control track, sliders */
  --border: #EBEAE6;           /* card border */
  --border-2: #E6E4DF;         /* inputs, chips */
  --border-3: #D6D4CE;         /* unchecked checkbox, hover border */
  --row-sep: #F0EFEB;

  /* text */
  --ink: #111111;
  --text-2: #3A3935;
  --muted: #6E6C66;            /* ≥4.5:1 on white */
  --muted-2: #9A988F;          /* captions, strikethrough prices only */

  /* accent & semantics */
  --brand: #5B4BDB;            /* selected state, focus ring, checkout CTA, links */
  --brand-tint: #EEEBFB;
  --price-sale: #D93025;       /* discounted price, −N% badge */
  --price-sale-tint: #FCE9E6;
  --good: #1A7F3C;             /* in stock, free delivery */
  --good-tint: #E3F5E8;
  --warn: #A35A00;
  --warn-tint: #FDF1DE;
  --info: #2A66C4;
  --info-tint: #E6EFFB;
  --star: #E8A317;

  /* product image tints (neutral, never candy) */
  --tint-warm: #F4F3F0;
  --tint-cool: #EDEFF3;
  --tint-green: #EEF3EC;
  --tint-sand: #EFEDE8;

  /* type */
  --font: 'Geologica', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-h1-hero: 44px;  --lh-h1-hero: 48px;   /* home hero, weight 700, letter-spacing -0.025em */
  --fs-h1: 32px;       --lh-h1: 38px;        /* category title, weight 800 */
  --fs-h1-product: 28px; --lh-h1-product: 34px;
  --fs-h2: 26px;       --lh-h2: 32px;        /* section titles, weight 700, -0.02em */
  --fs-h3: 18px;
  --fs-body: 14px;     --lh-body: 20px;
  --fs-small: 13px;
  --fs-caption: 12px;
  --fs-overline: 11.5px;                      /* uppercase, 0.05em, weight 600 */
  --fs-price-card: 19px;                      /* weight 700 */
  --fs-price-pdp: 34px;                       /* weight 800, -0.025em */

  /* radii */
  --r-chip: 6px;
  --r-btn: 11px;
  --r-input: 11px;
  --r-card: 16px;
  --r-tile: 18px;
  --r-hero: 22px;
  --r-pill: 999px;

  /* spacing scale: 4 8 12 16 20 24 32 56 */
  --page-x: 56px;              /* desktop gutter */
  --page-max: 1440px;
  --grid-gap: 16px;
  --section-gap: 56px;

  /* elevation */
  --shadow-card-hover: 0 1px 2px rgba(17,17,17,.04), 0 18px 40px -20px rgba(17,17,17,.28);
  --shadow-hero: 0 14px 34px -18px rgba(17,17,17,.5);
  --shadow-fab: 0 6px 18px -8px rgba(17,17,17,.4);

  /* motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 150ms;
  --t-hover: 200ms;
  --t-reveal: 500ms;
}

/* control heights */
:root {
  --h-btn-lg: 52px;   /* PDP Купити */
  --h-btn: 44px;      /* header buttons, inputs */
  --h-btn-sm: 36px;   /* chips row buttons */
  --h-chip: 34px;
  --h-badge: 24px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-hover: 0ms; --t-reveal: 0ms; }
}
