@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none; text-decoration: none;
}

body {
    background-color: #0b0d1b;
    color: #f3f4f6;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 40px 20px;
    position: relative;
}

#neonCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

.store-container {
    width: 100%; max-width: 1100px; margin: 0 auto; z-index: 10; position: relative;
}

/* HERO BANNER GLASSMORPHISM SIÊU SÁNG RỰC RỠ */
.store-hero {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px; padding: 40px 30px; text-align: center;
    backdrop-filter: blur(25px); position: relative; overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 242, 254, 0.08), inset 0 0 20px rgba(255,255,255,0.05);
    margin-bottom: 30px;
}

.hero-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(255, 0, 127, 0.1) 50%, transparent 100%);
    z-index: -1; animation: rotateBg 15s linear infinite;
}
@keyframes rotateBg { 100% { transform: rotate(360deg); } }

/* KHU VỰC THƯƠNG HIỆU GẮN AVATAR */
.brand-area {
    display: flex; align-items: center; gap: 20px; justify-content: center; margin-bottom: 20px;
}

.shop-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    object-fit: cover;
}

.brand-text { text-align: left; }

.store-title {
    font-family: 'Orbitron', sans-serif; font-size: 3.2rem; font-weight: 900;
    background: linear-gradient(45deg, #00f2fe, #ff007f, #ffef5e, #00f2fe);
    background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: rainbowTxt 6s ease infinite; letter-spacing: 2px;
}
@keyframes rainbowTxt {
    0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}

.store-subtitle { font-size: 0.85rem; font-weight: 800; color: #cbd5e1; letter-spacing: 4px; }

.store-description {
    max-width: 900px; margin: 0 auto; font-size: 0.92rem; color: #cbd5e1;
    line-height: 1.7; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1);
}

.announcement-bar {
    margin: 15px auto 0; background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px; border-radius: 50px; width: fit-content;
    font-size: 0.88rem; display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-bar i { color: #ffef5e; }
.typing-text { border-right: 2px solid #00f2fe; animation: blink 0.6s step-end infinite; font-weight: 600; }
@keyframes blink { 50% { border-color: transparent; } }

.category-tabs { display: flex; justify-content: center; gap: 12px; margin-top: 25px; flex-wrap: wrap; }
.tab-btn {
    padding: 12px 24px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
    color: #94a3b8; font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover, .tab-btn.active {
    color: #fff; background: rgba(255, 255, 255, 0.15);
    border-color: var(--dynamic-glow, #00f2fe);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

/* DANH SÁCH COMPACT LIST MỎNG THANH LỊCH */
.products-list { display: none; flex-direction: column; gap: 12px; }
.products-list.active { display: flex; }

.product-item-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-item-row:hover {
    border-color: var(--dynamic-glow, #00f2fe);
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.15), inset 0 0 10px rgba(255,255,255,0.05);
}

.prod-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }

/* Icon logo tròn chính hãng phát sáng */
.prod-logo-round {
    width: 44px; height: 44px; border-radius: 50%;
    background: #1e293b; padding: 4px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.05); object-fit: contain;
}
.product-item-row:hover .prod-logo-round {
    box-shadow: 0 0 12px var(--dynamic-glow, #00f2fe);
    border-color: var(--dynamic-glow, #00f2fe);
}

.prod-texts { min-width: 0; }
.prod-texts h4 { font-size: 1rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-texts p { font-size: 0.82rem; color: #94a3b8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.prod-right { display: flex; align-items: center; gap: 20px; }
.price-tag {
    font-family: 'Orbitron', sans-serif; font-size: 1.15rem; font-weight: 900;
    color: #ffef5e; background: rgba(255, 239, 94, 0.08); padding: 6px 14px;
    border-radius: 30px; border: 1px solid rgba(255, 239, 94, 0.15);
    text-shadow: 0 0 8px rgba(255,239,94,0.2);
}
.order-btn-action {
    background: linear-gradient(45deg, #00f2fe, #4facfe); color: #070814;
    padding: 8px 18px; border-radius: 10px; font-size: 0.82rem; font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.2); transition: 0.2s;
}
.product-item-row:hover .order-btn-action { transform: scale(1.05); box-shadow: 0 4px 15px var(--dynamic-glow, #00f2fe); }

/* POP-UP LÊN ĐƠN AUTOMATION CỰC SÁNG */
.order-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 4, 11, 0.85); backdrop-filter: blur(12px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
    opacity: 0; pointer-events: none; transition: 0.4s;
}
.order-popup.active { opacity: 1; pointer-events: auto; }

.popup-content {
    background: #0f1226; border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 35px; border-radius: 24px; width: 95%; max-width: 550px;
    position: relative; transform: translateY(20px); transition: 0.3s;
    box-shadow: 0 30px 70px rgba(0, 242, 254, 0.1);
}
.order-popup.active .popup-content { transform: translateY(0); }
.popup-rainbow-border {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #00f2fe, #ff007f, #ffef5e, #00f2fe);
    background-size: 200% auto; animation: rainbowTxt 3s linear infinite;
    border-top-left-radius: 24px; border-top-right-radius: 24px;
}
.close-popup-btn { position: absolute; top: 18px; right: 18px; font-size: 1.8rem; color: #64748b; cursor: pointer; }
.close-popup-btn:hover { color: #fff; }

.popup-step { display: none; }
.popup-step.active { display: block; }
.popup-step h3 { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }

/* Hộp sản phẩm có chứa mô tả chi tiết như mẫu đại lý */
.order-box { background: #161a36; padding: 20px; border-radius: 18px; margin: 15px 0; border: 1px solid rgba(255,255,255,0.06); }
.popup-prod-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.popup-logo-round { width: 36px; height: 36px; border-radius: 50%; background: #1e293b; padding: 2px; }
#popProductName { font-weight: 700; font-size: 1.05rem; color: #fff; }

/* Khung hiển thị mô tả chi tiết */
.popup-detail-desc {
    background: rgba(0, 0, 0, 0.25); border-left: 3px solid #ff007f;
    padding: 12px 16px; border-radius: 0 10px 10px 0;
    font-size: 0.85rem; color: #cbd5e1; line-height: 1.6; margin-bottom: 15px;
}

.price-display { font-size: 0.95rem; color: #94a3b8; text-align: right; font-weight: 600; }
#popFinalPrice { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 900; color: #ffef5e; text-shadow: 0 0 10px rgba(255,239,94,0.3); }

/* CUSTOMER INPUT FORM */
.customer-form { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; }
.form-title { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }
.input-group { position: relative; display: flex; align-items: center; background: #070918; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; }
.input-group i { position: absolute; left: 14px; color: #64748b; font-size: 1.2rem; }
.input-group input { width: 100%; padding: 14px 14px 14px 44px; background: transparent; border: none; color: #fff; font-size: 0.92rem; }
.input-group input::placeholder { color: #475569; }
.input-group input:focus { border-radius: 12px; box-shadow: 0 0 0 1px var(--dynamic-glow, #00f2fe); }

.action-btn-heavy {
    padding: 15px; border-radius: 12px; background: linear-gradient(45deg, #00f2fe, #4facfe);
    color: #070814; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 8px; transition: 0.3s; margin-top: 5px;
}
.action-btn-heavy:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0, 242, 254, 0.35); }

/* QR AUTOMATION LAYOUT */
.checkout-subtitle { font-size: 0.82rem; color: #94a3b8; margin-top: 2px; }
.checkout-grid { display: grid; grid-template-columns: 200px 1fr; gap: 22px; margin-top: 20px; }
.qr-container { background: #fff; padding: 8px; border-radius: 14px; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 20px rgba(255,255,255,0.05); }
.qr-container img { width: 100%; height: auto; display: block; }

.invoice-details { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.invoice-item { display: flex; flex-direction: column; gap: 4px; }
.invoice-item label { font-size: 0.78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.invoice-item span { font-size: 0.95rem; color: #fff; font-weight: 600; }
.invoice-item .highlight-price { font-family: 'Orbitron', sans-serif; color: #ffef5e; font-size: 1.25rem; font-weight: 900; }
.copy-box { background: #131730; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); word-break: break-all; }
.copy-box span { font-family: monospace; font-size: 0.88rem; color: #38bdf8; font-weight: 700; }

.cyber-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 20px 0; }

/* CHĂM SÓC KHÁCH HÀNG CHUYÊN NGHIỆP */
.cskh-title { font-size: 0.85rem; color: #94a3b8; margin-bottom: 10px; font-weight: 500; }
.cskh-buttons { display: flex; gap: 10px; }
.cskh-btn { flex: 1; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; display: flex; justify-content: center; align-items: center; gap: 6px; color: #fff; }
.cskh-btn.zalo { background: rgba(0, 104, 255, 0.15); border: 1px solid rgba(0, 104, 255, 0.3); color: #38bdf8; }
.cskh-btn.zalo:hover { background: #0068ff; color: #fff; box-shadow: 0 0 15px rgba(0,104,255,0.3); }
.cskh-btn.discord { background: rgba(88, 101, 242, 0.15); border: 1px solid rgba(88, 101, 242, 0.3); color: #818cf8; }
.cskh-btn.discord:hover { background: #5865f2; color: #fff; box-shadow: 0 0 15px rgba(88,101,242,0.3); }

@media (max-width: 650px) {
    .brand-area { flex-direction: column; text-align: center; }
    .brand-text { text-align: center; }
    .store-title { font-size: 2.2rem; }
    
    /* FIX LỖI HIỂN THỊ CHỮ TRÊN ĐIỆN THOẠI */
    .product-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .prod-left {
        align-items: center;
    }
    
    .prod-texts {
        min-width: 0;
        flex: 1;
    }
    
    /* Cho phép text xuống dòng, hiện đầy đủ 100% không bị cắt ba chấm */
    .prod-texts h4 {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .prod-texts p {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    /* Đẩy phần giá và nút xuống dưới song song đẹp mắt */
    .prod-right {
        justify-content: space-between;
        width: 100%;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .price-tag {
        font-size: 1rem;
        padding: 4px 12px;
    }
    
    .order-btn-action {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    /* Pop-up cấu hình lại trên điện thoại */
    .checkout-grid { grid-template-columns: 1fr; justify-items: center; }
    .invoice-details { width: 100%; text-align: center; }
    .cskh-buttons { flex-direction: column; }
}