/* =========================================
   TBOYTECH - FINAL FULL CSS (NEON + SPACING FIXED)
   ========================================= */

:root {
    --primary: #00e1ff;
    --accent: #0066ff;
    --white: #ffffff;
    --bg-dark: #02040a;
    --text-gray: #a0aab5;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a,
button,
h1,
h2,
h3,
h4 {
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-head);
}

ul {
    list-style: none;
}


/* --- BACKGROUND & EFFECTS --- */

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image: linear-gradient(rgba(0, 225, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 225, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.bg-scanlines {
    position: fixed;
    inset: 0;
    z-index: -3;
    background: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0, 225, 255, 0.02) 3px);
    pointer-events: none;
}

.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.tech-particles li {
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(0, 225, 255, 0.95);
    box-shadow: 0 0 18px #00e1ff, 0 0 36px #ffffff;
    filter: drop-shadow(0 0 12px #00e1ff);
    animation: floatUp 10s linear infinite, neonPulse 2.5s ease-in-out infinite;
    bottom: -100px;
    opacity: 0;
}

.tech-particles li:nth-child(1) {
    left: 10%;
    animation-duration: 9s;
}

.tech-particles li:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.tech-particles li:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.tech-particles li:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.tech-particles li:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.tech-particles li:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.tech-particles li:nth-child(7) {
    left: 70%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.tech-particles li:nth-child(8) {
    left: 80%;
    animation-delay: 0s;
    animation-duration: 13s;
}

.tech-particles li:nth-child(9) {
    left: 85%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.tech-particles li:nth-child(10) {
    left: 90%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.tech-particles li:nth-child(n+11) {
    display: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes neonPulse {
    0%,
    100% {
        background: rgba(0, 225, 255, 0.95);
        box-shadow: 0 0 18px #00e1ff, 0 0 36px #ffffff;
        filter: drop-shadow(0 0 12px #00e1ff);
    }
    50% {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 24px #ffffff, 0 0 40px #00e1ff;
        filter: drop-shadow(0 0 14px #ffffff);
    }
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #00e1ff;
    pointer-events: none;
    z-index: 9999999;
    box-shadow: 0 0 12px #00e1ff, 0 0 24px #ffffff;
    animation: neonTrail 0.45s linear, fadeTrail 0.5s linear forwards;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear;
}

@keyframes fadeTrail {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

@keyframes neonTrail {
    0%,
    100% {
        background: #00e1ff;
        box-shadow: 0 0 12px #00e1ff, 0 0 24px #ffffff;
    }
    50% {
        background: #ffffff;
        box-shadow: 0 0 14px #ffffff, 0 0 28px #00e1ff;
    }
}

.text-shine {
    background: linear-gradient(to right, #fff 20%, #00e1ff 40%, #0066ff 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 20px rgba(0, 225, 255, 0.5);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.btn-glow {
    padding: 14px 40px;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    border-radius: 4px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.2), inset 0 0 10px rgba(0, 225, 255, 0.1);
}

.btn-glow:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 225, 255, 0.8);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* --- HEADER --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(10px);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #004e66, var(--primary), #fff, var(--primary), #004e66);
    background-size: 200% 100%;
    animation: neonFlow 2s linear infinite;
    box-shadow: 0 0 15px var(--primary);
}

@keyframes neonFlow {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 35px 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.3);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    padding: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.menu-close-btn,
.menu-btn {
    display: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons .cart-btn {
    position: relative;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    margin-left: 15px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: #000;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.search-btn-mobile {
    display: none;
    font-size: 1.3rem;
    color: #fff;
    cursor: pointer;
    margin-right: 5px;
}

.mobile-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 4, 10, 0.98);
    border-bottom: 1px solid var(--primary);
    padding: 15px 0;
    transform: translateY(-200%);
    transition: 0.4s ease-in-out;
    z-index: -1;
    opacity: 0;
}

.mobile-search-dropdown.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-search-container {
    position: relative;
}

.mobile-search-dropdown input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    outline: none;
}

.close-search {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}


/* --- MENU DROPDOWN TRÊN MÁY TÍNH --- */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(2, 4, 10, 0.95);
    border: 1px solid rgba(0, 225, 255, 0.3);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.15);
    display: none;
    flex-direction: column;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: flex;
}

.nav-dropdown-content a {
    padding: 10px 20px !important;
    white-space: nowrap;
    text-transform: none !important;
    font-size: 0.9rem !important;
}

.nav-dropdown-content a::after {
    display: none !important;
}


/* --- SECTIONS --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    padding-bottom: 40px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 50px rgba(0, 225, 255, 0.2));
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.cyber-divider {
    height: 1px;
    width: 100%;
    background: rgba(0, 225, 255, 0.1);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cyber-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, transparent, var(--primary), #fff, var(--primary), transparent, transparent);
    transform: translateX(-100%);
    animation: neonFlowTranslate 3s infinite linear;
}

@keyframes neonFlowTranslate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.btn-view-all {
    background: transparent;
    border: 1px solid rgba(0, 225, 255, 0.3);
    color: var(--primary);
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-view-all:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 25px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}


/* --- CARDS --- */

.card {
    min-width: 270px;
    scroll-snap-align: start;
    background: rgba(10, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 225, 255, 0.15);
    transform: translateY(-8px);
}

.card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 10px;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.1);
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    height: 62px;
    overflow: hidden;
}

.spec-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: #ccc;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.card-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px rgba(0, 225, 255, 0.3);
}

.btn-add {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-add:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}


/* Bento Layout */

.category-page {
    display: none;
    padding: 100px 0 40px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease;
}

.category-page.active {
    display: block;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    grid-auto-flow: dense;
    padding-bottom: 50px;
}

.card.span-2 {
    grid-column: span 2;
}

.card.span-big {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95), rgba(36, 59, 85, 0.95));
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.1);
}

.card.span-big .card-img {
    height: 380px;
}

.card.span-big h3 {
    font-size: 1.8rem;
    color: var(--primary);
    -webkit-line-clamp: 3;
}

.card.span-big .card-price {
    font-size: 1.6rem;
}

.card.span-big .btn-add {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.badge.hot {
    background: #ff0055;
    color: #fff;
    border: 1px solid #ff0055;
}

.badge.vip {
    background: #ffd700;
    color: #000;
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.badge.new {
    background: var(--accent);
    color: #fff;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-back:hover {
    background: var(--primary);
    color: #000;
}


/* --- MODAL PRO --- */

.product-modal,
.zalo-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.product-modal.active,
.zalo-modal.active {
    display: flex;
}

.modal-content {
    background: rgba(11, 18, 31, 0.95);
    width: 1000px;
    max-width: 95%;
    max-height: 85vh;
    border: 1px solid var(--primary);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 80px rgba(0, 225, 255, 0.15);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    z-index: 100;
    text-shadow: 0 0 10px #000;
}

.modal-left {
    width: 45%;
    background: radial-gradient(circle at center, rgba(0, 225, 255, 0.05) 0%, #02040a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-left img {
    max-width: 100%;
    max-height: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s;
}

.modal-left img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.modal-right {
    width: 55%;
    padding: 40px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #111;
}

.modal-right::-webkit-scrollbar {
    width: 6px;
}

.modal-right::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.pro-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-story {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    padding: 20px;
    margin-bottom: 30px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.section-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.spec-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 225, 255, 0.15);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.spec-item:hover {
    border-color: var(--primary);
    background: rgba(0, 225, 255, 0.05);
    transform: translateX(5px);
}

.spec-icon {
    width: 35px;
    height: 35px;
    background: rgba(0, 225, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-buy-now {
    flex: 2;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 225, 255, 0.6);
}


/* --- FOOTER --- */

footer {
    background: #010205;
    padding: 20px 0 10px;
    margin-top: auto;
    position: relative;
    border-top: none;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10;
    background: linear-gradient(90deg, #004e66, var(--primary), #fff, var(--primary), #004e66);
    background-size: 200% 100%;
    animation: neonFlow 2s linear infinite;
    box-shadow: 0 2px 15px var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.footer-col h2.logo {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-gray);
    line-height: 1.4;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links ul li a {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    display: block;
    margin-bottom: 5px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-item {
    margin-bottom: 6px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.contact-item i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: center;
    justify-content: flex-start;
}

.socials a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.25s;
}

.socials a i {
    width: 18px;
    height: 18px;
}

.socials a:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 18px var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    margin-top: 15px;
    color: #555;
    font-size: 0.75rem;
    position: relative;
    z-index: 10;
}


/* --- CART & ZALO POPUPS --- */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 85%;
    height: 100vh;
    background: #080c14;
    z-index: 2001;
    transition: 0.4s;
    border-left: 1px solid var(--primary);
    display: flex;
    flex-direction: column;
}

body.cart-active .cart-overlay {
    opacity: 1;
    visibility: visible;
}

body.cart-active .cart-sidebar {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 14, 0.9);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-zalo {
    width: 100%;
    padding: 15px;
    background: #0088ff;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* ZALO MODAL FIX */

.zalo-modal {
    z-index: 10001;
}

.zalo-content {
    background: #0b121f;
    border: 1px solid var(--primary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 50px rgba(0, 225, 255, 0.15);
    animation: fadeIn 0.3s ease-out;
}

.zalo-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.instruction-box {
    background: rgba(0, 225, 255, 0.03);
    border: 1px dashed rgba(0, 225, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ddd;
    font-size: 1rem;
    gap: 15px;
}

.step span {
    width: 28px;
    height: 28px;
    background: rgba(0, 225, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
    margin-top: 2px;
}

.step-text {
    flex: 1;
    text-align: left;
    line-height: 1.5;
}

.step-text b {
    color: var(--primary);
    margin: 0 6px;
    text-shadow: 0 0 10px rgba(0, 225, 255, 0.5);
    font-weight: 800;
}

.zalo-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-cancel {
    border: 1px solid #444;
    color: #888;
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel:hover {
    border-color: #fff;
    color: #fff;
}

.btn-zalo-go {
    background: linear-gradient(90deg, var(--accent), var(--primary));
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-zalo-go:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.6);
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5000;
}

.toast {
    background: rgba(2, 4, 10, 0.95);
    color: #fff;
    padding: 15px 25px;
    border-left: 4px solid var(--primary);
    margin-top: 10px;
    animation: fadeIn 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- MOBILE OPTIMIZATION --- */

@media(max-width: 900px) {
    .navbar {
        padding: 0 15px;
    }
    .search-box {
        display: none;
    }
    .menu-btn {
        display: block;
        order: 0;
    }
    .navbar .logo {
        order: 1;
        font-size: 1.8rem;
    }
    .header-icons {
        order: 2;
    }
    .nav-links {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        background: #02040a !important;
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.4s;
        border-right: 1px solid var(--primary);
        z-index: 999;
        gap: 15px;
        /* Hỗ trợ scroll trên mobile khi menu dài */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.active {
        left: 0;
    }
    /* Ghi đè Dropdown trên điện thoại để hiện thẳng danh sách dọc dễ vuốt */
    .nav-dropdown-content {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        display: flex !important;
        padding: 0 0 0 15px;
        backdrop-filter: none;
    }
    .menu-close-btn {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 1.8rem;
    }
    .search-btn-mobile {
        display: block;
    }
    .mobile-search-dropdown {
        top: var(--header-height);
    }
    .hero {
        min-height: auto;
        padding-top: 110px;
        align-items: flex-start;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-img img {
        max-height: 220px;
    }
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .section-title {
        font-size: 1.3rem !important;
    }
    .btn-view-all {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-grid>.footer-col:nth-child(1) {
        grid-column: 1 / -1;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-left: 0 !important;
    }
    .footer-col .logo {
        order: -1;
        margin-bottom: 15px;
        align-self: center;
    }
    .contact-item {
        justify-content: flex-start !important;
        align-items: center !important;
    }
    .socials {
        justify-content: center !important;
        align-items: center !important;
        align-self: center;
    }
    .footer-grid>.footer-col:nth-child(2),
    .footer-grid>.footer-col:nth-child(3) {
        transform: translateX(28px);
    }
    .contact-item {
        width: 100%;
        font-size: 0.9rem;
    }
    .footer-col p {
        max-width: 100%;
        padding: 0 10px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card.span-2,
    .card.span-big {
        grid-column: span 1;
        grid-row: auto;
    }
    .card.span-big .card-img {
        height: 200px;
    }
    .product-modal {
        align-items: center;
        padding: 10px;
    }
    .modal-content {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: 85vh;
        border-radius: 12px;
        overflow: hidden;
    }
    .modal-left {
        width: 100%;
        height: 220px;
        padding: 15px;
        flex-shrink: 0;
        background: radial-gradient(circle at center, rgba(0, 225, 255, 0.1) 0%, #02040a 100%);
    }
    .modal-left img {
        max-height: 100%;
    }
    .modal-right {
        width: 100%;
        padding: 20px;
        overflow-y: auto;
    }
    .modal-title {
        font-size: 1.4rem;
    }
    .tech-specs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .modal-close {
        top: 10px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .zalo-content {
        width: 95%;
        padding: 25px 15px;
    }
}