﻿
:root {
    --primary-color: #0056b3;
    --secondary-color: #e8f0fe;
    --accent-color: #ff4d4d;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

    .navbar-brand img {
        height: 40px;
        max-height: 40px;
    }

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    margin: 0 10px;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #004494;
        border-color: #004494;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/bg.jpg') center/cover no-repeat;
    color: white;
    padding: 150px 0;
    text-align: center;
}

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

.search-box {
    background-color: white;
    border-radius: 50px;
    padding: 10px;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .search-box .form-select, .search-box .form-control {
        border: none;
        box-shadow: none;
        padding: 15px 20px;
    }

    .search-box .btn {
        padding: 15px 30px;
        border-radius: 50px;
    }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

    .section-title:after {
        content: '';
        position: absolute;
        width: 80px;
        height: 3px;
        background-color: var(--primary-color);
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
    }

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

    .feature-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .product-card .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .product-card .card-body {
        padding: 20px;
    }

    .product-card .rating {
        color: #ffc107;
        margin: 10px 0;
    }

    .product-card .price {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .product-card .original-price {
        font-size: 0.9rem;
        text-decoration: line-through;
        color: #6c757d;
        margin-left: 10px;
    }

.testimonial {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

    .testimonial .rating {
        color: #ffc107;
        margin-bottom: 15px;
    }

    .testimonial .testimonial-content {
        font-style: italic;
        margin-bottom: 20px;
    }

    .testimonial .customer-info {
        display: flex;
        align-items: center;
    }

    .testimonial .customer-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-right: 15px;
    }

    .testimonial .customer-name {
        font-weight: 600;
        margin-bottom: 0;
    }

    .testimonial .customer-title {
        color: #6c757d;
        font-size: 0.9rem;
    }

.brands {
    background-color: var(--light-gray);
}

.brand-logo {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

    .brand-logo:hover {
        filter: grayscale(0);
        opacity: 1;
    }

.stats {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
}

.stat-box {
    text-align: center;
    margin-bottom: 30px;
}

    .stat-box .number {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .stat-box .text {
        font-size: 1.2rem;
        opacity: 0.8;
    }

.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/api/placeholder/1920/1080') center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

    .cta h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 30px;
    }

.footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 80px 0 30px;
}

    .footer h5 {
        font-weight: 600;
        margin-bottom: 25px;
        color: white;
    }

    .footer ul {
        list-style: none;
        padding-left: 0;
    }

        .footer ul li {
            margin-bottom: 15px;
        }

            .footer ul li a {
                color: rgba(255, 255, 255, 0.8);
                text-decoration: none;
                transition: all 0.3s ease;
            }

                .footer ul li a:hover {
                    color: white;
                    text-decoration: none;
                    padding-left: 5px;
                }

    .footer .social-links a {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 40px;
        margin-right: 10px;
        transition: all 0.3s ease;
    }

        .footer .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
        }

    .footer .bottom-bar {
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

        .footer .bottom-bar p {
            margin-bottom: 0;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.6);
        }

/* Product Category */
.category-tab {
    border: none;
    margin-bottom: 40px;
    justify-content: center;
}

    .category-tab .nav-link {
        border: none;
        padding: 12px 25px;
        margin: 0 5px;
        color: var(--text-color);
        border-radius: 30px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }

        .category-tab .nav-link.active {
            background-color: var(--primary-color);
            color: white !important;
            box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
        }

        .category-tab .nav-link:hover:not(.active) {
            background-color: #e9ecef;
        }

/* Cart Widget */
.cart-widget {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    z-index: 1;
}

/* Newsletter */
.newsletter {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 30px auto 0;
}

    .newsletter-form .form-control {
        flex-grow: 1;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border: none;
        padding: 15px 20px;
    }

    .newsletter-form .btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        padding: 0 30px;
    }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        background-color: #004494;
        transform: translateY(-5px);
    }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-box {
        flex-direction: column;
    }

        .search-box .form-select,
        .search-box .form-control,
        .search-box .btn {
            margin-bottom: 10px;
            width: 100%;
        }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-box .number {
        font-size: 2rem;
    }

    .stat-box .text {
        font-size: 1rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

        .newsletter-form .form-control {
            border-radius: 4px;
            margin-bottom: 10px;
        }

        .newsletter-form .btn {
            border-radius: 4px;
            width: 100%;
        }
}

