:root {
    --yellow: #FFD600;
    --yellow-dark: #F5C800;
    --dark: #1a1a2e;
    --dark2: #16213e;
    --green: #4CAF50;
    --green-dark: #388E3C;
    --red: #E53935;
    --red-dark: #C62828;
    --orange: #FF6D00;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
    --gray-light: #eeeeee;
    --gray-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: #e8e8e8;
    color: #333;
    -webkit-font-smoothing: antialiased;
    max-width: 100vw;
    overflow-x: hidden;
}

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

.page {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* ===== TOP BAR ===== */
.topbar {
    background: var(--yellow);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.topbar-left span {
    color: var(--red);
    font-size: 18px;
    font-weight: 900;
}

.topbar-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(180deg, #f5efe6 0%, #e8dfd3 100%);
    color: var(--dark);
    padding: 0;
    text-align: center;
}

.hero-top {
    padding: 20px 16px 10px;
}

.hero-tag {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    font-size: 18px;
    font-weight: 900;
    padding: 8px 28px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(255, 214, 0, 0.4);
}

.hero h1 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 6px;
    background: var(--dark);
    color: #fff;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 4px;
}

.hero-sub {
    font-size: 12px;
    color: #777;
    margin-top: 8px;
}

/* Hero image with overlay */
.hero-img-wrap {
    position: relative;
    margin: 0;
}

.hero-img-wrap img {
    width: 100%;
    display: block;
}

/* Price block below image */
.price-block {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    padding: 16px;
    text-align: center;
    border-bottom: 3px solid var(--yellow);
}

.price-block .price-old-line {
    font-size: 13px;
    color: #999;
}

.price-block .price-old-val {
    text-decoration: line-through;
    font-weight: 600;
    color: #aaa;
    font-size: 15px;
}

.price-block .price-now-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.price-block .price-now-lbl {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.price-block .price-now-val {
    font-size: 38px;
    font-weight: 900;
    color: var(--red);
    animation: pricePulse 2s ease-in-out infinite;
}

.price-block .price-now-val small {
    font-size: 20px;
}

@keyframes pricePulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 transparent;
    }

    50% {
        transform: scale(1.08);
        text-shadow: 0 0 18px rgba(229, 57, 53, 0.35);
    }
}

/* USP badges on image */
.hero-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-badge .hb-num {
    font-size: 16px;
    font-weight: 900;
    color: var(--red);
}

/* Flash sale strip */
.flash-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, var(--red), #ff4444);
    padding: 8px 16px;
    color: #fff;
}

.flash-strip .fs-text {
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.flash-strip .fs-badge {
    background: var(--yellow);
    color: var(--dark);
    font-size: 13px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

/* Hero bottom info */
.hero-info {
    background: linear-gradient(180deg, #0f1b35 0%, #1a2744 100%);
    color: #fff;
    padding: 16px;
    text-align: center;
}

/* Price (kept for hero-info section) */
.price-row {
    display: none;
}

/* Countdown */
.cd-label {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 6px;
}

.cd-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.cd-box {
    background: var(--red);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
}

.cd-sep {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

/* Stock */
.stock-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.stock-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
}

.stock-pill b {
    color: var(--yellow);
    font-size: 14px;
}

/* Freeship */
.freeship {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--green);
    color: #fff;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* ===== CTA ===== */
.cta {
    display: block;
    width: 88%;
    max-width: 360px;
    margin: 16px auto;
    padding: 14px;
    background: var(--red);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.45);
    animation: pulse 2s infinite;
}

.cta:active {
    transform: scale(0.97);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(229, 57, 53, 0.45);
    }

    50% {
        box-shadow: 0 4px 28px rgba(229, 57, 53, 0.75);
    }
}

/* ===== SECTION TITLE BAR ===== */
.stbar {
    background: var(--yellow);
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
}

/* ===== FULL WIDTH IMAGE ===== */
.full-img img {
    width: 100%;
    display: block;
}

/* ===== THÀNH PHẦN SẢN PHẨM GRID ===== */
.parts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
}

.parts-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ===== ẢNH THỰC TẾ GRID ===== */
.real-photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    padding: 3px;
}

.real-photos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

/* ===== COMBO SECTION (yellow bg) ===== */
.combo {
    background: var(--yellow);
    padding: 20px 16px;
    text-align: center;
}

.combo .limited {
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
}

.combo h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark);
    margin: 4px 0 12px;
}

.combo-imgs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
}

.combo-imgs img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.combo .discount-tag {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 10px;
}

/* ===== ORDER FORM ===== */
.order-section {
    padding: 20px 16px;
    background: var(--gray-bg);
}

.fg {
    margin-bottom: 14px;
}

.fg label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.fg input,
.fg select,
.fg textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.fg input,
.fg select,
.fg textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
    outline: none;
    border-color: var(--yellow-dark);
}

.fg textarea {
    resize: vertical;
    min-height: 55px;
}

/* Package radio */
.pkg-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pkg-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all .2s;
}

.pkg-opt:has(input:checked) {
    border-color: var(--green);
    background: #E8F5E9;
}

.pkg-opt input[type=radio] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
    flex-shrink: 0;
}

.pkg-text {
    font-size: 13px;
    line-height: 1.4;
}

.pkg-price {
    color: var(--red);
    font-weight: 800;
}

/* Size buttons */
.size-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sz-btn {
    flex: 1 1 calc(50% - 3px);
    padding: 10px 6px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
    min-width: 70px;
}

.sz-btn.active {
    border-color: var(--green);
    background: #E8F5E9;
    color: var(--green-dark);
}

.sz-btn span {
    display: block;
    font-size: 11px;
    color: var(--gray-text);
    margin-top: 2px;
    font-weight: 400;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    margin-top: 10px;
}

.btn-submit:active {
    transform: scale(0.97);
}

.btn-submit:disabled {
    background: #bbb;
    box-shadow: none;
}

.form-loading {
    display: none;
    text-align: center;
    padding: 16px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #eee;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-msg {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.form-msg.success {
    background: #E8F5E9;
    color: var(--green-dark);
    display: block;
}

.form-msg.error {
    background: #FFEBEE;
    color: var(--red-dark);
    display: block;
}

/* ===== FEATURES GRID ===== */
.feat-section {
    padding: 16px;
}

.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feat-card {
    text-align: center;
}

.feat-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 6px;
}

.feat-card p {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}

/* ===== REVIEW FILTER ===== */
.rv-summary {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.rv-sum-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.rv-score {
    text-align: center;
}

.rv-score .num {
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.rv-score .lbl {
    font-size: 11px;
    color: var(--gray-text);
}

.rv-score .stars {
    color: #FFC107;
    font-size: 16px;
    margin-top: 2px;
}

.rv-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rv-fil {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    font-family: inherit;
    color: #555;
    transition: all .2s;
}

.rv-fil.active,
.rv-fil:hover {
    border-color: var(--red);
    color: var(--red);
    background: #FFF5F5;
}

.rv-fil-bottom {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.rv-fil-bottom .rv-fil {
    flex: 1;
    text-align: center;
}

/* ===== REVIEWS ===== */
.reviews {
    padding: 16px;
    background: var(--gray-bg);
}

.rv-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.rv-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rv-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: var(--dark);
    flex-shrink: 0;
}

.rv-name {
    font-size: 13px;
    font-weight: 700;
}

.rv-date {
    font-size: 10px;
    color: var(--gray-text);
}

.rv-stars {
    color: #FFC107;
    font-size: 13px;
    margin-bottom: 6px;
}

.rv-text {
    font-size: 12px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 8px;
}

.rv-imgs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
}

.rv-imgs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.rv-reply {
    background: #FFF8E1;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 11px;
    color: #555;
}

.rv-reply b {
    color: var(--dark);
}

/* ===== POLICY ===== */
.policy {
    background: var(--yellow);
    padding: 20px 16px;
    text-align: center;
}

.policy h3 {
    font-size: 15px;
    font-weight: 800;
}

.policy .sub {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 14px;
}

.pol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pol-card {
    background: #fff;
    padding: 14px 8px;
    border-radius: 10px;
    text-align: center;
}

.pol-card .icon {
    font-size: 26px;
    margin-bottom: 4px;
}

.pol-card .title {
    font-size: 11px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 20px 16px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* ===== STICKY BOTTOM ===== */
.sticky {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 999;
    background: #fff;
    padding: 8px 14px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 8px;
}

.sticky .s-phone {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sticky .s-buy {
    flex: 1;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

.bottom-spacer {
    height: 68px;
}

/* ===== VISUAL ENHANCEMENTS ===== */
.stbar {
    position: relative;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(255, 214, 0, 0.2);
}

.real-photos img {
    transition: transform .3s;
}

.real-photos img:active {
    transform: scale(1.05);
}

.combo {
    position: relative;
    overflow: hidden;
}

.combo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    animation: comboGlow 4s ease-in-out infinite;
}

@keyframes comboGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10%, 10%);
    }
}

.discount-tag {
    animation: pulse 2s infinite;
}

.pkg-opt {
    transition: all .2s;
}

.pkg-opt:active {
    transform: scale(0.98);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.feat-card {
    transition: transform .2s;
}

.feat-card:active {
    transform: scale(0.97);
}

.pol-card {
    transition: transform .2s, box-shadow .2s;
}

.pol-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sold-bar {
    margin: 8px 0 4px;
}

.sold-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.sold-fill {
    height: 100%;
    width: 85%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    animation: soldPulse 2s ease-in-out infinite;
}

@keyframes soldPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.sold-text {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 3px;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 3px solid var(--yellow);
}

.trust-item {
    text-align: center;
}

.trust-num {
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-lbl {
    font-size: 10px;
    color: var(--gray-text);
    font-weight: 600;
}

/* CTA shine */
.cta {
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btnShine 3s ease-in-out infinite;
}

/* Sticky bottom shine */
.sticky .s-buy {
    position: relative;
    overflow: hidden;
}

.sticky .s-buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btnShine 2.5s ease-in-out infinite;
}

/* Review score glow */
.rv-score .num {
    background: linear-gradient(135deg, var(--red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Order section accent */
.order-section {
    border-top: 4px solid var(--yellow);
}

/* Feature card touch */
.feat-card img {
    transition: transform .3s;
}

.feat-card:active img {
    transform: scale(1.03);
}

/* ===== FLOATING ZALO ===== */
.zalo-float {
    position: fixed;
    bottom: 80px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    animation: zaloShake 1.5s ease-in-out infinite;
    text-decoration: none;
    right: max(16px, calc(50% - 224px));
}

.zalo-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes zaloShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-12deg);
    }

    20% {
        transform: rotate(12deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(8deg);
    }

    50% {
        transform: rotate(0deg);
    }
}