/* ==========================================================================
   Pro Dental Lab - Giao dien website
   ========================================================================== */

:root {
    /* Tong mau vang gold sang bong theo bang bao gia cua labo */
    --primary: #c2911d;          /* vang gold dam - link, nut, diem nhan */
    --primary-dark: #a87c12;
    --primary-darker: #7d5c11;   /* nau vang - thanh topbar */
    --primary-soft: #fdf7e6;
    --primary-soft-2: #f8ebc9;

    --gold: #e5bd45;             /* vang kim loai sang */
    --gold-bright: #f8dd8c;      /* diem cao sang cua vang */
    --gold-light: #f9eec9;
    --gold-deep: #c2941f;
    --accent: #e5bd45;
    --accent-soft: #fef9ec;

    --brown-deep: #4b3718;       /* nen toi: chan trang, hop dam */
    --brown: #6b5124;

    --ink: #3a2a13;              /* chu tieu de - nau dam */
    --ink-2: #58432a;
    --muted: #8a7559;
    --muted-2: #b4a288;
    --line: #f0e2c1;             /* vien vang nhat */
    --line-soft: #f9f2e3;

    --bg: #fffdf7;               /* nen kem sang */
    --surface: #fffefa;          /* mat the / card mau kem */
    --bg-soft: #fdf8ec;
    --bg-soft-2: #f9efda;

    --success: #4d7c2f;
    --success-soft: #eef5e4;
    --danger: #b3261e;
    --danger-soft: #fbeae7;
    --warning: #b07d10;
    --warning-soft: #fbf1dc;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --shadow-xs: 0 1px 2px rgba(120, 92, 30, .06);
    --shadow-sm: 0 2px 8px rgba(120, 92, 30, .09);
    --shadow: 0 8px 24px rgba(120, 92, 30, .12);
    --shadow-lg: 0 18px 48px rgba(120, 92, 30, .17);

    --gold-grad: linear-gradient(135deg, #fff7dd 0%, #f5de9d 18%, #e9c559 42%, #fdf4d6 56%, #dfb037 74%, #f7e6ad 100%);
    --gold-line: linear-gradient(90deg, transparent, #e5bd45 22%, #fff3cf 50%, #e5bd45 78%, transparent);
    /* Nen vang gold sang dung cho dai bao hanh, dai CTA va chan trang */
    --gold-panel: linear-gradient(135deg, #fdf5da 0%, #f4e1a9 24%, #e8c96f 50%, #fcf3d6 66%, #ecd287 86%, #f9ebc0 100%);

    --container: 1200px;
    --header-h: 76px;

    --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 100% 0, rgba(229, 189, 69, .16), transparent 46%),
        radial-gradient(circle at 0 100%, rgba(248, 221, 140, .16), transparent 44%),
        radial-gradient(circle at 50% 42%, rgba(255, 248, 226, .55), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Kich thuoc mac dinh cua icon ---------- */
.ico { width: 18px; height: 18px; flex: none; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; color: var(--ink); font-weight: 700; line-height: 1.28; }
h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

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

/* ---------- Nut bam ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
    background: var(--gold-grad);
    color: var(--brown-deep);
    border-color: rgba(190, 148, 42, .55);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(194, 145, 29, .3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #fffbe9 0%, #fae7b4 18%, #f0d068 42%, #fffaea 56%, #e8bd48 74%, #fbeec2 100%);
    color: var(--brown-deep);
    box-shadow: 0 10px 26px rgba(194, 145, 29, .38);
}

.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold-grad); color: var(--brown-deep); border-color: rgba(190, 148, 42, .55); }

.btn-white { background: var(--surface); color: var(--primary-dark); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--gold-grad); color: var(--brown-deep); border-color: rgba(190, 148, 42, .55); }

.btn-ghost { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--gold); color: var(--primary-dark); }

.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Thanh dieu huong ---------- */
.topbar {
    background: linear-gradient(90deg, #6b5122 0%, #9c7614 50%, #6b5122 100%);
    color: rgba(255, 250, 236, .9);
    font-size: .85rem;
    border-bottom: 1px solid rgba(229, 189, 69, .45);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 15px; height: 15px; opacity: .85; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }
.topbar-social { display: flex; align-items: center; gap: 12px; }
.topbar-social a { display: inline-flex; opacity: .85; }
.topbar-social a:hover { opacity: 1; }
.topbar-social svg { width: 17px; height: 17px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 254, 250, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(229, 189, 69, .25);
    transition: box-shadow .25s ease;
}
/* Chi dung hieu ung kinh mo tren man hinh lon. Tren di dong, backdrop-filter
   se bien header thanh khoi chua cua menu truot (position: fixed) lam vo bo cuc. */
@media (min-width: 993px) {
    .site-header {
        background: rgba(255, 254, 250, .92);
        backdrop-filter: blur(12px);
    }
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 48px; width: auto; object-fit: contain; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    background: var(--gold-grad);
    color: var(--brown-deep); display: grid; place-items: center;
    font-weight: 800; font-size: 1.05rem; letter-spacing: .5px;
    box-shadow: 0 6px 16px rgba(194, 145, 29, .32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.2px; }
.brand-slogan { font-size: .74rem; color: var(--muted); font-weight: 500; }
.brand-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px;
    border: 1px solid rgba(194, 145, 29, .45);
    background: rgba(229, 189, 69, .14);
    border-radius: 999px;
    color: var(--primary);
    font-size: .74rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    white-space: nowrap;
}
.brand-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink-2);
    font-weight: 600;
    font-size: .93rem;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 3px; border-radius: 3px;
    background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 700; color: var(--ink);
}
.header-phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.header-phone small { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; }

/* Nut dong menu chi dung cho ban di dong */
.nav-close { display: none; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    background: var(--surface); border-radius: 12px;
    color: var(--ink);
    place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-backdrop {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(75, 55, 24, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Banner slider ---------- */
/* Nen vang gold co dinh cua banner: chu nam ben trai, anh upload nam ben phai */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(52% 52% at 72% 38%, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(135deg, #5c4520 0%, #c08f1f 55%, #f4dfa2 100%);
}
/* Luoi ke mo trang tri, giong nen banner cu */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
/* Lop toi nhe phia trai de chu noi ro tren nen vang */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(46, 33, 14, .70) 0%, rgba(60, 44, 18, .46) 32%, rgba(90, 68, 28, .14) 54%, transparent 68%);
    pointer-events: none;
}
.hero-track { position: relative; z-index: 1; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-slide > .container { max-width: var(--container); }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    min-height: clamp(380px, 58vh, 620px);
    padding: clamp(40px, 5vw, 60px) 0;
}
.hero-text { max-width: 640px; color: #fff; }

/* Khung anh ben phai, bo goc mem */
.hero-figure {
    margin: 0;
    border-radius: clamp(20px, 2.4vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(255, 250, 235, .38);
    box-shadow: 0 26px 60px rgba(46, 33, 14, .34), 0 2px 0 rgba(255, 255, 255, .28) inset;
    background: rgba(255, 250, 235, .12);
}
.hero-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.hero-text h2 {
    color: var(--gold-light);
    background: linear-gradient(180deg, #fffaea 0%, #f6e2a8 42%, #e8c257 68%, #fff6dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.9rem, 4.6vw, 3.35rem);
    line-height: 1.14;
    letter-spacing: -1px;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .45));
}
.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 30px;
    max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 5;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border: 1px solid rgba(229, 189, 69, .55);
    background: rgba(75, 55, 24, .32);
    backdrop-filter: blur(8px);
    color: var(--gold-light); border-radius: 50%;
    transition: background .2s ease, transform .2s ease;
}
.hero-nav:hover { background: rgba(229, 189, 69, .3); color: #fff8ec; }
.hero-nav svg { width: 22px; height: 22px; }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.hero-dots {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; gap: 10px;
}
.hero-dots button {
    width: 34px; height: 5px; padding: 0;
    border: 0; border-radius: 999px;
    background: rgba(255, 250, 235, .5);
    transition: background .25s ease, width .25s ease;
}
.hero-dots button.active { background: var(--gold); width: 48px; }

/* ---------- Bo cuc chung cho section ---------- */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin: 0 auto clamp(36px, 5vw, 54px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-weight: 700;
    font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase;
    margin-bottom: 12px;
}
.eyebrow { color: var(--primary-dark); }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.section-head h2 { margin-bottom: 12px; letter-spacing: -.5px; }
.section-head h2::after {
    content: '';
    display: block;
    width: 190px; max-width: 60%;
    height: 2px; margin: 14px auto 0;
    background: var(--gold-line);
}
.section-head.left h2::after { margin-inline: 0; }
.section-head p { color: var(--muted); font-size: 1.03rem; margin: 0; }

/* ---------- Box gioi thieu ngan ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.feature-card {
    position: relative;
    padding: 36px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gold-grad);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 66px; height: 66px; margin-bottom: 22px;
    display: grid; place-items: center;
    border-radius: 20px;
    background: var(--gold-grad);
    color: var(--brown-deep);
    box-shadow: inset 0 0 0 1px rgba(120, 88, 18, .3), 0 4px 12px rgba(194, 145, 29, .22);
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.22rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- San pham ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft-2); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.16rem; margin-bottom: 10px; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--primary); }
.product-body p { color: var(--muted); font-size: .93rem; margin-bottom: 20px; flex: 1; }
.product-actions { display: flex; align-items: center; gap: 12px; }

.product-tag {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    padding: 6px 14px;
    background: var(--gold-grad);
    color: var(--brown-deep);
    border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    box-shadow: var(--shadow-xs);
}

/* ---------- Tra cuu bao hanh ---------- */
.warranty-section {
    position: relative;
    background: var(--gold-panel);
    color: var(--ink-2);
    overflow: hidden;
    border-block: 1px solid var(--gold-deep);
}
.warranty-section::before,
.warranty-section::after {
    content: '';
    position: absolute; border-radius: 50%;
    background: rgba(255, 253, 240, .5);
    pointer-events: none;
}
.warranty-section::before { width: 460px; height: 460px; top: -180px; right: -120px; }
.warranty-section::after { width: 320px; height: 320px; bottom: -160px; left: -80px; }
.warranty-section .container { position: relative; z-index: 2; }
.warranty-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.warranty-intro h2 { color: var(--ink); letter-spacing: -.5px; }
.warranty-intro .eyebrow { color: var(--primary-dark); }
.warranty-intro .eyebrow::before { background: var(--primary-dark); }
.warranty-intro p { color: var(--ink-2); margin-bottom: 22px; }
.warranty-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.warranty-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: .96rem; }
.warranty-points svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--primary-dark); }

.warranty-box {
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-lg), inset 0 0 0 4px rgba(229, 189, 69, .12);
}
.warranty-box h3 { margin-bottom: 8px; font-size: 1.35rem; }
.warranty-box > p { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.code-input-group { display: flex; gap: 12px; }
.code-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--primary-soft-2);
    border-radius: 14px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: var(--bg-soft);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    min-width: 0;
}
.code-input::placeholder { font-weight: 500; letter-spacing: .5px; color: var(--muted-2); text-transform: none; }
.code-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.code-hint { margin: 16px 0 0; font-size: .84rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.code-hint svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--primary); }

/* ---------- Ket qua bao hanh ---------- */
.result-card {
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 780px;
    margin-inline: auto;
}
.result-head {
    padding: 26px 30px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.result-head.active { background: var(--success-soft); }
.result-head.expired { background: var(--warning-soft); }
.result-head.inactive { background: var(--bg-soft); }
.result-head.notfound { background: var(--danger-soft); }
.result-icon {
    width: 54px; height: 54px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.result-icon svg { width: 28px; height: 28px; }
.result-head.active .result-icon { color: var(--success); }
.result-head.expired .result-icon { color: var(--warning); }
.result-head.inactive .result-icon { color: var(--muted); }
.result-head.notfound .result-icon { color: var(--danger); }
.result-head h3 { margin: 0 0 3px; font-size: 1.18rem; }
.result-head p { margin: 0; font-size: .9rem; color: var(--muted); }

.result-code {
    margin-left: auto;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--brown-deep), var(--brown));
    color: var(--gold-light);
    border: 1px solid rgba(229, 189, 69, .45);
    border-radius: 10px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-weight: 700; font-size: 1rem; letter-spacing: 1px;
}
.result-body { padding: 8px 30px 26px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.info-row {
    display: flex; align-items: baseline; gap: 12px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--line);
}
.info-row dt { flex: none; width: 148px; color: var(--muted); font-size: .89rem; }
.info-row dd { margin: 0; font-weight: 600; color: var(--ink); }
.info-row.full { grid-column: 1 / -1; }
.result-foot {
    padding: 20px 30px;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .88rem; color: var(--muted);
}

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: .8rem; font-weight: 700;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-active { background: var(--success-soft); color: var(--success); }
.badge-expired { background: var(--warning-soft); color: var(--warning); }
.badge-inactive { background: var(--bg-soft-2); color: var(--muted); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Trang con ---------- */
.page-hero {
    position: relative;
    padding: clamp(48px, 7vw, 78px) 0;
    background: linear-gradient(135deg, var(--primary-soft-2) 0%, var(--bg-soft) 55%, var(--bg) 100%);
    border-bottom: 1px solid var(--gold);
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; width: 380px; height: 380px; border-radius: 50%;
    top: -160px; right: -100px;
    background: radial-gradient(circle, rgba(194, 145, 29, .16), transparent 68%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 10px; letter-spacing: -.8px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0; }

.breadcrumb {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: .87rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { color: var(--muted-2); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ---------- Noi dung bai viet ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.article {
    background: linear-gradient(160deg, #fdf8ea 0%, #faf0d8 58%, #f7e9cd 100%);
    border: 1px solid rgba(194, 148, 31, .32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: clamp(24px, 3.4vw, 42px);
    font-size: 1.02rem;
    color: var(--ink-2);
}
.article > *:first-child { margin-top: 0; }
.article h2 { margin-top: 1.8em; font-size: 1.6rem; letter-spacing: -.3px; }
.article h3 { margin-top: 1.6em; font-size: 1.25rem; color: var(--primary-dark); }
.article h2 { position: relative; padding-bottom: 10px; }
.article h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 120px; height: 2px; background: var(--gold-line); }
.article p { margin-bottom: 1.15em; }
.article ul, .article ol { margin-bottom: 1.3em; }
.article li { margin-bottom: .5em; }
.article ul { list-style: none; padding-left: 0; }
.article ul li { position: relative; padding-left: 28px; }
.article ul li::before {
    content: '';
    position: absolute; left: 4px; top: .58em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold-grad);
    box-shadow: 0 0 0 1px rgba(120, 88, 18, .25);
}
.article ol { padding-left: 1.35em; }
.article ol li::marker { color: var(--primary); font-weight: 700; }
.article img { border-radius: var(--radius); margin: 1.5em 0; box-shadow: var(--shadow-sm); }
.article blockquote {
    margin: 1.6em 0; padding: 20px 26px;
    background: var(--surface);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-2); font-style: italic;
}
.article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.article th, .article td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.article th { background: linear-gradient(135deg, var(--brown-deep), var(--brown)); color: var(--gold-light); font-weight: 700; }
.article-figure { margin: 0 0 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.article-figure img { margin: 0; border-radius: 0; box-shadow: none; width: 100%; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}
.widget h4 {
    margin: 0 0 18px; padding-bottom: 14px;
    font-size: 1.02rem;
    border-bottom: 2px solid transparent;
    border-image: var(--gold-line) 1;
}
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.widget-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--ink-2); font-weight: 500; font-size: .93rem;
}
.widget-list a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.widget-list img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.widget-cta {
    background: linear-gradient(135deg, var(--brown-deep), var(--primary-darker));
    color: #fff8ec; border: 1px solid var(--gold); text-align: center;
}
.widget-cta h4 { color: var(--gold-light); border-bottom-color: rgba(229, 189, 69, .4); }
.widget-cta p { color: rgba(255, 248, 232, .88); font-size: .92rem; }

/* ---------- Chung nhan, giay phep ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    gap: 26px;
    justify-content: center;
}
.cert-item {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cert-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius-sm);
}
.cert-item figcaption {
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
}

/* ---------- Thu vien hinh anh ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft-2);
    cursor: zoom-in;
    box-shadow: var(--shadow-xs);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0;
    padding: 30px 18px 16px;
    background: linear-gradient(to top, rgba(58, 42, 18, .9), transparent);
    color: #fff; font-size: .92rem; font-weight: 600;
    transform: translateY(6px); opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(48, 35, 15, .94);
    display: none; align-items: center; justify-content: center;
    padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .9); font-size: .95rem; padding-inline: 20px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff; border-radius: 50%;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .3); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }

/* ---------- Bieu mau ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid > *, .features > *, .product-grid > *, .gallery-grid > * { min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .89rem; font-weight: 600; color: var(--ink); }
.form-group label .req { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: .96rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
textarea.form-control { min-height: 140px; resize: vertical; }

.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: .94rem;
    margin-bottom: 22px;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); }
.alert-info svg { color: var(--gold-deep); }

/* ---------- Lien he ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
    display: flex; gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: border-color .25s ease, transform .25s ease;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card .icon {
    width: 48px; height: 48px; flex: none;
    display: grid; place-items: center;
    background: var(--gold-grad); color: var(--brown-deep);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(120, 88, 18, .28);
}
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p, .contact-card a { margin: 0; font-size: .95rem; color: var(--muted); }
.contact-card a:hover { color: var(--primary); }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    line-height: 0;
    background: var(--bg-soft-2);
}
.map-embed iframe { width: 100%; height: 450px; border: 0; display: block; }
.map-placeholder { padding: 60px 20px; text-align: center; color: var(--muted); line-height: 1.6; }

/* ---------- Phan trang ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    padding-inline: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink-2); font-weight: 600; font-size: .92rem;
    background: var(--surface);
}
.pagination a:hover { border-color: var(--gold); color: var(--primary-dark); background: var(--primary-soft); }
.pagination .current { background: var(--gold-grad); border-color: rgba(190, 148, 42, .55); color: var(--brown-deep); }
.pagination .disabled { color: var(--muted-2); background: var(--bg-soft); cursor: not-allowed; }

/* ---------- Dai CTA ---------- */
.cta-band {
    background: var(--gold-panel);
    color: var(--ink-2);
    border-block: 1px solid var(--gold-deep);
    padding: clamp(44px, 6vw, 68px) 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); margin-bottom: 8px; }
.cta-band p { color: var(--ink-2); margin: 0; }
.cta-band p a { color: var(--primary-dark); }
.cta-band p a:hover { color: var(--brown-deep); }
.widget-cta p a { color: var(--gold-bright); }
.widget-cta p a:hover { color: #fff8ec; }
/* Tren nen vang, nut phai la mang nau de noi bat */
.cta-band .btn-primary {
    background: linear-gradient(135deg, var(--brown-deep), var(--brown));
    color: var(--gold-light);
    border-color: var(--gold-deep);
    box-shadow: 0 6px 18px rgba(75, 55, 24, .3);
}
.cta-band .btn-primary:hover {
    background: linear-gradient(135deg, #5b4520, #7c5e2b);
    color: #fff8ec;
    box-shadow: 0 10px 26px rgba(75, 55, 24, .38);
}
.cta-band .btn-white { border-color: var(--gold-deep); }

/* ---------- Chan trang ---------- */
.site-footer {
    background:
        radial-gradient(120% 90% at 88% 0, rgba(255, 253, 240, .55), transparent 58%),
        var(--gold-panel);
    color: var(--ink-2);
    font-size: .94rem;
    border-top: 2px solid var(--gold-deep);
}
.footer-main { padding: clamp(48px, 6vw, 70px) 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.site-footer h4 {
    color: var(--ink); font-size: 1.02rem; margin-bottom: 20px;
    position: relative; padding-bottom: 12px;
}
.site-footer h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--brown), var(--gold-deep));
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer .brand-mark { background: linear-gradient(135deg, var(--brown-deep), var(--brown)); color: var(--gold-light); box-shadow: 0 6px 16px rgba(75, 55, 24, .28); }
.footer-brand img { height: 52px; width: auto; object-fit: contain; }
.footer-brand .brand-name { color: var(--ink); }
.footer-brand .brand-slogan { color: var(--muted); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--brown-deep); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; }
.footer-links a::before { content: '›'; color: var(--primary-dark); font-size: 1.1rem; line-height: 1; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--primary-dark); }
.footer-map { border-radius: var(--radius); overflow: hidden; line-height: 0; border: 1px solid var(--gold-deep); }
.footer-map iframe { width: 100%; height: 210px; border: 0; display: block; filter: grayscale(.2); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: rgba(255, 253, 243, .6);
    border: 1px solid var(--gold-deep);
    border-radius: 11px; color: var(--brown);
    transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: linear-gradient(135deg, var(--brown-deep), var(--brown)); transform: translateY(-2px); color: var(--gold-light); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(154, 116, 26, .35);
    font-size: .87rem;
}
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Nut noi nhanh ---------- */
.float-actions {
    position: fixed; right: 18px; bottom: 18px; z-index: 150;
    display: grid; gap: 12px;
}
.float-btn {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 50%; color: #fff;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn svg { width: 24px; height: 24px; }
/* Vien sang de nut goi khong bi chim khi nam tren dai nen vang */
.float-phone { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep)); color: var(--brown-deep); border: 2px solid #fffdf3; animation: pulse-ring 2.4s infinite; }
.float-phone:hover { color: var(--brown-deep); }
.float-zalo { background: #0068ff; font-weight: 800; font-size: .8rem; letter-spacing: -.3px; }
.float-top { background: linear-gradient(135deg, var(--brown-deep), var(--brown)); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease, transform .2s ease; }
.float-top.show { opacity: 1; visibility: visible; }

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(194, 145, 29, .5); }
    70%  { box-shadow: 0 0 0 16px rgba(194, 145, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 145, 29, 0); }
}

/* ---------- Trang trong ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state svg { width: 62px; height: 62px; margin: 0 auto 18px; color: var(--muted-2); }
.empty-state h3 { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- Hieu ung xuat hien ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Menu co 6 muc nen can thu gon o man hinh vua de header khong bi tran */
@media (max-width: 1320px) {
    .main-nav { gap: 2px; }
    .main-nav a { padding: 10px 11px; font-size: .89rem; }
    .main-nav a.active::after { left: 11px; right: 11px; }
    .brand-slogan { display: none; }
    .brand-tag { display: none; }
    .header-phone small { display: none; }
}

@media (max-width: 1120px) {
    .header-phone span { display: none; }
    .header-phone { gap: 0; }
}

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
}

@media (max-width: 992px) {
    :root { --header-h: 68px; }
    .header-phone { display: none; }
    .nav-toggle { display: grid; }
    .main-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        z-index: 195;
        width: min(320px, 86vw);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 84px 20px 30px;
        background: var(--surface);
        border-left: 2px solid transparent;
        border-image: linear-gradient(180deg, var(--gold), transparent) 1;
        box-shadow: -8px 0 30px rgba(56, 38, 14, .16);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav a { padding: 14px 16px; font-size: 1rem; border-radius: 12px; }
    .main-nav a.active { background: var(--primary-soft); }
    .main-nav a.active::after { display: none; }
    .nav-close {
        position: absolute; top: 18px; right: 18px;
        width: 42px; height: 42px; display: grid; place-items: center;
        border: 1px solid var(--line); background: var(--surface); border-radius: 12px; color: var(--ink);
    }
    .nav-close svg { width: 20px; height: 20px; }

    .features, .product-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .warranty-wrap { grid-template-columns: 1fr; gap: 36px; }
    .article-layout, .contact-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
    .hero-nav { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding-bottom: 64px; }
    .hero-text { max-width: none; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 768px) {
    .topbar-info span:nth-child(n+3) { display: none; }
    .info-list { grid-template-columns: 1fr; }
    .result-head { padding: 20px; }
    .result-body { padding: 6px 20px 20px; }
    .result-foot { padding: 16px 20px; }
    .result-code { margin-left: 0; width: 100%; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .hero-text h2 { letter-spacing: -.4px; }
    .hero-figure img { aspect-ratio: 16 / 11; }
    .cta-band .container { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .container { padding-inline: 16px; }
    .features, .product-grid, .gallery-grid { grid-template-columns: 1fr; }
    .brand-slogan { display: none; }
    .brand img { height: 40px; }
    .brand-mark { width: 40px; height: 40px; font-size: .95rem; }
    .brand-name { font-size: 1rem; }
    .topbar-info span:nth-child(n+2) { display: none; }
    .code-input-group { flex-direction: column; }
    .hero-actions .btn { flex: 1; }
    .info-row { flex-direction: column; gap: 3px; }
    .info-row dt { width: auto; }
    .float-actions { right: 12px; bottom: 12px; gap: 10px; }
    .float-btn { width: 46px; height: 46px; }
    .float-btn svg { width: 21px; height: 21px; }
}

@media print {
    .topbar, .site-header, .site-footer, .float-actions, .btn, .hero { display: none !important; }
    body { color: #000; background: #fff; }
    .result-card { box-shadow: none; border: 1px solid var(--gold-deep); }
}
