/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fdf7f8;
  --white: #ffffff;
  --pink-50: #fef0f4;
  --pink-100: #fce3ec;
  --pink-200: #f8c5d8;
  --pink-300: #f099ba;
  --rose: #d4698a;
  --rose-deep: #a83d62;
  --rose-dark: #6b1f3a;
  --text: #2a1018;
  --text-muted: #8a5166;
  --border: #f0dce4;
}

body {
  background: var(--bg);
  font-family: 'Jost', sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
}

/* ── Shell ── */
.shell {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border-radius: 36px;
  box-shadow: 0 20px 80px rgba(160,60,90,0.18);
  overflow: hidden;
  position: relative;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500; color: var(--rose-dark); line-height: 1; }
.logo em { display: block; font-style: normal; font-weight: 300; font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rose); margin-top: 3px; }
.nav-pill { font-size: 11px; font-weight: 500; letter-spacing: 0.5px; color: var(--rose-deep); background: var(--pink-100); border: 1px solid var(--pink-200); border-radius: 20px; padding: 7px 16px; cursor: pointer; font-family: 'Jost', sans-serif; text-decoration: none; transition: background .2s; }
.nav-pill:hover { background: var(--pink-200); }

/* ── Hero ── */
.hero { background: var(--pink-50); }
.hero-banner { background: linear-gradient(160deg,#fde8f0,#f8c5d8 80%); padding: 28px 24px 24px; }
.hero-banner-sub { font-size: 9px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 8px; }
.hero-banner-nome { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 400; line-height: 1; color: var(--rose-dark); }
.hero-banner-sobrenome { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; font-style: italic; color: var(--rose); margin-bottom: 12px; }
.hero-banner-linha { width: 36px; height: 1.5px; background: var(--pink-300); margin-bottom: 10px; }
.hero-banner-cidade { font-size: 11px; color: var(--text-muted); }
.hero-body { padding: 20px 24px 28px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--pink-200); border-radius: 20px; padding: 5px 14px; font-size: 11px; font-weight: 500; color: var(--rose-deep); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 14px; }
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #52d082; flex-shrink: 0; }
.hero-badge.fechado::before { background: #e74c3c; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 400; line-height: 1.15; color: var(--rose-dark); margin-bottom: 10px; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero-sub { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; }

/* ── Buttons ── */
.btn-primary { display: block; width: 100%; background: var(--rose-dark); color: #fff; border: none; border-radius: 14px; padding: 15px 32px; font-size: 14px; font-weight: 500; letter-spacing: .5px; font-family: 'Jost', sans-serif; cursor: pointer; transition: background .25s; }
.btn-primary:hover { background: var(--rose-deep); }
.btn-pagseguro { display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 48px); margin: 20px 24px 0; background: #009c3b; color: #fff; border: none; border-radius: 16px; padding: 16px; font-size: 15px; font-weight: 600; font-family: 'Jost', sans-serif; cursor: pointer; transition: background .2s; }
.btn-pagseguro:hover { background: #007a2f; }
.btn-pagseguro:disabled { opacity: .6; cursor: not-allowed; }
.btn-close-modal { display: block; width: calc(100% - 48px); margin: 10px 24px 0; background: transparent; border: 1px solid var(--border); border-radius: 16px; padding: 12px; font-size: 13px; font-weight: 400; color: var(--text-muted); font-family: 'Jost', sans-serif; cursor: pointer; transition: background .2s; }
.btn-close-modal:hover { background: var(--pink-50); }

/* ── Info card ── */
.info-card { margin: 20px 20px 8px; background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; }
.info-icon { width: 44px; height: 44px; background: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border); }
.info-icon svg { width: 18px; height: 18px; }
.info-label { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 2px; }
.info-val { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; color: var(--rose-dark); line-height: 1.1; }
.info-sub { font-size: 12px; color: var(--rose); margin-top: 3px; }

/* ── Badges ── */
.badges { display: flex; gap: 8px; padding: 12px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.badges::-webkit-scrollbar { display: none; }
.badge-chip { display: flex; align-items: center; gap: 5px; background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: 20px; padding: 6px 12px; white-space: nowrap; font-size: 11px; color: var(--rose-deep); flex-shrink: 0; }

/* ── Section head ── */
.section-head { padding: 24px 24px 6px; }
.section-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--rose-dark); }
.section-head h2 em { font-style: italic; color: var(--rose); }
.section-head p { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 300; }

/* ── Cards ── */
.products { padding: 12px 20px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 4px 32px rgba(180,80,110,.12); transform: translateY(-2px); }
.card-img { width: 100%; height: 176px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img-ninho  { background: linear-gradient(145deg,#fff8ee,#ffe5c4 60%,#ffd4a0); }
.card-img-mousse { background: linear-gradient(145deg,#f0ece8,#d9cdc5 60%,#c4b4a8); }
.card-img-pink   { background: linear-gradient(145deg,#fde8f0,#f8bbd9 60%,#f090c0); }
.card-img-brigadeiro { background: linear-gradient(145deg,#fdf2e0,#f5d58c 60%,#e8b84b); }
.card-img-morango { background: linear-gradient(145deg,#fff0f0,#ffbbbb 60%,#ff8080); }
.stock-pill { position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,.88); border-radius: 10px; padding: 3px 10px; font-size: 10px; font-weight: 500; color: var(--text-muted); border: 1px solid var(--border); }
.stock-pill.esgotado { color: #c0392b; background: rgba(255,220,220,.95); }
.card-action { position: absolute; top: 12px; right: 12px; z-index: 2; }
.btn-add { background: var(--rose-dark); color: #fff; border: none; border-radius: 20px; padding: 7px 16px; font-size: 12px; font-weight: 500; font-family: 'Jost', sans-serif; cursor: pointer; transition: background .2s; }
.btn-add:hover { background: var(--rose-deep); }
.btn-add:disabled { background: #ccc; cursor: not-allowed; }
.qty-ctrl { display: none; align-items: center; background: var(--white); border: 1px solid var(--pink-200); border-radius: 20px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; background: transparent; border: none; color: var(--rose-deep); font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-btn:hover { background: var(--pink-100); }
.qty-num { font-size: 14px; font-weight: 500; color: var(--rose-dark); min-width: 24px; text-align: center; }
.card-body { padding: 16px 18px 18px; }
.card-name { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.card-desc { font-size: 12px; font-weight: 300; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--rose); }
.card-price small { font-size: 12px; color: var(--text-muted); }

/* ── Promo ── */
.promo { margin: 4px 20px 20px; background: linear-gradient(135deg,var(--rose-dark),var(--rose-deep)); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.promo-icon { font-size: 28px; }
.promo-title { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 3px; }
.promo-sub { font-size: 11px; color: rgba(255,255,255,.75); }

/* ── About ── */
.about { background: var(--pink-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 24px; text-align: center; }
.about-quote { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; font-weight: 300; color: var(--rose-dark); line-height: 1.5; margin-bottom: 12px; }
.about-sig { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rose); }

/* ── Cart bar ── */
.cart-bar { position: sticky; bottom: 20px; margin: 20px 20px 24px; background: var(--rose-dark); border-radius: 18px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; box-shadow: 0 8px 32px rgba(107,31,58,.35); }
.cart-bar:active { transform: scale(.98); }
.cart-left { display: flex; align-items: center; gap: 12px; }
.cart-count { background: #fff; color: var(--rose-dark); border-radius: 10px; width: 28px; height: 28px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cart-label { font-size: 14px; font-weight: 500; color: #fff; }
.cart-total { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; color: #fff; }

/* ── Footer ── */
.footer { padding: 20px 24px 28px; text-align: center; border-top: 1px solid var(--border); }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--rose-dark); margin-bottom: 6px; }
.footer-sub { font-size: 11px; color: var(--text-muted); }
.footer-whats { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--rose); text-decoration: none; }

/* ── Overlay & Modal ── */
.overlay { position: fixed; inset: 0; background: rgba(42,16,24,.55); backdrop-filter: blur(4px); z-index: 500; display: none; align-items: flex-end; justify-content: center; }
.overlay.open { display: flex; }
.checkout-modal { background: var(--white); border-radius: 28px 28px 0 0; width: 100%; max-width: 390px; max-height: 92vh; overflow-y: auto; padding: 0 0 32px; }
.modal-handle { width: 36px; height: 4px; background: var(--pink-200); border-radius: 2px; margin: 12px auto 0; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--rose-dark); }
.modal-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-items { padding: 16px 24px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pink-50); }
.cart-item:last-child { border-bottom: none; }
.cart-item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink-300); flex-shrink: 0; }
.cart-item-name { flex: 1; font-size: 13px; color: var(--text); }
.cart-item-qty { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--rose); }
.cart-summary { margin: 0 24px; background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: 14px; padding: 14px 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.summary-row:last-child { margin-bottom: 0; font-weight: 500; font-size: 15px; color: var(--rose-dark); }
.summary-total { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--rose-dark); }
.promo-check { margin: 12px 24px 0; display: flex; align-items: center; gap: 8px; }
.promo-check input { accent-color: var(--rose-deep); width: 16px; height: 16px; cursor: pointer; }
.promo-check label { font-size: 12px; color: var(--rose-deep); cursor: pointer; }

/* ── Form ── */
.checkout-form { padding: 16px 24px 0; }
.form-section-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); margin-bottom: 12px; margin-top: 16px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 11px; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-family: 'Jost', sans-serif; color: var(--text); background: var(--white); outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--rose); }
.form-group textarea { resize: none; height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-error { font-size: 11px; color: #c0392b; margin-top: 4px; display: none; }
.form-group input.invalid { border-color: #e74c3c; }

/* ── Entrega selector ── */
.entrega-selector { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.entrega-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.entrega-opt:hover { background: var(--pink-50); }
.entrega-opt.active { border-color: var(--rose-deep); background: var(--pink-50); }
.entrega-icon { font-size: 22px; flex-shrink: 0; }
.entrega-opt-title { font-size: 13px; font-weight: 500; color: var(--text); }
.entrega-opt-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.entrega-opt.active .entrega-opt-title { color: var(--rose-dark); }

/* ── Admin específico ── */
.admin-mini-input { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-family: 'Jost', sans-serif; color: var(--text); outline: none; width: 100%; }
.admin-mini-input:focus { border-color: var(--rose); }

@media (max-width: 860px) {
  .desktop-checkout { display: none !important; }
  .shell { max-width: 100% !important; border-radius: 0 !important; }
}