:root {
  --pink: #8f304c;
  --pink-deep: #6e243a;
  --blush: #f4ece7;
  --blush-deep: #e7d9d1;
  --paper: #ffffff;
  --page: #f6f3ee;
  --ink: #1c1917;
  --muted: #5f584f;
  --line: #e6dfd6;
  --shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
  --radius: 12px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 247, 250, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #f3d7e4;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  line-height: 1.15;
}
.brand img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; }
.brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.brand-text > span { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }

.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; }
.nav a:hover { color: var(--pink-deep); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; }

.icon-button, .cart-button {
  border: 1px solid #f3c6d8;
  background: white;
  color: #b23b6d;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.cart-button { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; background: #f25d9c; color: white; border-color: transparent; }
.cart-count {
  background: var(--ink);
  color: white;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
}

.hero { padding: 28px 0 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 4.4vw, 4.2rem); margin: 14px 0 18px; }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: #322c27; }
.btn-pink { background: var(--pink); color: white; }
.btn-pink:hover { background: var(--pink-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-small { min-height: 40px; padding: 0 14px; }

.logo-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.logo-panel img { width: 100%; border-radius: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(1120px, calc(100% - 48px));
  margin: 34px auto 20px;
  padding-top: 18px;
  border-top: 1px solid #f0d5e0;
}
.stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  min-width: 0;
}
.stat + .stat { border-left: 1px solid #f0d5e0; }
.stat strong { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.92rem; }

section { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }

.about-grid, .steps, .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}
.panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}
.panel p { color: var(--muted); }
.quote {
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.pink-panel { background: #f3ece6; }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}
.chip.is-active { background: #f25d9c; color: white; border-color: #f25d9c; }
.search {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: white;
  min-width: min(280px, 100%);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #f6d5e4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 30px rgba(194, 70, 122, 0.06);
}
.product-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #fff 0%, #ffe4f1 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo span { font-family: var(--display); font-size: 3rem; color: #f25d9c; }
.product-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker {
  margin: 0;
  color: var(--pink-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product h3 { font-size: 1.55rem; }
.product p { margin: 0; color: var(--muted); }
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.steps { grid-template-columns: repeat(3, 1fr); }
.step-number {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--pink);
  margin-bottom: 12px;
}

.contact-card h2 { margin-bottom: 8px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list a { font-weight: 650; }

.site-footer {
  padding: 28px 0 40px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 24, 32, 0.38);
  z-index: 30;
}
.cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--page);
  z-index: 31;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: -20px 0 60px rgba(36, 24, 32, 0.16);
}
.cart-head, .cart-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cart-items { list-style: none; margin: 0; padding: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  align-items: flex-start;
}
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button, .text-button {
  border: 1px solid var(--line);
  background: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}
.text-button { width: auto; background: transparent; color: var(--pink-deep); font-weight: 650; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  font-weight: 450;
}
.cart-total { color: var(--muted); margin: 8px 0; }
.cart form .btn { width: 100%; }

.product-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(760px, calc(100% - 24px));
}
.product-dialog::backdrop { background: rgba(36, 24, 32, 0.45); }
.dialog-card {
  background: white;
  border-radius: 16px;
  display: block;
  overflow: hidden;
  position: relative;
}
.dialog-card.has-photo { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; }
.dialog-photo { background: #ffeaf3; min-height: 100%; }
.dialog-photo img { width: 100%; height: 100%; object-fit: cover; }
.dialog-art { min-height: 100%; }
.dialog-card > div:last-child { padding: 28px 24px 22px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  padding: 0;
}
.dialog-price { font-size: 1.2rem; margin: 8px 0; }

.checkout-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100% - 24px);
}
.checkout-dialog::backdrop { background: rgba(36, 24, 32, 0.45); }
.checkout-card {
  background: white;
  border-radius: 16px;
  padding: 28px 22px 22px;
  position: relative;
  max-height: calc(100vh - 24px);
  overflow: auto;
}
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkout-summary { color: var(--muted); margin: 8px 0 0; }
.drop {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 92px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--page);
  color: var(--muted);
  font-weight: 500;
  padding: 12px;
  cursor: pointer;
  position: relative;
}
.drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.photo-list, .order-photos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; }
.photo-list li { position: relative; }
.photo-list img, .order-photos img, .receipt-preview {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--blush);
}
.photo-list button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  cursor: pointer;
}
.pay-choice { border: 1px solid var(--line); border-radius: 16px; margin: 12px 0 0; padding: 12px; }
.pay-choice label { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 600; }
.pay-amount { font-weight: 700; margin-bottom: 0; }
.pix-box { display: grid; justify-items: start; gap: 8px; margin-top: 8px; }
.pix-box canvas { border-radius: 12px; background: white; }
.pix-missing, .form-status { color: var(--muted); }
.order-list { display: grid; gap: 16px; margin-top: 20px; }
.admin-product {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  background: var(--page);
}
.admin-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 150px; gap: 10px; }
.admin-product .field { margin-top: 8px; }
.admin-product .text-button { margin-top: 8px; }
.checkout-card .btn { margin-top: 12px; }

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 15;
  background: #1faf38;
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(20, 120, 40, 0.28);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .menu-button { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--page);
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; }
  .hero-grid, .about-grid, .contact-grid, .steps, .products, .stats, .checkout-grid, .admin-grid, .dialog-card.has-photo {
    grid-template-columns: 1fr;
  }
  .stats { grid-template-columns: 1fr 1fr; width: min(1120px, calc(100% - 32px)); }
  .stat + .stat { border-left: 0; }
  .stat { padding: 12px 8px 0; }
  h1 { font-size: 2.5rem; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .whatsapp-float { width: 52px; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.admin-page {
  min-height: 100vh;
  color: #3b2431;
  background:
    radial-gradient(circle at 0 0, #ffe3f0 0, transparent 34%),
    radial-gradient(circle at 100% 8%, #ffd0e6 0, transparent 28%),
    #fff6f9;
}
.admin-shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 72px; }
.admin-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.admin-brand img { width: 72px; height: 72px; object-fit: cover; border-radius: 20px; box-shadow: 0 16px 40px rgba(232, 90, 148, 0.18); }
.admin-page h1 { font-size: 2.1rem; }
.admin-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-nav a, .admin-logout {
  text-decoration: none;
  border: 1px solid #f3b7d0;
  background: white;
  color: #b23b6d;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.admin-logout { background: #f25d9c; color: white; border-color: transparent; }
.catalog-tools { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; flex-wrap: wrap; }
.catalog-tools input { flex: 1; min-width: 200px; min-height: 44px; border: 1px solid #f0c6d8; border-radius: 999px; padding: 0 16px; background: #fffafc; }
.catalog-row { border: 1px solid #f6d5e4; border-radius: 16px; margin-top: 8px; background: white; overflow: hidden; }
.catalog-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffe4f1;
  color: #f25d9c;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.2rem;
}
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-editor { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.catalog-preview { width: 84px; height: 84px; object-fit: cover; border-radius: 16px; background: #ffe4f1; }
.catalog-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 78px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.catalog-summary em { color: #a57b8c; font-style: normal; font-size: 0.88rem; }
.code-pill { color: #e85a94; font-weight: 800; letter-spacing: 0.04em; font-size: 0.82rem; }
.catalog-edit { padding: 0 14px 14px; border-top: 1px solid #f8e4ee; }
.admin-grid { grid-template-columns: 120px 1.4fr 0.8fr 140px; }
.admin-page h1, .admin-page h2 { color: #b23b6d; }
.admin-page .lede, .admin-page .panel p { color: #7a5364; }
.admin-page .kicker { color: #e85a94; }
.admin-page .panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #f6d3e3;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(194, 70, 122, 0.08);
}
.admin-login { max-width: 440px; }
.admin-orders { margin-top: 22px; }
.admin-page .btn { background: #f25d9c; color: white; border-radius: 999px; }
.admin-page .btn:hover { background: #e04688; }
.admin-page .btn-ghost { background: white; color: #b23b6d; border: 1px solid #f3b7d0; }
.admin-page .btn-ghost:hover { background: #fff0f6; }
.admin-page .field input, .admin-page .field textarea, .admin-page .field select {
  border-color: #f0c6d8;
  border-radius: 14px;
  background: #fffafc;
}
.admin-page .admin-product {
  background: #fff;
  border: 1px solid #f6d5e4;
  border-radius: 22px;
  box-shadow: none;
}
.admin-page .text-button { color: #c73374; border: 0; background: transparent; width: auto; }
.admin-page .order-list .panel { background: #fff7fa; }

@media (max-width: 860px) {
  .admin-nav { margin-left: 0; width: 100%; }
  .admin-grid, .catalog-summary { grid-template-columns: 1fr; }
}
