/* ── Reset & Tokens ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red:    #C8151B;
  --amber:  #E67E22;
  --green:  #27AE60;
  --cream:  #FAF7F4;
  --card:   #ffffff;
  --text:   #1a1a1a;
  --muted:  #777;
  --border: #ececec;
  --font-h: 'Montserrat', sans-serif;
  --font-b: 'Lato', sans-serif;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
}
html, body { height: 100%; }
body { background: var(--cream); font-family: var(--font-b); -webkit-font-smoothing: antialiased; color: var(--text); }
::-webkit-scrollbar { display: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input  { font-family: inherit; outline: none; }
input:focus { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(200,21,27,0.1) !important; }
[x-cloak] { display: none !important; }

/* ═══════════════════════════════════════════════════════════ */
/*  CATALOG                                                    */
/* ═══════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────── */
.page      { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.spacer-pb { padding-bottom: 88px; }

/* ── Header ──────────────────────────────────────────────── */
.header {
  background: var(--red);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
}
.header-logo { height: 52px; border-radius: 8px; object-fit: contain; }
.cart-btn {
  background: rgba(255,255,255,0.18); border-radius: 12px;
  padding: 8px 14px; color: white;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-h); font-weight: 700; font-size: 14px;
}
.cart-badge {
  background: var(--amber); border-radius: 20px;
  padding: 2px 8px; font-size: 13px; font-weight: 800;
}

/* ── Banner ──────────────────────────────────────────────── */
.banner-closed { background: #b00020 !important; color: white !important; }
.banner-delivery { background: #fff3e0; color: #b25800; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.banner {
  background: var(--amber); text-align: center;
  padding: 8px 16px; font-family: var(--font-h);
  font-weight: 700; font-size: 12px; color: white;
}

/* ── Search ──────────────────────────────────────────────── */
.search-wrap { margin: 16px 0 12px; position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: #aaa; pointer-events: none; }
.search-input {
  width: 100%; padding: 12px 14px 12px 40px; border-radius: 14px;
  border: none; background: white; font-size: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

/* ── Pills ───────────────────────────────────────────────── */
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 99px;
  font-family: var(--font-h); font-weight: 700; font-size: 13px;
  background: white; color: #555;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all .18s; white-space: nowrap; flex-shrink: 0;
}
.pill-icon { width: 16px; height: 16px; flex-shrink: 0; }
.pill.active, .pill:hover { background: var(--red); color: white; box-shadow: 0 2px 8px rgba(200,21,27,0.3); }

/* ── Section heading ─────────────────────────────────────── */
.section-head {
  margin: 18px 0 12px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.section-head h2 { font-family: var(--font-h); font-weight: 800; font-size: 20px; }
.head-title { display: inline-flex; align-items: center; gap: 8px; }
.head-icon { width: 22px; height: 22px; flex-shrink: 0; }
.section-head > span { font-size: 13px; color: #aaa; }

/* ── Product Grid ────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; }

/* ── Product Card ────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card:active { transform: scale(0.98); }
.card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-family: var(--font-h); font-weight: 700; font-size: 14px; line-height: 1.3; }
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.4; flex: 1; }
.card-footer { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: var(--font-h); font-weight: 800; font-size: 15px; color: var(--red); }
.add-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: white; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Product image placeholder ───────────────────────────── */
.img-box {
  position: relative; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
}
.img-box .img-emoji { font-size: 2.4em; line-height: 1; }
.img-box .img-label { font-size: 9px; color: rgba(255,255,255,0.65); font-family: var(--font-b); }
.img-stripe {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 6px, rgba(255,255,255,0.12) 6px, rgba(255,255,255,0.12) 12px
  );
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--amber); color: white;
  font-size: 10px; font-weight: 700; font-family: var(--font-h);
  padding: 2px 7px; border-radius: 20px;
  letter-spacing: .5px; text-transform: uppercase;
}

/* ── Sticky Cart Bar ─────────────────────────────────────── */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  padding: 12px 16px; display: flex; justify-content: center;
  pointer-events: none;
}
.cart-bar-btn {
  width: 100%; max-width: 480px; pointer-events: all;
  background: var(--red); color: white; border-radius: 16px;
  padding: 14px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 24px rgba(200,21,27,0.45);
  font-family: var(--font-h);
}
.cart-bar-count {
  background: rgba(255,255,255,0.25); border-radius: 8px;
  padding: 2px 10px; font-weight: 800; font-size: 15px;
}
.cart-bar-label { font-weight: 700; font-size: 15px; }
.cart-bar-total { font-weight: 800; font-size: 15px; }

/* ── Modal sheet ─────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  background: white; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.sheet-header {
  padding: 20px 20px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.sheet-header h2 { font-family: var(--font-h); font-weight: 800; font-size: 18px; }
.sheet-scroll { overflow-y: auto; flex: 1; padding: 16px 20px; }
.sheet-footer {
  padding: 16px 20px 28px; border-top: 1px solid var(--border);
  background: white; flex-shrink: 0;
}
.close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.06); color: #333;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
}

/* ── Size selector ───────────────────────────────────────── */
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size-btn {
  border: 2px solid var(--border); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; background: white;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .15s;
}
.size-btn.active { border-color: var(--red); background: #FFF5F5; }
.size-btn .size-name { font-family: var(--font-h); font-weight: 700; font-size: 13px; color: #333; }
.size-btn.active .size-name { color: var(--red); }
.size-btn .size-price { font-size: 13px; color: #888; font-weight: 600; }
.size-btn.active .size-price { color: var(--red); }

/* ── Toggle ──────────────────────────────────────────────── */
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toggle-track {
  width: 44px; height: 24px; border-radius: 12px;
  background: #ddd; position: relative;
  transition: background .2s; cursor: pointer; border: none;
}
.toggle-track.on { background: var(--red); }
.toggle-thumb {
  position: absolute; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left .2s;
  left: 2px;
}
.toggle-track.on .toggle-thumb { left: 22px; }

/* ── Half-half picker ────────────────────────────────────── */
.half-note { font-size: 12px; color: #888; margin: 0 0 10px; line-height: 1.5; }
.half-search { width: 100%; padding: 9px 14px; border-radius: 10px; border: 1.5px solid #e0e0e0; font-size: 13px; margin-bottom: 10px; }
.half-list { max-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.half-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  border: 2px solid var(--border); background: white;
  cursor: pointer; text-align: left;
  transition: all .15s;
}
.half-item.selected { border-color: var(--red); background: #FFF5F5; }
.half-item-name { font-family: var(--font-h); font-weight: 700; font-size: 13px; color: #222; }
.half-item.selected .half-item-name { color: var(--red); }
.half-item-price { font-size: 11px; color: #888; }

/* ── Qty control ─────────────────────────────────────────── */
.qty { display: flex; align-items: center; gap: 10px; }
.qty-minus, .qty-plus {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; transition: all .15s;
}
.qty-minus { border: 2px solid var(--red); color: var(--red); background: white; }
.qty-minus:disabled { border-color: #ddd; color: #ccc; cursor: not-allowed; }
.qty-plus  { background: var(--red); color: white; }
.qty-num   { font-family: var(--font-h); font-weight: 700; font-size: 16px; min-width: 20px; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  width: 100%; padding: 15px; border-radius: 14px;
  background: var(--red); color: white;
  font-family: var(--font-h); font-weight: 800; font-size: 15px;
  transition: background .15s;
}
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }

/* ── Cart items ──────────────────────────────────────────── */
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-h); font-weight: 700; font-size: 13px; line-height: 1.3; }
.cart-item-size { font-size: 11px; color: #999; margin-top: 2px; }
.cart-item-price { font-family: var(--font-h); font-weight: 800; font-size: 14px; color: var(--red); margin-top: 4px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 12px; text-align: center; }
.cart-total-row { display: flex; justify-content: space-between; padding: 12px 0 0; margin-top: 4px; }

/* ── Checkout form ───────────────────────────────────────── */
.form-label { font-size: 12px; color: #555; display: block; margin-bottom: 5px; }
.form-input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #e0e0e0; font-size: 14px; }
.checkout-summary-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f5f5f5; }
.cart-breakdown { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee; }
.cart-breakdown-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; padding: 4px 0; }
.secure-box { background: #FFF5F5; border-radius: 12px; padding: 12px 14px; margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: #666; line-height: 1.5; }
.section-label { font-family: var(--font-h); font-weight: 700; font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }

/* ── Empty state ─────────────────────────────────────────── */
.empty { text-align: center; padding: 60px 20px; color: #aaa; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-family: var(--font-h); font-weight: 700; font-size: 16px; color: #333; }

/* ── Transitions ─────────────────────────────────────────── */
.fade-enter-active, .fade-leave-active { transition: opacity .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ═══════════════════════════════════════════════════════════ */
/*  CONFIRM PURCHASE                                           */
/* ═══════════════════════════════════════════════════════════ */
.confirm-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
}
.confirm-card {
  background: white; border-radius: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  width: 100%; max-width: 420px;
  overflow: hidden;
  animation: fadeUp 0.4s ease both;
}

/* ── Header strip ─────────────── */
.confirm-card-top {
  background: var(--green); padding: 36px 28px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.success-ring {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.success-ring i { font-size: 44px; color: white; }
@keyframes pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.confirm-card-top h1 {
  font-family: var(--font-h); font-weight: 900; font-size: 22px;
  color: white; line-height: 1.2;
}
.confirm-card-top p { font-size: 15px; color: rgba(255,255,255,0.88); line-height: 1.6; }

/* ── Body ─────────────────────── */
.confirm-card-body { padding: 24px 28px; }

.order-id { text-align: center; margin-bottom: 20px; }
.order-id .label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.order-id .number { font-family: var(--font-h); font-weight: 900; font-size: 28px; color: var(--red); margin-top: 2px; }

.info-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-top: 1px solid #F0F0F0;
}
.info-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon i { font-size: 20px; }
.info-icon.green { background: #DCFCE7; color: var(--green); }
.info-icon.amber { background: #FEF3C7; color: var(--amber); }
.info-icon.red   { background: #FFF0F0; color: var(--red); }
.info-text strong { display: block; font-weight: 700; font-size: 14px; color: #1a1a1a; margin-bottom: 2px; font-family: var(--font-h); }
.info-text span { font-size: 13px; color: #666; line-height: 1.5; }

.divider {
  margin: 20px 0; border: none;
  border-top: 2px dashed #E5E7EB;
}

.support-label {
  text-align: center; font-size: 13px; color: #888;
  margin-bottom: 14px;
}
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px; border-radius: 14px; border: none;
  background: #25D366; color: white; cursor: pointer;
  font-family: var(--font-h); font-weight: 800; font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-whatsapp:hover { background: #20BD5C; }
.btn-whatsapp:active { transform: scale(0.98); }
.btn-whatsapp i { font-size: 22px; }

.btn-back {
  display: block; text-align: center; margin-top: 14px;
  font-size: 13px; color: #aaa; text-decoration: none;
  font-weight: 600;
}
.btn-back:hover { color: var(--red); }

/* ── Logo footer ──────────────── */
.logo-wrap {
  margin-top: 28px; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.logo-wrap img { height: 40px; border-radius: 6px; opacity: 0.8; }
.logo-wrap span { font-size: 11px; color: #bbb; }

/* ── Fade-in animation ────────── */
@keyframes fadeUp {
  0%   { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
