/* Additions for the Laravel-backed store, layered on top of the original design system. */

.nav-icon-btn {
  position: relative;
}

.cart-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #c2a15c;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.invalid-feedback {
  display: block;
}

.auth-input.is-invalid,
.form-control.is-invalid {
  border-color: #a3473c;
}

.alert {
  border-radius: 4px;
  font-size: 14px;
}

/* ── Toast notifications ── */
.toast-stack {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.site-toast {
  position: relative;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 40px 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.site-toast.hide {
  opacity: 0;
  transform: translateX(20px);
}

.site-toast-success {
  background: #243c22;
}

.site-toast-error {
  background: #4a231e;
}

.site-toast-info {
  background: #1c2c3c;
}

.site-toast .toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.site-toast .toast-close:hover {
  color: #fff;
}

@media (max-width: 576px) {
  .toast-stack {
    left: 16px;
    right: 16px;
    max-width: none;
    top: 76px;
  }
}

/* ── Checkout: keep the order summary in view while the left column scrolls ── */
.checkout-summary-box {
  position: sticky;
  top: 24px;
}

@media (max-width: 991.98px) {
  .checkout-summary-box {
    position: static;
  }
}
