* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e74c3c;
    --text-dark: #000;
    --text-light: #777;
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    letter-spacing: 0.2px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.cart-icon {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-icon:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.cart-count {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 50%;
    padding: 2px 7px;
    font-weight: 600;
    margin-left: 8px;
    font-size: 11px;
}

/* Hero Section */
.hero {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 120px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--text-light);
    letter-spacing: 0.8px;
    font-weight: 400;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-checkout:hover {
    background-color: var(--secondary-color);
}

.btn-checkout:disabled {
    background-color: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.6;
    color: var(--text-light);
}

/* Filter Section */
.filter-section {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box,
.filter-dropdown {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 13px;
    flex: 1;
    min-width: 150px;
    background-color: var(--bg-white);
}

.search-box:focus,
.filter-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Products Section */
.products {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--bg-light);
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image {
    opacity: 0.9;
}

.product-body {
    padding: 20px;
    background-color: var(--bg-white);
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.product-category {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 300;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 16px;
}

.discount-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-rating {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 11px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 12px;
}

.btn-add-cart:hover {
    background-color: var(--secondary-color);
}

.btn-view-details {
    flex: 1;
    background-color: transparent;
    color: var(--text-dark);
    padding: 11px;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 12px;
}

.btn-view-details:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: 0;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-content.product-detail {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.close-btn:hover {
    color: var(--text-dark);
}

/* Cart Modal */
.cart-items {
    padding: 20px;
    min-height: 200px;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-size {
    font-size: 12px;
    color: var(--text-light);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
}

.cart-item-quantity {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 15px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-color);
    background-color: var(--bg-white);
    cursor: pointer;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.remove-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-btn:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-light);
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

/* Product Detail Modal */
.product-detail-content {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.product-image-large {
    flex: 1;
    min-width: 300px;
}

.product-image-large img {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 1px;
}

.rating {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.stars {
    color: var(--text-dark);
    letter-spacing: 1px;
}

.price-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 14px;
}

.product-details {
    margin-bottom: 25px;
}

.product-details h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-details ul {
    list-style: none;
    padding-left: 0;
}

.product-details li {
    padding: 5px 0;
    color: var(--text-light);
}

.product-details li:before {
    content: "– ";
    color: var(--text-light);
    font-weight: 400;
    margin-right: 8px;
}

.size-selector {
    margin-bottom: 25px;
}

.size-selector label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background-color: var(--bg-white);
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 12px;
}

.size-btn:hover,
.size-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--bg-white);
    padding: 80px 20px;
}

.about p {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 300;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 0;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-box h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 600;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 80px 20px;
    text-align: center;
}

.contact .section-title {
    color: var(--bg-white);
    letter-spacing: 2px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    letter-spacing: 0.5px;
    font-size: 13px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.8px;
    font-size: 12px;
    text-transform: uppercase;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav {
        width: 100%;
        justify-content: space-around;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        order: 3;
    }

    .logo h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .hero-content h2 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .filter-controls {
        flex-direction: column;
    }

    .search-box,
    .filter-dropdown {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .product-detail-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .size-options {
        gap: 8px;
    }

    .size-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .hero-content h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 12px;
    }
}
