:root {
  --primary: #d46f52;
  --bg: #fffdf7;
  --card-bg: #fff;
  --text: #333;
  --shadow: rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Заголовок */
.site-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: var(--primary);
  margin: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.cart-link, .login-link {
  text-decoration: none;
  color: var(--text);
}

/* Герой */
.hero {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://via.placeholder.com/1600x600/f8eacd/333?text=Уездный+кондитер') no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
}

/* Товары */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  padding: 0.8rem 1rem 0.5rem;
}

.product-card p {
  padding: 0 1rem;
  color: #666;
}

.price {
  padding: 0 1rem 0.5rem;
  color: var(--primary);
  font-weight: bold;
}

.btn-secondary {
  background: #f8f3ec;
  color: var(--primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin: 0.5rem 1rem 1rem;
  text-align: center;
  text-decoration: none;
}

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

/* CTA */
.cta {
  background: #f8eacd;
  padding: 3rem 0;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content select, .modal-content input, .modal-content textarea {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Футер */
.site-footer {
  background: #f8eacd;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .header-actions {
    flex-direction: column;
  }
}
