/* Flat Shop Minimalist CSS – чисто, строго, адаптивно */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #111;
    background: #fff;
}

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

/* Header */
.header {
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0;
    margin-bottom: 2rem;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #111;
}
.nav a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}
.cart-count {
    background: #111;
    color: #fff;
    border-radius: 20px;
    padding: 0 0.5rem;
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.product-card {
    border: 1px solid #eee;
    padding: 1rem;
    transition: box-shadow 0.2s;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}
.product-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}
.price {
    font-weight: bold;
    font-size: 1.2rem;
}
.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
}
.btn-small {
    background: #111;
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
}
.btn, .btn-primary {
    background: #111;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: #0066cc;
}
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.product-gallery img {
    max-width: 100%;
}
.product-info .price {
    font-size: 1.5rem;
    margin: 1rem 0;
}
.attributes {
    list-style: none;
    margin: 1rem 0;
}
.in-stock { color: #2b8c2b; }
.out-of-stock { color: #c00; }
.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.cart-item input {
    width: 60px;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
}
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #eaeaea;
    text-align: center;
    color: #666;
}
@media (max-width: 700px) {
    .product-page {
        grid-template-columns: 1fr;
    }
}