/* ── Brand CSS Variables (overridden by JS at runtime) ── */
:root {
  --brand-primary: #111827;
  --brand-secondary: #3b82f6;
  --brand-primary-light: #f0f4ff;
  --brand-secondary-light: #eff6ff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: light;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

/* ── Scrollbar elegante ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-secondary) transparent;
}
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* ── Base ── */
body { background: #f8fafc; color: #1e293b; line-height: 1.6; }

/* ══════════════════════════════════════
   TOP BAR / HEADER
   ══════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
.topbar-left {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.topbar-logo {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1px solid #e2e8f0; background: #fff; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.topbar-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.topbar-left h1 {
  font-size: 16px; font-weight: 700; color: var(--brand-primary);
  line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: #f1f5f9; color: var(--brand-primary);
  text-decoration: none; transition: background .2s;
}
.topbar-cart:hover { background: #e2e8f0; }
.topbar-cart svg { width: 20px; height: 20px; }
.topbar-cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--brand-secondary); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid #fff;
}

/* ══════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════ */
.main-content {
  max-width: 1100px; margin: 0 auto;
  padding: 16px 16px 100px;
}

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════
   BOTTOM NAVIGATION (Mobile style, always visible)
   ══════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 0; height: 60px;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  background: none; border: none; padding: 6px 0;
  color: #94a3b8; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item svg { width: 22px; height: 22px; transition: color .2s; }
.bottom-nav-item.active { color: var(--brand-secondary); }
.bottom-nav-item:not(.active):hover { color: #64748b; }

/* ══════════════════════════════════════
   HERO BANNER
   ══════════════════════════════════════ */
.hero-banner {
  position: relative; width: 100%; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #334155 100%);
  margin-bottom: 0; min-height: 180px;
}
.hero-cover {
  width: 100%; height: 200px; object-fit: cover; display: block;
}
.hero-banner.no-cover .hero-cover { display: none; }
.hero-banner.no-cover { min-height: 140px; }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
  pointer-events: none;
}
.hero-brand-row {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: flex-end; gap: 14px;
  padding: 16px 20px;
}
.hero-logo {
  width: 64px; height: 64px; border-radius: 14px; object-fit: contain;
  background: #fff; border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); flex-shrink: 0;
}
.hero-brand-text { flex: 1; min-width: 0; padding-bottom: 2px; }
.hero-name {
  font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-slogan {
  font-size: 13px; color: rgba(255,255,255,.85); margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-status {
  flex-shrink: 0; border-radius: 999px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hero-status.open { background: #dcfce7; color: #166534; }
.hero-status.closed { background: #fee2e2; color: #991b1b; }

/* ══════════════════════════════════════
   INFO STRIP (horizontal, icon + label + value)
   ══════════════════════════════════════ */
.info-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px;
  margin: -20px 12px 20px; position: relative; z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  overflow: hidden;
}
.info-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid #f1f5f9;
}
.info-item:last-child { border-right: none; }
.info-item svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--brand-secondary); opacity: .8;
}
.info-item div { min-width: 0; }
.info-label {
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  color: #94a3b8; font-weight: 600; line-height: 1;
}
.info-value {
  display: block; font-size: 13px; font-weight: 700; color: #1e293b; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.badge { display: inline-flex; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.badge.open { background: #dcfce7; color: #166534; }
.badge.closed { background: #fee2e2; color: #991b1b; }

/* ── Section Title ── */
.section-title {
  font-size: 18px; font-weight: 700; color: var(--brand-primary);
  margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-secondary);
  display: inline-block;
}

/* ══════════════════════════════════════
   PRODUCTS GRID
   ══════════════════════════════════════ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* ── Product Card ── */
.product {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  overflow: hidden; transition: box-shadow .25s, transform .25s;
  cursor: pointer; position: relative;
}
.product:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.product img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.product-body { padding: 14px 16px 16px; }
.product h3 { font-size: 15px; font-weight: 600; color: #1e293b; line-height: 1.35; }
.product .category-tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .4px; color: var(--brand-secondary); background: var(--brand-secondary-light);
  padding: 3px 8px; border-radius: 6px; margin-top: 8px;
}
.product .description-preview {
  color: #64748b; font-size: 13px; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product .price-row {
  display: flex; align-items: baseline; gap: 8px; margin-top: 10px;
}
.product .price { font-size: 18px; font-weight: 700; color: var(--brand-primary); margin: 0; }
.product .compare-price { font-size: 13px; color: #94a3b8; text-decoration: line-through; }
.product .quick-add {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 12px; padding: 10px;
  background: var(--brand-secondary); color: #fff; border: 0; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .2s;
}
.product .quick-add:hover { opacity: .88; }
.product .quick-add svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════
   MODAL (Product Detail)
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,.45); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  padding: 0;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-overlay.active .modal { transform: translateY(0); }

.modal {
  background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 520px;
  max-height: 92vh; overflow-y: auto; position: relative;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.modal-close:hover { background: #f1f5f9; }
.modal-close svg { width: 18px; height: 18px; color: #475569; }

.modal-image {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f8fafc;
  border-radius: 20px 20px 0 0;
}
.modal-content { padding: 20px 20px 28px; }
.modal-content h2 { font-size: 20px; font-weight: 700; color: #1e293b; line-height: 1.3; }
.modal-content .modal-category {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .4px; color: var(--brand-secondary); background: var(--brand-secondary-light);
  padding: 3px 8px; border-radius: 6px; margin-top: 8px;
}
.modal-content .modal-description {
  color: #475569; font-size: 14px; line-height: 1.65; margin-top: 14px;
}

/* Modal extra details rows */
.modal-details { margin-top: 14px; }
.modal-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.modal-detail-row:last-child { border-bottom: none; }
.modal-detail-label { color: #94a3b8; font-weight: 500; }
.modal-detail-value { color: #334155; font-weight: 600; }

.modal-price-section {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #f1f5f9;
}
.modal-price { font-size: 26px; font-weight: 800; color: var(--brand-primary); }
.modal-compare-price { font-size: 15px; color: #94a3b8; text-decoration: line-through; }

/* ── Quantity Selector ── */
.qty-section { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; }
.qty-label { font-size: 13px; font-weight: 600; color: #64748b; }
.qty-control {
  display: inline-flex; align-items: center; border: 1px solid #e2e8f0;
  border-radius: 12px; overflow: hidden; background: #f8fafc;
}
.qty-control button {
  width: 42px; height: 42px; border: 0; background: transparent;
  font-size: 18px; font-weight: 600; color: var(--brand-primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-control button:hover { background: #e2e8f0; }
.qty-control .qty-value {
  width: 48px; text-align: center; font-size: 16px; font-weight: 700;
  color: #1e293b; border: 0; background: transparent; -moz-appearance: textfield;
}
.qty-control .qty-value::-webkit-inner-spin-button,
.qty-control .qty-value::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Add to Cart Button (modal) ── */
.modal-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 20px; padding: 14px;
  background: var(--brand-secondary); color: #fff; border: 0; border-radius: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .1s;
}
.modal-add-cart:hover { opacity: .9; }
.modal-add-cart:active { transform: scale(.98); }
.modal-add-cart svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--brand-primary); color: #fff; padding: 12px 24px;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); z-index: 2000;
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════
   PROFILE / PEDIDOS FORMS
   ══════════════════════════════════════ */
.profile-form {
  display: grid; gap: 14px; max-width: 480px; margin-top: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-size: 13px; font-weight: 600; color: #475569;
}
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; background: var(--brand-secondary); color: #fff;
  border: 0; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.btn-primary:hover { opacity: .9; }
.profile-msg {
  font-size: 13px; font-weight: 600; color: #16a34a; margin-top: 4px;
}
.profile-msg.error { color: #dc2626; }
.pedidos-list { margin-top: 16px; display: grid; gap: 12px; }

/* ── Generic ── */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; }
.muted { color: #64748b; font-size: 13px; }
.price { font-weight: 700; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
button, .btn { border: 0; border-radius: 10px; background: var(--brand-secondary); color: #fff; padding: 10px 12px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.btn.secondary { background: var(--brand-primary); }
form { display: grid; gap: 10px; }
input, select, textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 11px 14px; font-size: 14px; background: #fff;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-secondary); }
.list { display: grid; gap: 10px; }
.order-item { border: 1px solid #f1f5f9; border-radius: 10px; padding: 10px; }
.hidden { display: none !important; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 860px) {
  .info-strip { grid-template-columns: repeat(2, 1fr); margin: -16px 8px 16px; }
  .info-item { padding: 10px 12px; }
  .info-item:nth-child(2) { border-right: none; }
  .info-item:nth-child(1), .info-item:nth-child(2) { border-bottom: 1px solid #f1f5f9; }
  .hero-cover { height: 160px; }
  .hero-logo { width: 52px; height: 52px; border-radius: 12px; }
  .hero-name { font-size: 18px; }
  .hero-brand-row { padding: 12px 14px; gap: 10px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
  .product-body { padding: 10px 12px 14px; }
  .product h3 { font-size: 14px; }
  .product .price { font-size: 16px; }
  .product .quick-add { padding: 8px; font-size: 12px; }
}

@media (max-width: 480px) {
  .info-item svg { display: none; }
  .info-item { gap: 0; }
  .hero-brand-row { flex-wrap: wrap; }
  .hero-status { margin-left: auto; }
}

@media (min-width: 861px) {
  .bottom-nav { max-width: 420px; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; }
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 20px; }
}

/* ══════════════════════════════════════
   TOPBAR BACK BUTTON
   ══════════════════════════════════════ */
.topbar-back {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: #f1f5f9; color: var(--brand-primary);
  text-decoration: none; transition: background .2s; flex-shrink: 0;
}
.topbar-back:hover { background: #e2e8f0; }
.topbar-back svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════
   ALERT MESSAGE
   ══════════════════════════════════════ */
.alert-msg {
  color: #64748b; font-size: 13px; text-align: center;
  min-height: 0; transition: all .2s;
}
.alert-msg:empty { display: none; }
.alert-msg.alert-error {
  color: #dc2626; background: #fef2f2;
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
}

/* ══════════════════════════════════════
   CHECKOUT — EMPTY STATE
   ══════════════════════════════════════ */
.checkout-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px; gap: 12px;
}
.checkout-empty-icon { width: 72px; height: 72px; color: #cbd5e1; }
.checkout-empty h3 { font-size: 20px; font-weight: 700; color: #334155; margin: 0; }
.checkout-empty p { font-size: 14px; color: #94a3b8; max-width: 300px; }
.checkout-empty .btn-primary { margin-top: 8px; display: inline-flex; text-decoration: none; }

/* ══════════════════════════════════════
   CHECKOUT — LAYOUT
   ══════════════════════════════════════ */
.ck-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
  .ck-layout { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

/* ── Cards ── */
.ck-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  overflow: hidden;
}
.ck-col-items .ck-card + .ck-card { margin-top: 12px; }
.ck-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid #f1f5f9;
}
.ck-card-header svg { width: 20px; height: 20px; color: var(--brand-secondary); flex-shrink: 0; }
.ck-card-header h2 { font-size: 16px; font-weight: 700; color: #1e293b; flex: 1; margin: 0; }
.ck-badge {
  background: var(--brand-secondary); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 99px; padding: 0 6px;
}

/* ── Cart Items ── */
.ck-items { padding: 0; }
.ck-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid #f8fafc;
  transition: background .15s;
}
.ck-item:last-child { border-bottom: none; }
.ck-item:hover { background: #fafbfc; }
.ck-item-img {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  background: #f1f5f9; border: 1px solid #e2e8f0; flex-shrink: 0;
}
.ck-item-img--broken { opacity: .3; }
.ck-item-img--placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 10px;
  background: #f1f5f9; border: 1px solid #e2e8f0; flex-shrink: 0;
}
.ck-item-img--placeholder svg { width: 24px; height: 24px; color: #cbd5e1; }
.ck-item-body { flex: 1; min-width: 0; }
.ck-item-name {
  font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
}
.ck-item-unit { font-size: 12px; color: #94a3b8; margin-top: 2px; display: block; }
.ck-item-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

/* ── Inline Qty Control ── */
.ck-qty {
  display: inline-flex; align-items: center;
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden;
  background: #f8fafc;
}
.ck-qty button {
  width: 32px; height: 32px; border: 0; background: transparent;
  font-size: 16px; font-weight: 700; color: var(--brand-primary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: background .15s;
}
.ck-qty button:hover { background: #e2e8f0; }
.ck-qty span {
  width: 32px; text-align: center; font-size: 14px; font-weight: 700;
  color: #1e293b;
}
.ck-item-line {
  font-size: 14px; font-weight: 700; color: var(--brand-primary);
  min-width: 72px; text-align: right;
}
.ck-item-remove {
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: 0; color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s, background .15s; padding: 0;
}
.ck-item-remove:hover { color: #ef4444; background: #fef2f2; }
.ck-item-remove svg { width: 16px; height: 16px; }

/* ── Summary ── */
.ck-summary { padding: 16px 20px; }
.ck-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 14px; color: #64748b;
}
.ck-total {
  padding-top: 12px; margin-top: 8px;
  border-top: 2px solid #e2e8f0;
  font-size: 20px; font-weight: 800; color: #1e293b;
}

/* ── Checkout Form ── */
.ck-form { padding: 20px; display: grid; gap: 14px; }
.ck-form .form-group { display: flex; flex-direction: column; gap: 4px; }
.ck-form .form-group label {
  font-size: 12px; font-weight: 600; color: #475569;
  text-transform: uppercase; letter-spacing: .3px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── Submit Button ── */
.ck-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; margin-top: 6px;
  background: var(--brand-secondary); color: #fff; border: 0;
  border-radius: 14px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: opacity .2s, transform .1s;
}
.ck-submit:hover { opacity: .9; }
.ck-submit:active { transform: scale(.98); }
.ck-submit:disabled { opacity: .6; cursor: not-allowed; }
.ck-submit-total {
  background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
}

/* ══════════════════════════════════════
   MODAL SUBTOTAL PREVIEW
   ══════════════════════════════════════ */
.modal-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding: 14px 16px;
  background: #f0f9ff; border-radius: 12px;
  border: 1px solid #e0f2fe;
}
.modal-subtotal-label { font-size: 14px; font-weight: 600; color: #64748b; }
.modal-subtotal-value { font-size: 22px; font-weight: 800; color: var(--brand-primary); }

/* ══════════════════════════════════════
   RESPONSIVE CHECKOUT
   ══════════════════════════════════════ */
@media (max-width: 767px) {
  .ck-item { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .ck-item-img { width: 48px; height: 48px; border-radius: 8px; }
  .ck-item-img--placeholder { width: 48px; height: 48px; border-radius: 8px; }
  .ck-item-body { flex: 1; min-width: calc(100% - 72px); }
  .ck-item-actions { width: 100%; justify-content: space-between; padding-left: 58px; }
  .ck-card-header { padding: 14px 16px; }
  .ck-form { padding: 16px; }
  .ck-summary { padding: 14px 16px; }
  .ck-total { font-size: 18px; }
}
