:root {
  /* Korzinka Go pharmacy demo (JS-14614). Colours sampled from the Korzinka
     Go app (a white-label Yandex Lavka): brand green #17a784, text #21201f,
     warm grey cards, discount red #fc5230. Inter stands in for Yandex Sans.
     Source: dt/demo-tools clients/korzinka/data/brand.json. */
  --baseWhite: #ffffff;

  /* FONTS NEW */
  --fontFamily1: "Inter", "Inter Fallback", Arial, sans-serif;
  --fontFamily2: "Inter", "Inter Fallback", Arial, sans-serif;
  --fontFamily3: "Inter", "Inter Fallback", Arial, sans-serif;

  /* Lavka sets section titles heavy and compact (~24px, 800). Home block
     titles read --header-400-medium (desktop) / --header-100-medium (mobile),
     whose platform default is 500 36px — lighter and much larger. */
  --header-400-medium: 800 28px / 32px var(--fontFamily1);
  --header-100-medium: 800 20px / 24px var(--fontFamily1);

  /* UIKit Fonts */
  --font-heading: var(--fontFamily1);
  --font-heading-alt: var(--fontFamily2);
  --font-text: var(--fontFamily2);

  /* FONTS OLD */
  --headingH1: var(--header-300-medium);
  --headingH2: var(--header-150-medium);
  --headingH3: var(--header-100-medium);
  --headingH4: var(--header-50-medium);

  --subtitle1: var(--alt-header-100-semibold);
  --subtitle2: var(--text-400-semibold);
  --subtitle3: var(--text-400-medium);

  --body1: var(--text-200-semibold-high);
  --body2: var(--text-200-medium-high);
  --body3: var(--text-200-semibold);
  --body4: var(--text-200-medium);

  --caption1: var(--text-100-semibold);
  --caption2: var(--text-100-medium);
  --caption3: var(--text-50-semibold);

  --button1: var(--text-200-medium);

  --price1: var(--text-300-semibold);
  --price2: var(--text-100-medium);
  --price3: var(--alt-header-100-semibold);
  --price4: var(--text-100-medium);
  --price5: var(--alt-header-100-semibold);
  --price6: var(--text-200-medium);
  --font-weight-medium: var(--header-300-medium);

  /* NUTRITION OLD */
  --nutritionLow: #0eb44d;
  --nutritionLowBg: #e7f7ed;
  --nutritionMedium: #f97313;
  --nutritionMediumBg: #fef1e7;
  --nutritionHigh: #e5243f;
  --nutritionHighBg: #fce9ec;

  --tileMask: linear-gradient(
    180deg,
    rgba(27, 26, 26, 0) 30%,
    rgba(27, 26, 26, 1) 100%
  );
  --tileMaskHalf: linear-gradient(
    180deg,
    rgba(27, 26, 26, 0) 50%,
    rgba(27, 26, 26, 1) 100%
  );

  /* COLORS NEW */
  --text-in-button: #ffffff;
  --text-primary: #21201f;
  --text-brand: #17a784;
  --icon-primary: #21201f;
  --icon-primary-inverse: #fcfcfd;
  --text-in-button-inverse: #21201f;
  --stroke-brand: #17a784;
  --stroke-brand-subtle: #a2dccd;
  --icon-in-button: #ffffff;
  --icon-in-button-inverse: #21201f;

  --graphic-regular-brand: #17a784;
  --graphic-regular-brand-hover: #128c6e;
  --graphic-regular-brand-2: #17a784;
  --graphic-transparent-brand-0: #17a78400;
  --graphic-transparent-brand-10: #17a7841a;
  --graphic-transparent-brand-15: #17a78426;
  --graphic-transparent-brand-25: #17a78440;
  --graphic-transparent-brand-35: #17a78459;
  --graphic-transparent-brand-50: #17a78480;
  --graphic-transparent-brand-75: #17a784bf;
  --background-bg-primary: #ffffff;

  --action-brand: #17a784;
  --action-brand-hover: #128c6e;
  --action-secondary: #efeeed;
  --action-secondary-hover: #e2e0de;
  --action-secondary-transparent: #21201f0f;
  --action-primary: #21201f;
  --action-primary-hover: #3a3937;
  --action-primary-inverse: #2b2439;
  --action-primary-hover-inverse: #45395a;

  /* Layer */
  --layer-brand-inverse: #17a784;

  /* COLORS OLD */
  --brandAtom900: var(--icon-brand);
  --brandAtom700: var(--icon-brand);
  --headerBackground: var(--bg-content);
  --brandAtom100: var(--surface-transparent-2);
  --brandAtom50: var(--surface-transparent-1);

  --navBarIconFill: var(--icon-brand);
  --headerApp: var(--bg-base-inverse);
  --brandTwo700: var(--icon-brand);

  --seed900: #1b1a1a;
  --seed800: #393636;
  --seed500: #696364;
  --seed400: #837e7f;
  --seed300: #a6a2a3;
  --seed200: #c9c6c7;
  --seed100: #e4e3e3;
  --seed50: #f7f6f6;
  --seed00: #ffffff;

  --system500Suc: var(--system-success);
  --system50Suc: var(--graphic-transparent-white-92);
  --system500War: var(--system-warning);
  --system50War: var(--graphic-transparent-white-92);
  --system500Err: var(--system-error);
  --system50Err: var(--graphic-transparent-white-92);
  --system050OverlayMode: var(--surface-transparent-6);
  --system020HoverMode: var(--surface-transparent-4);

  --checkbox: var(--action-brand);
  --star: var(--action-primary);
  --like: var(--system-error);
  --footer: var(--bg-base-inverse);
  --buttonPrimary: var(--action-brand);
  --buttonPrimaryHover: var(--action-brand-hover);
  --buttonSecondary: var(--action-secondary);
  --buttonSecondaryHover: var(--action-secondary-hover);
  --buttonCircle: var(--bg-content);
  --buttonCircleIcon: var(--icon-primary);

  --badgeExpress: var(--graphic-regular-black);
  --badgeDiscount: var(--graphic-regular-discount);
  --badgeMulti: var(--system-success);
  --badgeBundle: var(--graphic-regular-black);
  --badgeCounter: var(--action-brand);

  --input200InputHov: var(--surface-transparent-2);
  --input50InputDefault: var(--surface-transparent-1);

  --text00Inv: var(--text-primary-inverse);
  --text900Prim: var(--text-primary);
  --text400Sec: var(--text-tertiary);
  --text300Tre: var(--text-placeholder);
  --text700Acc: var(--text-secondary);
  --textHeader: var(--text-primary);
  --textTitle: var(--text-primary);
  --textButtonPrim: var(--text-in-button);
  --textCategory: var(--graphic-regular-white);
  --textProductCard: var(--text-in-button);

  /* NEW TOKENS FROM FIGMA */

  /* System */
  --system-success: #17a784;
  --system-success-hover: #128c6e;
  --system-warning: #f39200;
  --system-warning-hover: #7c6123;
  --system-warning-bright: #7c6123;
  --system-error: #f63d68;
  --system-error-hover: #e31b54;
  --system-error-light: #ff6384;
  --system-error-subtle: #e31b541a;
  --system-error-medium: #e31b542b;
  --system-warning-subtle: #fa86551f;
  --system-warning-medium: #fa86552b;
  --system-success-subtle: #0676471a;
  --system-success-medium: #0676472b;
  --system-neutral-1-subtle: #5759b81a;
  --system-neutral-1-medium: #5759b840;
  --system-neutral-2-subtle: #d7d9db52;
  --system-neutral-2-medium: #d7d9db80;
  --system-link: #17a784;
  --system-link-hover: #128c6e;
  --system-success-inverse: #17a784;
  --system-success-hover-inverse: #128c6e;
  --system-warning-inverse: #f39200;
  --system-warning-hover-inverse: #7c6123;
  --system-warning-bright-inverse: #7c6123;
  --system-error-inverse: #f63d68;
  --system-error-hover-inverse: #e31b54;
  --system-error-light-inverse: #ff6384;
  --system-error-subtle-inverse: #e31b542b;
  --system-error-medium-inverse: #e31b5440;
  --system-warning-subtle-inverse: #fa86551f;
  --system-warning-medium-inverse: #fa86552b;
  --system-success-subtle-inverse: #0676471a;
  --system-success-medium-inverse: #0676472b;
  --system-neutral-1-subtle-inverse: #5759b82b;
  --system-neutral-1-medium-inverse: #5759b840;
  --system-neutral-2-subtle-inverse: #d7d9db52;
  --system-neutral-2-medium-inverse: #d7d9db80;
  --system-link-inverse: #5fd1b2;
  --system-link-hover-inverse: #17a784;

  /* Text */
  --text-primary: #21201f;
  --text-secondary: #7a7671;
  --text-tertiary: #9e9b98;
  --text-placeholder: #9e9b98;
  --text-disabled: #21201f40;
  --text-in-button: #ffffff;
  --text-brand: #17a784;
  --text-primary-inverse: #fcfcfd;
  --text-secondary-inverse: #d7d9dba3;
  --text-tertiary-inverse: #d7d9db80;
  --text-disabled-inverse: #d7d9db66;
  --text-brand-inverse: #5fd1b2;

  /* Icon */
  --icon-primary: #21201f;
  --icon-secondary: #7a7671;
  --icon-tertiary: #9e9b98;
  --icon-placeholder: #9e9b98;
  --icon-disabled: #21201f40;
  --icon-in-button: #ffffff;
  --icon-brand: #17a784;
  --icon-primary-inverse: #fcfcfd;
  --icon-secondary-inverse: #d7d9dba3;
  --icon-tertiary-inverse: #d7d9db80;
  --icon-disabled-inverse: #d7d9db66;
  --icon-brand-inverse: #5fd1b2;

  /* Stroke */
  --stroke-primary: #21201f2b;
  --stroke-secondary: #21201f24;
  --stroke-tertiary: #21201f1a;
  --stroke-quaternary: #21201f0f;
  --stroke-strong: #000000;
  --stroke-brand: #17a784;
  --stroke-brand-subtle: #a2dccd;
  --stroke-primary-inverse: #d7d9db52;
  --stroke-secondary-inverse: #d7d9db2e;
  --stroke-tertiary-inverse: #d7d9db24;
  --stroke-quaternary-inverse: #d7d9db1a;
  --stroke-strong-inverse: #ffffff;
  --stroke-brand-inverse: #17a784;
  --stroke-brand-subtle-inverse: #a2dccd;

  /* Bg */
  --bg-base: #ffffff;
  --bg-base-stable: #ffffff;
  --bg-content: #ffffff;
  --bg-base-inverse: #21201f;
  --bg-base-stable-inverse: #21201f;
  --bg-content-inverse: #2e2d2b;

  /* Surface */
  --surface-transparent-1: #21201f08;
  --surface-transparent-2: #21201f10;
  --surface-transparent-3: #21201f1a;
  --surface-transparent-4: #21201f40;
  --surface-transparent-5: #21201f59;
  --surface-transparent-6: #21201f80;
  --surface-transparent-7: #21201fa3;
  --surface-transparent-8: #21201fcc;
  --surface-transparent-9: #21201feb;
  --surface-transparent-1-inverse: #d7d9db12;
  --surface-transparent-2-inverse: #d7d9db1a;
  --surface-transparent-3-inverse: #d7d9db24;
  --surface-transparent-4-inverse: #d7d9db52;
  --surface-transparent-5-inverse: #d7d9db66;
  --surface-transparent-6-inverse: #d7d9db80;
  --surface-transparent-7-inverse: #d7d9dba3;
  --surface-transparent-8-inverse: #ffffffb8;
  --surface-transparent-9-inverse: #ffffffeb;

  /* Action */
  --action-brand: #17a784;
  --action-brand-hover: #128c6e;
  --action-primary: #21201f;
  --action-primary-hover: #3a3937;
  --action-secondary: #efeeed;
  --action-secondary-hover: #e2e0de;
  --action-secondary-transparent: #21201f0f;
  --action-secondary-transparent-hover: #21201f1a;
  --action-brand-inverse: #17a784;
  --action-brand-hover-inverse: #128c6e;
  --action-primary-inverse: #ffffff;
  --action-primary-hover-inverse: #ffffffeb;
  --action-secondary-inverse: #efeeed;
  --action-secondary-hover-inverse: #e2e0de;
  --action-secondary-transparent-inverse: #21201f0f;
  --action-secondary-transparent-hover-inverse: #21201f1a;

  /* Navigation */
  --navigation-text-primary: #21201f;
  --navigation-text-secondary: #7a7671;
  --navigation-text-tertiary: #9e9b98;
  --navigation-text-in-button: #ffffff;
  --navigation-text-in-button-2: #ffffff;
  --navigation-text-brand: #17a784;
  --navigation-icon-primary: #21201f;
  --navigation-icon-secondary: #7a7671;
  --navigation-icon-tertiary: #9e9b98;
  --navigation-icon-in-button: #ffffff;
  --navigation-icon-brand: #17a784;
  --navigation-stroke-primary: #2d2f332b;
  --navigation-stroke-secondary: #2d2f3324;
  --navigation-stroke-tertiary: #2d2f331a;
  --navigation-stroke-strong: #000000;
  --navigation-stroke-brand: #17a784;
  --navigation-stroke-brand-subtle: #a2dccd;
  --navigation-action-brand: #17a784;
  --navigation-action-brand-hover: #128c6e;
  --navigation-action-primary: #21201f;
  --navigation-action-primary-hover: #21201feb;
  --navigation-bg: #ffffff;
  --navigation-bg-2: #ffffff;
  --navigation-surface: #21201f0a;
  --navigation-surface-2: #21201f14;

  /* Graphic */
  --graphic-regular-white: #ffffff;
  --graphic-regular-black: #000000;
  --graphic-regular-brand: #17a784;
  --graphic-regular-brand-light: #dff2ee;
  --graphic-regular-brand-hover: #128c6e;
  --graphic-regular-brand-2: #17a784;
  --graphic-regular-multibuy: #17a784;
  --graphic-regular-discount: #fc5230;
  --graphic-regular-review: #f39200;
  --graphic-regular-red: #c64154;
  --graphic-regular-red-pink: #f95792;
  --graphic-regular-orange-dark: #d78460;
  --graphic-regular-orange: #f79575;
  --graphic-regular-yellow: #fde97c;
  --graphic-regular-green: #69e5b3;
  --graphic-regular-green-medium: #48b381;
  --graphic-regular-green-dark: #3a9e75;
  --graphic-regular-green-dark-2: #0b643b;
  --graphic-regular-cyan: #69d0e4;
  --graphic-regular-blue-light: #7baff3;
  --graphic-regular-blue: #044dae;
  --graphic-regular-blue-dark: #3e4784;
  --graphic-regular-violet: #7a85ed;
  --graphic-regular-pink: #d398ef;
  --graphic-regular-rose: #eb7dba;
  --graphic-regular-gray-neutral: #a9a9cb;
  --graphic-regular-gray-warm: #8e9aa5;
  --graphic-regular-gray-light: #f8f7f5; /* Lavka card grey */
  --graphic-regular-gray-light-2: #e6e7e8;
  --graphic-regular-gray-dark: #363a40;
  --graphic-muted-red: #e69b95;
  --graphic-muted-red-pink: #f8edef;
  --graphic-muted-orange-dark: #cba99a;
  --graphic-muted-orange: #ebd2b5;
  --graphic-muted-yellow: #efdbb3;
  --graphic-muted-green: #a6dec7;
  --graphic-muted-cyan: #bcdfe6;
  --graphic-muted-blue-light: #bbcee8;
  --graphic-muted-blue: #96b1d4;
  --graphic-muted-blue-dark: #545b89;
  --graphic-muted-violet: #c8c0dd;
  --graphic-muted-pink: #e3c6e3;
  --graphic-muted-rose: #eab4d2;
  --graphic-muted-gray-neutral: #bebed1;
  --graphic-muted-gray-warm: #aea9a6;
  --graphic-transparent-white-7: #ffffff12;
  --graphic-transparent-white-10: #ffffff1a;
  --graphic-transparent-white-14: #ffffff24;
  --graphic-transparent-white-25: #ffffff40;
  --graphic-transparent-white-40: #ffffff66;
  --graphic-transparent-white-55: #ffffff8c;
  --graphic-transparent-white-70: #ffffffb2;
  --graphic-transparent-white-92: #ffffffeb;
  --graphic-transparent-black-5: #0000000d;
  --graphic-transparent-black-10: #0000001a;
  --graphic-transparent-black-15: #00000026;
  --graphic-transparent-black-25: #00000040;
  --graphic-transparent-black-40: #00000066;
  --graphic-transparent-black-55: #0000008c;
  --graphic-transparent-black-70: #000000b2;
  --graphic-transparent-black-92: #000000eb;
  --graphic-transparent-gray-40: #20293966;
  --graphic-transparent-blue-25: #5d68a640;
  --graphic-transparent-blue-10: #5d68a61a;
  --graphic-transparent-red-25: #e31b5440;
  --graphic-transparent-yellow-25: #f7900940;
  --graphic-transparent-green-25: #388b6640;
  --graphic-transparent-green-dark-2-25: #0b643b40;
  --graphic-transparent-green-40: #92d5ba66;
  --graphic-transparent-cyan: #69e3fa66;
  --graphic-transparent-violet: #a5b4e680;
  --graphic-transparent-pink: #d6c6ee66;
  --graphic-transparent-gray-neutral: #a9a9cb4d;
  --graphic-transparent-gray-warm: #8e9aa533;
  --graphic-transparent-brand-0: #17a78400;
  --graphic-transparent-brand-10: #17a7841a;
  --graphic-transparent-brand-15: #17a78426;
  --graphic-transparent-brand-25: #17a78440;
  --graphic-transparent-brand-35: #17a78459;
  --graphic-transparent-brand-50: #17a78480;
  --graphic-transparent-brand-75: #17a784bf;
  --graphic-transparent-brand-2-0: #17a78400;
  --graphic-transparent-brand-2-10: #17a7841a;
  --graphic-transparent-brand-2-15: #17a78426;
  --graphic-transparent-brand-2-25: #17a78440;
  --graphic-transparent-brand-2-35: #17a78459;
  --graphic-transparent-brand-2-50: #17a78480;
  --graphic-transparent-brand-2-75: #17a784bf;
}

/* Home block titles: the V3 Typography component hardcodes its own scale
   (packages/ui/src/components/Typography/Typography.module.scss sets
   .header400Medium to font-medium 2.25rem) instead of reading the tokens
   above, so the carousel/tile block titles need a tenant-scoped rule, matched
   on the readable half of the hashed CSS-module class name. */
body[data-company='ocado'] [class*='header400Medium'] {
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body[data-company='ocado'] [class*='header100Medium'] {
  font-weight: 800;
}
