* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  background: #f0f0f0;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
main {
  flex: 1;
  padding: 20px 0;
}

/* Шапка */
.header {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.logo-area {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}
.logo-icon {
  background: #666;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}
.logo-text span {
  color: #888;
}
.search-box {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}
.search-box input {
  padding: 8px;
  border: none;
  outline: none;
}
.search-box button {
  padding: 8px 15px;
  border: none;
  background: #eee;
  cursor: pointer;
}
.right-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.profile-icon,
.cart-icon {
  cursor: pointer;
  text-decoration: none;
  color: #333;
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Меню */
.nav-bar {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #666;
}
.nav-links a:hover {
  color: #000;
}

/* Товары */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-left: 4px solid #666;
  padding-left: 10px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
}
.product-img {
  height: 120px;
  background: #fafafa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-title {
  font-weight: bold;
  margin-bottom: 5px;
}
.product-spec {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.price {
  font-weight: bold;
  font-size: 1.1rem;
}
.btn-cart {
  background: #333;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Корзина */
.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: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.modal-panel {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 15px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
.cart-remove {
  background: none;
  border: none;
  color: #c33;
  cursor: pointer;
  font-size: 1.2rem;
}
.cart-total {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: right;
  margin-top: 15px;
}
.checkout-btn {
  width: 100%;
  padding: 10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
}

/* Подвал */
footer {
  background: white;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 15px;
  margin-top: auto;
  font-size: 0.9rem;
  color: #888;
}

/* Формы (авторизация) */
.auth-body {
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}
.auth-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.auth-form h2 {
  text-align: center;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.auth-button {
  width: 100%;
  padding: 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.auth-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}
.error-message {
  color: #c33;
  background: #fee;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}
.success-message {
  color: #2e7d32;
  background: #e8f5e9;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}

/* Профиль и прочее */
.profile-container,
.support-form,
.checkout-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.profile-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 60px;
  height: 60px;
  background: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}
.profile-actions {
  display: flex;
  gap: 10px;
}
.profile-btn {
  padding: 8px 15px;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.promo-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
