/* Кнопка корзины в шапке в едином стиле навигации */
.basket-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.basket-trigger-btn:hover {
  color: var(--sale);
}

.basket-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.basket-badge[hidden] {
  display: none !important;
}

.basket-page {
  padding: 20px 0 48px;
  color: #18181b;
}
.basket-page-top {
  margin-bottom: 14px;
}
.basket-page-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4e4e7;
  margin-bottom: 20px;
}
.basket-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}
.basket-count { font-size: 14px; color: #71717a; }

.basket-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .basket-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.basket-items-col {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 0 18px;
}
.basket-items-col .basket-item-row:last-child {
  border-bottom: none;
}

.basket-item-row {
  display: grid;
  grid-template-columns: 20px 64px 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #e4e4e7;
  transition: opacity 0.15s;
}
.basket-item-row.unchecked { opacity: 0.45; }
.basket-item-check { padding-top: 32px; }
.basket-item-check input { width: 17px; height: 17px; accent-color: #18181b; cursor: pointer; }
.basket-item-thumb {
  width: 64px; height: 86px; border-radius: 4px;
  background: #f4f4f5; border: 1px solid #e4e4e7;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #71717a; text-align: center;
}
.basket-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.basket-item-brand { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.basket-item-name { font-size: 13px; margin-top: 2px; }
.basket-item-meta { font-size: 12px; color: #71717a; margin-top: 3px; }
.basket-demand-badge {
  display: inline-block; margin-top: 5px; font-size: 11px;
  background: #fffbeb; color: #92400e;
  padding: 2px 7px; border-radius: 4px; font-weight: 500;
}
.basket-item-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; text-align: right; }
.basket-price-label { font-size: 10px; color: #71717a; line-height: 1.2; }
.basket-store-price { font-size: 12px; color: #71717a; text-decoration: line-through; white-space: nowrap; margin-bottom: 4px; }
.basket-your-price { font-size: 14px; font-weight: 700; color: #18181b; white-space: nowrap; }
.basket-remove-btn { background: none; border: none; font-size: 12px; color: #71717a; text-decoration: underline; cursor: pointer; }

.basket-page .scenario-card {
  margin-bottom: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
}
.basket-page .scenario-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.basket-page .scenario-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.basket-page .cta-btn {
  width: 100%; padding: 12px; background: #18181b; color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.basket-page .cta-btn:disabled { background: #a1a1aa; cursor: not-allowed; }
.basket-page .cta-btn-outline {
  width: 100%; padding: 11px; background: #fff; color: #18181b;
  border: 1px solid #18181b; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.basket-page .cta-btn-paid {
  width: 100%; padding: 11px; background: #18181b; color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; margin-top: 8px;
}

.basket-page .reserve-box {
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.basket-page .reserve-box.pending {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
.basket-page .reserve-box.confirmed {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.basket-page .reserve-status-line {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}
.basket-page .cancel-link {
  display: inline-block;
  margin-top: 6px;
  background: none;
  border: none;
  text-decoration: underline;
  font-size: 11px;
  color: inherit;
  cursor: pointer;
}

.basket-page .qr-body {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e4e4e7;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding-bottom: 10px;
}
.basket-page .qr-body[hidden] { display: none; }
.basket-page .qr-code-num { margin-top: 6px; font-size: 12px; font-weight: 600; }

.basket-footnote {
  margin-top: 16px;
  font-size: 11px;
  font-style: italic;
  color: #71717a;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.basket-toast {
  position: fixed; bottom: 20px; right: 20px; max-width: 380px;
  background: #18181b; color: #fff; padding: 14px 16px;
  border-radius: 10px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: none;
  z-index: 1000;
}
.basket-toast.show { display: block; }
