﻿
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.hero-section {
    text-align: center;
    color: white;
    padding: 5rem 0 3rem;
}

    .hero-section h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-section p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

.products-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

    .section-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

.product-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

    .product-features li {
        padding: 0.5rem 0;
        color: #666;
    }

        .product-features li i {
            color: #28a745;
            margin-right: 0.5rem;
        }

.btn-buy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

    .btn-buy:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        color: white;
        text-decoration: none;
    }

.btn-outline-buy {
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
}

    .btn-outline-buy:hover {
        background: #667eea;
        color: white;
        text-decoration: none;
    }

.stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

    .stat-item i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.8;
    }

    .stat-item h3 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .stat-item p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .page-loading.hidden {
        opacity: 0;
        pointer-events: none;
    }

.page-loading-content {
    text-align: center;
    color: #667eea;
}

    .page-loading-content .spinner-border {
        width: 4rem;
        height: 4rem;
        border-width: 0.3rem;
    }

.product-loading {
    display: none;
    text-align: center;
    color: white;
    padding: 2rem;
}

    .product-loading.show {
        display: block;
    }
/* Responsive fix for 2 cols per row on small devices if needed */
@media (max-width: 575.98px) {
    .col-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}


.product-realname {
    color: #1565c0; /* xanh dương đậm */
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 4px;
}