@charset "UTF-8";
/* =========================================================================
   Vitalis UI — design system
   Supplements & pharmacy storefront. Loaded AFTER bootstrap/theme/style.
   Part 1/5: tokens, fonts, reset, typography
   ========================================================================= */

/* ------------------------------ fonts ---------------------------------- */
/* Estedad FD — soft rounded Persian UI face with Farsi digits */
@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/estedad/Estedad-FD-Variable.woff2') format('woff2-variations'),
         url('../../fonts/estedad/Estedad-FD-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/estedad/Estedad-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/estedad/Estedad-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/estedad/Estedad-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/estedad/Estedad-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../../fonts/estedad/Estedad-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------ tokens --------------------------------- */
:root {
    /* brand: pastel purple */
    --c-brand-50: #faf7fd;
    --c-brand-100: #f2ecfa;
    --c-brand-200: #e4d8f4;
    --c-brand-300: #cdb8ea;
    --c-brand-400: #ad92d9;
    --c-brand-500: #8a67c2;
    --c-brand-600: #7654ad;
    --c-brand-700: #604394;
    --c-brand-800: #4a3475;
    --c-brand-900: #352655;

    /* secondary: lilac */
    --c-leaf-100: #f9eef8;
    --c-leaf-300: #efd3ec;
    --c-leaf-400: #e2b5de;
    --c-leaf-500: #c98fc4;

    /* pastel blocks behind carousels and banners */
    --c-blush: #f1e9fa;
    --c-blush-2: #f8eef7;
    --c-blush-3: #ebe8fa;

    --c-amber-100: #fff3d6;
    --c-amber-400: #f9b42c;
    --c-amber-500: #e8940c;

    --c-rose-100: #ffe6ec;
    --c-rose-500: #e5325c;
    --c-rose-600: #c8234a;

    /* neutrals */
    --c-ink: #2b2340;
    --c-ink-2: #453c5c;
    --c-ink-3: #6f6787;
    --c-ink-4: #9a92ae;
    --c-line: #ece6f4;
    --c-line-2: #f4f0f9;
    --c-surface: #ffffff;
    --c-surface-2: #fbf9fe;
    --c-canvas: #fdfcff;

    /* focus ring / tinted shadows */
    --c-ring: rgba(138, 103, 194, .16);
    --c-overlay: rgba(43, 35, 64, .5);

    /* semantic */
    --c-success: #2f8f72;
    --c-warning: #e8940c;
    --c-danger: #e5325c;
    --c-info: #2f7fbf;

    /* radii */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-pill: 999px;

    /* shadows: hairline elevation, not a heavy card stack */
    --sh-xs: 0 0 0 1px rgba(74, 52, 117, .04);
    --sh-sm: 0 1px 2px rgba(74, 52, 117, .05);
    --sh-md: 0 8px 24px rgba(74, 52, 117, .08);
    --sh-lg: 0 16px 40px rgba(74, 52, 117, .1);
    --sh-brand: none;

    /* motion */
    --t-fast: .16s cubic-bezier(.4, 0, .2, 1);
    --t-base: .26s cubic-bezier(.4, 0, .2, 1);
    --t-slow: .45s cubic-bezier(.22, 1, .36, 1);

    /* layout */
    --header-h: 64px;
    --bottomnav-h: 58px;

    /* soft Persian stack — Estedad FD (local) */
    --font-family-sans-serif: 'Estedad', Tahoma, system-ui, sans-serif;
}

/* ------------------------------ reset ---------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-family-sans-serif);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: .01em;
    color: var(--c-ink-2);
    background-color: var(--c-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* style.css zeroes all margins; restore a sane vertical rhythm */
p {
    margin-bottom: .9rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6rem;
    color: var(--c-ink);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -.005em;
}

h1 {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
}

h2 {
    font-size: clamp(1.3rem, 1rem + 1.1vw, 1.7rem);
}

h3 {
    font-size: clamp(1.1rem, .95rem + .6vw, 1.35rem);
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .95rem;
}

ul, ol {
    margin-bottom: .9rem;
    padding-right: 1.1rem;
}

ul.list-plain, ol.list-plain {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--c-brand-600);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover, a:focus {
    color: var(--c-brand-700);
    font-weight: 600;
    text-decoration: none;
}

hr {
    border: 0;
    border-top: 1px solid var(--c-line);
    margin: 1.5rem 0;
}

::selection {
    background: var(--c-brand-200);
    color: var(--c-brand-900);
}

/* visible focus for keyboard users only */
:focus-visible {
    outline: 3px solid var(--c-brand-300);
    outline-offset: 2px;
}

/* ---------------------- numbers inside RTL text ------------------------ */
/* Prices/quantities must not be reordered by the bidi algorithm. */
.num, .price__num, .ltr {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------ a11y ----------------------------------- */
.sr-only-focusable.skip-link {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 2000;
    width: auto;
    height: auto;
    padding: 10px 18px;
    clip: auto;
    background: var(--c-brand-600);
    color: #fff;
    border-radius: var(--r-sm);
    box-shadow: var(--sh-md);
    transform: translateY(-160%);
    transition: transform var(--t-base);
}

.sr-only-focusable.skip-link:focus {
    transform: translateY(0);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
