/*
 * Tên file: Application\public\assets\css\base.css
 * Mô tả: Biến màu, khoảng cách, reset và kiểu chữ nền tảng.
 * Ngày tạo: 2026-10-22
 * Ngày cập nhật: 2026-10-23
 * Metadata: {"project": "Nha-Sach", "language": "css", "reviewed_by": "", "created": "2026-10-22", "updated": "2026-10-23"}
 */
/* Nen tang: bien mau, khoang cach, reset, kieu chu. Moi mau trong giao dien lay tu day. */
:root {
    --c-primary: #1f5fd1;
    --c-primary-dark: #1748a3;
    --c-accent: #3d8bff;
    --c-ink: #161c24;
    --c-muted: #5d6875;
    --c-bg: #f4f6f9;
    --c-surface: #ffffff;
    --c-border: #dde3ea;
    --c-dark: #10151b;

    --c-success: #1e7b4a;
    --c-success-bg: #e8f5ee;
    --c-warn: #8a5a00;
    --c-warn-bg: #fff4d6;
    --c-danger: #b42318;
    --c-danger-bg: #fde8e8;
    --c-info: #0b6aa0;
    --c-info-bg: #e3f2fa;

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;

    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, .08);

    --font: "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-ink);
    background: var(--c-bg);
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--sp-3); font-weight: 700; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 var(--sp-3); }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* Giam chuyen dong cho nguoi dung bat reduced-motion: giu phan hoi mau, bo di chuyen */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
    vertical-align: -4px;
}

.muted { color: var(--c-muted); font-size: 13px; }
.price { font-weight: 700; color: var(--c-primary); }
.total { font-size: 18px; text-align: right; }
.total strong { font-size: 20px; color: var(--c-primary); }
