/* Tree Company — tokens.css · HappyOnline OpenCart kit · 2026-11-25 */
/* Γραμματοσειρές self-hosted (GDPR): stylesheet/fonts.css + stylesheet/fonts/ */
@import url("fonts.css");
/* ==========================================================================
   HappyOnline OpenCart kit — tokens.css
   THE ONLY FILE YOU EDIT PER PROJECT. components.css / pages.css read these.
   Load order: bootstrap.min.css → tokens.css → components.css → pages.css
   ========================================================================== */

:root {
  /* ======================================================================
     COLOURS
     ====================================================================== */

  /* ---- Primary (brand) -------------------------------------------------- */
  --ho-primary: #1A1A1A;        /* buttons, links, active states */
  --ho-primary-hover: #3F3F3F;
  --ho-primary-active: #0E0E0E;
  --ho-primary-soft: #E8E8E8;   /* selected rows, focus rings, tinted backgrounds */
  --ho-primary-border: #8D8D8D;  /* focus rings, selected outlines */

  --ho-secondary: #1F5D3A;      /* second brand colour · gradients, dark tones (wizard: Brand colours › Secondary) */
  --ho-primary-deep: var(--ho-secondary);    /* gradient start, deep brand shade */
  --ho-primary-tint: #F9F9F9;    /* barely-there brand wash — selected cards */
  --ho-on-primary: #FFFFFF;     /* text/icons on primary (auto: dark on light brands) */
  --ho-primary-text: #1A1A1A;
  /* neutrals + dark-surface tones (toasts) */
  --ho-white: #FFFFFF;
  --ho-surface-sunken: #ECECEC;
  --ho-toast-bg: #16171C;
  --ho-toast-fg: #F4F5F8;
  --ho-info-on-dark: #9DB0FF;
  --ho-warning-on-dark: #FFC566;
  --ho-radius-circle: 50%;
  --ho-weight-semibold: 600;
  /* surfaces by role */
  --ho-accent-text: #50765E;     /* accent used as text on white (auto) */
  --ho-on-accent: #111111;       /* text on accent badges (auto) */
  --ho-header-bg: #FFFFFF;      /* site header · always white */
  --ho-on-footer: #FFFFFF;       /* footer text (auto from footer style) */
  --ho-footer-border: transparent;
  --ho-sale-bg: #E3202A;         /* sale / discount badge (wizard: danger · accent · brand) */
  --ho-on-sale: #FFFFFF;
  --ho-page: #F8F8F9;            /* page canvas behind cards (checkout, thank-you, account) — always near-neutral */
  --ho-card: #FFFFFF;            /* cards, summary rail */
  --ho-field: #F8F8F9;           /* soft fill inside form fields */   /* brand colour used AS TEXT on white — auto-darkened to ≥4.5:1 */

  /* ---- Gradients (brand) — the only documented gradient; do not invent variants or flip the angle */
  --ho-gradient-primary: linear-gradient(166deg, var(--ho-primary-deep) 0%, var(--ho-primary) 100%);  /* hero blocks, large surfaces */
  --ho-gradient-hero: linear-gradient(180deg, var(--ho-primary-soft) 0%, var(--ho-bg) 100%); /* info page hero band (Contact, FAQ, About, Terms, Sitemap) */
  --ho-hero-band: linear-gradient(180deg, #E8E8E8 0%, #F5F5F5 100%); /* information-page hero: keeps its tint to a clear edge above the white content */
  --ho-co-header-h: 76px;      /* cart · checkout · thank-you header height (56px under 768px) */
  --ho-sticky-offset: 0px;     /* height of a sticky site header, if the project has one — sticky section/letter navs sit below it */
  --ho-bnav-h: 0px;          /* fixed mobile bottom nav height, if the project has one */
  --ho-toast-lift: 0px;       /* extra toast lift above sticky bottom bars (set per page) */
  --ho-mbar-h: 96px;          /* checkout mobile summary bar height */
  --ho-hero-strong: linear-gradient(166deg, var(--ho-primary-deep) 0%, var(--ho-primary) 100%); /* strong hero (thank-you · delivery first), wizard keeps text at 4.5:1 */
  --ho-on-hero-strong: var(--ho-on-primary);

  /* ---- Accent ----------------------------------------------------------- */
  --ho-accent: #8FD3A8;         /* small highlights only, never text on white */

  /* ---- Text ------------------------------------------------------------- */
  --ho-ink: #1A1A1A;            /* headings, body text */
  --ho-text-muted: #6A6A6A;     /* secondary text, labels */
  --ho-text-subtle: #6C6C6C;    /* hints, meta */
  --ho-text-disabled: #AFAFAF;
  --ho-text-body: var(--ho-text-muted); /* long-form body copy on information pages (with --ho-weight-light) */
  --ho-toast-life: 6s;

  /* ---- Surfaces & borders ---------------------------------------------- */
  --ho-bg: #FFFFFF;             /* page */
  --ho-surface: #F5F5F5;        /* summary panels, inset cards */
  --ho-border: #E6E6E6;         /* dividers, card borders */
  --ho-border-strong: #D0D0D0;  /* inputs, controls */
  --ho-heading: #1A1A1A; /* page & section titles · Typography › Heading colour */
  --ho-control-border: #888888; /* checkbox / radio outline */

  /* ---- Semantic --------------------------------------------------------- */
  --ho-success: #1F5D3A;        /* in stock, applied, free shipping */
  --ho-success-soft: #EFF4F1;
  --ho-warning: #8A5A00;        /* low stock, pending */
  --ho-warning-soft: #FFF8E6;
  --ho-warning-bright: #F0A000;  /* low-stock dot, weak meter */
  --ho-warning-border: #F5DFA6;
  --ho-danger: #E3202A;         /* errors, out of stock, required * */
  --ho-danger-soft: #FDEDEE;
  --ho-danger-hover: #C31C24;
  --ho-danger-border: #F7BCBF;
  --ho-success-on-dark: #3DDC97; /* icons on dark toasts */
  --ho-danger-on-dark: #FF8A80;
  --ho-info: var(--ho-primary); /* neutral notices */
  --ho-info-soft: var(--ho-primary-soft);

  /* ---- Footer ---------------------------------------------------------- */
  --ho-footer-bg: #1A1A1A;
  --ho-footer-text: var(--ho-on-primary);

  /* ---- Overlays --------------------------------------------------------- */
  --ho-scrim: color-mix(in srgb, var(--ho-ink) 55%, transparent); /* overlay behind modals, drawer, sheets */
  --ho-scrim-blur: 0px;

  /* ---- Page loader (component/page-loader.twig · js/ho-transition.js) ---- */
  --ho-loader: 1;                /* 1 = on · 0 = off */
  --ho-loader-bg: var(--ho-bg);  /* full-screen cover */
  --ho-loader-bar: var(--ho-primary);
  --ho-loader-w: min(180px, 40vw);
  --ho-loader-h: 3px;          /* 0 = flat dark scrim (default) · e.g. 8px = glass */

  /* ---- Shadows ------------------------------------------------------------ */
  --ho-shadow-md: 0 12px 32px color-mix(in srgb, var(--ho-ink) 12%, transparent);

  /* ---- Category tags (navigator, badges) — decorative, not brand ------- */
  --ho-tag-teal: #0F766E;   --ho-tag-teal-soft: #E1F4F1;
  --ho-tag-violet: #7C3AED; --ho-tag-violet-soft: #F1EBFE;
  --ho-tag-orange: #C2410C; --ho-tag-orange-soft: #FDEEE4;

  /* ---- Wireframe placeholders (draft header/footer, replaced per project) */
  --ho-wire-bg: #EEF1F6;
  --ho-wire-border: #DDE2EA;
  --ho-wire-shape: #D5DBE5;
  --ho-wire-dash: #BFC7D5;
  --ho-wire-text: #596169;
  --ho-wire-field: #F6F8FB;

  /* ---- Fonts ------------------------------------------------------------ */
  --ho-font-body: "Syne", system-ui, sans-serif;
  --ho-font-heading: "Syne", system-ui, sans-serif;
  --ho-font-mono: "Roboto Mono", ui-monospace, monospace; /* big numerals (404) */
  --ho-font-numeric: lining-nums tabular-nums; /* lining figures (no old-style numbers) */
  --ho-font-features: "lnum" 1, "tnum" 1;
  /* Weights in use — only these four files are loaded */
  --ho-weight-light: 300; --ho-weight-regular: 400;      /* body text, descriptions */
  --ho-weight-medium: 500;       /* labels, links, item names */
  --ho-weight-bold: 600;         /* buttons, prices, emphasis */
  --ho-weight-heading: 700;      /* display, H1–H3, eyebrows */
  --ho-text-xs: 11px;
  --ho-text-sm: 13px;
  --ho-text-md: 14px;
  --ho-text-lg: 16px;
  /* Heading scale — HappyOnline design system */
  --ho-display: 48px;            /* hero page titles (Contact, FAQ, Sitemap, Information, Thank you) */
  --ho-h1: 28px;                 /* page titles */
  --ho-h2: 18px;                 /* section titles */
  --ho-h2-tracking: calc(.4px + var(--ho-tracking-heading, 0em));
  --ho-h3: 16px;                 /* card / item titles */
  --ho-tracking-heading: 0em;    /* letter-spacing for titles · -0.02em tight … 0.02em open */
  --ho-tracking-body: 0em;       /* letter-spacing for body text */

  /* ---- Radius ----------------------------------------------------------- */
  --ho-radius-xs: 5px;          /* small tags, tooltips */
  --ho-radius-sm: 8px;         /* inputs, buttons, chips */
  --ho-radius-md: 13px;         /* cards, panels, modals */
  --ho-radius-lg: 16px;         /* cards, gradient blocks */
  --ho-radius-xl: 19px;         /* page frames / large sections */
  --ho-radius-pill: 999px;

  /* ---- Spacing (4px scale) --------------------------------------------- */
  --ho-space-1: 4px;
  --ho-space-2: 8px;
  --ho-space-3: 12px;
  --ho-space-4: 16px;
  --ho-space-5: 20px;
  --ho-space-6: 24px;
  --ho-space-8: 32px;
  --ho-space-10: 40px;
  --ho-space-12: 48px;
  --ho-container: 1600px;        /* max page width — matches the 1920 designs (≈35px gutters) */
  --ho-container-narrow: 760px;   /* text pages: information, terms, 404, login */
  --ho-container-commerce: 1520px; /* cart + checkout: items | summary, centred */
  --ho-gutter: 30px;

  /* ---- Buttons ---------------------------------------------------------- */
  --ho-btn-h: 44px;
  --ho-btn-h-sm: 40px;
  --ho-btn-px: 28px;
  --ho-btn-radius: 999px;
  --ho-btn-font-size: 14px;
  --ho-btn-weight: 700;
  --ho-btn-tracking: .01em;
  --ho-btn-case: none;     /* uppercase | none */
  --ho-btn-sweep: 1;            /* 1 = colour sweep on hover, 0 = plain colour change */

  /* ---- Inputs ----------------------------------------------------------- */
  --ho-input-float: 1;          /* 1 = floating label inside, 0 = label above */
  --ho-input-h: 56px;
  --ho-input-px: 16px;
  --ho-input-radius: var(--ho-radius-sm);
  --ho-input-bg: var(--ho-bg);
  --ho-input-focus: var(--ho-primary);
  --ho-control-size: 20px;      /* checkbox / radio box */

  /* ---- Icons ----------------------------------------------------------- */
  --ho-icon-set: ho;            /* documentation only — the set is chosen in OpenCart settings (ho | fontawesome | svg) */
  --ho-icon-size: 20px;
  --ho-icon-stroke: 1.2;

  /* ---- Logo (image comes from OpenCart → Settings → Image) ------------- */
  --ho-logo-h: 40px;
  --ho-header-h: 100px;

  /* ---- Motion ----------------------------------------------------------- */
  --ho-ease: cubic-bezier(.2, .8, .2, 1);     /* default easing for every transition */
  --ho-ease-out: cubic-bezier(.16, 1, .3, 1); /* entrances (sheets, toasts, badges) */
  --ho-focus-ring: 0 0 0 3px color-mix(in srgb, var(--ho-primary) 28%, transparent); /* one focus halo for all controls */
  --ho-t-fast: 200ms;
  --ho-t: 350ms;
  --ho-t-slow: 700ms;
  --ho-t-fade: 260ms;           /* every swap (filter, sort, tab, toggle) fades in, linear — never instant */
  --ho-t-hover: 200ms;          /* every hover / focus / tab / toggle colour change — linear fade, never instant */
}
