/* =============================================
   ABAK MARKET v2 — DESIGN TOKENS
   ============================================= */

:root {
    /* ── Palette ── */
    --clr-bg: #fdf9f4;
    --clr-bg-alt: #f5efe6;
    --clr-card: #ffffff;
    --clr-text: #2b1e12;
    --clr-text-mid: #6b5245;
    --clr-text-light: #a08878;
    --clr-accent: #a67752;
    --clr-accent-soft: #c4a574;
    --clr-accent-dark: #7a5433;
    --clr-border: rgba(0, 0, 0, .08);
    --clr-border-mid: rgba(0, 0, 0, .14);
    --clr-shadow: rgba(43, 30, 18, .10);
    --clr-shadow-md: rgba(43, 30, 18, .18);
    --clr-green: #27ae60;
    --clr-red: #e84c3d;
    --clr-wa: #25D366;

    /* ── Typography ── */
    --font-main: 'Inter', system-ui, sans-serif;
    --font-display: 'Montserrat', 'Inter', sans-serif;

    /* ── Type scale ── */
    --text-xs: 0.6875rem;
    /* 11px */
    --text-sm: 0.8125rem;
    /* 13px */
    --text-base: 0.9375rem;
    /* 15px */
    --text-md: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.3125rem;
    /* 21px */
    --text-2xl: 1.5625rem;
    /* 25px */

    /* ── Radius ── */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 100px;

    /* ── Spacing ── */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;

    /* ── Layout ── */
    --header-h: 58px;
    --bottom-nav-h: 68px;
    --page-max: 520px;
    --card-gap: 12px;

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 160ms;
    --dur-base: 260ms;
    --dur-slow: 420ms;

    /* ── Shadows ── */
    --shadow-card: 0 2px 12px var(--clr-shadow);
    --shadow-raised: 0 6px 24px var(--clr-shadow-md);
    --shadow-float: 0 8px 32px rgba(43, 30, 18, .22);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.5;
    min-height: 100vh;
    /* leave room for sticky header + bottom nav */
    padding-top: var(--header-h);
    padding-bottom: var(--bottom-nav-h);
    overscroll-behavior-y: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    display: block;
    max-width: 100%;
}

input,
textarea,
select {
    font-family: inherit;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

/* ── Utility classes ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-accent {
    color: var(--clr-accent);
}

.font-bold {
    font-weight: 700;
}