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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
}

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

.header {
    text-align: center;
    margin-bottom: 12px;
    padding: 12px;
}

.header h1 {
    color: #333;
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.category-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

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

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: white;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 140px;
    max-height: 140px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-info {
    padding: 8px 10px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.95rem;
    color: #333;
}

.product-price {
    color: #007bff;
    font-weight: 700;
    font-size: 1rem;
}

.add-btn {
    width: 100%;
    padding: 6px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.add-btn:hover {
    background: #218838;
}

.cart-float {
    position: fixed;
    bottom: 12px;
    right: 12px;
    background: #007bff;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-content {
    background: white;
    padding: 16px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    margin: 12px 0;
}

.checkout-form {
    margin-top: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.checkout-btn {
    width: 100%;
    padding: 10px 12px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
}

.checkout-btn:hover {
    background: #128C7E;
}

.close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
}
