* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;
    --secondary: #dc2626;
    --accent: #ef4444;
    --text: #333;
    --bg: #fff;
    --light-gray: #f7fafc;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* Header */
header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

#cart-count {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #000000 0%, #dc2626 100%);
    color: white;
    text-align: center;
    padding: 8rem 2rem;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    background: white;
    color: var(--secondary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
    text-align: center;
}

.btn-secondary:hover {
    background: #b91c1c;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* Sections */
.categories, .featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.categories h2, .featured h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s;
}

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

.category-img {
    height: 300px;
    border-radius: 25px;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-img {
    height: 350px;
    background-size: cover;
    background-position: center;
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.product-card .price {
    padding: 0 1.5rem 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
}

.product-card .btn-secondary {
    margin: 0 1.5rem 1.5rem;
    display: block;
}

/* Product Detail */
.product-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.product-image {
    height: 600px;
    border-radius: 25px;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.product-info .price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.product-info .description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
}

.variant-selector {
    margin-bottom: 2rem;
}

.variant-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.variant-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector button {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.quantity-selector button:hover {
    background: var(--border);
}

.quantity-selector span {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.add-to-cart {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #b91c1c;
}

/* Cart Page */
.cart-page {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
}

.cart-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-price {
    text-align: right;
}

.cart-item-price .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.remove-item {
    background: transparent;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.cart-summary {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

.checkout-btn {
    width: 100%;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #b91c1c;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Checkout Form */
.checkout-form {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
}

.checkout-form h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.form-section {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-order {
    width: 100%;
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-order:hover {
    background: #b91c1c;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-col a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
