/* Страница корзины — в стиле emmet */

.emmet-cart-page {
  max-width: 1500px;
}

.emmet-cart-page .emmet-breadcrumb {
  margin-bottom: 1rem;
}

.emmet-cart-page h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.emmet-cart-list-wrap {
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.emmet-cart-list-wrap .table {
  margin-bottom: 0;
}

.emmet-cart-list-wrap thead td {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emmet-muted, #5c5c5c);
  background: #fafafa;
  border-color: #eee !important;
  padding-top: 12px;
  padding-bottom: 12px;
}

.emmet-cart-list-wrap tbody td {
  vertical-align: middle;
  border-color: #f0f0f0 !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

.emmet-cart-list-wrap tbody a {
  color: #1a6dcc;
  font-weight: 600;
  text-decoration: none;
}

.emmet-cart-list-wrap tbody a:hover {
  text-decoration: underline;
}

.emmet-cart-item-availability {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.emmet-cart-item-availability--in_stock {
  color: #1a9b6e;
}

.emmet-cart-item-availability--on_order {
  color: #9a6b00;
}

.emmet-cart-item-availability--out_of_stock {
  color: #c62828;
}

.emmet-cart-item-clearance-badge {
  width: fit-content;
}

.emmet-header-cart__clearance {
  display: inline-flex;
  margin-top: 4px;
  font-size: 0.7rem;
}

.emmet-cart-list-wrap .img-thumbnail {
  border-radius: 10px;
  max-width: 72px;
}

.emmet-cart-list-wrap #checkout-total td {
  font-size: 14px;
  background: #fafafa;
  border-color: #eee !important;
}

.emmet-cart-list-wrap #checkout-total tr:last-child td {
  font-size: 16px;
  font-weight: 800;
  background: #fffbea;
}

.emmet-cart-page .btn-primary {
  border-radius: 12px;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(180deg, #ffe98a 0%, #f5c400 42%, #deb800 100%);
  border: none;
  color: var(--emmet-accent-ink, #1a1a1a);
  box-shadow: 0 8px 22px rgba(245, 196, 0, 0.28);
}

.emmet-cart-page .btn-primary:hover {
  filter: brightness(0.97);
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-cart-page .btn-light {
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid var(--emmet-top-border, #e8e8e8);
}

.emmet-cart-page #accordion.accordion.emmet-cart-next-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}

@media (max-width: 767.98px) {
  .emmet-cart-page #accordion.accordion.emmet-cart-next-modules {
    grid-template-columns: 1fr;
  }
}

/* Третий и далее блоки (например, бонусы) — на всю ширину под двумя колонками */
.emmet-cart-page #accordion.emmet-cart-next-modules > .accordion-item:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.emmet-cart-page #accordion.accordion .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
}

.emmet-cart-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.emmet-cart-empty__icon {
  font-size: 2.5rem;
  color: #c8c8c8;
  margin-bottom: 1rem;
}

.emmet-cart-empty__text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--emmet-muted, #5c5c5c);
}

.emmet-cart-page__empty-actions {
  text-align: center;
}
