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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
}


/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.cart-header {
  text-decoration: none;
  color: #000;
  font-weight: 800;
  font-size: 16px;
}

.cart-header:hover {
  opacity: 0.7;
}
.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 6px;
  line-height: 1;
  margin: 0;
  color: #000000;
}
/* LAYOUT */
.layout {
  display: flex;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  padding: 20px;
  border-right: 1px solid #e5e5e5;
}

.sidebar h2 {
  margin-bottom: 15px;
  font-size: 18px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  color: #000000;
  text-decoration: none;
}

.sidebar a:hover {
  color: #ff7a00;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 30px;
}

/* PRODUCTS GRID */
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* PRODUCT CARD */
.product {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #fff !important;
  padding: 12px;
  flex-shrink: 0;
  mix-blend-mode: normal;
}
.image {
  height: 220px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 18px;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 44px;
  flex: 1;
}

.name {
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  word-break: break-word;
}

.price {
  font-weight: 800;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 650px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr;
  }
}
.price {
  white-space: nowrap;
  flex-shrink: 0
}
.product {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cart-icon-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon-btn:hover {
  opacity: 0.9;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 64px 14px 14px;
  margin: 0;
}

.name {
  font-size: 14px;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.price {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.cart-page {
  padding: 30px;
}

.cart-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 18px;
  background: #ffffff;
}

.cart-item-image {
  width: 140px;
  height: 140px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-image img {
  max-width: 90%;
  max-height: 90%;
  display: block;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #000000;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 6px;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.remove-item-btn {
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.cart-summary {
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 24px;
  background: #ffffff;
  max-width: 420px;
  margin-left: auto;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
}

.cart-summary-row.total {
  font-size: 22px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.empty-cart {
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 30px;
  background: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .cart-item {
    grid-template-columns: 120px 1fr;
  }

  .cart-item-controls,
  .cart-item-total,
  .remove-item-btn {
    grid-column: 2;
  }
}
.cart-page {
  padding: 30px;
}

.cart-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 18px;
  background: #ffffff;
}

.cart-item-image {
  width: 140px;
  height: 140px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.cart-item-image img {
  max-width: 90%;
  max-height: 90%;
  display: block;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #000000;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 6px;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-item-total {
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.remove-item-btn {
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.cart-summary {
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 24px;
  background: #ffffff;
  position: sticky;
  top: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 16px;
}

.cart-summary-row.total {
  font-size: 22px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  border: none;
  background: #000000;
  color: #ffffff;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.empty-cart {
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 30px;
  background: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 120px 1fr;
  }

  .cart-item-controls,
  .cart-item-total,
  .remove-item-btn {
    grid-column: 2;
  }
}
.cart-preview-wrapper {
  position: relative;
}

.cart-header {
  text-decoration: none;
  color: #000;
  font-weight: 800;
  font-size: 16px;
  display: inline-block;
}

.cart-header:hover {
  opacity: 0.7;
}

.mini-cart {
  position: absolute;
  top: 100%;
  margin-top: 4px;
  right: 0;
  width: 360px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 14px;
  display: none;
  z-index: 1000;
}

.cart-preview-wrapper:hover .mini-cart {
  display: block;
}

.mini-cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee;
}

.mini-cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-cart-item-image {
  width: 60px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mini-cart-item-image img {
  max-width: 90%;
  max-height: 90%;
  display: block;
}

.mini-cart-item-info {
  min-width: 0;
}

.mini-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mini-cart-item-meta {
  font-size: 12px;
  color: #444;
}

.mini-cart-item-total {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-cart-empty {
  font-size: 14px;
  text-align: center;
  padding: 18px 10px;
}

.mini-cart-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.mini-cart-button {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #000000;
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
}
.cart-preview-wrapper::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 10px;
}
/* Делаем весь текст толще */
body {
  font-weight: 500;
}

/* Основной текст интерфейса */
.sidebar,
.sidebar *,
.content,
.content *,
.products,
.product,
.name,
.price,
.cart-header,
.mini-cart,
.mini-cart *,
.cart-item-name,
.cart-item-price {
  font-weight: 600;
}

/* Чуть сильнее для акцентов */
.price,
.cart-item-total,
.cart-summary-row.total,
.checkout-btn,
.remove-item-btn {
  font-weight: 700;
}
/* Toast уведомление */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.footer {
  margin-top: 60px;
  background: #000000;
  color: #ffffff;
  padding: 40px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  margin-bottom: 8px;
  color: #cccccc;
  cursor: pointer;
}

.footer-col p:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* адаптив */
@media (max-width: 800px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
/* Кликабельные карточки товаров */
.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-link:hover img {
  opacity: 0.92;
}

.product-link .info {
  pointer-events: none;
}

/* Кнопка корзины — всегда поверх ссылки */
.cart-icon-btn {
  z-index: 2;
}

/* Checkout delivery */
.delivery-widget {
  overflow: visible;
}

.delivery-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.delivery-method-btn,
.delivery-reset-btn {
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background .15s, color .15s, border-color .15s;
}

.delivery-method-btn {
  min-height: 68px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.delivery-method-btn.active,
.delivery-method-btn:hover,
.delivery-reset-btn:hover {
  background: #000;
  color: #fff;
}

.delivery-method-name {
  font-size: 13px;
}

.delivery-method-note {
  color: #777;
  font-size: 11px;
  font-weight: 700;
}

.delivery-method-btn.active .delivery-method-note,
.delivery-method-btn:hover .delivery-method-note {
  color: #ddd;
}

.delivery-panel {
  margin-bottom: 14px;
}

.delivery-address-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.delivery-address-field {
  position: relative;
  min-width: 0;
}

.delivery-reset-btn {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
}

.pickup-map-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.pickup-map-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.pickup-map-filter {
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 10px;
  transition: background .15s, color .15s;
}

.pickup-map-filter.active,
.pickup-map-filter:hover {
  background: #000;
  color: #fff;
}

.delivery-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 2000;
  display: none;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.delivery-suggestions.visible {
  display: block;
}

.delivery-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 12px;
  text-align: left;
}

.delivery-suggestion:last-child {
  border-bottom: 0;
}

.delivery-suggestion:hover {
  background: #f5f5f5;
}

.delivery-selected-line,
.delivery-time,
.delivery-warning {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 10px;
  padding: 10px 12px;
}

.delivery-selected-line,
.delivery-time {
  background: #f5f5f5;
  color: #222;
}

.delivery-warning {
  background: #fff;
  border: 1px solid #000;
  color: #000;
}

.pickup-map-wrap {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.pickup-map {
  width: 100%;
  height: 430px;
  min-height: 430px;
}

.pickup-map-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  border: 1px solid #ddd;
  color: #000;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 12px;
  pointer-events: none;
}

.pickup-map-status.error {
  border-color: #000;
}

.pickup-balloon {
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.pickup-balloon strong {
  display: block;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .delivery-methods,
  .delivery-address-row,
  .pickup-map-toolbar,
  .pickup-map-filters {
    grid-template-columns: 1fr;
  }

  .delivery-reset-btn {
    width: 100%;
  }

  .pickup-map {
    height: 340px;
    min-height: 340px;
  }
}
