/*
 * Meditronik design tokens ("Karta katalogowa", DESIGN.md).
 * Portable: the same names and values feed theme.json / Tailwind @theme in the next theme.
 * The only file allowed to hold raw colour values.
 */
:root {
    /* colour */
    --mt-green: #009639;              /* brand: logo, category bar, large surfaces */
    --mt-green-text: #007d32;         /* green text, links, primary button fill (5.3:1) */
    --mt-green-deep: #00451f;         /* hover / pressed */
    --mt-green-night: #063a21;        /* dark green surfaces */
    --mt-green-soft: #eef8f2;         /* tinted fills, selected states */
    --mt-on-dark: #e3f3e9;            /* text on green-night / green surfaces */
    --mt-on-dark-accent: #b8f4cf;     /* highlighted text on dark green */
    --mt-on-dark-strong: #ffffff;     /* headings and key values on dark green */
    --mt-brand-lime: #b1c902;         /* the sphere logo's face colour: the mark only, never text */
    --mt-glow: #96ffc3;               /* home hero light: strokes, glows (always with alpha) */
    --mt-glow-strong: #2ac470;        /* home hero light, saturated (always with alpha) */
    --mt-ink: #17322a;                /* headings and body text */
    --mt-muted: #5d6b65;              /* secondary text (5.2:1 on page) */
    --mt-line: #d9e8df;               /* borders, dividers */
    --mt-line-strong: #b7cdbf;        /* input borders, hover borders */
    --mt-bg: #f5f8f6;                 /* page background */
    --mt-surface: #ffffff;            /* cards, panels, inputs */
    --mt-disabled: #93a19a;           /* unavailable options; decorative, not body text */
    --mt-danger: #b20000;
    --mt-status-confirm: #8a4b00;     /* "Do potwierdzenia" (6.8:1) */
    --mt-status-confirm-mark: #c47a00;   /* amber marks (stock bars) for "Do potwierdzenia"; graphics only, never text */
    --mt-status-confirm-bg: #fdf6ec;
    --mt-status-confirm-line: #ecd9bd;

    /* type: Lato 400/700 only */
    --mt-font: "Lato", "Helvetica Neue", Arial, sans-serif;
    --mt-text-min: 12px;
    --mt-text-12: 12px;
    --mt-text-13: 13px;
    --mt-text-14: 14px;
    --mt-text-15: 15px;
    --mt-text-input: 16px;            /* form fields: iOS Safari zooms into anything smaller */
    --mt-text-17: 17px;
    --mt-text-18: 18px;
    --mt-text-21: 21px;               /* tab and block headings; product title and price on phones */
    --mt-text-28: 28px;               /* net price on the product page */
    --mt-text-30: 30px;               /* product title */
    --mt-text-h2: 28px;
    --mt-text-h1: clamp(28px, 2.8vw, 44px);
    --mt-text-display: clamp(38px, 4.6vw, 76px);

    /* shape */
    --mt-radius-control: 8px;         /* buttons, inputs */
    --mt-radius-card: 12px;           /* cards, panels */
    --mt-radius-panel: 18px;          /* home hero panel only */
    --mt-radius-pill: 999px;          /* chips, search fields */

    /* size and space */
    --mt-control-h: 44px;
    --mt-control-h-sm: 36px;
    --mt-space-1: 4px;
    --mt-space-2: 8px;
    --mt-space-3: 12px;
    --mt-space-4: 16px;
    --mt-space-5: 24px;
    --mt-space-6: 32px;
    --mt-space-section: 54px;

    /* depth */
    --mt-shadow-low: 0 2px 12px rgba(0, 40, 18, .04);
    --mt-shadow-raised: 0 8px 28px rgba(15, 67, 42, .06);
    --mt-shadow-overlay: 0 22px 56px rgba(15, 67, 42, .2), 0 4px 12px rgba(15, 67, 42, .08); /* layers floating over content (quick preview) */

    /* icons drawn once, used as masks wherever they appear (header cart, catalogue buttons) */
    --mt-icon-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.6L20.5 7H6.6'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E");
    --mt-icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --mt-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --mt-focus: 0 0 0 2px var(--mt-surface), 0 0 0 4px var(--mt-green-text);

    /* cable colour references (T568A/B wires, fibre jackets) */
    --mt-wire-green: #2e9d4f;
    --mt-wire-orange: #f28c28;
    --mt-wire-blue: #2f6fd1;
    --mt-wire-brown: #7a4a2a;
    --mt-fiber-os2: #ffd400;
    --mt-fiber-om2: #f28c28;
    --mt-fiber-om3: #45c7d5;
    --mt-fiber-om4: #c05aa5;
    --mt-fiber-om5: #c7df16;
}

@media (max-width: 549px) {
    :root {
        --mt-text-h2: 24px;
        --mt-space-section: 32px;
    }
}
