:root {
  --bg: #150a26;
  --bg-soft: #1e1136;
  --card: #241642;
  --card-soft: #2b1b4d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f7f3ff;
  --text-dim: #b7a7d4;
  --accent: #ff8a00;
  --accent-2: #f43f7c;
  --grad: linear-gradient(135deg, #ff8a00, #f43f7c 55%, #a24bff);
  --green: #25d366;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --header-h: 200px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button, a, .builder-card, .cat-tab, .chip, .option-card, .qty-btn,
.btn-add-product, .cart-fab, .contact-link, .icon-btn, .btn-whatsapp, .btn-add,
.cart-item-remove {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body, button, a, .builder-card, .cat-tab, .chip, .option-card, .qty-btn,
.btn-add-product, .cart-fab, .contact-link, .icon-btn, .btn-whatsapp, .btn-add,
.cart-item-remove, .text-input {
  touch-action: manipulation;
}

@media (hover: none), (pointer: coarse) {
  .contact-link:hover { border-color: var(--border); }
  .btn-add-product:active, .qty-btn:active, .builder-card:active,
  .option-card:active, .chip:active { transform: none; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  height: var(--header-h);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 10, 38, 0.25) 0%, rgba(21, 10, 38, 0.6) 55%, var(--bg) 100%);
}

.header-content {
  position: relative;
  width: 100%;
  padding: 20px 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  background: var(--card-soft);
}

.store-info h1 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hours {
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #6af0a2;
}

.status-badge.closed {
  background: rgba(255, 77, 79, 0.15);
  border-color: rgba(255, 77, 79, 0.5);
  color: #ff8a8c;
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s infinite;
}

.status-badge.closed .dot { animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.table-chip {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(244, 63, 124, 0.4);
}

.table-chip b { font-size: 15px; }

/* ---------- Builder strip ---------- */
.builder-strip {
  padding: 20px 16px 4px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 12px;
}

.builder-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.builder-cards::-webkit-scrollbar { display: none; }

.builder-card {
  flex: 0 0 200px;
  text-align: left;
  background: linear-gradient(150deg, var(--card) 0%, var(--card-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.builder-card:active { transform: scale(0.97); }

.builder-emoji { font-size: 30px; }

.builder-title { font-weight: 800; font-size: 15px; }

.builder-sub { font-size: 12px; color: var(--text-dim); line-height: 1.3; }

.builder-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Category nav ---------- */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 10, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.cat-nav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.cat-tab.active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}

/* ---------- Menu sections ---------- */
.menu {
  padding: 16px 16px 120px;
}

.cat-section {
  padding-top: 18px;
  scroll-margin-top: 70px;
}

.cat-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cat-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-rule { flex: 1; height: 1px; background: var(--border); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  transition: border-color 0.15s ease;
}

.product-img-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-soft);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img.fallback {
  display: grid;
  place-items: center;
  font-size: 34px;
}

.product-badges {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 1;
}

.product-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
}

.product-badge.novo { background: #ef4444; }
.product-badge.oferta { background: #f97316; }

.product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.product-name { font-size: 14.5px; font-weight: 700; line-height: 1.25; }

.product-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price { font-size: 15px; font-weight: 800; color: #ffd479; white-space: nowrap; }

.btn-add-product {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 3px 10px rgba(244, 63, 124, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
  flex-shrink: 0;
}

.btn-add-product:active { transform: scale(0.94); }

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  color: #fff;
}

.qty-btn.minus { color: var(--text-dim); }

.qty-btn.plus { background: var(--grad); }

.qty-val { min-width: 26px; text-align: center; font-weight: 700; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 32px 20px calc(28px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid var(--border);
}

.footer-name { font-weight: 800; font-size: 17px; }

.footer-slogan { font-size: 13px; color: var(--text-dim); margin-top: 3px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.contact-link:hover { border-color: rgba(255, 255, 255, 0.25); }

.footer-note { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---------- Cart FAB ---------- */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(244, 63, 124, 0.5);
  transition: transform 0.15s ease;
}

.cart-fab:active { transform: scale(0.92); }

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #b22460;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.open { pointer-events: auto; visibility: visible; }

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer.open .cart-backdrop { opacity: 1; }

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
}

.cart-drawer.open .cart-panel { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 10px;
}

.cart-head h2 { font-size: 19px; font-weight: 800; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.customer-form {
  margin: 4px 18px 10px;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.customer-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.customer-form .field-name { grid-column: 1 / -1; }

.customer-form label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.customer-form .text-input {
  margin-top: 0;
  background: var(--bg);
}

.input-error {
  border-color: #ff5252 !important;
  box-shadow: 0 0 0 1px #ff5252 !important;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card-soft);
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }

.cart-item-extra {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-bottom {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price { font-size: 13px; font-weight: 700; color: #ffd479; }

.cart-item-remove {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: underline;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  text-align: center;
  padding: 24px;
}

.cart-empty-emoji { font-size: 40px; }

.cart-foot {
  border-top: 1px solid var(--border);
  padding: 14px 18px calc(14px + var(--safe-bottom));
  background: var(--bg-soft);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 10px;
}

.cart-total b { font-size: 19px; color: #ffd479; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active { filter: brightness(0.92); }

.cart-hint {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ---------- Modal (builders) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}

.modal.open { pointer-events: auto; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.open .modal-backdrop { opacity: 1; }

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: min(480px, calc(100% - 24px));
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal.open .modal-panel { opacity: 1; transform: translate(-50%, -50%); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 { font-size: 19px; font-weight: 800; }

.modal-body {
  overflow-y: auto;
  padding: 14px 20px 18px;
}

.modal-body h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 16px 0 10px;
  font-weight: 800;
}

.modal-body h3:first-child { margin-top: 0; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:active { transform: scale(0.98); }

.option-card.selected {
  border-color: var(--accent-2);
  background: rgba(244, 63, 124, 0.12);
  box-shadow: 0 0 0 1px var(--accent-2);
}

.option-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; }

.option-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

.option-price { font-size: 12.5px; font-weight: 700; color: #ffd479; margin-top: 5px; }

.option-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 138, 0, 0.14);
  border: 1px solid rgba(255, 138, 0, 0.35);
  padding: 1px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip .chip-price { color: #ffd479; font-size: 11.5px; }

.chip.selected {
  border-color: var(--accent-2);
  background: rgba(244, 63, 124, 0.14);
}

.chip.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hint-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.4;
}

.text-input {
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.text-input:focus { border-color: var(--accent-2); }

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.modal-price { font-size: 17px; font-weight: 800; color: #ffd479; white-space: nowrap; }

.btn-add {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(244, 63, 124, 0.35);
}

.btn-add:active { filter: brightness(0.92); }

.btn-add[disabled], .btn-add.disabled {
  opacity: 0.55;
  box-shadow: none;
  pointer-events: none;
}

/* ---------- Add-ons list (modal) ---------- */
.addon-grid { display: flex; flex-direction: column; gap: 8px; }

.addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  text-align: left;
}

.addon-row.selected {
  border-color: var(--accent-2);
  background: rgba(244, 63, 124, 0.12);
  box-shadow: 0 0 0 1px var(--accent-2);
}

.addon-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 13px;
  font-weight: 800;
}

.addon-row.selected .addon-check {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.addon-info { flex: 1; min-width: 0; }

.addon-name { font-size: 13.5px; font-weight: 700; }

.addon-price { font-size: 12px; font-weight: 700; color: #ffd479; margin-top: 1px; }

.addon-qty {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 3px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.addon-row.selected .addon-qty { opacity: 1; pointer-events: auto; }

.addon-qty .qty-btn { width: 26px; height: 26px; }
.addon-qty .qty-val { min-width: 22px; text-align: center; font-weight: 800; font-size: 13px; }

/* ---------- Selection list (coxinha / cobertura) ---------- */
.select-list { display: flex; flex-direction: column; gap: 10px; }

.select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.select-item.selected {
  border-color: var(--accent-2);
  background: rgba(244, 63, 124, 0.12);
  box-shadow: 0 0 0 1px var(--accent-2);
}

.select-item .si-title { font-size: 14px; font-weight: 700; }

.select-item .si-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

.select-item .si-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 14px;
  font-weight: 800;
}

.select-item.selected .si-check {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

/* ---------- Modal custom footers ---------- */
.modal-foot.custom { flex-direction: column; align-items: stretch; }

.price-break { width: 100%; display: flex; flex-direction: column; gap: 6px; }

.pb-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.pb-line .pb-label { color: var(--text-dim); }
.pb-line .pb-label b { color: var(--text); }

.pb-line.pb-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 15px;
  font-weight: 800;
}

.pb-line.pb-total .pb-value { color: #ffd479; }

/* ---------- Cart: add-ons & observation ---------- */
.cart-addons {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-addon-line {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
}

.cart-addon-line b { color: #ffd479; font-weight: 700; }

.cart-obs {
  width: 100%;
  margin-top: 7px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.cart-obs:focus { border-color: var(--accent-2); }

/* ---------- Checkout ---------- */
.checkout-body { display: flex; flex-direction: column; gap: 4px; }

.checkout-fieldset h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 14px 0 9px;
  font-weight: 800;
}

.checkout-fieldset:first-child h3 { margin-top: 0; }

.seg-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.seg-control.three { grid-template-columns: repeat(3, 1fr); }

.seg-btn {
  padding: 11px 8px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.seg-btn.active {
  border-color: var(--accent-2);
  background: rgba(244, 63, 124, 0.14);
  box-shadow: 0 0 0 1px var(--accent-2);
}

.co-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 10px 0 4px;
}

.checkout-foot { flex-direction: column; align-items: stretch; gap: 10px; }

.checkout-totals { width: 100%; display: flex; flex-direction: column; gap: 4px; }

.co-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dim);
}

.co-line b { color: var(--text); }

.co-line.co-total {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.co-line.co-total b { color: #ffd479; font-size: 20px; }

/* ---------- Alert modal ---------- */
.alert-panel { width: min(340px, calc(100% - 32px)); }

.alert-box {
  padding: 26px 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.alert-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffd479;
  background: rgba(255, 138, 0, 0.14);
  border: 1px solid rgba(255, 138, 0, 0.4);
  margin-bottom: 4px;
}

.alert-box h2 { font-size: 19px; font-weight: 800; }

.alert-box p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.alert-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.alert-actions .btn-add { flex: 1; }

.btn-ghost {
  flex: 1;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
}

.btn-ghost:active { filter: brightness(0.92); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  background: #fff;
  color: #1a0b2e;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  max-width: 88vw;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
