:root {
    --primary: #4726e8;
    --primary-hover: #3116b8;
    --primary-light: #f2eeff;
    --secondary: #f58acb;
    --accent: #ffd437;
    --bg: #fafafc;
    --surface: #ffffff;
    --card: #f8f7fd;
    --border: #ece9f8;
    --text: #1d1d1f;
    --muted: #6c6c78;
    --success: #53c16a;
    --shadow: 0 18px 50px rgba(71, 38, 232, 0.12);
    --shadow-strong: 0 28px 70px rgba(71, 38, 232, 0.18);
    --radius: 20px;
    --radius-sm: 12px;
    --font-heading: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
    --font-body: "Be Vietnam Pro", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 212, 55, 0.18), transparent 28%),
        radial-gradient(circle at 88% 4%, rgba(245, 138, 203, 0.18), transparent 30%),
        var(--bg);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(236, 233, 248, 0.8);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(71, 38, 232, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 16px;
}

.brand span span {
    color: var(--secondary);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: var(--muted);
    font-weight: 700;
}

.desktop-nav a {
    position: relative;
    padding: 10px 0;
}

.desktop-nav a::after {
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--secondary);
    content: "";
    transition: width 0.25s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    width: 100%;
}

.header-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-cta {
    padding: 10px 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #6a4cff);
    box-shadow: 0 12px 24px rgba(71, 38, 232, 0.2);
}

.header-cta:hover,
.btn:hover {
    transform: translateY(-3px);
}

.btn {
    gap: 10px;
    padding: 14px 24px;
    font-size: 1.05rem;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #6a4cff);
    box-shadow: 0 16px 32px rgba(71, 38, 232, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    box-shadow: var(--shadow-strong);
}

.btn-soft {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-full {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary);
    background: #fff;
}

.mobile-nav {
    display: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 72px;
    background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
}

.hero-media {
    position: relative;
    width: 100%;
    min-height: min(42vw, 620px);
    overflow: hidden;
    background: #fff;
}

.hero-media img {
    width: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin-top: -74px;
    padding: 34px 0 20px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-heading);
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    max-width: 720px;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    color: var(--primary);
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.8rem);
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.hero-lead {
    max-width: 670px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.hero-highlights article,
.product-card,
.combo-card,
.order-form,
.experience-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-highlights article {
    padding: 20px;
}

.hero-highlights i {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 1.35rem;
}

.hero-highlights h2 {
    margin-bottom: 7px;
    font-size: 1.18rem;
}

.hero-highlights p,
.section-copy p,
.section-heading p,
.product-body p,
.combo-card p,
.order-copy p,
.site-footer p {
    margin: 0;
    color: var(--muted);
}

.section {
    padding: 88px 0;
}

.two-column,
.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 44px;
    align-items: center;
}

.section-copy p {
    margin-top: 18px;
    font-size: 1.05rem;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text);
    font-weight: 600;
}

.check-list i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--success);
    font-size: 0.82rem;
}

.experience-panel {
    overflow: hidden;
    background: #fff;
}

.experience-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.stat-row div {
    padding: 18px 12px;
    text-align: center;
    background: #fff;
}

.stat-row strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1;
}

.stat-row span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.products {
    background: #fff;
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading p:last-child {
    margin-top: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: var(--card);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1.12 / 1;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image span,
.combo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(242, 238, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 800;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.product-body h3 {
    color: var(--primary);
}

.product-body p {
    margin-top: 8px;
    font-size: 0.95rem;
}

.product-body ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 20px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.price-row strong {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1;
}

.choose-product {
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.choose-product:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.gallery-band {
    padding: 34px 0;
    overflow: hidden;
    background: linear-gradient(90deg, var(--primary-light), #fff8d8);
}

.gallery-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.gallery-track figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 16px 42px rgba(71, 38, 232, 0.08);
}

.gallery-track img {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
}

.gallery-track figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(29, 29, 31, 0.68);
    font-size: 0.8rem;
    font-weight: 800;
}

.combos {
    background:
        linear-gradient(180deg, #fff 0%, #faf9ff 100%);
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.combo-card {
    position: relative;
    padding: 30px;
    background: #fff;
}

.combo-card.featured {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 212, 55, 0.4), transparent 26%),
        linear-gradient(135deg, var(--primary), #6a4cff);
}

.combo-card.featured h3,
.combo-card.featured p,
.combo-card.featured .check-list li {
    color: #fff;
}

.combo-card .combo-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 14px;
}

.combo-card h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.combo-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
    margin: 20px 0;
}

.combo-price del {
    color: var(--muted);
    font-weight: 700;
}

.featured .combo-price del {
    color: rgba(255, 255, 255, 0.72);
}

.combo-price strong {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.compact {
    margin-bottom: 24px;
}

.order-section {
    background:
        radial-gradient(circle at 6% 10%, rgba(255, 159, 210, 0.2), transparent 30%),
        radial-gradient(circle at 95% 86%, rgba(255, 212, 55, 0.22), transparent 28%),
        #fff;
}

.order-layout {
    align-items: start;
}

.countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0;
}

.countdown div {
    width: 98px;
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    background: var(--primary-light);
}

.countdown strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2.15rem;
    line-height: 1;
}

.countdown span {
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 800;
    text-transform: uppercase;
}

.promise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.promise-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--text);
    background: #fff;
    box-shadow: 0 10px 26px rgba(71, 38, 232, 0.08);
    font-size: 0.88rem;
    font-weight: 800;
}

.promise-list i {
    color: var(--primary);
}

.order-form {
    display: grid;
    gap: 12px;
    padding: 28px;
    background: #fff;
}

.order-form label {
    color: var(--text);
    font-weight: 800;
}

.order-form input,
.order-form select {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.order-form input:focus,
.order-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(71, 38, 232, 0.12);
}

.form-note {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.86rem;
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--border);
    background: var(--text);
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    color: #fff;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.74);
}

.site-footer a:last-child {
    color: var(--accent);
    font-weight: 800;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(29, 29, 31, 0.58);
}

.modal[hidden] {
    display: none;
}

.modal-dialog {
    position: relative;
    width: min(430px, 100%);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: var(--primary-light);
    cursor: pointer;
}

.modal-icon {
    color: var(--success);
    font-size: 3rem;
}

.modal-dialog h2 {
    margin-top: 14px;
    font-size: 2rem;
}

.modal-dialog p {
    color: var(--muted);
}

.modal-ok {
    margin-top: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column,
    .order-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .mobile-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        display: grid;
        gap: 8px;
        padding: 16px 20px 22px;
        border-bottom: 1px solid var(--border);
        background: #fff;
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: transform 0.25s ease;
    }

    body.menu-open .mobile-nav {
        transform: translateY(0);
    }

    .mobile-nav a {
        padding: 13px 16px;
        border-radius: 14px;
        color: var(--primary);
        background: var(--primary-light);
        font-weight: 800;
    }

    .hero-content {
        margin-top: -30px;
    }

    .gallery-track,
    .combo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .brand span {
        display: none;
    }

    .hero {
        padding-bottom: 44px;
    }

    .hero-media img {
        min-height: 300px;
        object-position: 58% center;
    }

    .hero-actions,
    .btn,
    .price-row,
    .footer-inner {
        width: 100%;
    }

    .hero-actions .btn,
    .price-row .choose-product {
        width: 100%;
    }

    .hero-highlights,
    .product-grid,
    .stat-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 62px 0;
    }

    .product-body,
    .combo-card,
    .order-form {
        padding: 22px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* -------------------------------------------------------------
   FLOATING CONTACT BUTTONS (ZALO - GÓC TRÁI DƯỚI)
------------------------------------------------------------- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 24px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.floating-btn .btn-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    z-index: 2;
}

/* Zalo Button Specifics */
.zalo-btn {
    background-color: #0068FF;
}

/* Wave Ring Effect */
.phone-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(0, 104, 255, 0.4);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    animation: phone-ring-pulsate 1.8s infinite ease-out;
}

@keyframes phone-ring-pulsate {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Wiggle shake effect periodically */
.floating-btn {
    animation: contact-wiggle 6s infinite ease-in-out;
}

@keyframes contact-wiggle {
    0%, 90%, 100% { transform: rotate(0) scale(1); }
    91% { transform: rotate(15deg) scale(1.05); }
    93% { transform: rotate(-15deg) scale(1.05); }
    95% { transform: rotate(10deg) scale(1.05); }
    97% { transform: rotate(-10deg) scale(1.05); }
    99% { transform: rotate(0) scale(1.05); }
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        left: 16px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn .btn-icon {
        width: 32px;
        height: 32px;
    }
}
