:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --sand: #f1e9dc;
  --ink: #2b2340;
  --muted: #6e6680;
  --line: #e7dfd2;
  --primary: #6c4ab6;
  --primary-ink: #ffffff;
  --primary-dark: #563a96;
  --accent: #f26b38;
  --green: #25a55f;
  --danger: #c73a3a;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 35, 64, 0.06), 0 8px 24px rgba(43, 35, 64, 0.06);
  --rainbow: linear-gradient(90deg, #e94b3c, #f7931e, #ffc93c, #6cc04a, #3fa9f5, #6c4ab6);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }

.rainbow { height: 6px; background: var(--rainbow); }
.announce { background: var(--primary); color: #fff; text-align: center; font-size: 0.85rem; font-weight: 700; padding: 7px 16px; }

/* cabeçalho */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 92px; height: auto; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: var(--ink); outline: none; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--muted); cursor: pointer; }
.search svg, .cart-link svg { width: 22px; height: 22px; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.15); }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.cat-nav-row::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; }
.cat-nav a:hover { background: var(--sand); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #1e8c50; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* hero */
.hero { background: linear-gradient(180deg, var(--sand), var(--bg)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.vibe { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-art { position: relative; height: 380px; }
.hero-img { position: absolute; width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: #fff; border: 6px solid #fff; }
.hero-img-0 { left: 0; top: 30px; transform: rotate(-5deg); z-index: 2; }
.hero-img-1 { right: 0; top: 0; transform: rotate(4deg); }
.hero-img-2 { right: 12%; bottom: 0; width: 44%; transform: rotate(-2deg); z-index: 3; }

/* categorias */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cat:hover img { transform: scale(1.05); }
.cat span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; background: linear-gradient(transparent, rgba(30, 20, 50, 0.75)); }

/* grade de produtos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 35, 64, 0.08), 0 16px 32px rgba(43, 35, 64, 0.1); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-body .muted { font-size: 0.88rem; margin-bottom: 10px; }
.price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price s { color: var(--muted); font-size: 0.9rem; }
.price strong { font-size: 1.2rem; color: var(--primary); font-weight: 800; }
.price .from { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.empty { color: var(--muted); padding: 30px 0; }

/* passos */
.steps-section { background: var(--primary); color: #fff; padding: 48px 0; }
.steps-section h2 { text-align: center; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: rgba(255, 255, 255, 0.1); border-radius: var(--r); padding: 20px; }
.steps p { margin: 0; opacity: 0.9; }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.about { max-width: 760px; text-align: center; }
.about p { font-size: 1.08rem; color: var(--muted); }

/* página de produto */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.gallery-main { position: relative; background: #fff; border-radius: var(--r); aspect-ratio: 1; overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }
.buy h1 { margin-bottom: 4px; }
.buy .price strong { font-size: 1.7rem; }
.buy [data-price-box] { margin: 12px 0 18px; }
.buy-form { display: grid; gap: 14px; margin-bottom: 12px; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-weight: 800; margin-bottom: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.chip input:checked + span { border-color: var(--primary); background: rgba(108, 74, 182, 0.08); color: var(--primary); }
.chip input:focus-visible + span { outline: 3px solid rgba(108, 74, 182, 0.35); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 0.95rem; }
.field input, .field textarea, .field select, .qty input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus, .qty input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.15); }
.field textarea { resize: vertical; }
.note { background: #fff4e0; border-radius: var(--r-sm); padding: 10px 12px; font-size: 0.92rem; margin: 0; }
.qty-row { display: flex; gap: 12px; align-items: end; }
.qty { display: grid; gap: 6px; width: 90px; font-weight: 800; font-size: 0.95rem; }
.added { background: #e6f6ec; color: #166b3c; border-radius: var(--r-sm); padding: 10px 12px; margin: 0; font-weight: 700; }
.added a { color: inherit; }
.desc { margin-top: 20px; color: var(--muted); }
.perks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.perks li { padding-left: 26px; position: relative; font-size: 0.93rem; }
.perks li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--rainbow); }

/* carrinho */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr; gap: 14px; background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.cart-item img { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.cart-item h3 { margin: 0 0 2px; }
.cart-item h3 a { color: inherit; text-decoration: none; }
.cart-item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cart-item textarea { margin-top: 8px; }
.cart-item .unavailable { color: var(--danger); font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 34px; height: 34px; font-size: 1.1rem; font-weight: 800; cursor: pointer; color: var(--ink); }
.stepper span { min-width: 28px; text-align: center; font-weight: 800; }
.link-btn { border: 0; background: none; color: var(--danger); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; }
.photos { margin-top: 10px; }
.photo-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; color: var(--primary); cursor: pointer; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-list figure { margin: 0; position: relative; }
.photo-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-list button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.summary { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 150px; }
.summary .total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; margin: 6px 0 16px; }
.summary form { display: grid; gap: 12px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-error { background: #fdeaea; color: var(--danger); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 700; margin: 0; }

/* pedido */
.order-page { max-width: 760px; }
.success { background: var(--surface); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); text-align: center; margin-bottom: 24px; border-top: 6px solid transparent; border-image: var(--rainbow) 1; }
.order-status { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.status { padding: 4px 12px; border-radius: 999px; background: var(--sand); }
.status-producao, .status-pronto { background: #e6f6ec; color: #166b3c; }
.status-cancelado { background: #fdeaea; color: var(--danger); }
.order-items { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.order-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.order-item p { margin: 4px 0 0; font-size: 0.9rem; }
.order-item.total { font-weight: 800; border-bottom: 0; background: var(--sand); }

/* rodapé */
.site-footer { background: var(--ink); color: #d9d3e6; margin-top: 40px; padding-top: 40px; }
.site-footer h3 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 28px; }
.footer-logo { width: 100px; height: auto; background: #fff; border-radius: 14px; padding: 8px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-links svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 16px; padding-bottom: 24px; font-size: 0.85rem; color: #a59cb8; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); z-index: 30; }
.wa-float svg { width: 32px; height: 32px; }
.page-cart .wa-float { display: none; }

@media (max-width: 900px) {
  .hero-grid, .product-grid, .cart-layout { grid-template-columns: 1fr; }
  .hero-art { height: 300px; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-row { flex-wrap: wrap; gap: 10px; }
  .brand img { width: 74px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-link { margin-left: auto; }
  .section { padding: 28px 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .card-body h3 { font-size: 0.95rem; }
  .card-body .muted { display: none; }
  .price strong { font-size: 1.05rem; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 28px; padding-bottom: 28px; }
  .hero-art { height: 240px; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
}

/* personalizador */
.cz-box { border: 2px dashed rgba(108, 74, 182, 0.35); border-radius: var(--r); padding: 14px; background: rgba(108, 74, 182, 0.04); display: grid; gap: 8px; }
.cz-box p { margin: 0; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d9582a; }
.cz-result { display: flex; gap: 14px; align-items: center; }
.cz-result img { width: 110px; height: 110px; object-fit: contain; background: #f6f3fb; border-radius: var(--r-sm); border: 1px solid var(--line); }
.cz-result strong { display: block; color: #166b3c; }
.cz-lock, .cz-lock body { overflow: hidden; }
.cz-modal { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; }
.cz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cz-title { font-family: var(--font-head); font-weight: 600; text-align: center; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 16px; overflow: auto; max-width: 1100px; width: 100%; margin: 0 auto; }
.cz-stage { display: flex; justify-content: center; align-items: flex-start; min-width: 0; }
.cz-stage .canvas-container { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); touch-action: none; }
.cz-panel { display: grid; gap: 14px; align-content: start; }
.cz-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cz-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cz-group { background: var(--surface); border-radius: var(--r-sm); padding: 12px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.cz-label { font-weight: 800; font-size: 0.92rem; }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.12); cursor: pointer; padding: 0; }
.cz-sw.on { outline: 3px solid var(--primary); outline-offset: 2px; }
.cz-sel textarea, .cz-sel select { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; background: #fff; color: var(--ink); }
.cz-sel [data-cz-textopts] { display: grid; gap: 10px; }
.cz-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cz-actions button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; color: var(--ink); }
.cz-actions .cz-del { color: var(--danger); border-color: #f3c4c4; }
.cz-tip { font-size: 0.85rem; color: var(--muted); margin: 0; }
.cz-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 110; max-width: calc(100% - 32px); }
.tag-cz { position: absolute; right: 10px; bottom: 10px; background: rgba(108, 74, 182, 0.92); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.cart-design { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
@media (max-width: 800px) {
  .cz-body { grid-template-columns: 1fr; padding: 12px; }
  .cz-head .btn { padding: 8px 12px; }
}
.cz-edit { color: var(--primary); }
@media (max-width: 800px) {
  .cz-body { padding-top: 0; }
  .cz-stage { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 10px 0; margin: 0 -12px; }
}
