:root {
    --bg: #f2f0ee;
    --panel: #ffffff;
    --border: #e5e2df;
    --text: #201d1b;
    --muted: #7a746e;
    --accent: #9b1c1c;
    --accent-dark: #7a1515;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.site-header .logo { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.site-header .cart-link { font-weight: 600; white-space: nowrap; }
.site-nav { flex: 1; display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-size: 14px; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

.hero {
    background: linear-gradient(120deg, #2b2b2b, #4a1414);
    color: #fff;
    padding: 40px 0;
}
.hero h1 { margin: 0; font-size: 30px; letter-spacing: 1px; }

.home-hero {
    background: linear-gradient(120deg, #2b2b2b, #4a1414);
    color: #fff;
    padding: 56px 0;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.home-hero .hero-text { flex: 1; min-width: 260px; }
.home-hero h1 { margin: 0 0 14px; font-size: 34px; letter-spacing: 0.5px; }
.home-hero p { margin: 0 0 22px; color: #e8e2e0; font-size: 16px; max-width: 480px; }
.home-hero .hero-image { max-width: 380px; flex-shrink: 1; }
.home-hero .hero-image img { width: 100%; border-radius: 8px; display: block; }

.home-section { padding: 40px 0; }
.home-section h2 { font-size: 20px; margin: 0 0 20px; text-transform: uppercase; letter-spacing: 0.5px; }

.static-page { padding: 40px 0 60px; max-width: 820px; }
.static-page h1 { font-size: 28px; margin: 0 0 20px; }
.static-page .page-content { line-height: 1.7; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.footer-contacts { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; margin-bottom: 10px; }
.footer-contacts span::after { content: ""; }

.layout { display: flex; gap: 28px; padding: 28px 0 60px; align-items: flex-start; }
.sidebar { width: 220px; flex-shrink: 0; }
.sidebar h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 12px; }
.sidebar ul { list-style: none; margin: 0 0 24px; padding: 0; }
.sidebar li a { display: block; padding: 6px 0; font-size: 14px; }
.sidebar li a.active, .sidebar li a:hover { color: var(--accent); font-weight: 600; }

.product-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.product-card img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 12px; background: #faf9f8; border-radius: 6px; }
.product-card .name { font-size: 14px; font-weight: 600; margin-bottom: 8px; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price-row .old { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.price-row .new { font-size: 18px; font-weight: 700; color: var(--accent); }
.discount-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }

.product-page { display: flex; gap: 40px; padding: 32px 0; }
.gallery { width: 420px; flex-shrink: 0; }
.gallery .main-image { width: 100%; height: 380px; object-fit: contain; background: #faf9f8; border-radius: 8px; border: 1px solid var(--border); }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; }
.product-info h1 { font-size: 26px; margin: 0 0 12px; }
.product-info .meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-row input { width: 60px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; text-align: center; }
.tabs { margin-top: 32px; }
.tabs .tab-buttons { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs .tab-buttons button { background: none; border: none; padding: 10px 0; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs .tab-buttons button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; line-height: 1.6; }
.tab-panel.active { display: block; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit;
}
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fdecea; color: #b42318; border: 1px solid #f5c2c0; }
.alert-success { background: #eaf6ec; color: #1a7f37; border: 1px solid #bfe3c6; }
