/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.top-bar p {
    margin: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #DB4444;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 12px;
    width: 300px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 5px;
    outline: none;
}

.search-bar button {
    background: transparent;
    color: #666;
}

.category-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 15px 0;
}

.category-list {
    display: flex;
    justify-content: space-between;
}

.category-list a {
    font-weight: 500;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #DB4444;
}

/* Shop Page Styles */
.shop-header {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.shop-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #DB4444;
}

.shop-content {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option input {
    margin: 0;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.active {
    border-color: #DB4444;
}

.color-black {
    background-color: #000;
}

.color-blue {
    background-color: #0066CC;
}

.color-red {
    background-color: #DB4444;
}

.color-green {
    background-color: #00CC66;
}

.color-white {
    background-color: #fff;
    border: 1px solid #ddd;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-option {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.size-option.active {
    background-color: #DB4444;
    color: #fff;
    border-color: #DB4444;
}

.products-section {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-count {
    color: #666;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-option {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.view-option.active {
    background-color: #DB4444;
    color: #fff;
    border-color: #DB4444;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-width: 80%;
    max-height: 100%;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #DB4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 19px;
}

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #00CC66;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    color: #DB4444;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFAD33;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-weight: 500;
}

.pagination button.active {
    background-color: #DB4444;
    color: #fff;
    border-color: #DB4444;
}

.pagination button:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #DB4444;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: #DB4444;
}

.subscribe-form {
    display: flex;
    margin-top: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background-color: #DB4444;
    color: #fff;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .shop-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    .category-list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .products-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .shop-header h1 {
        font-size: 36px;
    }
}