/* ==========================================================================
   SialkotGoods — design tokens
   ==========================================================================
   Every colour, space and size in the interface comes from here. Nothing
   downstream hard-codes a hex value, so rebranding is this one file.

   Brand colour: Sialkot Green #0F5132 (decision 11.2, chosen 2026-08-11).

   The palette is deliberately two-speed:
     - Deep green anchors anything that must be readable — headers, buttons,
       prices, links. White on #0F5132 is ~9:1 contrast, comfortably above
       the 4.5:1 minimum, so it never needs a darker variant to be legible.
     - Bright green carries the lively work — in-stock flags, hover states,
       success messages — so the site does not feel heavy.
     - Gold is the accent, and it belongs to deals and ratings. Deals are the
       most effective point on the site, so they get their own colour.
   ========================================================================== */

:root {
  /* ---------- Brand ---------- */
  --brand:            #0F5132;   /* headers, buttons, prices, links */
  --brand-dark:       #0A3622;   /* pressed states, footer */
  --brand-darker:     #072517;
  --brand-bright:     #16A34A;   /* in stock, success, hover lift */
  --brand-brighter:   #22C55E;
  --brand-tint:       #E8F3EC;   /* card backgrounds, badges */
  --brand-tint-soft:  #F4F9F6;   /* page section backgrounds */

  /* ---------- Accent: deals and ratings ---------- */
  --accent:           #C8862A;   /* deal badges, star ratings */
  --accent-bright:    #F0A93B;
  --accent-tint:      #FDF4E7;

  /* ---------- Neutrals ---------- */
  --ink:              #1A1D1B;   /* body text */
  --ink-soft:         #4A524D;   /* secondary text */
  --ink-faint:        #7C857F;   /* meta, timestamps */
  --line:             #DFE5E1;   /* borders */
  --line-soft:        #EEF2EF;
  --surface:          #FFFFFF;
  --surface-sunk:     #F7F9F8;   /* page background */

  /* ---------- Status ----------
     Deliberately distinct from the brand green: a success message must not
     be confused with ordinary brand furniture. */
  --ok:               #15803D;
  --ok-tint:          #E9F7EE;
  --warn:             #B45309;   /* awaiting confirmation, dispatch overdue */
  --warn-tint:        #FDF3E7;
  --danger:           #B42318;   /* refused, blocked, failed payment */
  --danger-dark:      #8F1C12;   /* pressed state on a destructive button */
  --danger-tint:      #FDECEA;
  --info:             #0E6E8C;
  --info-tint:        #E7F3F7;

  /* ---------- Cash on delivery ----------
     COD gets its own visual identity: it is the thing most buyers check
     before anything else, and it appears on cards, product pages and
     checkout. One token keeps it consistent everywhere. */
  --cod:              #0F5132;
  --cod-tint:         #E8F3EC;

  /* ---------- Type ---------- */
  --font-sans: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Urdu-capable from the start (decision 11.7): choosing the type now means
     adding Urdu later is a translation job, not a redesign. */
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold:   700;

  --leading-tight: 1.25;
  --leading-normal: 1.55;

  /* ---------- Space ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* ---------- Shape ---------- */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Flat by default. Shadow signals lift, not decoration. */
  --shadow-sm: 0 1px 2px rgba(16, 32, 24, 0.06);
  --shadow:    0 2px 8px rgba(16, 32, 24, 0.09);
  --shadow-lg: 0 8px 26px rgba(16, 32, 24, 0.13);

  /* ---------- Layout ---------- */
  /* Desktop first (decision 11.6), and deliberately wide. At 1280px a 1900px
     monitor showed ~310px of dead margin either side — on a marketplace that
     is a row of products not being shown. Capped rather than full-bleed so an
     ultrawide display does not stretch a line of text to 3000px. */
  --page-max: 1800px;
  --gutter:   var(--space-4);

  --header-height: 68px;
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 400;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --speed: 160ms;
}

/* Urdu switches the type stack and the reading direction together. */
[lang="ur"] {
  --font-sans: var(--font-urdu);
  direction: rtl;
}

/* Respect a user who has asked for less movement. */
@media (prefers-reduced-motion: reduce) {
  :root { --speed: 0ms; }
}
