:root {
  --pink: #e3166f;
  --pink-600: #c4125f;
  --pink-700: #a00e4d;
  --pink-200: #ffc2dc;
  --pink-100: #ffe3ef;
  --pink-50: #fff4f8;
  --ink: #26222b;
  --ink-2: #4a4452;
  --muted: #7b7383;
  --line: #f0e3ea;
  --soft: #faf6f8;
  --bg: #ffffff;
  --green: #1fa855;
  --green-600: #178b46;
  --amber: #b97800;
  --red: #d33447;
  --blue: #2f6fd6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(160, 14, 77, 0.14);
  --shadow-sm: 0 2px 12px rgba(38, 34, 43, 0.06);
  --wrap: 1180px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { width: 1.25em; height: 1.25em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pink-600); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--pink-200); outline-offset: 2px; }

/* ---------- botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px;
  background: var(--pink); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s;
  min-height: 46px;
}
.btn:hover { background: var(--pink-600); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.btn-light { background: #fff; color: var(--pink-700); }
.btn-light:hover { background: var(--pink-50); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-soft { background: var(--pink-50); color: var(--pink-700); }
.btn-soft:hover { background: var(--pink-100); }
.btn-wa { background: var(--green); }
.btn-wa:hover { background: var(--green-600); }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid #f6d2d7; }
.btn-danger:hover { background: #fff3f4; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 0; background: var(--soft); color: var(--ink-2);
}
.icon-btn:hover { background: var(--pink-50); color: var(--pink-700); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-50);
}
.form-error {
  background: #fff1f3; color: var(--red); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; margin-bottom: 12px;
}

/* ---------- marca */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pink); min-width: 0; }
.brand-logo { display: block; height: 62px; width: auto; max-width: 200px; object-fit: contain; }

/* ---------- topo */
.announce {
  background: var(--pink); color: #fff; text-align: center; font-size: 13px; font-weight: 500;
  padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px;
  padding: 0 16px; border: 1.5px solid transparent; max-width: 520px; width: 100%; justify-self: center;
}
.search:focus-within { border-color: var(--pink); background: #fff; }
.search svg { color: var(--muted); }
.search input { border: 0; background: transparent; padding: 11px 0; width: 100%; outline: none; font-size: 15px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0;
  background: var(--pink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600;
}
.cart-btn:hover { background: var(--pink-600); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn .badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px;
  background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px;
  border: 2px solid #fff;
}
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* ---------- hero */
.hero { padding-top: 20px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #ff4fb0 0%, var(--pink) 45%, var(--pink-700) 100%);
  padding: 44px 40px; display: flex; align-items: center; min-height: 260px;
}
.hero-card > div { position: relative; z-index: 1; max-width: 560px; }
.hero-card .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255, 255, 255, .18); padding: 6px 12px; border-radius: 999px; margin: 0 0 14px;
}
.hero-card h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; letter-spacing: -1px; }
.hero-card p.sub { font-size: clamp(15px, 1.6vw, 18px); opacity: .92; margin: 12px 0 22px; }
.hero-flower { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 360px; height: 360px; color: rgba(255, 255, 255, .16); }

/* ---------- categorias */
.catalog { padding-top: 28px; padding-bottom: 40px; scroll-margin-top: 80px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.catalog-head h2 { font-size: 22px; }
.catalog-head span { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip:hover { border-color: var(--pink-200); color: var(--pink-700); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- produtos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border: 0; padding: 0;
  background: var(--pink-50); overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--pink-200); }
.placeholder svg { width: 45%; height: 45%; }
.tag {
  position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.tag.dark { background: rgba(38, 34, 43, .82); }
.tag.right { left: auto; right: 10px; }
.card.sold .card-img img { filter: grayscale(.7); opacity: .6; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 {
  font-size: 15px; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; cursor: pointer;
}
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 18px; color: var(--pink-700); font-weight: 700; }
.price s { color: var(--muted); font-size: 13px; }
.card .add { margin-top: auto; }

.empty { text-align: center; color: var(--muted); padding: 50px 16px; }
.empty .placeholder { width: 90px; height: 90px; margin: 0 auto 12px; }
.skeleton { background: linear-gradient(90deg, var(--soft), var(--pink-50), var(--soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); aspect-ratio: .78; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- como funciona */
.how { padding-bottom: 50px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-item { background: var(--pink-50); border-radius: var(--radius); padding: 22px; }
.how-item .n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: 12px;
}
.how-item h3 { font-size: 16px; margin-bottom: 4px; }
.how-item p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ---------- rodapé */
.site-footer { background: var(--ink); color: #e9e3ec; padding: 36px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .brand-logo { height: 64px; max-width: 220px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .08); padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.footer-links a:hover { background: rgba(255, 255, 255, .16); }
.footer-copy { width: 100%; font-size: 12px; color: #a59cab; margin: 0; }

/* ---------- modais e gaveta */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(38, 34, 43, .5);
  display: flex; justify-content: center; align-items: center; padding: 20px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; background: #fff; border-radius: 24px; width: 100%; max-width: 940px;
  max-height: calc(100dvh - 40px); overflow: auto; box-shadow: var(--shadow); animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }

.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; }
.gallery { position: relative; background: var(--pink-50); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; }
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .7); transition: width .2s, background .2s; }
.dots span.on { width: 20px; background: var(--pink); }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #fff; }
.thumbs button { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--pink-50); }
.thumbs button.on { border-color: var(--pink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); }
.slide-nav.prev { left: 10px; } .slide-nav.next { right: 10px; }

.product-info { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.product-info .cat { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--pink); }
.product-info h2 { font-size: 24px; font-weight: 600; padding-right: 40px; }
.product-info .price strong { font-size: 26px; }
.product-info .desc { white-space: pre-line; color: var(--ink-2); font-size: 15px; margin: 0; }
.opt-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options .chip.active { background: var(--pink-50); color: var(--pink-700); border-color: var(--pink); }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.buy-row .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 46px; }
.stepper button { width: 40px; height: 100%; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; border-radius: 999px; }
.stepper button:hover { color: var(--pink); }
.stepper span { min-width: 26px; text-align: center; font-weight: 600; }
.stepper.sm { height: 36px; }
.stepper.sm button { width: 32px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.hint.err { color: var(--red); }

.drawer-overlay { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer {
  width: min(460px, 100%); height: 100dvh; background: #fff; display: flex; flex-direction: column;
  animation: slide .25s ease; box-shadow: var(--shadow);
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; flex: 1; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.total-row strong { font-size: 22px; color: var(--ink); }

.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line:has(+ .total-row) { border-bottom: 1px solid var(--line); }
.line-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--pink-50); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-size: 14px; font-weight: 500; }
.line-opt { font-size: 12px; color: var(--muted); }
.line-price { font-size: 14px; font-weight: 600; color: var(--pink-700); margin-top: 2px; }
.line-actions { display: grid; justify-items: end; gap: 6px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 2px; display: inline-flex; gap: 4px; align-items: center; }
.link-btn:hover { color: var(--red); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: block; text-align: center; padding: 12px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-weight: 500; font-size: 14px; cursor: pointer;
}
.seg input:checked + span { border-color: var(--pink); background: var(--pink-50); color: var(--pink-700); }
.seg input:focus-visible + span { outline: 3px solid var(--pink-200); }

.summary { background: var(--soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary div span:first-child { color: var(--ink-2); }

.done { text-align: center; padding: 14px 4px; }
.done-icon { width: 76px; height: 76px; border-radius: 50%; background: #e7f8ee; color: var(--green); display: grid; place-items: center; margin: 6px auto 14px; }
.done-icon svg { width: 40px; height: 40px; }
.done h3 { font-size: 22px; margin-bottom: 6px; }
.done p { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; text-align: left; }
.linkbox code { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-family: inherit; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  z-index: 100; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------- página do pedido */
.order-page { background: var(--soft); min-height: 100dvh; }
.order-top { background: #fff; border-bottom: 1px solid var(--line); }
.order-top .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
.order-main { max-width: 720px; margin: 0 auto; padding: 20px 16px 50px; display: grid; gap: 16px; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.panel h2 { font-size: 16px; margin-bottom: 12px; }
.order-hero { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.order-hero h1 { font-size: 26px; }
.order-hero p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-novo { background: var(--pink-50); color: var(--pink-700); }
.st-atendimento { background: #fff6e0; color: var(--amber); }
.st-pago { background: #e8f0ff; color: var(--blue); }
.st-entregue { background: #e7f8ee; color: var(--green-600); }
.st-cancelado { background: #f1eff2; color: var(--muted); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-line; word-break: break-word; }
.admin-banner { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.admin-banner a { color: var(--pink-200); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 200px; }
.center-msg { text-align: center; padding: 40px 20px; }
.center-msg .placeholder { width: 90px; height: 90px; margin: 0 auto 16px; }
.center-msg h1 { font-size: 22px; margin-bottom: 8px; }
.center-msg p { color: var(--ink-2); margin: 0 0 20px; }

/* ---------- celular */
@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .cart-btn .cart-label { display: none; }
  .cart-btn { padding: 10px 14px; }
  .brand-logo { height: 50px; }
  .hero { padding-top: 14px; }
  .hero-card { padding: 30px 22px; min-height: 0; border-radius: 22px; }
  .hero-flower { width: 220px; height: 220px; right: -70px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .card-body h3 { font-size: 14px; }
  .price strong { font-size: 16px; }
  .how-grid { grid-template-columns: 1fr; }
  .overlay:not(.drawer-overlay) { padding: 0; align-items: flex-end; }
  .sheet { border-radius: 22px 22px 0 0; max-height: 94dvh; }
  .product-layout { grid-template-columns: 1fr; }
  .product-info { padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
  .product-info h2 { font-size: 20px; padding-right: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
