* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo a {
    text-decoration: none;
    color: inherit; 
    display: flex;
    align-items: center;
}

.logo h2 {
    color: #e74c3c; 
    cursor: pointer;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    
    background-size: cover;
    background-position: center;
    position: relative;
    
    animation: slideBackground 12s infinite;
}

@keyframes slideBackground {
    /* HÌNH 1 */
    0%, 28% {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                    url('img/michael-jordan-nike-contract-1200x640_fe549f1e2a7848eb939e4c42ab24a16f_1024x1024.jpg') center/cover;
    }

    33%, 61% {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                    url('img/air jordan.jpg') center/cover;
    }

    66%, 95% {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                    url('img/air-jordan-11-elle-man-1.jpg') center/cover;
    }

    100% {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                    url('img/michael-jordan-nike-contract-1200x640_fe549f1e2a7848eb939e4c42ab24a16f_1024x1024.jpg') center/cover;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-btn {
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Products Section */
.products {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e74c3c;
    background: white;
    color: #e74c3c;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #e74c3c;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.product-brand {
    color: #666;
    font-size: 0.9rem;
}

/* Modals */
.modal, .cart-modal, .search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content, .cart-content, .search-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
}

.close, .close-cart, .close-search {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover, .close-cart:hover, .close-search:hover {
    color: #333;
}

/* Cart */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.cart-item-info p {
    color: #e74c3c;
    font-weight: bold;
}

.remove-item {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.checkout-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Product Detail */
.product-detail {
    padding: 30px;
}

.product-detail img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-detail h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-detail .price {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.size-selector {
    margin-bottom: 20px;
}

.size-selector label {
    display: block;
    margin-bottom: 10px;
}

.size-btn {
    padding: 10px 15px;
    margin: 5px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
}

.size-btn.active {
    border-color: #e74c3c;
    background: #e74c3c;
    color: white;
}

.add-to-cart {
    background: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.auth-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
}

.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #e74c3c;
    color: white;
    border-radius: 15px 15px 0 0;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.form-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
}

.auth-btn {
    width: 100%;
    background: #e74c3c;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: #c0392b;
}

.google-btn {
    width: 100%;
    background: #fff;
    color: #333;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #e74c3c;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #999;
    font-size: 0.9rem;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link span {
    color: #e74c3c;
    cursor: pointer;
    font-weight: 500;
}

.auth-link span:hover {
    text-decoration: underline;
}

.user-profile {
    position: relative;
}

.user-info {
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 1000;
}

.user-menu.active {
    display: block;
}

.user-menu a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.user-menu a:hover {
    background: #f8f9fa;
}

.user-menu a:last-child {
    border-bottom: none;
    color: #e74c3c;
}

.auth-btn {
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    padding: 10px;
    border-radius: 50%;
    transition: color 0.3s;
}

.auth-btn:hover {
    color: #e74c3c;
}

/* HStore LAB Styles */
.full-page { min-height: 100vh; padding: 120px 0 80px; }
.hero-lab { text-align: center; margin-bottom: 4rem; }
.lab-hero-title { 
    font-size: 4rem; 
    background: linear-gradient(135deg, #e74c3c, #f39c12); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin-bottom: 1rem;
}
.lab-hero-subtitle { font-size: 1.3rem; color: #666; }

.lab-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 2.5rem; 
}

.lab-card { 
    background: white; 
    padding: 2.5rem; 
    border-radius: 25px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.1); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid #e74c3c;
    position: relative;
    overflow: hidden;
}

.lab-card::before {
    content: '👟'; position: absolute; top: 20px; right: 20px; font-size: 3rem; opacity: 0.05;
}

.lab-card:hover { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: 0 35px 80px rgba(231, 76, 60, 0.25); 
}

.lab-icon { 
    width: 70px; height: 70px; 
    background: linear-gradient(135deg, #e74c3c, #f39c12); 
    border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 1.5rem; 
    font-size: 1.8rem; color: white; 
}

.card-title { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; color: #333; }
.lab-links { margin-bottom: 2rem; }
.lab-link { 
    display: block; 
    padding: 0.8rem 1rem; 
    margin: 0.5rem 0; 
    background: #f8f9fa; 
    border-radius: 10px; 
    text-decoration: none; 
    color: #666; 
    transition: all 0.3s; 
}
.lab-link:hover { background: #e74c3c; color: white; transform: translateX(10px); }

.btn-lab { 
    width: 100%; 
    background: linear-gradient(135deg, #e74c3c, #c0392b); 
    color: white; 
    padding: 15px; 
    border: none; 
    border-radius: 30px; 
    font-weight: 600; 
    text-decoration: none; 
    display: block; 
    text-align: center; 
    transition: all 0.3s; 
}
.btn-lab:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4); }

.featured { border-top-color: #f39c12 !important; }
.featured-btn { background: linear-gradient(135deg, #f39c12, #e67e22) !important; }

/* Responsive */
@media (max-width: 768px) {
    .lab-grid { grid-template-columns: 1fr; gap: 2rem; }
    .lab-hero-title { font-size: 2.5rem; }
}