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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 1.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.main-nav a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.12s;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.cart-button {
    background: white;
    color: #ff6b6b;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cart-count {
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><rect fill="%23ffa500" width="1200" height="300"/><circle fill="%23ff6b6b" cx="100" cy="150" r="80"/><circle fill="%23ffdd57" cx="400" cy="180" r="60"/><circle fill="%23ff6b6b" cx="700" cy="120" r="70"/><circle fill="%23ffdd57" cx="1000" cy="160" r="65"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
}

.hero p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.35);
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    padding: 12px 26px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff6b6b;
}

.add-to-cart-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #ee5a6f;
    transform: scale(1.05);
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: flex-end;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: white;
    width: 100%;
    max-width: 540px;
    height: 100%;
    overflow-y: auto;
    padding: 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cart-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #ff6b6b;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cart-item-image {
    font-size: 3rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: #ff6b6b;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #ee5a6f;
}

.quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: auto;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #c82333;
}

.cart-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.checkout-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.checkout-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

.product-image img,
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image {
    background: none !important;
}

.product-quantity-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid #ff6b6b;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: #ee5a6f;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .cart-content {
        max-width: 100%;
    }

    .main-nav {
        display: none;
    }

    .header-content {
        gap: 10px;
    }
}
