:root {
  --bg: #f3efe6;
  --ink: #1c1914;
  --muted: #5c564c;
  --paper: #fffdf8;
  --line: #d8d0c2;
  --accent: #d97706;
  --accent-dark: #b45309;
  --ok: #2f6b4f;
  --shadow: 0 12px 28px rgba(28, 25, 20, 0.14);
  --tap: 48px;
  --space: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 42%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

h1,
h2,
h3,
button {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

button {
  font-size: 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.topbar,
main,
.support-banner {
  width: min(1100px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.support-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #d97706;
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 0 12px;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-kicker,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.brand h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
  white-space: nowrap;
}

.cart-button,
.primary-button,
.add-button,
.qty-button,
.icon-button,
.remove-button {
  cursor: pointer;
  border: 0;
}

.cart-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-count {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.9rem;
}

main {
  padding-bottom: calc(40px + var(--safe-bottom));
}

.hero,
.product-card,
.cart-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 24px 20px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 251, 235, 0.9);
  border-color: rgba(253, 230, 138, 0.9);
}

.hero-kicker {
  margin: 0 0 8px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #047857;
}

.hero h2,
.section-title,
.cart-header h2 {
  margin: 6px 0 10px;
}

.hero h2 {
  font-size: 1.45rem;
  line-height: 1.25;
}

.hero p {
  margin: 0 0 12px;
  color: #44403c;
}

.hero p:last-child {
  margin-bottom: 0;
}

.hero-surplus {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  color: #047857;
}

.instruction-text {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.section-title {
  margin-top: 28px;
  font-size: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.product-visual {
  position: relative;
  height: 260px;
  padding: 14px;
  background: #f4efe4;
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: #fff;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.product-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-unit {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.product-specs {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-specs li {
  margin-bottom: 4px;
}

.product-support {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9a4318;
}

.info-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #292524;
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.info-overlay[hidden] {
  display: none;
}

.info-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(86dvh, 640px);
  overflow: auto;
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}

.info-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.info-modal h2 {
  margin: 0 48px 8px 0;
  font-size: 1.2rem;
}

.info-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.info-highlights {
  margin: 0;
  padding-left: 18px;
}

.info-highlights li {
  margin-bottom: 8px;
}

.info-tip {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff8e8;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.92rem;
}

.price {
  margin-top: auto;
  font-weight: 700;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.1rem;
}

.variant-list {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
}

.variant-list legend {
  padding: 0 6px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.variant-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}

.variant-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.variant-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cart-variant {
  margin: 0 !important;
  color: var(--ink) !important;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}

.add-button,
.primary-button {
  width: 100%;
  min-height: var(--tap);
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.add-button:active,
.primary-button:active,
.cart-button:active,
.qty-button:active,
.icon-button:active,
.remove-button:active {
  transform: scale(0.98);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 20, 0.45);
  z-index: 2;
}

.cart-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  border-radius: 0;
  border: 0;
  padding:
    calc(8px + var(--safe-top))
    calc(14px + var(--safe-right))
    calc(10px + var(--safe-bottom))
    calc(14px + var(--safe-left));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 3;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.icon-button {
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #efe8db;
  color: var(--ink);
  font-weight: 700;
}

.cart-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.cart-item {
  display: grid;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-main h3,
.empty-cart {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
}

.cart-item p,
.empty-cart {
  color: var(--muted);
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-price {
  margin: 0;
  margin-right: auto;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink) !important;
  white-space: nowrap;
}

.remove-button {
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 10px;
  background: #f4ece3;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
}

.qty-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #efe8db;
  font-weight: 700;
  font-size: 1.2rem;
}

.qty-controls span {
  min-width: 1.4em;
  text-align: center;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
  overflow: visible;
  max-height: none;
}

.cart-footer .primary-button {
  margin-top: 0;
}

.cart-total {
  margin: 0;
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.back-button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-mp-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #5a46e8;
  color: #fff;
  text-align: center;
}

.cart-mp-strip .mp-code-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ddd6fe;
}

.cart-mp-strip .mp-code {
  margin: 0 auto;
  padding: 8px 18px;
  width: fit-content;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  user-select: all;
}

.cart-mp-strip .copy-button {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
}

.mp-open-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #ede9fe;
  opacity: 0.95;
}

.cart-pay-amount {
  margin: 12px 0 0;
  padding: 14px 12px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, sans-serif;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: #fff;
}

.pay-amount-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pay-amount-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--ink);
}

.pay-step-kicker {
  color: #d97706;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pay-step-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.15rem;
}

.checkout-note {
  margin: 0;
  color: var(--ok);
  line-height: 1.4;
}

.site-footer {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto 28px;
  text-align: center;
}

.site-footer a,
.text-link {
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer a:hover,
.text-link:hover {
  text-decoration: underline;
}

.text-link {
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 64px;
  resize: vertical;
}

.order-form {
  display: grid;
  gap: 8px;
}

.form-step {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.check-field input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.sms-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 14px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: #fff4ea;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.sms-box input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.sms-box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.pay-intro {
  margin: 0 0 12px;
  color: var(--muted);
}

.pay-guide {
  margin: 0 0 16px;
  padding: 14px 14px 14px 1.6em;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pay-guide li {
  margin: 0 0 8px;
}

.trust-note {
  margin: 0;
  color: #8a8378;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.thanks-card {
  text-align: center;
}

.receipt-bon {
  width: min(100%, 340px);
  margin: 18px auto 8px;
  padding: 22px 18px 16px;
  background:
    repeating-linear-gradient(
      180deg,
      #fffdf6 0 10px,
      #fffaf0 10px 11px
    );
  border: 1px dashed #c9bba6;
  box-shadow: 0 10px 24px rgba(28, 25, 20, 0.1);
  font-family: ui-monospace, "Cascadia Mono", "Courier New", monospace;
  color: var(--ink);
  text-align: left;
}

.bon-kicker,
.bon-shop,
.bon-date,
.bon-thanks {
  margin: 0;
  text-align: center;
}

.bon-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.bon-shop {
  margin-top: 4px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bon-date {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

.bon-rule {
  border: 0;
  border-top: 1px dashed #c9bba6;
  margin: 12px 0;
}

.bon-line {
  margin: 0 0 10px;
}

.bon-line-main,
.bon-unit,
.bon-total,
.bon-vat,
.bon-exvat {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.bon-unit {
  color: var(--muted);
  font-size: 0.78rem;
}

.bon-total,
.bon-vat,
.bon-exvat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0;
}

.bon-total {
  font-size: 0.95rem;
  font-weight: 800;
}

.bon-thanks {
  font-size: 0.75rem;
  color: var(--muted);
}

.thanks-summary {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f1e6;
  color: var(--ink);
  text-align: left;
}

.thanks-summary p {
  margin: 0 0 8px;
  color: var(--ink);
}

.thanks-summary p:last-child {
  margin-bottom: 0;
}

.receipt-actions {
  display: grid;
  gap: 8px;
  margin: 16px 0 8px;
}

.secondary-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #efe8db;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-hint {
  margin: 0;
  color: var(--ok);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.sms-thanks {
  color: var(--ok) !important;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
}

.field-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.admin-toolbar {
  margin: 20px 0;
}

.export-button {
  max-width: 420px;
}

.table-wrap {
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.95rem;
}

.order-table th,
.order-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.order-table th {
  background: #f7f1e6;
  white-space: nowrap;
}

.empty-orders {
  color: var(--muted);
}

.pay-main {
  display: flex;
  justify-content: center;
}

.pay-card,
.thanks-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.thanks-card h2 {
  margin: 6px 0 10px;
}

.pay-card {
  text-align: center;
}

.mp-heading {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 8px;
}

.mp-code-box {
  margin: 20px auto;
  padding: 28px 22px 22px;
  width: min(100%, 360px);
  border-radius: 22px;
  background: linear-gradient(165deg, #4b2fb8, #7a5cff);
  color: #fff;
  box-shadow: 0 16px 32px rgba(75, 47, 184, 0.28);
}

.mp-code-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-family: "Segoe UI", Tahoma, sans-serif;
  opacity: 0.85;
}

.mp-code {
  margin: 0 0 18px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.copy-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #4b2fb8;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: #f4f0ff;
}

.delivery-summary {
  margin: 0 0 16px;
  color: var(--muted);
}

.pay-amount {
  margin: 8px 0 18px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.3;
}

.pay-card .field {
  text-align: left;
  margin-bottom: 16px;
}

.pay-confirm {
  width: 100%;
  max-width: none;
  min-height: 58px;
  font-size: 1.15rem;
}

.test-banner {
  background: #efe8db;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.order-id {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
}

.order-lines {
  list-style: disc;
  text-align: left;
  margin: 12px auto 16px;
  padding-left: 1.4em;
  max-width: 28em;
  color: var(--ink);
}

.order-lines li {
  margin: 0 0 8px;
  line-height: 1.35;
}

.thanks-card .order-lines {
  margin-left: 0;
}

.pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%);
  width: min(90vw, 360px);
  text-align: center;
  background: var(--ink);
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  z-index: 4;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-panel {
    inset: auto 12px 12px auto;
    width: min(400px, calc(100% - 24px));
    height: calc(100dvh - 24px);
    border-radius: 22px;
    border: 1px solid var(--line);
    padding: 14px;
  }
}

@media (min-width: 960px) {
  .topbar,
  main,
  .support-banner {
    width: min(1100px, calc(100% - 32px));
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 32px;
  }

  .add-button:hover,
  .primary-button:hover {
    background: var(--accent-dark);
  }

  .cart-button:hover {
    background: #000;
  }
}
