@import url("./tokens.css");

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button, input, select, textarea {
  font: inherit;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: .18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-green {
  background: var(--green);
  color: white;
}
.btn-yellow {
  background: var(--yellow);
  color: #183b25;
}
.btn-dark {
  background: #163b28;
  color: white;
}
.btn-light {
  background: #eef4ef;
  color: #234b32;
}
.btn-danger {
  background: #fcebea;
  color: #a33;
}
.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}
.full {
  width: 100%;
}
.muted, .hint {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--green);
}
h1, h2, h3, p {
  margin-top: 0;
}
h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.section {
  padding: 54px max(5vw, 20px);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.loading-card {
  grid-column: 1/-1;
  padding: 30px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}
.dialog {
  border: 0;
  border-radius: 20px;
  padding: 24px;
  width: min(560px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 25px 80px #102d1b33;
}
.dialog::backdrop {
  background: #102d1b88;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 24px;
}
.icon-button {
  border: 0;
  background: #eff4ef;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.hint {
  font-size: 12px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.form-grid input, .form-grid select, .form-grid textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: white;
  min-width: 0;
}
.span-2 {
  grid-column: span 2;
}
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #163b28;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px #00000025;
  animation: slideUp .25s ease;
}
.toast.error {
  background: #a33;
}
@keyframes slideUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
