@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@100..900&display=swap');

:root {
  --sc-font: 'Hahmlet', serif;
  --sc-ink: #1B242F;
  --sc-layer-shadow: #D8DDE4;
  --sc-card-border: 2px solid #FFFFFF;
  --sc-card-radius: 16px;
  --sc-btn-radius: 9999px;
  --sc-stacked-shadow: 4px 4px 0px #1B242F, 8px 8px 0px #D8DDE4;
  --sc-card-shadow: 0 8px 24px rgba(27, 36, 47, 0.06);
  --sc-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body, .stacked-cart-modal {
  font-family: var(--sc-font);
  font-style: normal;
}

.stacked-cart-modal .modal-dialog {
  max-width: 960px;
  margin: 1.25rem auto;
}

.stacked-cart-modal .modal-content {
  max-height: 90vh;
  background-color: #F8FAFC;
  border-radius: var(--sc-card-radius);
  border: var(--sc-card-border);
  box-shadow: var(--sc-stacked-shadow);
  display: flex;
  flex-direction: column;
}

.stacked-cart-modal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(90vh - 120px);
}

.stacked-card-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--sc-card-radius);
  box-shadow: var(--sc-card-shadow);
}

.modal-badge {
  background-color: var(--sc-ink);
  color: #FFFFFF;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cart-item-card {
  background: #FDFDFD;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  transition: var(--sc-transition);
}

.cart-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--sc-ink);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.cart-qty-pill {
  border: 1px solid #D8DDE4;
  border-radius: var(--sc-btn-radius);
  background: #F8FAFC;
  padding: 2px 4px;
}

.qty-btn {
  border: none;
  background: transparent;
  color: var(--sc-ink);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  transition: var(--sc-transition);
}

.qty-btn:hover {
  background: #E2E8F0;
}

.item-remove-btn {
  border: none;
  background: #FFF1F0;
  color: #CF1322;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--sc-transition);
}

.item-remove-btn:hover {
  background: #CF1322;
  color: #FFFFFF;
}

.modern-input {
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  transition: var(--sc-transition);
}

.modern-input:focus {
  border-color: var(--sc-ink);
  box-shadow: 0 0 0 2px rgba(27, 36, 47, 0.1);
}

.carrier-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FDFDFD;
  font-size: 0.825rem;
}

.modal-action-btn {
  background: var(--sc-ink);
  color: #FFFFFF;
  border-radius: var(--sc-btn-radius);
  border: 2px solid var(--sc-ink);
  box-shadow: 3px 3px 0px #CBD5E1;
  transition: var(--sc-transition);
}

.modal-action-btn:hover {
  background: #2D3B4D;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--sc-ink);
}

.toast-notification-card {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1080;
  background: #FFFFFF;
  border-radius: 12px;
  border: var(--sc-card-border);
  box-shadow: var(--sc-stacked-shadow);
  padding: 12px 18px;
  min-width: 280px;
  max-width: 360px;
  transform: translateX(120%);
  opacity: 0;
  transition: var(--sc-transition);
  font-family: var(--sc-font);
}

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

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E6F7ED;
  color: #237804;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8EDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .stacked-cart-modal .modal-dialog {
    margin: 0.5rem;
  }
  .stacked-cart-modal .modal-content {
    max-height: 94vh;
  }
  .stacked-cart-modal .modal-body {
    max-height: calc(94vh - 100px);
  }
  .toast-notification-card {
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
}