﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #ff6b00;
    --primary-dark: #cc5500;
    --primary-glow: rgba(255,107,0,0.25);
    --bg-dark: #0d0d0f;
    --bg-card: #161618;
    --bg-card2: #1e1e22;
    --border: rgba(255,255,255,0.07);
    --text: #f0f0f0;
    --text-muted: #888;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Outfit',sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: #111
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px
}

/* ── Menu User Dropdown (Từ thẻ Style của bạn) ── */
.nav-user-menu {
    display: none;
    align-items: center;
    gap: 8px;
    position: relative
}

    .nav-user-menu.show {
        display: flex
    }

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s
}

    .user-avatar-btn:hover {
        border-color: var(--primary);
        color: var(--primary)
    }

.user-avatar-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary-glow);
    border: 1px solid rgba(255,107,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 180px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    display: none;
    z-index: 200
}

    .user-dropdown.active {
        display: block;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit
}

    .dropdown-item:hover {
        background: var(--bg-card2);
        color: var(--text)
    }

    .dropdown-item.danger:hover {
        color: #ef4444
    }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0
}

/* ── Topbar ── */
.topbar {
    background: #0a0a0c;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted)
}

    .topbar .inner {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px
    }

    .topbar a {
        color: var(--text-muted);
        text-decoration: none;
        transition: color .2s
    }

        .topbar a:hover {
            color: var(--primary)
        }

/* ── Navbar ── */
.navbar {
    background: rgba(13,13,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 70px
}

.logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

    .logo span.brand {
        color: var(--text)
    }

    .logo span.accent {
        color: var(--primary)
    }

    .logo svg {
        width: 36px;
        height: 36px
    }

.search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative
}

    .search-wrap input {
        width: 100%;
        background: var(--bg-card2);
        border: 1px solid var(--border);
        border-radius: 50px;
        padding: 10px 50px 10px 20px;
        color: var(--text);
        font-size: 14px;
        font-family: inherit;
        outline: none;
        transition: border-color .2s,box-shadow .2s
    }

        .search-wrap input::placeholder {
            color: var(--text-muted)
        }

        .search-wrap input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-glow)
        }

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    border-radius: 50px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s,transform .2s
}

    .search-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-50%) scale(1.05)
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto
}

    .nav-links a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 14px;
        border-radius: 8px;
        transition: color .2s,background .2s;
        white-space: nowrap
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--primary);
            background: var(--primary-glow)
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.icon-btn {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: all .2s
}

    .icon-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-glow)
    }

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark)
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s
}

    .btn-login:hover {
        background: var(--primary);
        color: #fff
    }

.btn-register {
    background: var(--primary);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s
}

    .btn-register:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px var(--primary-glow)
    }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d0d0f
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/hero_banner.png') center/cover no-repeat;
    opacity: .35;
    transform: scale(1.05);
    transition: transform 8s ease
}

.hero:hover .hero-bg {
    transform: scale(1)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(13,13,15,1) 40%,rgba(13,13,15,0) 80%),linear-gradient(0deg,rgba(13,13,15,0.8) 0%,transparent 50%)
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    width: 100%
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-glow);
    border: 1px solid rgba(255,107,0,0.4);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px
}

.hero h1 {
    font-size: clamp(32px,5vw,62px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px
}

    .hero h1 em {
        font-style: normal;
        color: var(--primary);
        display: block
    }

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 36px
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s;
    display: flex;
    align-items: center;
    gap: 8px
}

    .btn-hero-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px var(--primary-glow)
    }

.btn-hero-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s
}

    .btn-hero-outline:hover {
        border-color: var(--primary);
        color: var(--primary)
    }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px
}

.stat {
    display: flex;
    flex-direction: column
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary)
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted)
}

/* ── Section ── */
section {
    padding: 64px 0
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px
}

.section-title {
    font-size: 28px;
    font-weight: 800
}

    .section-title span {
        color: var(--primary)
    }

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: gap .2s
}

    .view-all:hover {
        gap: 10px
    }

/* ── Category Grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
    gap: 16px
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all .25s;
    position: relative;
    overflow: hidden
}

    .cat-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,var(--primary-glow),transparent);
        opacity: 0;
        transition: opacity .25s
    }

    .cat-card:hover {
        border-color: var(--primary);
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(255,107,0,0.15)
    }

        .cat-card:hover::before {
            opacity: 1
        }

.cat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block
}

.cat-name {
    font-weight: 600;
    font-size: 14px
}

.cat-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
    gap: 20px
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
    cursor: pointer;
    position: relative
}

    .product-card:hover {
        border-color: rgba(255,107,0,0.4);
        transform: translateY(-6px);
        box-shadow: 0 16px 48px rgba(0,0,0,0.5)
    }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px
}

.badge-sale {
    background: var(--danger);
    color: #fff
}

.badge-new {
    background: var(--success);
    color: #fff
}

.badge-hot {
    background: var(--primary);
    color: #fff
}

.product-img-wrap {
    height: 200px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

    .product-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s
    }

.product-card:hover .product-img-wrap img {
    transform: scale(1.08)
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg,rgba(0,0,0,0.9),transparent);
    padding: 12px;
    display: flex;
    gap: 8px;
    transform: translateY(100%);
    transition: transform .3s
}

.product-card:hover .product-actions {
    transform: translateY(0)
}

.btn-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s
}

    .btn-cart:hover {
        background: var(--primary-dark)
    }

.btn-wishlist {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s
}

    .btn-wishlist:hover {
        border-color: var(--danger);
        color: var(--danger)
    }

.product-info {
    padding: 16px
}

.product-brand {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px
}

.stars {
    color: #f59e0b;
    font-size: 12px
}

.rating-count {
    font-size: 12px;
    color: var(--text-muted)
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px
}

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary)
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through
}

/* ── Banner Promo ── */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.promo-card {
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.promo-card-1 {
    background: linear-gradient(135deg,#1a0a00,#2d1200);
    border: 1px solid rgba(255,107,0,0.3)
}

.promo-card-2 {
    background: linear-gradient(135deg,#0a0d1a,#0d1535);
    border: 1px solid rgba(100,149,237,0.3)
}

.promo-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px
}

.promo-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s
}

    .btn-promo:hover {
        background: var(--primary-dark);
        transform: translateY(-1px)
    }

.promo-card-2 .btn-promo {
    background: #3b5bdb
}

    .promo-card-2 .btn-promo:hover {
        background: #2f4ac7
    }

.promo-deco {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 120px;
    opacity: .06
}

/* ── Brands ── */
.brands-bg {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border)
}

.brands-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 32px 0
}

.brand-item {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .2s;
    cursor: pointer
}

    .brand-item:hover {
        color: var(--primary)
    }

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap
}

.filter-btn {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s
}

    .filter-btn.active, .filter-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff
    }

/* ── Testimonials ── */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 20px
}

.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .2s
}

    .testi-card:hover {
        border-color: rgba(255,107,0,0.3)
    }

.testi-stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 14px
}

.testi-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid var(--primary)
}

.testi-name {
    font-weight: 600;
    font-size: 14px
}

.testi-loc {
    font-size: 12px;
    color: var(--text-muted)
}

/* ── Newsletter ── */
.newsletter {
    background: linear-gradient(135deg,rgba(255,107,0,0.1),rgba(255,107,0,0.03));
    border: 1px solid rgba(255,107,0,0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 0 24px
}

    .newsletter h2 {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 12px
    }

    .newsletter p {
        color: var(--text-muted);
        margin-bottom: 32px;
        font-size: 15px
    }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto
}

    .newsletter-form input {
        flex: 1;
        background: var(--bg-card2);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 12px 18px;
        color: var(--text);
        font-size: 14px;
        font-family: inherit;
        outline: none;
        transition: border-color .2s
    }

        .newsletter-form input:focus {
            border-color: var(--primary)
        }

.btn-subscribe {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all .2s
}

    .btn-subscribe:hover {
        background: var(--primary-dark)
    }

/* ── Footer ── */
footer {
    background: #0a0a0c;
    border-top: 1px solid var(--border);
    padding: 60px 0 24px
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px
}

.footer-brand .logo {
    font-size: 22px;
    margin-bottom: 16px;
    display: flex
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px
}

.social-links {
    display: flex;
    gap: 10px
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: all .2s
}

    .social-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff
    }

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 15px
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

    .footer-col ul li a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        transition: color .2s
    }

        .footer-col ul li a:hover {
            color: var(--primary)
        }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px
}

.payment-icons {
    display: flex;
    gap: 8px;
    align-items: center
}

.pay-badge {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted)
}

/* ── Cart Sidebar ── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(4px)
}

    .cart-overlay.open {
        opacity: 1;
        pointer-events: all
    }

.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column
}

    .cart-sidebar.open {
        transform: translateX(0)
    }

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between
}

    .cart-header h3 {
        font-size: 18px;
        font-weight: 700
    }

.cart-close {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s
}

    .cart-close:hover {
        border-color: var(--danger);
        color: var(--danger)
    }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border)
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    flex-shrink: 0
}

    .cart-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.cart-item-info {
    flex: 1
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px
}

.cart-item-brand {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px
}

.cart-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary)
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px
}

.qty-btn {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s
}

    .qty-btn:hover {
        border-color: var(--primary);
        color: var(--primary)
    }

.qty-num {
    font-weight: 600;
    min-width: 24px;
    text-align: center
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border)
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px
}

.cart-total-label {
    color: var(--text-muted);
    font-size: 14px
}

.cart-total-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary)
}

.btn-checkout {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s
}

    .btn-checkout:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 8px 24px var(--primary-glow)
    }

/* ── Toast ── */
.toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transform: translateX(150%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    min-width: 280px
}

    .toast.show {
        transform: translateX(0)
    }

    .toast.success {
        border-left: 3px solid var(--success)
    }

    .toast.error {
        border-left: 3px solid var(--danger)
    }

.toast-icon {
    font-size: 20px
}
.user-dropdown::before {
    content: "";
    position: absolute;
    top: -15px; 
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

/* ── Responsive ── */
@media(max-width:1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .promo-grid {
        grid-template-columns: 1fr
    }

    .nav-links {
        display: none
    }
}

@media(max-width:768px) {
    .hero h1 {
        font-size: 32px
    }

    .hero-stats {
        gap: 24px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .cart-sidebar {
        width: 100vw
    }

    .newsletter {
        padding: 36px 20px
    }

    .newsletter-form {
        flex-direction: column
    }

    .nav-inner {
        gap: 12px
    }

    .search-wrap {
        max-width: 200px
    }
}

@media(max-width:480px) {
    .nav-actions .btn-login, .nav-actions .btn-register {
        display: none
    }

    .hero-btns {
        flex-direction: column
    }
}
.swal2-container {
    z-index: 999999 !important;
}

.btn-back-container {
    max-width: 1200px; /* Độ rộng chuẩn của web */
    margin: 20px auto 10px;
    padding: 0 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    color: #ddd;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-back:hover {
        background: #ee4d2d;
        color: #fff;
        border-color: #ee4d2d;
        box-shadow: 0 4px 10px rgba(238, 77, 45, 0.3);
        transform: translateX(-3px);
    }