:root {
    --bg: #050505;
    --card: #101014;
    --card2: #17171f;
    --white: #fff;
    --text: #b9b9c7;
    --lime: #d4ff00;
    --purple: #8b5cf6;
    --primary: #4f46e5;
    --primary-rgb: 79, 70, 229;
    --radius: 30px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    /* Replaced Syne */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top right, rgba(61, 90, 254, 0.05), transparent 25%),
        radial-gradient(circle at bottom left, rgba(212, 255, 0, 0.03), transparent 30%),
        var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header UI */
header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--lime);
    margin-right: 8px;
}

.logo span {
    color: var(--lime);
}

.logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .logo img {
        max-height: 40px;
    }
}

.drawer-header .logo img {
    max-height: 35px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--lime);
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-search {
    background: var(--card);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
}

.btn-login {
    background: var(--lime);
    color: black;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

.section-title::before {
    content: "";
    width: 8px; /* Dày dạn hơn cho sang */
    height: 0.9em;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 15px;
}

.section-lime::before { background: var(--lime); }
.section-purple::before { background: var(--purple); }
.section-primary::before { background: var(--primary); }

.section-head-desc {
    color: #a0a0ab;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Section Accent Removed (using pseudo-element instead) */

.btn-register-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.btn-register-header:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: inline-block !important;
    }
    div.mobile-only {
        display: flex !important;
    }
}

.nav-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #304ffe);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3);
}

.mobile-avatar-link {
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

@media (max-width: 992px) {
    .mobile-avatar-link {
        display: flex;
    }
}

/* =========================
    AUTH PAGES (LOGIN / REGISTER)
========================= */
/* Category Strip */
.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strip-item {
    background: var(--card);
    padding: 1rem;
    border-radius: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    text-decoration: none;
}

.strip-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255,255,255,0.02);
}

.strip-icon {
    width: 4.7rem;
    height: 4.7rem;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.strip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strip-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.strip-info p {
    font-size: 0.82rem;
    color: var(--text);
    margin: 0;
}

/* Category Page */
.category-page {
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.category-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.category-desc {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 500px;
}

.filter-select {
    background: var(--card);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.filter-select:hover {
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .category-page {
        margin-top: 2rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .category-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .category-desc {
        font-size: 1rem;
    }

    .category-filters {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: #050507;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.footer-logo i {
    color: var(--lime);
}

.footer-desc {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    opacity: 0.6;
}

.footer-link:hover {
    opacity: 1;
    color: var(--lime);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-desc {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

.auth-page-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top right, rgba(61, 90, 254, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(212, 255, 0, 0.03), transparent);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: rgba(61, 90, 254, 0.1);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.3s;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    padding: 14px 18px 14px 50px;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s;
}

/* Fix Chrome Autofill Yellow Background */
.input-with-icon input:-webkit-autofill,
.input-with-icon input:-webkit-autofill:hover,
.input-with-icon input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0f172a inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-with-icon input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.1) !important;
}

.input-with-icon input:focus+i,
.input-with-icon input:not(:placeholder-shown)+i {
    color: var(--primary);
}

.btn-auth-submit {
    width: 100%;
    background: var(--primary) !important;
    color: #fff !important;
    /* White text for contrast */
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3);
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(61, 90, 254, 0.4);
    filter: brightness(1.1);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    margin-left: 5px;
}

/* =========================
    HERO SECTION (MOCKUP ACCURATE)
========================= */
.hero-section {
    padding: 1.8rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.4rem;
}

.hero-main {
    position: relative;
    border-radius: 2.4rem;
    overflow: hidden;
    height: 36rem;
    background: #111;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

/* Loading & Animation */
.media-loading {
    position: relative;
    overflow: hidden;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon Spinner xoay ở giữa */
.media-loading::before {
    content: "\f110";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    animation: fa-spin 1s infinite linear;
    z-index: 1;
}

.media-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 2;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.loaded {
    opacity: 1;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.overlay {
    position: absolute;
    inset: 0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    line-height: 0.92;
    font-weight: 800;
    max-width: 620px;
    margin-bottom: 1.2rem;
}

.hero-title span {
    color: var(--lime);
}

.hero-desc {
    max-width: 520px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.hero-side {
    display: grid;
    gap: 1.4rem;
}

.side-card {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    height: 17.3rem;
    background: var(--card);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-btn {
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn.primary {
    background: var(--lime);
    color: black;
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

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

.side-overlay {
    position: absolute;
    inset: 0;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.15));
}

.side-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.side-overlay p {
    color: #d7d7e8;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.side-overlay .btn-side {
    border: none;
    width: max-content;
    padding: 0.85rem 1.2rem;
    border-radius: 0.9rem;
    background: white;
    color: black;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.side-overlay .btn-side:hover {
    transform: scale(1.05);
}

/* Slider Dots */
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
    background: var(--lime);
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(var(--lime-rgb), 0.5);
}

.pill {
    background: rgba(212, 255, 0, 0.1);
    border: 1px solid rgba(212, 255, 0, 0.2);
    color: var(--lime);
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================
    PRODUCT GRID (MOCKUP ACCURATE)
======================== */


.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.product-item {
    background: var(--card);
    border-radius: 1.7rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-0.4rem);
    border-color: rgba(212, 255, 0, 0.18);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
}

.product-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.45s;
}

.product-item:hover .product-thumb img {
    transform: scale(1.05);
}

/* Ribbon chéo góc trái */
.ribbon-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

.ribbon-corner span {
    position: absolute;
    display: block;
    width: 120px;
    padding: 6px 0;
    background-color: var(--lime);
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    text-transform: uppercase;
    text-align: center;
    left: -32px;
    top: 13px;
    transform: rotate(-45deg);
}

/* Stock Badge góc phải */
.stock-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ff7000;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 900;
    border: 2px solid rgba(255, 112, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 25px rgba(255, 112, 0, 0.25);
    z-index: 5;
    transform: scale(1);
    transition: 0.3s;
}

.product-item:hover .stock-status-badge {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 112, 0, 0.4);
}

.wish-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
}

.product-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-id {
    color: var(--lime);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    display: block;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
}

.meta-tag {
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    background: var(--card2);
    color: #d7d7e8;
    font-size: 0.72rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.btn-buy {
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 1rem;
    background: var(--lime);
    color: black;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 255, 0, 0.4);
}

.btn-quick-buy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.btn-quick-buy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--lime);
}

/* Helper & Reset Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--lime);
}

/* =========================
    PRODUCT DETAIL PAGE
========================= */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-areas: 
        "visuals order"
        "info order";
    gap: 2.5rem;
}

.product-visuals { grid-area: visuals; }
.product-order-box { grid-area: order; }
.product-info-box { grid-area: info; }

.gallery-container {
    background: var(--card);
    border-radius: 1.8rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .gallery-container {
        margin-bottom: 0.5rem !important;
        border-radius: 1.4rem;
    }
}

.product-card-box {
    background: var(--card);
    border-radius: 1.8rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .product-card-box {
        padding: 1rem !important;
        border-radius: 1.4rem;
    }
}

/* =========================
    CART PAGE
========================= */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
}

.cart-item-row {
    background: var(--card);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.cart-item-row:hover {
    border-color: rgba(191, 255, 0, 0.2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    transform: translateY(-2px);
}

/* =========================
    CHECKOUT PAGE
========================= */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* =========================
    HOME PAGE
========================= */
.category-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .category-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-strip {
        grid-template-columns: 1fr;
    }
}

/* =========================
    RESPONSIVE SYSTEM
========================= */

/* Tablet & Smaller PC (1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }

    .cart-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 1.5rem;
    }
}

/* Mobile & Tablet (992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        height: 30rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "visuals"
            "order"
            "info";
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-item-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        align-items: center;
    }

    /* Header Responsive */
    .navbar {
        justify-content: space-between;
        position: relative;
    }

    .menu {
        display: block !important;
        order: 1 !important;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        z-index: 1001;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2 !important;
        margin: 0 !important;
        font-size: 16px;
        white-space: nowrap;
    }

    .header-actions {
        order: 3 !important;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo span {
        display: none;
        /* Chỉ hiện Icon sấm sét cho gọn */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: #0a0a0f;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px 0;
        gap: 5px;
    }
    
    .nav-links.active {
        left: 0;
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    }

    .nav-links a {
        padding: 14px 20px;
        margin: 0 10px;
        border-radius: 15px;
        color: #94a3b8;
        font-size: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: 0.3s;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a i {
        font-size: 20px;
        width: 24px;
        text-align: center;
        color: var(--primary);
    }

    .nav-links a:hover {
        background: rgba(61, 90, 254, 0.08);
        color: white;
    }
    
    .nav-links a:hover i {
        color: var(--lime);
    }

    /* Drawer Header */
    .drawer-header {
        padding: 30px 25px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .drawer-header .logo {
        position: static !important;
        transform: none !important;
        font-size: 20px;
    }

    .close-drawer {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
    }

    /* Modern Account Card Footer */
    .drawer-footer {
        margin-top: auto;
        padding: 15px 0;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 15px;
    }

    .drawer-user-info {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    .user-profile-meta {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .nav-avatar {
        width: 48px;
        height: 48px;
        background: var(--primary) !important;
        color: white !important;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 20px;
        box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
        flex-shrink: 0;
    }

    .user-details .username {
        font-size: 16px;
        font-weight: 700;
        color: white !important;
        margin-bottom: 4px;
    }

    .user-details .user-role {
        font-size: 10px;
        color: #94a3b8 !important;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        display: block;
    }

    .btn-logout-drawer {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        width: 100%;
        padding: 12px 18px;
        background: rgba(239, 68, 68, 0.12) !important;
        color: #ff4d4d !important;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: 0.3s;
        border: 1px solid rgba(239, 68, 68, 0.2) !important;
    }

    /* Đè bệt màu xanh của .nav-links a i */
    .nav-links .btn-logout-drawer i {
        color: #ff4d4d !important;
        font-size: 14px !important;
        margin: 0 !important;
        width: auto !important;
    }

    .btn-logout-drawer:active {
        background: rgba(239, 68, 68, 0.25) !important;
        transform: scale(0.98);
    }

    .drawer-auth-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-login-drawer {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px;
        background: var(--lime);
        color: black;
        border-radius: 15px;
        font-weight: 700;
        font-size: 15px;
    }

    .btn-register-drawer {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 15px;
        font-weight: 700;
        font-size: 15px;
    }

    /* Hero Responsive */
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-side {
        display: none;
    }

    .hero-main {
        height: 32rem;
        border-radius: 2rem;
    }

    .overlay {
        padding: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
}

/* Small Mobile (576px) */
@media (max-width: 576px) {
    .hero-main {
        height: 28rem;
        border-radius: 1.5rem;
    }

    .overlay {
        padding: 1.5rem;
    }

    .pill {
        padding: 4px 12px;
        font-size: 0.65rem;
        width: fit-content;
        line-height: 1.4;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
        opacity: 0.8;
    }

    .hero-actions {
        flex-direction: row;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        white-space: nowrap;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }

    .slider-dot.active {
        width: 18px;
    }

    /* Center dots position */
    .hero-main div[style*="bottom: 1.5rem"] {
        bottom: 0.8rem !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        gap: 0.5rem !important;
        display: flex !important;
        justify-content: center !important;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .category-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .strip-item {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
        gap: 0.8rem;
        border-radius: 1rem;
    }

    .strip-icon {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .strip-info h4 {
        font-size: 0.95rem;
        margin-bottom: 2px;
        max-width: 100%;
    }

    .strip-info p {
        font-size: 0.7rem;
    }

    .nav-avatar {
        width: 35px;
        height: 35px;
    }

    .auth-card {
        padding: 25px;
    }

    .logo {
        font-size: 18px;
    }

    .navbar {
        height: 70px;
    }

    .btn-search {
        width: 40px;
        height: 40px;
    }

    .instruction-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.25rem !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 100px);
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
    }

    .section-head {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px;
        margin-bottom: 1.5rem !important;
    }

    .section-head > div:first-child {
        flex: 1;
        min-width: 0; /* Quan trọng để ellipsis hoạt động */
    }

    .section-head-desc {
        display: none !important; /* Ẩn để đủ chỗ cho 1 dòng */
    }

    .section-title {
        font-size: 1.3rem !important;
        max-width: calc(100% - 110px);
        line-height: 1;
    }

    .section-title::before {
        width: 6px;
        height: 0.95em;
        margin-right: 10px;
    }

    .instruction-row {
        grid-template-columns: 1fr !important;
        text-align: center;
        justify-items: center;
    }
}