/* ==========================================================================
   BIGBUYMART — design tokens
   --------------------------------------------------------------------------
   A shop, not a brochure. The rules that hold it together:

     · colours come from the client's own logo — navy and blue — plus one red
       that is only ever used for a price, a saving or the main action;
     · nothing floats. Every card, tile and panel has a visible border, so the
       eye can see where one thing ends and the next begins;
     · category tiles carry a soft tint each, so the aisles are told apart by
       colour as well as by name;
     · no glow, no neon, no saturated gradients behind text.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- Grounds ---------------------------------------------------------- */
  --surface:    #FFFFFF;   /* cards, product media, header */
  --canvas:     #FFFFFF;   /* the page - pure white, no tint */
  --canvas-2:   #E3E9F1;   /* the one grey used by every grey section */
  --sunk:       #F8FAFC;   /* inset wells, image beds */

  /* --- Brand, straight off the logo -------------------------------------- */
  --navy-900:   #0B1C33;   /* the footer, and only the footer */
  --navy-800:   #102A48;
  --navy:       #102A48;   /* every navy band and fill on the site */
  --navy-600:   #1E4A7A;
  --navy-100:   #DBE4F0;
  --navy-050:   #EEF3FA;

  --blue:       #218DCD;   /* logo blue — a field colour, never under white text */
  --blue-ink:   #15618F;   /* the readable half: 5.4:1 on white */
  --blue-100:   #CDE7F8;
  --blue-050:   #EAF5FC;

  /* --- Red: price, saving, primary action. Nothing else. ------------------ */
  --red:        #B31428;   /* every red fill on the site, 6.9:1 under white */
  --red-dark:   #B31428;
  --red-light:  #ED5A6C;   /* the same red, lifted so it reads on a navy band */
  --red-700:    #8E0D1E;   /* the drop on hover, never a resting surface */
  --red-100:    #FBD9DD;
  --red-050:    #FDEFF1;

  /* --- Status ------------------------------------------------------------ */
  --ok:         #0E7A4F;   /* in stock */
  --ok-050:     #E7F5EF;
  --ok-100:     #A8DCC4;
  --wait:       #8A5300;   /* awaiting restock */
  --wait-050:   #FBF2E2;

  /* --- Ink --------------------------------------------------------------- */
  --ink:        #102A48;   /* body — navy, never grey */
  --ink-2:      #33507A;   /* secondary navy, 8.5:1 on white */
  --ink-3:      #4A6C99;   /* meta navy, 5.4:1 on white */
  --ink-on-dark:#FFFFFF;
  --ink-dim:    #C6D8EA;   /* secondary text on navy */

  /* --- Borders. Visible on purpose. -------------------------------------- */
  --line:       #DDE4EC;   /* default hairline */
  --line-2:     #C6D1DF;   /* card and tile outline */
  --line-3:     #A9B8CA;   /* input and stepper outline */
  --line-dark:  rgba(255, 255, 255, .22);

  /* --- Category colours ---------------------------------------------------
     Vivid, not pastel. Every one carries white text and clears 5:1, so the
     tiles are loud without anything glowing.
     ------------------------------------------------------------------ */
  --tint-water:   #0B6FAF;
  --tint-juice:   #D32235;
  --tint-tea:     #17794D;
  --tint-soda:    #A85408;
  --tint-grains:  #8A5A1E;
  --tint-baking:  #63359E;
  --tint-compote: #B01A5F;
  --tint-pastry:  #15537F;
  --tint-bakery:  #9A4A12;

  /* --- Type -------------------------------------------------------------- */
  --display: 'Bricolage Grotesque', 'Archivo', 'Segoe UI', Helvetica, Arial, sans-serif;
  --text:    'Manrope', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-2xs:  0.6875rem;  /* 11 — badges, counters */
  --fs-xs:   0.75rem;    /* 12 */
  --fs-sm:   0.8125rem;  /* 13 */
  --fs-md:   0.9375rem;  /* 15 — UI default */
  --fs-base: 1rem;       /* 16 — reading */
  --fs-lg:   1.125rem;   /* 18 */
  --fs-xl:   1.3125rem;  /* 21 */
  --fs-2xl:  1.625rem;   /* 26 */
  --fs-3xl:  2.125rem;   /* 34 */
  --fs-4xl:  2.75rem;    /* 44 */

  --lh-tight: 1.1;
  --lh-head:  1.2;
  --lh-body:  1.62;

  /* --- Space: 4px rhythm -------------------------------------------------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 56px;  --s-10: 72px; --s-11: 96px;

  /* --- Shape. Rounded, because a shop should feel friendly. -------------- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(14, 32, 51, .06);
  --sh-2: 0 4px 12px -4px rgba(14, 32, 51, .14), 0 2px 4px rgba(14, 32, 51, .05);
  --sh-3: 0 14px 32px -12px rgba(14, 32, 51, .24), 0 3px 8px rgba(14, 32, 51, .07);

  /* --- Motion ------------------------------------------------------------- */
  --t:      180ms;
  --t-slow: 320ms;
  --ease:   cubic-bezier(.2, .7, .3, 1);

  /* --- Layout -------------------------------------------------------------- */
  --band-y: 28px;          /* padding inside a section */
  --band-gap: 16px;        /* real space between two sections */
  --wrap: 1240px;
  --wrap-narrow: 740px;
  --gutter: 16px;
  --header-h: 60px;
  --z-header: 60;
  --z-drawer: 80;
  --z-toast: 120;
}

@media (min-width: 768px)  { :root { --gutter: 24px; --header-h: 68px; --band-y: 36px; --band-gap: 22px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; --header-h: 72px; --band-y: 40px; --band-gap: 26px; } }
