  display: grid;
  gap: 22px;
}
.detail-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.detail-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.detail-section h2 {
  margin-bottom: 10px;
  color: var(--wine);
  font-size: 28px;
}
.spec-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 86px 1fr 110px 120px 120px 34px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { height: 78px; overflow: hidden; border-radius: 10px; background: var(--preview); }
.cart-item h3 { margin: 0 0 4px; font-size: 15px; }
.cart-summary dl { display: grid; gap: 12px; }
.cart-summary div { display: flex; justify-content: space-between; }
.cart-summary .total { padding-top: 12px; border-top: 1px solid var(--line); color: var(--red); font-size: 20px; font-weight: 900; }
.coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon input, .contact-form input, .contact-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.about-hero, .contact-layout, .blog-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.about-hero img { height: 320px; width: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.stats article { padding: 22px; text-align: center; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); }
.stats strong { color: var(--red); font-size: 30px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.values article, .contact-card { padding: 22px; }
.contact-form { display: grid; gap: 12px; }
.map-box { height: 260px; margin-top: 18px; border-radius: 16px; background: linear-gradient(135deg, #cfe7e7, #f9f0d4 50%, #c5d8b7); box-shadow: var(--shadow); }
.blog-layout { grid-template-columns: 1fr 340px; }
.feature-post { padding: 14px; }
.feature-post .image { height: 260px; border-radius: 14px; background: linear-gradient(135deg, #fff, #f1c4bd 50%, #dbe3cb); }
.small-post { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.small-post span { border-radius: 10px; background: linear-gradient(135deg, #fff, #efc8c1); }

.site-footer { width: min(1480px, calc(100% - 48px)); margin: 34px auto 18px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding: 28px; background: linear-gradient(135deg, rgba(255,253,250,.94), rgba(255,247,239,.82)); border: 1px solid rgba(199,164,90,.22); border-radius: 18px; box-shadow: var(--shadow); }
.site-footer h4 { margin: 0 0 12px; }
.site-footer a, .site-footer span { display: block; margin: 8px 0; color: var(--muted); font-size: 14px; }

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid rgba(199,164,90,.2);
  border-radius: 14px;
  text-align: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: start center;
  padding: 92px 18px 18px;
  background: rgba(45, 25, 22, .34);
  backdrop-filter: blur(8px);
}
.search-open .search-modal { display: grid; }
.search-box {
  position: relative;
  width: min(560px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fffdf9;
  border: 1px solid rgba(199,164,90,.28);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.search-box label { color: var(--wine); font-weight: 900; }
.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.search-box [data-search-close] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff4ed;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand { width: 150px; }
  .main-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; justify-content: flex-start; }
  .hero-card, .cart-layout, .about-hero, .contact-layout, .blog-layout { grid-template-columns: 1fr; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-info { padding: 10px 0 0; }
  .category-grid, .product-row { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel .filter-group { display: grid; gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits, .steps, .stats, .values, .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  main, .site-header, .site-footer { width: min(100% - 24px, 1480px); }
  .site-header { top: 8px; margin-top: 8px; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .brand { width: 118px; }
  .main-nav { gap: 14px; padding-bottom: 2px; font-size: 12px; scrollbar-width: none; }
  .main-nav a { flex: 0 0 auto; padding: 10px 0 14px; }
  .main-nav a.active::after { bottom: 6px; }
  .header-actions button, .header-actions a { width: 34px; height: 34px; }
  .hero-card { grid-template-columns: 1fr; gap: 18px; min-height: auto; padding: 22px; }
  .hero-card img { min-height: 220px; }
  h1 { font-size: 32px; line-height: 1.12; }
  h2 { font-size: 26px; }
  .category-grid, .product-row, .blog-row, .promo-grid, .steps, .benefits, .stats, .values, .site-footer { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-thumb { height: 132px; }
  .product-card { padding: 8px; }
  .product-body h3 { font-size: 13px; }
  .cart-btn { right: 10px; bottom: 10px; width: 28px; height: 28px; }
  .shop-toolbar { display: grid; gap: 12px; }
  .sort-select { width: 100%; }

