* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-beige: #F5F5DC;
    --secondary-beige: #EDE4D9;
    --accent-brown: #8B4513;
    --white: #FFFFFF;
    --text-dark: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-beige);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner */
.banner {
    background: var(--accent-brown);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-left {
    font-size: 14px;
}

.banner-center {
    flex: 1;
    text-align: center;
}

.banner-right a {
    color: white;
    margin-left: 15px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-brown);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-brown);
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 250px;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-brown);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-brown);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Carousel */
.hero {
    background: linear-gradient(135deg, var(--secondary-beige), var(--white));
    padding: 60px 0;
    text-align: center;
}

.carousel {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.carousel-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.carousel-item:hover {
    transform: translateY(-10px);
}

.carousel-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--accent-brown);
    margin-bottom: 10px;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-brown);
    margin-bottom: 10px;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.product-category {
    background: var(--secondary-beige);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

/* Size button active style */
.size-option.active {
    border-color: var(--accent-brown);
    background: var(--accent-brown);
    color: #fff;
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin-bottom: 15px;
    color: var(--accent-brown);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
}

.thumbnail.active {
    border-color: var(--accent-brown);
}

.product-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--accent-brown);
    color: white;
}

.btn-primary:hover {
    background: #A0522D;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-beige);
    color: var(--text-dark);
    border: 2px solid var(--accent-brown);
}

.btn-secondary:hover {
    background: var(--accent-brown);
    color: white;
}

/* Checkout */
.checkout-form {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--accent-brown);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-link {
    color: var(--secondary-beige);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: white;
    color: var(--accent-brown);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .search-box {
        width: 200px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .banner .container {
        flex-direction: column;
        gap: 10px;
    }
}

.size-option {
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #ccc;
    background: #fff;
    padding: 4px 10px;
    font-size: 12px;
}

.size-option.active {
    border-color: var(--accent-brown) !important;
    background: var(--accent-brown) !important;
    color: #fff !important;
}