@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --linen: #f3eee7;
  --paper: #fbf8f3;
  --wine: #6e1f35;
  --wine-dark: #4b1022;
  --rose: #b66f72;
  --rust: #a75f49;
  --sage: #657060;
  --ink: #251c1d;
  --muted: #736766;
  --line: rgba(77, 48, 48, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--wine);
  color: white;
  text-decoration: none;
  transform: translateY(-80px);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  padding: 0 clamp(24px, 4vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .5s ease, background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.site-header.is-scrolled {
  height: 72px;
  border-bottom-color: rgba(75, 16, 34, .08);
  background: rgba(243, 238, 231, .78);
  backdrop-filter: blur(18px);
}
.wordmark {
  width: max-content;
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.wordmark span {
  color: var(--wine);
  font: 500 clamp(1.6rem, 2vw, 2rem)/.8 var(--serif);
  letter-spacing: -.04em;
}
.wordmark small {
  margin-top: 10px;
  color: var(--ink);
  font: 600 .58rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: clamp(26px, 3vw, 54px); }
.main-nav a, .header-cta {
  position: relative;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { justify-self: end; color: var(--wine); }
.header-cta span { display: inline-block; margin-left: 8px; transition: transform .3s ease; }
.header-cta:hover span { transform: translate(3px, -3px); }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background: var(--linen);
}
.hero-wash {
  position: absolute;
  z-index: -5;
  inset: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(182,111,114,.14), transparent 26%),
    linear-gradient(116deg, #f5f1eb 0%, #ebe2d8 54%, #e5d7cc 100%);
}
.hero-type {
  position: absolute;
  z-index: -2;
  inset: 14% 3.2% auto;
  display: flex;
  flex-direction: column;
  color: rgba(92, 45, 50, .105);
  font: 400 clamp(8rem, 18.3vw, 22rem)/.63 var(--serif);
  letter-spacing: -.075em;
  pointer-events: none;
}
.hero-type span:last-child { align-self: flex-end; }
.hero-media-wrap {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: clamp(28px, 5.4vw, 104px);
  width: clamp(360px, 34vw, 580px);
  height: min(64vh, 640px);
  overflow: hidden;
  border-radius: 32px;
  box-shadow:
    20px 20px 0 rgba(182, 111, 114, .13),
    0 30px 70px rgba(77, 38, 43, .13);
  transform: translate3d(20px, 30px, 0) scale(.88);
  clip-path: inset(7% 5% round 32px);
  opacity: 0;
  filter: blur(7px);
  will-change: transform, clip-path, filter;
}
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}
.hero-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 42%, rgba(88,42,48,.08));
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 4;
  top: 31%;
  left: clamp(24px, 5.4vw, 104px);
  width: min(31vw, 490px);
}
.kicker {
  margin: 0 0 22px;
  color: var(--wine);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero-copy .kicker, .hero-copy h1 span, .hero-copy h1 em,
.hero-description, .hero-actions, .hero-note, .scroll-cue {
  opacity: 0;
  transform: translateY(22px);
}
.hero h1 {
  margin: 0;
  font: 400 clamp(3.45rem, 5vw, 6.25rem)/1 var(--serif);
  letter-spacing: -.06em;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 span:nth-child(2) { margin-left: 12%; }
.hero h1 em { margin-left: 2%; color: var(--wine); font-weight: 400; }
.hero-description {
  max-width: 360px;
  margin: 32px 0 28px 12%;
  color: #514648;
  font-size: .89rem;
  line-height: 1.7;
}
.hero-actions {
  margin-left: 12%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.button {
  min-height: 58px;
  padding: 7px 8px 7px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.button:hover { transform: scale(1.015); }
.button-primary { background: var(--wine); color: white; }
.button-primary:hover { background: var(--wine-dark); }
.button-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  font-size: 1rem;
  transition: transform .35s ease, background .35s ease;
}
.button:hover .button-orb { transform: translate(2px, -2px); background: rgba(255,255,255,.24); }
.text-link {
  padding: 10px 0;
  border-bottom: 1px solid rgba(37,28,29,.35);
  font-size: .73rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link span { display: inline-block; margin-left: 9px; transition: transform .3s ease; }
.text-link:hover span { transform: translateY(4px); }
.hero-note {
  position: absolute;
  z-index: 4;
  top: 35%;
  right: clamp(28px, 5vw, 96px);
  width: 185px;
}
.note-index { color: var(--wine); font: 500 1rem var(--serif); }
.hero-note > p {
  margin: 18px 0;
  font: 400 1.08rem/1.25 var(--serif);
}
.note-line { width: 100%; height: 1px; display: block; background: var(--line); }
.hero-note .note-small { font: 500 .63rem/1.65 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hero-cards {
  position: absolute;
  z-index: 8;
  right: clamp(24px, 4vw, 76px);
  bottom: 4.2%;
  left: 31%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-cards article {
  min-height: 108px;
  padding: 18px 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 22px;
  background: rgba(250, 246, 241, .56);
  box-shadow: 0 18px 40px rgba(65, 33, 31, .06);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(35px);
}
.hero-cards article > span { color: var(--wine); font: 500 .82rem var(--serif); }
.hero-cards h2 { margin: 0 0 7px; font: 500 1.12rem/1.1 var(--serif); }
.hero-cards p { margin: 0; color: #615658; font-size: .66rem; line-height: 1.55; }
.scroll-cue {
  position: absolute;
  bottom: 5%;
  left: clamp(24px, 5.4vw, 104px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-cue span { width: 28px; height: 1px; background: currentColor; }

/* Coordinated opening sequence */
.home-page.is-ready .hero-media-wrap {
  animation-name: mediaArrival;
  animation-duration: 3.75s;
  animation-timing-function: cubic-bezier(.16, .84, .22, 1);
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.home-page.is-ready .hero-type { animation: typeReveal 1.1s cubic-bezier(.22,.8,.24,1) 1.45s both; }
.home-page.is-ready .hero-copy .kicker { animation: rise .75s ease 1.75s forwards; }
.home-page.is-ready .hero-copy h1 span:nth-child(1) { animation: rise .8s ease 1.9s forwards; }
.home-page.is-ready .hero-copy h1 span:nth-child(2) { animation: rise .8s ease 2.02s forwards; }
.home-page.is-ready .hero-copy h1 em { animation: rise .85s ease 2.14s forwards; }
.home-page.is-ready .hero-description { animation: rise .8s ease 2.32s forwards; }
.home-page.is-ready .hero-actions { animation: rise .8s ease 2.48s forwards; }
.home-page.is-ready .hero-note { animation: rise .8s ease 2.62s forwards; }
.home-page.is-ready .hero-cards article:nth-child(1) { animation: cardRise .9s ease 2.68s forwards; }
.home-page.is-ready .hero-cards article:nth-child(2) { animation: cardRise .9s ease 2.82s forwards; }
.home-page.is-ready .hero-cards article:nth-child(3) { animation: cardRise .9s ease 2.96s forwards; }
.home-page.is-ready .scroll-cue { animation: rise .8s ease 3.1s forwards; }
.no-js .hero-media-wrap, .no-js .hero-type, .no-js .hero-copy *, .no-js .hero-note,
.no-js .hero-cards article, .no-js .scroll-cue { opacity: 1; transform: none; filter: none; clip-path: none; }
@keyframes mediaArrival {
  0% { opacity: .28; transform: translate3d(20px, 30px, 0) scale(.88); clip-path: inset(7% 5% round 32px); filter: blur(7px); }
  38% { opacity: .82; transform: translate3d(11px, 16px, 0) scale(.945); filter: blur(2px); }
  76% { opacity: 1; transform: translate3d(2px, 3px, 0) scale(.992); clip-path: inset(.8% round 8px); filter: blur(0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 round 0); filter: blur(0); }
}
@keyframes typeReveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes cardRise { to { opacity: 1; transform: none; } }

/* Content flow */
.occasion-strip {
  min-height: 116px;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 50px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.occasion-strip p { margin: 0; font: 400 clamp(1.2rem, 1.75vw, 1.85rem) var(--serif); white-space: nowrap; }
.occasion-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--wine); }
.section { padding: clamp(100px, 11vw, 180px) clamp(24px, 5.4vw, 104px); }
.section-heading {
  margin-bottom: 70px;
  display: grid;
  grid-template-columns: 1fr 1.25fr .75fr;
  gap: 5vw;
  align-items: end;
}
.section-heading h1, .section-heading h2, .process h2, .final-cta h2 {
  margin: 0;
  font: 400 clamp(4rem, 7.6vw, 9rem)/1 var(--serif);
  letter-spacing: -.065em;
}
.section-heading h1 em, .section-heading h2 em, .process h2 em, .final-cta h2 em { color: var(--wine); font-weight: 400; }
.section-heading > p:last-child { max-width: 360px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
}
.featured-gift { margin: 0; }
.image-frame {
  position: relative;
  height: min(74vw, 820px);
  min-height: 600px;
  overflow: hidden;
  border-radius: 2px 160px 2px 2px;
  background: #ded2c4;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; transition: opacity .28s ease, transform 1s cubic-bezier(.22,.8,.2,1); }
.image-frame:hover img { transform: scale(1.025); }
.image-frame.is-switching img { opacity: 0; }
.image-frame.is-empty { background: linear-gradient(145deg, #eee3dc 0%, #e3d2ca 100%); }
.image-frame.is-empty .image-caption { display: none; }
.image-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(247,243,237,.76);
  backdrop-filter: blur(14px);
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.featured-gift figcaption { margin-top: 20px; display: flex; justify-content: space-between; gap: 20px; }
.featured-gift figcaption span { font: 400 1.45rem var(--serif); }
.featured-gift figcaption small { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.gift-list { border-top: 1px solid var(--line); }
.gift-option {
  width: 100%;
  min-height: 172px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 17px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: padding .35s ease, color .35s ease;
}
.gift-option:hover,
.gift-option.is-active { padding-left: 12px; color: var(--wine); }
.gift-option:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.gift-number { align-self: start; color: var(--wine); font: 500 .8rem var(--serif); }
.gift-kind { margin: 0 0 6px; color: var(--rose); font-size: .58rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.gift-list h3 { margin: 0 0 8px; font: 400 clamp(2rem, 3vw, 3.3rem)/1 var(--serif); letter-spacing: -.04em; }
.gift-option p:last-child { max-width: 340px; margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }
.gift-action { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .3s ease, color .3s ease, transform .3s ease; }
.gift-option:hover .gift-action,
.gift-option.is-active .gift-action { background: var(--wine); color: white; transform: translate(2px,-2px); }
.consult-note { margin: 18px 0 0; color: var(--muted); font-size: .66rem; }

.process { background: var(--wine); color: #f8eee9; }
.process .kicker { color: #deb5ae; }
.process-intro { display: grid; grid-template-columns: 1fr 2fr; align-items: start; margin-bottom: 90px; }
.process h2 { font-size: clamp(4rem, 8vw, 9.4rem); }
.process h2 em { color: #e3aaa2; }
.process-list {
  margin: 0 0 58px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.22);
}
.process-list li { min-height: 260px; padding: 28px 8% 20px 0; border-right: 1px solid rgba(255,255,255,.22); }
.process-list li + li { padding-left: 8%; }
.process-list li:last-child { border-right: 0; }
.process-list span { color: #dda9a1; font: 500 .9rem var(--serif); }
.process-list h3 { margin: 62px 0 14px; font: 400 clamp(1.8rem, 2.6vw, 3rem) var(--serif); }
.process-list p { max-width: 310px; margin: 0; color: rgba(255,244,239,.68); font-size: .76rem; line-height: 1.7; }
.button-light { background: #fff8eb; color: var(--wine); }
.button-light .button-orb { background: rgba(110,31,53,.1); }

.manifesto { position: relative; overflow: hidden; text-align: center; background: #ede4da; }
.manifesto-mark { position: absolute; top: 2%; left: 50%; color: rgba(110,31,53,.045); font: 400 36rem/1 var(--serif); transform: translateX(-50%); }
.manifesto blockquote {
  position: relative;
  margin: 50px 0 90px;
  font: 400 clamp(4rem, 8.5vw, 10rem)/.78 var(--serif);
  letter-spacing: -.06em;
}
.manifesto blockquote em { color: var(--wine); font-weight: 400; }
.manifesto-copy {
  position: relative;
  max-width: 880px;
  margin: auto;
  padding-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.manifesto-copy p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.8; }
.manifesto-copy > span { justify-self: end; color: var(--wine); font: 500 1.6rem var(--serif); text-align: right; }
.manifesto-copy small { color: var(--muted); font: 600 .55rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.final-cta { min-height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); text-align: center; }
.final-overline { color: var(--wine); font-size: .63rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.final-cta h2 { margin: 25px 0 50px; }

footer {
  padding: 70px clamp(24px, 5.4vw, 104px) 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 45px;
  align-items: start;
  background: #271b1e;
  color: #f6ece7;
}
.footer-brand span { color: #e1aaa7; }
.footer-brand small { color: #f6ece7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .72rem; }
.footer-links a { text-decoration: none; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.footer-contact-group { justify-self: end; }
.footer-contact-group .footer-social-links { flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-social-links a[hidden] { display: none; }
.footer-social-links a { color: inherit; text-underline-offset: 4px; }
.footer-social-links a:hover { text-decoration: underline; }
.footer-contact { justify-self: end; color: #c7b6b2; font-size: .65rem; line-height: 1.7; text-decoration: none; text-transform: uppercase; }
.footer-contact span {
  color: #f6ece7;
  font: 500 1rem/1.5 var(--sans);
  letter-spacing: .025em;
  text-transform: none;
}
.footer-contact span b { font: inherit; }
@media (max-width: 900px) { .footer-contact-group { justify-self: start; } }
.copyright { grid-column: 1 / -1; margin: 58px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9b8987; font-size: .6rem; }

.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s ease, transform .9s cubic-bezier(.22,.8,.25,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Order page */
.order-page { min-height: 100vh; background: linear-gradient(135deg, #f7f2ec, #eadfd6); }
.order-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 104px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-page .logo {
  display: flex;
  flex-direction: column;
  color: var(--wine);
  font: 500 2rem/.8 var(--serif);
  text-decoration: none;
}
.order-page .logo small { margin-top: 10px; color: var(--ink); font: 600 .55rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.order-brand-logo { display: block; width: 104px; height: 76px; object-fit: contain; object-position: left center; }
.back-link { font-size: .72rem; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.order-main { padding: 25px 24px 90px; }
.order-card {
  position: relative;
  max-width: 760px;
  margin: auto;
  padding: clamp(36px, 6vw, 78px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 36px;
  background: rgba(251,248,243,.88);
  box-shadow: 0 30px 80px rgba(68,40,34,.1);
}
.order-card .kicker, .order-card > h1, .order-intro { text-align: center; }
.order-card > h1 { margin: 0; font: 400 clamp(3.3rem, 7vw, 5.8rem)/.8 var(--serif); letter-spacing: -.05em; }
.order-intro { max-width: 490px; margin: 24px auto 50px; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.order-card form { text-align: left; }
.form-required-note { margin: 0 0 30px; color: var(--muted); font-size: .68rem; }
.order-card fieldset { margin: 0 0 42px; padding: 0; border: 0; }
.order-card legend { width: 100%; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--wine); font: 500 1.55rem var(--serif); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: .7rem; font-weight: 600; letter-spacing: .03em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
  color: var(--ink);
  font-size: .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110,31,53,.09); }
.field select:focus { box-shadow: none; outline: none; }
.date-picker { position: relative; }
.date-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 14px 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(110, 31, 53, .28);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #fbf3f1 100%);
  color: var(--ink);
  cursor: pointer;
  font: 500 .8rem var(--sans);
  text-align: left;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.date-trigger:hover { border-color: rgba(110, 31, 53, .55); }
.date-trigger:focus-visible,
.date-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(110,31,53,.09);
  background: #fff;
}
.date-trigger-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(182, 111, 114, .16);
  color: var(--wine);
  font-size: 1rem;
}
.date-calendar {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  width: min(350px, calc(100vw - 68px));
  padding: 18px;
  border: 1px solid rgba(110, 31, 53, .16);
  border-radius: 18px;
  background: #fffaf8;
  box-shadow: 0 22px 55px rgba(77, 38, 43, .18);
}
.date-calendar[hidden] { display: none; }
.calendar-header {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}
.calendar-month {
  color: var(--wine);
  font: 500 1.2rem/1.2 var(--serif);
  text-align: center;
  text-transform: capitalize;
}
.calendar-nav {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(182, 111, 114, .13);
  color: var(--wine);
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.calendar-nav:hover:not(:disabled) { background: var(--wine); color: #fff; transform: translateY(-1px); }
.calendar-nav:disabled { opacity: .28; cursor: not-allowed; }
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-weekdays { margin-bottom: 7px; }
.calendar-weekdays span {
  color: #9a7778;
  font-size: .57rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day,
.calendar-spacer {
  aspect-ratio: 1;
  min-width: 0;
}
.calendar-day {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 .72rem var(--sans);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.calendar-day:hover:not(:disabled):not(.is-selected) { background: rgba(182, 111, 114, .15); color: var(--wine); }
.calendar-day.is-today { box-shadow: inset 0 0 0 1px var(--wine); color: var(--wine); }
.calendar-day.is-selected {
  background: var(--wine);
  box-shadow: 0 7px 16px rgba(110, 31, 53, .24);
  color: #fff;
  transform: scale(1.04);
}
.calendar-day:disabled { color: #cfc1bd; cursor: not-allowed; text-decoration: line-through; }
.calendar-footer {
  margin-top: 14px;
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(110, 31, 53, .1);
}
.calendar-footer button {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font: 700 .63rem var(--sans);
}
.calendar-footer button:hover { background: rgba(182, 111, 114, .13); }
.field-help {
  margin-top: 8px;
  display: block;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-submit { width: 100%; background: var(--wine); color: white; }
.order-submit:disabled { opacity: .65; cursor: wait; }
.form-note { margin: 22px 0 0; color: var(--muted); font-size: .69rem; text-align: center; }
.form-note a { color: var(--wine); font-weight: 600; }
.form-feedback { margin: 22px 0 0; padding: 14px 16px; border-radius: 10px; font-size: .76rem; }
.form-feedback-success { background: #e3ecdf; color: #29452b; }
.form-feedback-error { background: #f5dfdf; color: #742b2b; }
.order-footer { padding: 25px; color: var(--muted); font-size: .63rem; text-align: center; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  body.menu-is-open { overflow: hidden; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.68);
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) { width: 100%; height: 1px; background: var(--ink); transition: transform .3s ease; }
  .site-header.menu-open .menu-toggle > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.menu-open .menu-toggle > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: min(78vw, 380px);
    height: 100svh;
    padding: 120px 38px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    overflow-y: auto;
    background: rgba(246,241,235,.98);
    box-shadow: -20px 0 60px rgba(40,20,23,.12);
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.22,.8,.25,1), visibility .45s;
  }
  .site-header.menu-open .main-nav { transform: none; visibility: visible; }
  .main-nav a { font: 400 2rem var(--serif); text-transform: none; }
  .hero-copy { width: 38vw; }
  .hero-note { right: 3%; }
  .hero-cards { left: 24%; }
  .section-heading { grid-template-columns: .7fr 1.3fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .process-intro { grid-template-columns: 1fr; }
  .process-intro .kicker { margin-bottom: 36px; }
}

@media (max-width: 760px) {
  .site-header { height: 76px; padding: 0 20px; }
  .site-header.is-scrolled { height: 66px; }
  .wordmark span { font-size: 1.55rem; }
  .wordmark small { margin-top: 8px; font-size: .47rem; }
  .header-cta { display: none; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: 42px;
    height: 42px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
  }
  .menu-toggle > span:not(.sr-only) { width: 100%; height: 1px; background: var(--ink); transition: transform .3s ease; }
  .site-header.menu-open .menu-toggle > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.menu-open .menu-toggle > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: min(82vw, 350px);
    height: 100svh;
    padding: 120px 35px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: rgba(246,241,235,.97);
    box-shadow: -20px 0 60px rgba(40,20,23,.12);
    transform: translateX(110%);
    transition: transform .45s cubic-bezier(.22,.8,.25,1);
  }
  .site-header.menu-open .main-nav { transform: none; }
  .main-nav a { font: 400 2rem var(--serif); text-transform: none; }

  .hero { min-height: 1080px; }
  .hero-type { top: 11%; inset-inline: 2%; font-size: clamp(6.4rem, 31vw, 9rem); line-height: .67; }
  .hero-media-wrap {
    top: 92px;
    right: 20px;
    left: 20px;
    width: auto;
    height: clamp(350px, 54vw, 410px);
    border-radius: 24px;
    box-shadow:
      10px 12px 0 rgba(182, 111, 114, .13),
      0 22px 48px rgba(77, 38, 43, .12);
  }
  .hero-media-wrap::after {
    background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 55%, rgba(88,42,48,.1));
  }
  .hero-copy { top: 535px; left: 24px; width: calc(100% - 48px); }
  .hero-copy .kicker { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(3.5rem, 16vw, 5.3rem); line-height: 1.02; }
  .hero h1 span:nth-child(2), .hero h1 em, .hero-description, .hero-actions { margin-left: 0; }
  .hero-description { max-width: 315px; margin-top: 22px; margin-bottom: 20px; font-size: .78rem; }
  .hero-actions { gap: 17px; }
  .button { min-height: 54px; padding-left: 20px; gap: 14px; }
  .button-orb { width: 38px; height: 38px; }
  .text-link { font-size: .67rem; }
  .hero-note { display: none; }
  .hero-cards {
    right: auto;
    bottom: 24px;
    left: 20px;
    width: calc(100% - 20px);
    padding-right: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hero-cards::-webkit-scrollbar { display: none; }
  .hero-cards article { min-width: 255px; min-height: 96px; scroll-snap-align: start; }
  .scroll-cue { display: none; }
  .occasion-strip { min-height: 96px; justify-content: flex-start; overflow: hidden; }
  .occasion-strip p:nth-of-type(n+3), .occasion-strip i:nth-of-type(n+3) { display: none; }
  .section { padding: 96px 22px; }
  .section-heading { margin-bottom: 48px; display: block; }
  .section-heading .kicker { margin-bottom: 28px; }
  .section-heading h1, .section-heading h2, .process h2, .final-cta h2 { font-size: clamp(3.7rem, 18vw, 5.4rem); line-height: .92; }
  .section-heading > p:last-child { margin-top: 30px; font-size: .78rem; }
  .editorial-grid { grid-template-columns: 1fr; gap: 52px; }
  .image-frame { height: clamp(480px, 124vw, 720px); min-height: 0; border-radius: 2px 80px 2px 2px; }
  .featured-gift figcaption { flex-direction: column; }
  .gift-option { min-height: 155px; grid-template-columns: 32px 1fr 36px; }
  .gift-list h3 { font-size: 2.35rem; }
  .process-intro { margin-bottom: 60px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { min-height: 200px; padding: 25px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .process-list h3 { margin-top: 36px; }
  .manifesto-mark { font-size: 23rem; }
  .manifesto blockquote { margin: 40px 0 70px; font-size: clamp(3.5rem, 16vw, 5rem); }
  .manifesto-copy { grid-template-columns: 1fr; gap: 35px; }
  .manifesto-copy > span { justify-self: start; text-align: left; }
  .final-cta { min-height: 590px; }
  footer { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact { justify-self: start; }
  .copyright { margin-top: 25px; }
  .order-header { width: calc(100% - 36px); min-height: 82px; }
  .order-page .logo { font-size: 1.6rem; }
  .back-link span { display: none; }
  .order-main { padding: 10px 12px 60px; }
  .order-card { padding: 42px 22px; border-radius: 24px; }
  .order-card > h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .field label { font-size: .82rem; }
  .field input, .field select, .field textarea, .date-trigger { font-size: 1rem; }
  .date-calendar { left: 50%; width: min(350px, calc(100vw - 36px)); transform: translateX(-50%); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .admin-topbar { padding-inline: 18px; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .admin-table { min-width: 720px; }
}

@media (max-width: 480px) {
  .site-header { padding-inline: 16px; }
  .main-nav { width: min(88vw, 350px); padding-inline: 30px; }
  .hero { min-height: 1110px; }
  .hero-media-wrap { top: 86px; right: 16px; left: 16px; height: 340px; border-radius: 20px; }
  .hero-copy { top: 460px; left: 20px; width: calc(100% - 40px); }
  .hero h1 { font-size: clamp(3.1rem, 15.5vw, 4.3rem); line-height: 1.06; letter-spacing: -.045em; }
  .hero-description { max-width: none; font-size: .86rem; line-height: 1.65; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .hero-cards { left: 16px; width: calc(100% - 16px); padding-right: 16px; }
  .hero-cards article { min-width: min(270px, calc(100vw - 48px)); }
  .section { padding: 82px 18px; }
  .section-heading h1, .section-heading h2, .process h2, .final-cta h2 { font-size: clamp(3.15rem, 17vw, 4.5rem); line-height: .94; letter-spacing: -.05em; }
  .occasion-strip { padding-inline: 18px; gap: 14px; }
  .image-frame { height: max(470px, 126vw); border-radius: 2px 58px 2px 2px; }
  .image-caption { bottom: 14px; left: 14px; font-size: .54rem; }
  .featured-gift figcaption span { font-size: 1.25rem; }
  .gift-option { min-height: 145px; padding-block: 23px; gap: 11px; }
  .gift-option:hover, .gift-option.is-active { padding-left: 7px; }
  .gift-list h3 { font-size: 2rem; }
  .gift-option p:last-child { font-size: .72rem; }
  .manifesto-copy { gap: 25px; }
  .final-cta { min-height: 520px; }
  footer { padding: 54px 20px 22px; }
  .footer-links { font-size: .82rem; }
  .order-header { width: calc(100% - 28px); }
  .order-page .logo { font-size: 1.45rem; }
  .order-page .logo small { font-size: .47rem; letter-spacing: .13em; }
  .order-main { padding-inline: 8px; }
  .order-card { padding: 36px 16px; border-radius: 20px; }
  .order-intro { margin-bottom: 38px; font-size: .86rem; }
  .date-calendar { padding: 14px; border-radius: 16px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-day { font-size: .76rem; }
  .calendar-month { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .hero-media-wrap, .hero-type, .hero-copy *, .hero-note, .hero-cards article, .scroll-cue, .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
}

/* Administrative area */
.admin-page { min-height: 100vh; background: #f3eee7; color: var(--ink); }
.admin-topbar {
  position: relative;
  z-index: 20;
  min-height: 82px;
  padding: 0 clamp(20px, 4vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251,248,243,.85);
}
.admin-menu-toggle { width: 46px; height: 46px; padding: 10px; display: grid; align-content: center; justify-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.72); cursor: pointer; }
.admin-menu-toggle > span:not(.sr-only) { width: 4px; height: 4px; border-radius: 50%; background: var(--wine); }
.admin-navigation { position: absolute; top: calc(100% + 10px); right: clamp(20px, 4vw, 70px); width: min(310px, calc(100vw - 32px)); padding: 24px; display: none; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 18px; background: #fbf8f3; box-shadow: 0 22px 55px rgba(58,31,31,.16); }
.admin-navigation.is-open { display: flex; }
.admin-navigation > p { margin: 0 0 8px; color: var(--rose); font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.admin-navigation > a { padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: .78rem; }
.admin-navigation > a:hover, .admin-navigation > a.active { background: #eadbd6; color: var(--wine); }
.admin-navigation form { margin-top: 8px; padding: 13px 12px 0; border-top: 1px solid var(--line); }
.admin-brand { display: flex; flex-direction: column; color: var(--wine); text-decoration: none; }
.admin-brand span { font: 500 1.8rem/.9 var(--serif); }
.admin-brand small { margin-top: 8px; color: var(--muted); font-size: .52rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.admin-topbar > .admin-brand { flex-direction: row; align-items: center; gap: 12px; }
.admin-brand-logo { width: 62px; height: 62px; flex: 0 0 62px; object-fit: contain; object-position: center; }
.admin-brand-copy { display: flex; flex-direction: column; }
.admin-brand-copy strong { font: 500 1.55rem/.95 var(--serif); }
.admin-brand-copy small { margin-top: 7px; }
.admin-topbar > div { display: flex; align-items: center; gap: 20px; }
.admin-topbar form { margin: 0; }
.admin-email { color: var(--muted); font-size: .7rem; }
.admin-text-button { padding: 0; border: 0; background: transparent; color: var(--wine); cursor: pointer; font-size: .7rem; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.admin-shell { width: min(1240px, calc(100% - 40px)); margin: auto; padding: 70px 0 100px; }
.admin-shell.narrow { width: min(680px, calc(100% - 40px)); }
.admin-heading { margin-bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-heading .kicker { margin-bottom: 8px; }
.admin-heading h1 { margin: 0; font: 500 clamp(3.5rem, 7vw, 6.5rem)/.8 var(--serif); }
.admin-heading > span { color: var(--muted); font-size: .72rem; }
.admin-filters { margin-bottom: 30px; display: flex; gap: 8px; overflow-x: auto; }
.admin-filters a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .63rem; text-decoration: none; white-space: nowrap; }
.admin-filters a.active { background: var(--wine); color: white; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.65); }
.admin-table-wrap, .admin-table-wrap table, .admin-table-wrap tr, .admin-table-wrap th, .admin-table-wrap td { border-radius: 0 !important; }
.admin-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .72rem; }
.admin-table th, .admin-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.admin-table td small { display: block; margin-top: 4px; color: var(--muted); }
.status-pill { width: max-content; min-height: 28px; padding: 6px 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; background: #eadbd6; color: var(--wine); font-size: .62rem; line-height: 1; font-weight: 600; text-align: center; white-space: nowrap; }
.status-pill.status--novo, .status-filter.status--novo { background: #f1dce2; border-color: #e5c0ca; color: #7d2941; }
.status-pill.status--em-contato, .status-filter.status--em-contato { background: #f3e6c9; border-color: #e4cf9f; color: #76571d; }
.status-pill.status--confirmado, .status-filter.status--confirmado { background: #dcebdd; border-color: #bfd8c1; color: #315c39; }
.status-pill.status--em-producao, .status-filter.status--em-producao { background: #f0ddd2; border-color: #dfbdab; color: #85452e; }
.status-pill.status--entregue, .status-filter.status--entregue { background: #dce3cf; border-color: #becbab; color: #465b2c; }
.status-pill.status--cancelado, .status-filter.status--cancelado { background: #f2d9d8; border-color: #e3b9b7; color: #873b3d; }
.admin-filters .status-filter.active { box-shadow: inset 0 0 0 1px currentColor; font-weight: 700; }
.admin-row-link { color: var(--wine); font-weight: 600; text-decoration: none; white-space: nowrap; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.admin-empty { padding: 70px 25px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); text-align: center; }
.admin-empty h2 { margin: 0 0 6px; font: 500 2rem var(--serif); }
.admin-empty p { margin: 0; color: var(--muted); font-size: .72rem; }
.admin-login-page { display: grid; place-items: center; padding: 24px; }
.admin-login { width: min(100%, 460px); }
.admin-login > .admin-brand { margin: 0 auto 28px; align-items: center; }
.admin-login-page .admin-brand::before { content: ""; display: block; width: 84px; height: 84px; margin-bottom: 10px; background: url('/imagens/ela-sorriu-logo-oficial.png') center / contain no-repeat; }
.admin-panel { padding: 48px; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.66); box-shadow: 0 25px 70px rgba(58,31,31,.1); }
.admin-panel h1 { margin: 0; font: 500 4rem/.9 var(--serif); }
.admin-muted { margin: 18px 0 32px; color: var(--muted); font-size: .74rem; }
.admin-panel label, .admin-actions label { display: block; margin-bottom: 20px; font-size: .68rem; font-weight: 600; }
.admin-panel input, .admin-panel select, .admin-actions select, .team-card select { width: 100%; margin-top: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.admin-button { width: 100%; padding: 14px 18px; display: flex; justify-content: space-between; border: 0; border-radius: 999px; background: var(--wine); color: white; cursor: pointer; font-size: .7rem; font-weight: 600; }
.admin-button, .admin-secondary-button { text-decoration: none; }
.admin-button.compact { width: auto; padding-inline: 22px; }
.admin-alert { padding: 12px; border-radius: 9px; background: #f4dddd; color: #6e2525; font-size: .7rem; }
.admin-alert-success { background: #e2eee2; color: #315c39; }
.admin-help-link { margin-top: 20px; display: block; color: var(--wine); font-size: .7rem; text-align: center; }
.admin-form { margin-top: 32px; }
.team-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.team-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.team-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.team-card h2 { margin: 0; font: 500 2rem/1 var(--serif); }
.team-card p { margin: 8px 0 20px; color: var(--muted); overflow-wrap: anywhere; font-size: .72rem; }
.team-card dl { margin: 20px 0; }
.team-card dt { margin-top: 12px; color: var(--muted); font-size: .57rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.team-card dd { margin: 3px 0 0; font-size: .74rem; }
.status-pill.is-active { background: #dcebdc; color: #315c39; }
.status-pill.is-inactive { background: #ece5e1; color: #756866; }
.team-form-field.has-error input { border-color: #a84450; box-shadow: 0 0 0 3px rgba(168, 68, 80, .1); }
.field-error { display: block; margin-top: 7px; color: #923c49; font: 600 .65rem/1.4 var(--sans); }
.team-card-actions { padding-top: 18px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; border-top: 1px solid var(--line); }
.team-card-actions form { margin: 0; }
.team-card-actions label, .support-authorize label { display: block; font-size: .66rem; font-weight: 600; }
.admin-secondary-button { padding: 11px 15px; border: 1px solid var(--wine); border-radius: 999px; background: transparent; color: var(--wine); cursor: pointer; font-size: .66rem; font-weight: 600; }
.support-authorize { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.support-authorize .admin-button { width: auto; }
.copy-feedback { color: #315c39 !important; text-align: center; }
.settings-page .settings-grid { align-items: stretch; }
.settings-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.62); }
.settings-card h2 { margin: 0; font: 500 2rem/1.05 var(--serif); }
.settings-eyebrow { margin: 0 0 10px; color: var(--rose); font-size: .57rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.settings-description { margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.settings-appearance, .settings-audit { grid-column: 1 / -1; }
.theme-selector { width: fit-content; max-width: 100%; margin-top: 22px; padding: 4px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(239,229,223,.66); }
.theme-selector button { min-width: 104px; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 600 .68rem var(--sans); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.theme-selector button:hover { color: var(--wine); }
.theme-selector button:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.theme-selector button.active { background: var(--wine); color: #fff; box-shadow: 0 7px 18px rgba(79,31,43,.16); }
.settings-details { margin: 18px 0 0; }
.settings-details div { padding: 11px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.settings-details dt { color: var(--muted); font-size: .62rem; }
.settings-details dd { margin: 0; overflow-wrap: anywhere; font-size: .72rem; font-weight: 600; text-align: right; }
.settings-link { margin-top: 20px; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--wine); font-size: .68rem; font-weight: 600; text-decoration: none; }
.settings-link:hover { color: var(--rose); }
.settings-note { margin: 14px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.6; }
.settings-audit { min-width: 0; }
.settings-audit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.audit-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.audit-filters button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 600 .6rem var(--sans); }
.audit-filters button:hover, .audit-filters button:focus-visible { border-color: var(--wine); color: var(--wine); outline: none; }
.audit-filters button.active { border-color: var(--wine); background: var(--wine); color: #fff; }
.audit-list { max-height: 470px; margin: 22px 0 0; padding: 0; overflow: auto; list-style: none; }
.audit-list li { padding: 15px 2px; display: grid; grid-template-columns: 9px 1fr; align-items: start; gap: 13px; border-top: 1px solid var(--line); }
.audit-list li[hidden] { display: none; }
.audit-marker { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(168,83,101,.1); }
.audit-list strong { display: block; font-size: .7rem; font-weight: 600; line-height: 1.5; }
.audit-list time { display: block; margin-top: 4px; color: var(--muted); font-size: .61rem; }
.audit-empty { margin: 22px 0 0; color: var(--muted); font-size: .7rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-grid article, .admin-actions { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.6); }
.detail-grid h2 { margin: 0 0 24px; font: 500 2rem var(--serif); }
.detail-grid dl { margin: 0; }
.detail-grid dt { margin-top: 16px; color: var(--muted); font-size: .57rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .76rem; }
.admin-actions { margin-top: 18px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.admin-actions form:first-of-type { width: min(100%, 420px); display: flex; align-items: end; gap: 12px; }
.admin-actions form:first-of-type label { flex: 1; margin: 0; }
.admin-actions .admin-button { width: auto; padding-inline: 24px; }
.admin-whatsapp { text-decoration: none; }
.admin-danger { padding: 10px 0; border: 0; background: transparent; color: #8a3030; cursor: pointer; font-size: .66rem; font-weight: 600; }
@media (max-width: 760px) {
  .admin-email { display: none; }
  .admin-shell { width: calc(100% - 28px); padding-top: 45px; }
  .admin-panel { padding: 38px 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-actions, .admin-actions form:first-of-type { align-items: stretch; flex-direction: column; }
  .admin-actions .admin-button { width: 100%; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .admin-button.compact { width: 100%; }
  .team-grid, .settings-grid { grid-template-columns: 1fr; }
  .team-card-actions, .support-authorize { grid-template-columns: 1fr; }
  .support-authorize .admin-button { width: 100%; }
}

/* Seleções do formulário com a linguagem visual do calendário */
.custom-select { position: relative; }
.custom-select-native {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: 0 !important; padding: 0 !important; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.custom-select-trigger {
  width: 100%; min-height: 48px; padding: 14px 15px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); box-shadow: none;
  font: 400 .8rem/1.25 var(--sans); text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:not([type="hidden"]), .custom-select-trigger { min-height: 48px; }
.field input::placeholder, .field textarea::placeholder, .custom-select-trigger.is-placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.custom-select-trigger:hover { border-color: rgba(139,58,72,.55); background: #fffaf8; }
.custom-select-trigger:focus-visible, .custom-select-trigger.is-invalid {
  outline: 2px solid var(--wine); outline-offset: 2px; border-color: var(--wine);
}
.custom-select-arrow { color: var(--wine); font-size: 1.15rem; transition: transform .2s ease; }
.custom-select.is-open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-options {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; left: 0;
  padding: 8px; border: 1px solid rgba(139,58,72,.22); border-radius: 14px;
  background: #fffaf7; box-shadow: 0 18px 45px rgba(73,35,42,.14);
  transform-origin: top; animation: selectReveal .18s ease-out;
}
.custom-select-options[hidden] { display: none; }
.custom-select-option {
  width: 100%; padding: 12px 13px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font: inherit; text-align: left;
  cursor: pointer; transition: color .15s ease, background .15s ease;
}
.custom-select-option:hover, .custom-select-option:focus-visible {
  outline: none; background: #f3e5e2; color: var(--wine);
}
.custom-select-option.is-selected { background: var(--wine); color: #fff; }
@keyframes selectReveal { from { opacity: 0; transform: translateY(-5px) scale(.985); } }

/* Confirmação de promoção na equipe */
.team-card-actions { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.team-card-actions [data-role-form] { display: grid; gap: 16px; min-width: 0; }
.team-card-actions .team-form-field { display: grid; gap: 8px; margin: 0; }
.team-card-actions .team-form-field > span { display: block; line-height: 1.35; }
.team-card-actions .owner-confirmation:not([hidden]) { display: grid; gap: 8px; }
.team-card-actions .owner-confirmation[hidden] { display: none; }
.team-card-actions .team-form-field input,
.team-card-actions .team-form-field select {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; margin: 0;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: inherit; font: inherit; font-size: .875rem;
}
.team-card-actions .team-form-field input:focus-visible,
.team-card-actions .team-form-field select:focus-visible {
  outline: 2px solid #781c38; outline-offset: 2px;
}
.admin-role-select { position: relative; width: 100%; }
.admin-role-select-native {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: 0 !important; padding: 0 !important; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.admin-role-select-trigger {
  box-sizing: border-box; width: 100%; min-height: 46px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); cursor: pointer; font: 500 .76rem/1.35 var(--sans);
  text-align: left; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.admin-role-select-trigger:hover { border-color: rgba(127,32,59,.48); background: #fffaf8; }
.admin-role-select-trigger:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.admin-role-select-arrow { color: var(--wine); font-size: 1rem; line-height: 1; transition: transform .18s ease; }
.admin-role-select.is-open .admin-role-select-arrow { transform: rotate(180deg); }
.admin-role-select-options {
  position: absolute; z-index: 40; top: calc(100% + 7px); right: 0; left: 0;
  padding: 7px; border: 1px solid rgba(127,32,59,.2); border-radius: 13px;
  background: #fffaf7; box-shadow: 0 18px 42px rgba(63,32,38,.15);
  transform-origin: top; animation: adminRoleSelectReveal .16s ease-out;
}
.admin-role-select-options[hidden] { display: none; }
.admin-role-select-option {
  padding: 11px 12px; border-radius: 8px; color: var(--ink); cursor: pointer;
  font: 500 .74rem/1.35 var(--sans); transition: background .14s ease, color .14s ease;
}
.admin-role-select-option:hover, .admin-role-select-option.is-active { background: #f1e3e1; color: var(--wine); }
.admin-role-select-option.is-selected { background: var(--wine); color: #fff; }
@keyframes adminRoleSelectReveal { from { opacity: 0; transform: translateY(-4px) scale(.99); } }
.team-card-actions > form:last-child { align-self: end; padding-bottom: 3px; }
@media (max-width: 760px) {
  .settings-audit-heading { align-items: flex-start; flex-direction: column; }
  .audit-filters { justify-content: flex-start; }
  .theme-selector { width: 100%; }
  .theme-selector button { min-width: 0; padding-inline: 9px; flex: 1; }
  .settings-details div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .settings-details dd { text-align: left; }
  .custom-select-trigger { font-size: 1rem; }
  .custom-select-options { position: static; margin-top: 8px; }
  .team-card-actions { grid-template-columns: 1fr; gap: 14px; }
  .team-card-actions > form:last-child { justify-self: start; padding: 4px 0 0; }
}

/* Tema escuro editorial, aplicado somente às telas administrativas */
html[data-admin-theme="dark"] {
  --ink: #f2e9e4;
  --muted: #b9aaa6;
  --line: rgba(238,221,214,.14);
  --wine: #d08a9a;
  --rose: #d395a2;
}
html[data-admin-theme="dark"] .admin-page { background: #201a1a; color: var(--ink); }
html[data-admin-theme="dark"] .admin-topbar { border-color: var(--line); background: rgba(35,28,28,.92); }
html[data-admin-theme="dark"] .admin-navigation { border-color: var(--line); background: #2a2222; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
html[data-admin-theme="dark"] .admin-navigation > a:hover,
html[data-admin-theme="dark"] .admin-navigation > a.active { background: #422d32; color: #f4c4ce; }
html[data-admin-theme="dark"] .admin-menu-toggle { border-color: var(--line); background: #332929; }
html[data-admin-theme="dark"] .admin-table-wrap,
html[data-admin-theme="dark"] .admin-empty,
html[data-admin-theme="dark"] .admin-panel,
html[data-admin-theme="dark"] .team-card,
html[data-admin-theme="dark"] .settings-card,
html[data-admin-theme="dark"] .detail-grid article,
html[data-admin-theme="dark"] .admin-actions { border-color: var(--line); background: #2b2323; box-shadow: none; }
html[data-admin-theme="dark"] .admin-table tr { border-color: var(--line); }
html[data-admin-theme="dark"] .admin-table tbody tr:hover { background: rgba(208,138,154,.06); }
html[data-admin-theme="dark"] .admin-panel input,
html[data-admin-theme="dark"] .admin-panel select,
html[data-admin-theme="dark"] .admin-actions select,
html[data-admin-theme="dark"] .team-card input,
html[data-admin-theme="dark"] .team-card select { border-color: var(--line); background: #352c2c; color: var(--ink); }
html[data-admin-theme="dark"] .admin-button,
html[data-admin-theme="dark"] .admin-filters a.active,
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active { background: #8e3a50; color: #fff; }
html[data-admin-theme="dark"] .theme-selector { background: #241e1e; }
html[data-admin-theme="dark"] .status-pill.is-active { background: #2d4434; color: #bfe0c7; }
html[data-admin-theme="dark"] .status-pill.is-inactive { background: #3a3030; color: #c7b8b4; }
html[data-admin-theme="dark"] .status-pill.status--novo, html[data-admin-theme="dark"] .status-filter.status--novo { background: #4a2d36; border-color: #744353; color: #f1c3d0; }
html[data-admin-theme="dark"] .status-pill.status--em-contato, html[data-admin-theme="dark"] .status-filter.status--em-contato { background: #493d25; border-color: #6d5a32; color: #efd99e; }
html[data-admin-theme="dark"] .status-pill.status--confirmado, html[data-admin-theme="dark"] .status-filter.status--confirmado { background: #293d2e; border-color: #3e6047; color: #bde0c3; }
html[data-admin-theme="dark"] .status-pill.status--em-producao, html[data-admin-theme="dark"] .status-filter.status--em-producao { background: #493128; border-color: #70483a; color: #efc2ac; }
html[data-admin-theme="dark"] .status-pill.status--entregue, html[data-admin-theme="dark"] .status-filter.status--entregue { background: #313a28; border-color: #4d5d3c; color: #cfdda9; }
html[data-admin-theme="dark"] .status-pill.status--cancelado, html[data-admin-theme="dark"] .status-filter.status--cancelado { background: #4b2c2e; border-color: #754245; color: #f0bfc1; }
html[data-admin-theme="dark"] .team-form-field.has-error input { border-color: #d77b87; box-shadow: 0 0 0 3px rgba(215, 123, 135, .12); }
html[data-admin-theme="dark"] .field-error { color: #efb0b9; }

.email-settings-form > label { display: grid; gap: 8px; margin-bottom: 18px; color: var(--ink); font-size: .7rem; font-weight: 600; }
.email-settings-form .field-row { margin-bottom: 18px; }
.email-settings-form .field-row label { display: grid; gap: 8px; color: var(--ink); font-size: .7rem; font-weight: 600; }
.email-settings-form input:not([type="radio"]) { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.email-settings-form input:focus-visible { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110,31,53,.1); }
.email-secure-choice { margin: 0 0 18px; padding: 0; border: 0; }
.email-secure-choice legend { margin-bottom: 8px; font-size: .7rem; font-weight: 600; }
.email-secure-choice label { margin-right: 8px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.email-password-status { margin: -8px 0 20px; color: #315c39; font-size: .68rem; font-weight: 600; }
.email-settings-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email-settings-actions a { color: var(--wine); font-size: .7rem; font-weight: 600; }
.admin-alert.is-success { border-color: #bfd8c1; background: #e7f1e7; color: #315c39; }
html[data-admin-theme="dark"] .email-settings-form input:not([type="radio"]) { background: #2c2525; color: #f5ece7; }
html[data-admin-theme="dark"] .email-password-status { color: #bfe0c7; }
html[data-admin-theme="dark"] .admin-alert.is-success { border-color: #3e6047; background: #293d2e; color: #bfe0c7; }
@media (max-width: 640px) { .email-settings-actions { align-items: stretch; flex-direction: column; } .email-settings-actions .admin-button { width: 100%; } }
html[data-admin-theme="dark"] .admin-role-select-trigger { border-color: var(--line); background: #352c2c; color: var(--ink); }
html[data-admin-theme="dark"] .admin-role-select-trigger:hover { border-color: #9f596a; background: #3c3031; }
html[data-admin-theme="dark"] .admin-role-select-options { border-color: var(--line); background: #302727; box-shadow: 0 18px 44px rgba(0,0,0,.3); }
html[data-admin-theme="dark"] .admin-role-select-option { color: var(--ink); }
html[data-admin-theme="dark"] .admin-role-select-option:hover,
html[data-admin-theme="dark"] .admin-role-select-option.is-active { background: #49343a; color: #f1c3d0; }
html[data-admin-theme="dark"] .admin-role-select-option.is-selected { background: #8e3a50; color: #fff; }
html[data-admin-theme="dark"] .admin-alert { background: #4b292d; color: #ffd7d9; }
html[data-admin-theme="dark"] .admin-alert-success { background: #2b4433; color: #c9ebd0; }

/* Preferências públicas de aparência */
.public-theme-selector { padding: 3px; display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.public-theme-selector button { min-height: 32px; padding: 6px 9px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 600 .56rem var(--sans); }
.public-theme-selector button.active { background: var(--wine); color: #fff; }
.public-theme-selector button:focus-visible { outline-offset: 1px; }
.public-theme-selector.compact { margin-left: auto; }
.public-theme-selector.compact button { width: 32px; padding: 0; }
html[data-public-theme="dark"] { --linen: #2a2221; --paper: #211b1b; --ink: #f3e9e4; --muted: #c4b3ae; --line: rgba(242,225,217,.18); --wine: #d08a9a; --wine-dark: #f0b6c2; --rose: #d39aa5; --rust: #d18a72; --sage: #aab49f; }
html[data-public-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-public-theme="dark"] .site-header.is-scrolled { border-color: var(--line); background: rgba(33,27,27,.88); }
html[data-public-theme="dark"] .main-nav { background-color: rgba(38,31,31,.98); }
html[data-public-theme="dark"] .menu-toggle { background: rgba(65,52,52,.8); }
html[data-public-theme="dark"] .hero-wash { background: radial-gradient(circle at 78% 12%, rgba(208,138,154,.12), transparent 26%), linear-gradient(116deg,#2a2322 0%,#332827 54%,#3b2d2b 100%); }
html[data-public-theme="dark"] .hero-type { color: rgba(240,206,211,.08); }
html[data-public-theme="dark"] .presents,
html[data-public-theme="dark"] .final-cta,
html[data-public-theme="dark"] .order-page { background: var(--paper); }
html[data-public-theme="dark"] .gift-option,
html[data-public-theme="dark"] .order-card { border-color: var(--line); background: #2c2424; }
html[data-public-theme="dark"] .order-card input,
html[data-public-theme="dark"] .order-card textarea,
html[data-public-theme="dark"] .custom-select-trigger,
html[data-public-theme="dark"] .date-trigger { border-color: var(--line); background: #382e2e; color: var(--ink); }
html[data-public-theme="dark"] .custom-select-options,
html[data-public-theme="dark"] .date-calendar { border-color: var(--line); background: #302727; box-shadow: 0 20px 48px rgba(0,0,0,.35); }
html[data-public-theme="dark"] .custom-select-option:hover,
html[data-public-theme="dark"] .custom-select-option:focus-visible { background: #49343a; color: #f4c4ce; }
html[data-public-theme="dark"] .form-feedback-success { background: #293d2e; color: #bfe0c7; }
html[data-public-theme="dark"] .form-feedback-error { background: #4b2c2e; color: #f0bfc1; }

/* Configurações funcionais */
.settings-form-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.settings-card > label { margin-top: 18px; display: grid; gap: 7px; color: var(--ink); font-size: .66rem; font-weight: 600; }
.settings-card input:not([type="checkbox"]), .settings-card textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 500 .72rem/1.45 var(--sans); resize: vertical; }
.settings-card textarea { min-height: 92px; }
.settings-card input:focus-visible, .settings-card textarea:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.settings-toggle { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; cursor: pointer; line-height: 1.55; }
.settings-toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wine); }
.settings-visual-options { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 28px; }
.settings-control-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .62rem; font-weight: 600; }
.settings-save-bar { grid-column: 1 / -1; padding: 18px 0 8px; display: flex; justify-content: flex-end; }
.settings-inline-form { margin-top: 18px; }
.settings-inline-form .admin-secondary-button { min-height: 40px; }
.settings-card code { color: var(--wine); font-size: .66rem; }
html[data-admin-theme="dark"] .settings-card input:not([type="checkbox"]), html[data-admin-theme="dark"] .settings-card textarea { background: #352c2c; color: var(--ink); }
html[data-admin-density="compact"] .admin-shell { padding-top: 46px; padding-bottom: 70px; }
html[data-admin-density="compact"] .admin-table th, html[data-admin-density="compact"] .admin-table td { padding-block: 12px; }
html[data-admin-density="compact"] .team-card, html[data-admin-density="compact"] .settings-card, html[data-admin-density="compact"] .detail-grid article { padding: 20px; }

@media (max-width: 1024px) {
  .admin-shell { width: min(100% - 34px, 960px); padding-top: 54px; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid article:last-child { grid-column: 1 / -1; }
  .settings-card h2 { font-size: 1.75rem; }
  .admin-actions { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .admin-topbar { min-height: 72px; }
  .admin-brand { min-width: 0; }
  .admin-brand small { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-navigation { position: fixed; top: 82px; right: 14px; left: 14px; width: auto; max-height: calc(100svh - 98px); overflow-y: auto; }
  .admin-table-wrap { overflow: visible; border: 0; background: transparent; }
  .admin-table { min-width: 0; display: block; }
  .admin-table thead { display: none; }
  .admin-table tbody { display: grid; gap: 12px; }
  .admin-table tr { padding: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
  .admin-table td { min-width: 0; padding: 0; display: grid; grid-template-columns: minmax(88px,.45fr) 1fr; align-items: start; gap: 12px; border: 0; overflow-wrap: anywhere; }
  .admin-table td::before { content: attr(data-label); color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .admin-row-actions { display: flex !important; padding-top: 10px !important; border-top: 1px solid var(--line) !important; }
  .admin-row-actions::before { flex: 0 0 76px; }
  html[data-admin-theme="dark"] .admin-table tr { background: #2b2323; }
  .settings-form-grid { grid-template-columns: 1fr; }
  .settings-save-bar { justify-content: stretch; }
  .settings-save-bar .admin-button { width: 100%; }
  .settings-visual-options { flex-direction: column; gap: 18px; }
  .density-selector { width: 100%; }
  .density-selector button { flex: 1; }
  .team-card { overflow: visible; }
  .admin-role-select-options { position: fixed; z-index: 100; top: auto; right: 18px; bottom: 18px; left: 18px; max-height: 55svh; overflow-y: auto; }
  .email-settings-actions a { padding: 10px; text-align: center; }
}

@media (max-width: 390px) {
  .admin-shell { width: calc(100% - 22px); }
  .admin-heading h1 { font-size: clamp(2.75rem,14vw,3.8rem); }
  .admin-panel, .team-card, .settings-card, .detail-grid article, .admin-actions { padding: 20px 16px; border-radius: 16px; }
  .admin-table td { grid-template-columns: 78px 1fr; gap: 8px; }
  .theme-selector { border-radius: 16px; }
  .theme-selector button { min-height: 42px; }
  .public-theme-selector.compact { transform: scale(.9); transform-origin: right; }
  .order-header { gap: 8px; }
}

/* V31 — dois blocos operacionais equilibrados e menu público geometricamente centralizado. */
.settings-page .settings-grid { align-items: stretch; }
.settings-page .settings-operations,
.settings-page .settings-clients {
  grid-column: auto;
  display: block;
  height: 100%;
  padding: clamp(26px, 3vw, 38px);
}
.settings-page .settings-operations .settings-preference-group,
.settings-page .settings-clients .settings-preference-group { margin-top: 14px; }
.settings-page .settings-operations .theme-selector,
.settings-page .settings-clients .theme-selector { width: 100%; }
.settings-page .settings-operations .theme-selector button,
.settings-page .settings-clients .theme-selector button {
  min-width: 0;
  flex: 1 1 0;
  padding-inline: 10px;
}

@media (min-width: 1051px) {
  .site-header {
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  }
  .site-header .wordmark { grid-column: 1; justify-self: start; }
  .site-header .main-nav {
    grid-column: 2;
    justify-self: center;
    align-items: center;
    gap: clamp(24px, 2.4vw, 44px);
  }
  .site-header .header-cta { grid-column: 3; justify-self: end; }
}

@media (max-width: 900px) {
  .settings-page .settings-grid { grid-template-columns: 1fr; }
  .settings-page .settings-operations,
  .settings-page .settings-clients { grid-column: 1; }
}

@media (max-width: 390px) {
  .settings-page .settings-clients { padding: 20px 16px; }
}

/* V31 — dark mode neutro e quente, com marsala usado somente como destaque. */
html[data-admin-theme="dark"] {
  --ink: #f4f0ec;
  --muted: #bfb7b2;
  --line: rgba(255,255,255,.09);
  --wine: #c18494;
  --wine-dark: #dda5b2;
  --rose: #c7909d;
  --rust: #bc806d;
  color-scheme: dark;
}
html[data-admin-theme="dark"] .admin-page { background: #171718; color: var(--ink); }
html[data-admin-theme="dark"] .admin-topbar {
  border-color: var(--line);
  background: rgba(27,27,28,.94);
}
html[data-admin-theme="dark"] .admin-navigation,
html[data-admin-theme="dark"] .admin-table-wrap,
html[data-admin-theme="dark"] .admin-empty,
html[data-admin-theme="dark"] .admin-panel,
html[data-admin-theme="dark"] .team-card,
html[data-admin-theme="dark"] .settings-card,
html[data-admin-theme="dark"] .detail-grid article,
html[data-admin-theme="dark"] .admin-actions {
  border-color: var(--line);
  background: #242325;
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
}
html[data-admin-theme="dark"] .admin-menu-toggle,
html[data-admin-theme="dark"] .settings-page .settings-visual-options > div,
html[data-admin-theme="dark"] .settings-page .settings-preference-group,
html[data-admin-theme="dark"] .theme-selector {
  border-color: var(--line);
  background: #1e1d1f;
}
html[data-admin-theme="dark"] .admin-navigation > a:hover,
html[data-admin-theme="dark"] .admin-navigation > a.active,
html[data-admin-theme="dark"] .admin-table tbody tr:hover {
  background: rgba(199,144,157,.1);
  color: #e6b9c4;
}
html[data-admin-theme="dark"] .admin-table tr { border-color: var(--line); background: transparent; }
html[data-admin-theme="dark"] .admin-panel input,
html[data-admin-theme="dark"] .admin-panel select,
html[data-admin-theme="dark"] .admin-actions select,
html[data-admin-theme="dark"] .team-card input,
html[data-admin-theme="dark"] .team-card select,
html[data-admin-theme="dark"] .settings-card input:not([type="checkbox"]),
html[data-admin-theme="dark"] .settings-card textarea,
html[data-admin-theme="dark"] .email-settings-form input:not([type="radio"]),
html[data-admin-theme="dark"] .admin-role-select-trigger {
  border-color: rgba(255,255,255,.11);
  background: #2b292c;
  color: var(--ink);
}
html[data-admin-theme="dark"] .admin-role-select-options,
html[data-admin-theme="dark"] .custom-select-options {
  border-color: var(--line);
  background: #29272a;
  box-shadow: 0 22px 50px rgba(0,0,0,.42);
}
html[data-admin-theme="dark"] .theme-selector button,
html[data-admin-theme="dark"] .audit-filters button {
  border: 1px solid transparent;
  background: transparent;
  color: #cfc5c0;
  box-shadow: none;
}
html[data-admin-theme="dark"] .theme-selector button:hover,
html[data-admin-theme="dark"] .audit-filters button:hover,
html[data-admin-theme="dark"] .admin-role-select-option:hover,
html[data-admin-theme="dark"] .admin-role-select-option.is-active {
  background: rgba(199,144,157,.1);
  color: #efcbd3;
}
html[data-admin-theme="dark"] .admin-button,
html[data-admin-theme="dark"] .admin-filters a.active,
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active,
html[data-admin-theme="dark"] .admin-role-select-option.is-selected {
  border-color: rgba(221,165,178,.24);
  background: #7e4053;
  color: #fff8f5;
  box-shadow: 0 8px 22px rgba(65,25,38,.22);
}
html[data-admin-theme="dark"] .admin-button:hover { background: #915167; }
html[data-admin-theme="dark"] .admin-secondary-button {
  border-color: rgba(193,132,148,.62);
  background: transparent;
  color: #e0abb7;
}
html[data-admin-theme="dark"] .admin-role-select-trigger:hover {
  border-color: rgba(193,132,148,.58);
  background: #302e31;
}
html[data-admin-theme="dark"] .orders-pagination button { border-color: var(--line); color: #dfc8cd; }

/* V31 — a mesma família de tons no site público, sem marrom dominante. */
html[data-public-theme="dark"] {
  --linen: #1d1c1e;
  --paper: #171718;
  --ink: #f4f0ec;
  --muted: #bfb7b2;
  --line: rgba(255,255,255,.09);
  --wine: #c18494;
  --wine-dark: #dda5b2;
  --rose: #c7909d;
  --rust: #bc806d;
  --sage: #a9aea2;
  color-scheme: dark;
}
html[data-public-theme="dark"] body,
html[data-public-theme="dark"] .presents,
html[data-public-theme="dark"] .final-cta,
html[data-public-theme="dark"] .order-page,
html[data-public-theme="dark"] .product-detail-page { background: var(--paper); color: var(--ink); }
html[data-public-theme="dark"] .site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(23,23,24,.9);
}
html[data-public-theme="dark"] .main-nav,
html[data-public-theme="dark"] .public-preferences-panel {
  border-color: var(--line);
  background-color: #242325;
}
html[data-public-theme="dark"] .menu-toggle,
html[data-public-theme="dark"] .public-preference-options { background: #2b292c; }
html[data-public-theme="dark"] .hero-wash {
  background: radial-gradient(circle at 78% 12%, rgba(193,132,148,.11), transparent 28%), linear-gradient(116deg,#171718 0%,#1d1c1e 56%,#232124 100%);
}
html[data-public-theme="dark"] .hero-type { color: rgba(226,187,196,.065); }
html[data-public-theme="dark"] .hero h1 { color: #f4f0ec; }
html[data-public-theme="dark"] .hero h1 em { color: #d79bab; }
html[data-public-theme="dark"] .hero-description,
html[data-public-theme="dark"] .hero-note,
html[data-public-theme="dark"] .hero-cards p { color: #c8bdb7; }
html[data-public-theme="dark"] .hero-cards article,
html[data-public-theme="dark"] .gift-option,
html[data-public-theme="dark"] .order-card {
  border-color: var(--line);
  background: #242325;
  box-shadow: 0 18px 44px rgba(0,0,0,.15);
}
html[data-public-theme="dark"] .occasion-strip,
html[data-public-theme="dark"] .process,
html[data-public-theme="dark"] .manifesto { border-color: var(--line); background: #1d1c1e; }
html[data-public-theme="dark"] .order-card input,
html[data-public-theme="dark"] .order-card textarea,
html[data-public-theme="dark"] .custom-select-trigger,
html[data-public-theme="dark"] .date-trigger {
  border-color: rgba(255,255,255,.11);
  background: #2b292c;
  color: var(--ink);
}
html[data-public-theme="dark"] .custom-select-options,
html[data-public-theme="dark"] .date-calendar {
  border-color: var(--line);
  background: #29272a;
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
html[data-public-theme="dark"] .custom-select-option:hover,
html[data-public-theme="dark"] .custom-select-option:focus-visible,
html[data-public-theme="dark"] .catalog-category.is-active { background: rgba(199,144,157,.11); color: #efcbd3; }
html[data-public-theme="dark"] .catalog-category-image,
html[data-public-theme="dark"] .product-image,
html[data-public-theme="dark"] .product-main-figure { background: #29272a; box-shadow: 0 18px 42px rgba(0,0,0,.2); }
html[data-public-theme="dark"] .product-image-pending {
  background: radial-gradient(circle at 50% 38%, rgba(193,132,148,.13), transparent 30%), linear-gradient(145deg,#2b292c,#222123);
}
html[data-public-theme="dark"] .button.primary { background: #7e4053; color: #fff8f5; }
html[data-public-theme="dark"] .button.primary:hover { background: #915167; }
html[data-public-theme="dark"] .button.secondary { border-color: rgba(193,132,148,.58); background: transparent; color: #e0abb7; }
html[data-public-theme="dark"] .public-theme-selector { border-color: var(--line); background: #1e1d1f; }
html[data-public-theme="dark"] .public-theme-selector button { color: #cfc5c0; }
html[data-public-theme="dark"] .public-theme-selector button.active { background: #7e4053; color: #fff8f5; }

/* V32 — header contínuo, cards proporcionais e dark mode Ela Sorriu. */
@media (min-width: 1051px) {
  html[data-public-theme="dark"] .site-header .main-nav {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  html[data-public-theme="dark"] .site-header:not(.is-scrolled) { background: transparent; }
}

.settings-page .settings-grid {
  grid-auto-flow: row;
  align-items: stretch;
  gap: 22px;
}
.settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) {
  min-height: 0;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}
.settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) .settings-link:last-child,
.settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) .settings-inline-form:last-child {
  margin-top: auto;
}
.settings-page .settings-system .settings-details { margin-top: 13px; }
.settings-page .settings-system .settings-details div { padding: 8px 0; }
.settings-page .settings-system .settings-note { margin-top: 10px; }
.settings-page .settings-card h2 { line-height: 1.08; }
.settings-page .settings-card .status-pill { margin-top: 18px; }
.settings-page .settings-form-grid { align-items: stretch; }
.settings-page .settings-form-grid > .settings-card { height: 100%; }

html[data-admin-theme="dark"] {
  --ink: #f7f0eb;
  --muted: #cdbfc0;
  --line: #493940;
  --wine: #d4879a;
  --wine-dark: #e3a2b1;
  --rose: #d4879a;
}
html[data-admin-theme="dark"] .admin-page { background: #171317; }
html[data-admin-theme="dark"] .admin-topbar { background: rgba(23,19,23,.94); }
html[data-admin-theme="dark"] .admin-navigation,
html[data-admin-theme="dark"] .admin-table-wrap,
html[data-admin-theme="dark"] .admin-empty,
html[data-admin-theme="dark"] .admin-panel,
html[data-admin-theme="dark"] .team-card,
html[data-admin-theme="dark"] .settings-card,
html[data-admin-theme="dark"] .detail-grid article,
html[data-admin-theme="dark"] .admin-actions { background: #211a1e; }
html[data-admin-theme="dark"] .admin-menu-toggle,
html[data-admin-theme="dark"] .settings-page .settings-visual-options > div,
html[data-admin-theme="dark"] .settings-page .settings-preference-group,
html[data-admin-theme="dark"] .theme-selector,
html[data-admin-theme="dark"] .admin-panel input,
html[data-admin-theme="dark"] .admin-panel select,
html[data-admin-theme="dark"] .admin-actions select,
html[data-admin-theme="dark"] .team-card input,
html[data-admin-theme="dark"] .team-card select,
html[data-admin-theme="dark"] .settings-card input:not([type="checkbox"]),
html[data-admin-theme="dark"] .settings-card textarea,
html[data-admin-theme="dark"] .email-settings-form input:not([type="radio"]),
html[data-admin-theme="dark"] .admin-role-select-trigger { background: #2a2025; }
html[data-admin-theme="dark"] .admin-navigation > a:hover,
html[data-admin-theme="dark"] .admin-navigation > a.active,
html[data-admin-theme="dark"] .admin-table tbody tr:hover,
html[data-admin-theme="dark"] .theme-selector button:hover,
html[data-admin-theme="dark"] .audit-filters button:hover,
html[data-admin-theme="dark"] .admin-role-select-option:hover,
html[data-admin-theme="dark"] .admin-role-select-option.is-active { background: #34272e; }
html[data-admin-theme="dark"] .admin-button,
html[data-admin-theme="dark"] .admin-filters a.active,
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active,
html[data-admin-theme="dark"] .admin-role-select-option.is-selected { background: #8f304d; }

html[data-public-theme="dark"] {
  --linen: #211a1e;
  --paper: #171317;
  --ink: #f7f0eb;
  --muted: #cdbfc0;
  --line: #493940;
  --wine: #d4879a;
  --wine-dark: #e3a2b1;
  --rose: #d4879a;
}
html[data-public-theme="dark"] .site-header.is-scrolled { background: rgba(23,19,23,.92); }
html[data-public-theme="dark"] .public-preferences-panel,
html[data-public-theme="dark"] .hero-cards article,
html[data-public-theme="dark"] .gift-option,
html[data-public-theme="dark"] .order-card { background: #211a1e; }
html[data-public-theme="dark"] .menu-toggle,
html[data-public-theme="dark"] .public-preference-options,
html[data-public-theme="dark"] .order-card input,
html[data-public-theme="dark"] .order-card textarea,
html[data-public-theme="dark"] .custom-select-trigger,
html[data-public-theme="dark"] .date-trigger,
html[data-public-theme="dark"] .catalog-category-image,
html[data-public-theme="dark"] .product-image,
html[data-public-theme="dark"] .product-main-figure { background: #2a2025; }
html[data-public-theme="dark"] .main-nav a,
html[data-public-theme="dark"] .public-preferences-trigger { color: #f7f0eb; }
html[data-public-theme="dark"] .main-nav a:hover,
html[data-public-theme="dark"] .public-preferences-trigger:hover { color: #d4879a; }

/* Catálogo administrativo e aprovação de alterações */
.products-admin .admin-description,.approvals-admin .admin-description { max-width: 58ch; color: var(--muted); }
.product-pending-banner { display:flex; align-items:center; gap:12px; margin:0 0 22px; padding:16px 20px; border:1px solid var(--line); border-radius:18px; background:var(--linen); color:var(--ink); text-decoration:none; }
.product-pending-banner strong { display:grid; place-items:center; min-width:32px; height:32px; border-radius:50%; background:var(--wine); color:#fff; }
.product-pending-banner span { margin-left:auto; color:var(--wine-dark); font-weight:600; }
.product-category-manager,.product-edit-main,.product-photo-panel { padding:clamp(20px,3vw,30px); }
.product-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.product-section-heading h2,.product-edit-form h2 { margin:0; font-size:1.35rem; }
.product-category-create { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.product-category-create label,.product-category-list input,.product-edit-form label { display:grid; gap:8px; min-width:0; font-size:.88rem; font-weight:600; }
.product-category-create input,.product-category-list input,.product-edit-form input:not([type=checkbox]):not([type=file]),.product-edit-form select,.product-edit-form textarea,.approval-card-actions input { width:100%; min-height:48px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:#fffdfa; color:var(--ink); font:inherit; }
.product-edit-form textarea { min-height:145px; resize:vertical; }
.product-category-list { display:grid; gap:10px; margin-top:18px; }
.product-category-list article { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(160px,1fr) auto; align-items:center; gap:14px; padding:12px 0; border-top:1px solid var(--line); }
.product-category-list article > div { display:grid; gap:4px; }
.product-category-list small,.product-photo-panel>p,.product-photo-help { color:var(--muted); }
.product-category-list form { display:flex; align-items:center; gap:10px; min-width:0; margin:0; }
.product-category-list form input { min-height:40px; padding:8px 10px; }
.product-admin-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:26px; }
.product-admin-list > .admin-filter-empty { grid-column: 1 / -1; align-self: start; margin: 0; }
.product-admin-card { display:grid; grid-template-columns:minmax(120px,180px) minmax(0,1fr); gap:20px; min-width:0; padding:18px; border:1px solid var(--line); border-radius:20px; background:var(--linen); }
.product-admin-photo { display:grid; place-items:center; aspect-ratio:4/5; overflow:hidden; border-radius:14px; background:var(--paper); color:var(--muted); text-decoration:none; }
.product-admin-photo img { width:100%; height:100%; object-fit:cover; }
.product-admin-info,.product-admin-title { min-width:0; }
.product-admin-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.product-admin-title h2 { margin:10px 0 2px; font-size:1.2rem; }
.product-admin-title p { margin:0; color:var(--muted); }
.product-admin-price { white-space:nowrap; font-weight:700; color:var(--wine-dark)!important; }
.product-admin-description { margin:14px 0; color:var(--muted); line-height:1.6; }
.product-admin-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:16px; }
.product-admin-actions form { margin:0; }
.product-archive-action { color:#9a4d54!important; }
.product-pending-note { color:var(--wine-dark); font-size:.84rem; }
.product-edit-form { display:grid; gap:18px; }
.product-edit-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr); align-items:start; gap:18px; }
.product-edit-main,.product-photo-panel { display:grid; gap:18px; }
.product-form-two { display:grid; grid-template-columns:minmax(130px,.7fr) minmax(180px,1.3fr); gap:14px; }
.product-switches { display:grid; gap:12px; padding-top:5px; }
.product-switches label { display:flex; align-items:center; gap:10px; }
.product-switches input,.approval-exemption-toggle input { width:18px; height:18px; accent-color:var(--wine); }
.product-photo-picker { display:inline-flex; position:relative; align-items:center; justify-content:center; width:max-content; cursor:pointer; }
.product-photo-picker input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.product-photo-preview-list,.approval-photo-strip { display:flex; flex-wrap:wrap; gap:12px; }
.product-photo-preview { position:relative; width:min(100%,130px); margin:0; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:var(--paper); }
.product-photo-preview img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.product-photo-remove { width:100%; padding:8px; border:0; background:var(--paper); color:var(--wine-dark); font:inherit; cursor:pointer; }
.product-upload-status { min-height:1.3em; color:var(--wine-dark); }
.product-live-preview { margin-top:8px; padding-top:18px; border-top:1px solid var(--line); }
.product-live-preview article { display:grid; grid-template-columns:minmax(88px,120px) minmax(0,1fr); gap:16px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.product-live-preview-image { display:grid; place-items:center; aspect-ratio:1; overflow:hidden; border-radius:12px; background:var(--linen); color:var(--muted); font-size:.74rem; text-align:center; }
.product-live-preview-image img { width:100%; height:100%; object-fit:cover; }
.product-live-preview article p { margin:6px 0; color:var(--muted); font-size:.75rem; line-height:1.5; }
.product-live-preview article h3 { margin:4px 0; font:500 1.3rem/1.05 var(--serif); }
.product-live-preview article strong { color:var(--wine-dark); font-size:.85rem; }
.product-form-actions { display:flex; align-items:center; gap:18px; }
.approval-list { display:grid; gap:20px; }
.approval-card { min-width:0; padding:clamp(20px,3vw,30px); border:1px solid var(--line); border-radius:22px; background:var(--linen); box-shadow:0 14px 38px rgba(45,25,31,.06); }
.approval-card-header { display:flex; justify-content:space-between; gap:16px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.approval-card-header h2 { margin:9px 0 4px; }
.approval-card-header p { margin:0; color:var(--muted); }
.approval-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:20px; }
.approval-comparison-column { min-width:0; padding:16px; border-radius:15px; background:var(--paper); }
.approval-comparison-column h3 { margin:0 0 12px; font-size:.86rem; text-transform:uppercase; letter-spacing:.08em; }
.approval-comparison-column p { display:grid; gap:4px; margin:10px 0; overflow-wrap:anywhere; }
.approval-comparison-column p span,.approval-new-product { color:var(--muted); }
.approval-comparison-column p strong { color:var(--ink); font-weight:600; }
.approval-comparison-column.is-after { border:1px solid var(--line); background:var(--linen); }
.approval-photo-strip { margin-top:16px; }
.approval-photo-strip img { width:min(100%,120px); aspect-ratio:1; object-fit:cover; border-radius:12px; border:1px solid var(--line); }
.approval-new-product { display:grid; gap:7px; margin-top:18px; }
.approval-new-product p { margin:0; line-height:1.55; }
.approval-card-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.approval-card-actions form { display:flex; flex:1; align-items:center; gap:10px; min-width:0; margin:0; }
.approval-card-actions form:last-child { justify-content:flex-end; }
.approval-card-actions input { min-width:0; max-width:360px; }
.approval-exemption { display:grid; gap:10px; margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.approval-exemption h3 { margin:0; font-size:.98rem; }
.approval-exemption form { display:grid; gap:11px; }
.approval-exemption p,.approval-exemption small { margin:0; color:var(--muted); line-height:1.55; }
.approval-exemption-toggle { display:flex; align-items:center; gap:10px; font-weight:600; }
.approval-exemption .admin-secondary-button { justify-self:start; }

html[data-admin-theme="dark"] {
  --ink:#F7F0EB; --muted:#CDBFC0; --line:#493940; --wine:#D4879A; --wine-dark:#DFA0AF; --rose:#D4879A;
  color-scheme:dark;
}
html[data-admin-theme="dark"] .admin-page { background:#171317; color:#F7F0EB; }
html[data-admin-theme="dark"] .admin-topbar { background:rgba(23,19,23,.97); border-color:#493940; }
html[data-admin-theme="dark"] .admin-navigation,
html[data-admin-theme="dark"] .admin-panel,
html[data-admin-theme="dark"] .admin-table-wrap,
html[data-admin-theme="dark"] .admin-empty,
html[data-admin-theme="dark"] .team-card,
html[data-admin-theme="dark"] .settings-card,
html[data-admin-theme="dark"] .detail-grid article,
html[data-admin-theme="dark"] .admin-actions,
html[data-admin-theme="dark"] .product-admin-card,
html[data-admin-theme="dark"] .approval-card { background:#211A1E; border-color:#493940; color:#F7F0EB; }
html[data-admin-theme="dark"] .product-category-manager,
html[data-admin-theme="dark"] .product-edit-main,
html[data-admin-theme="dark"] .product-photo-panel,
html[data-admin-theme="dark"] .approval-comparison-column.is-after { background:#211A1E; }
html[data-admin-theme="dark"] .product-live-preview article { background:#2A2025; border-color:#493940; }
html[data-admin-theme="dark"] .product-live-preview-image { background:#34272E; }
html[data-admin-theme="dark"] .approval-comparison-column,
html[data-admin-theme="dark"] .approval-exemption,
html[data-admin-theme="dark"] .product-admin-photo,
html[data-admin-theme="dark"] .product-photo-remove { background:#2A2025; border-color:#493940; }
html[data-admin-theme="dark"] .product-category-create input,
html[data-admin-theme="dark"] .product-category-list input,
html[data-admin-theme="dark"] .product-edit-form input:not([type=checkbox]):not([type=file]),
html[data-admin-theme="dark"] .product-edit-form select,
html[data-admin-theme="dark"] .product-edit-form textarea,
html[data-admin-theme="dark"] .approval-card-actions input,
html[data-admin-theme="dark"] .admin-page input:not([type=checkbox]):not([type=hidden]),
html[data-admin-theme="dark"] .admin-page select,
html[data-admin-theme="dark"] .admin-page textarea { background:#2A2025; border-color:#493940; color:#F7F0EB; color-scheme:dark; }
html[data-admin-theme="dark"] .admin-page input::placeholder,
html[data-admin-theme="dark"] .admin-page textarea::placeholder { color:#9D8E91; }
html[data-admin-theme="dark"] .product-pending-banner,
html[data-admin-theme="dark"] .approval-exemption { background:#2A2025; border-color:#493940; color:#F7F0EB; }
html[data-admin-theme="dark"] .product-admin-description,
html[data-admin-theme="dark"] .product-admin-title p,
html[data-admin-theme="dark"] .product-category-list small,
html[data-admin-theme="dark"] .approval-card-header p,
html[data-admin-theme="dark"] .approval-comparison-column,
html[data-admin-theme="dark"] .approval-exemption p,
html[data-admin-theme="dark"] .approval-exemption small,
html[data-admin-theme="dark"] .product-photo-panel>p { color:#CDBFC0; }
html[data-admin-theme="dark"] .approval-comparison-column p strong,
html[data-admin-theme="dark"] .product-admin-title h2,
html[data-admin-theme="dark"] .product-section-heading h2 { color:#F7F0EB; }
html[data-admin-theme="dark"] .product-admin-price { color:#D4879A!important; }
html[data-admin-theme="dark"] .admin-secondary-button { border-color:#6D4A57; color:#F7F0EB; }
html[data-admin-theme="dark"] .admin-secondary-button:hover { background:#34272E; }
html[data-admin-theme="dark"] .product-archive-action { color:#DFA0AF!important; }
html[data-admin-theme="dark"] .admin-alert { background:#392126; color:#FFDDE3; border-color:#704451; }
html[data-admin-theme="dark"] .admin-success { background:#27332c; color:#DDEBDD; border-color:#465B49; }
html[data-admin-theme="dark"] .product-admin-actions a:focus-visible,
html[data-admin-theme="dark"] .product-edit-form :focus-visible,
html[data-admin-theme="dark"] .approval-card-actions :focus-visible { outline:3px solid #D4879A; outline-offset:2px; }

@media (max-width: 760px) {
  .settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) {
    padding: 22px 20px;
  }
}

/* Catálogo público — categorias leves e grade editorial */
.catalog-categories {
  margin: -10px 0 clamp(58px, 7vw, 96px);
  padding: 8px 2px 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: clamp(18px, 3vw, 46px);
}
.catalog-category {
  min-width: 0;
  padding: 8px 5px;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 .7rem/1.3 var(--sans);
  transition: color .25s ease, background .25s ease, transform .25s ease;
}
.catalog-category-image {
  width: clamp(92px, 9vw, 136px);
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--linen);
  transition: border-color .25s ease, box-shadow .25s ease, transform .35s ease;
}
.catalog-category-image img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.catalog-category:nth-child(1) img, .catalog-category:nth-child(2) img, .catalog-category:nth-child(5) img { object-position: 50% 66%; }
.catalog-category:nth-child(3) img, .catalog-category:nth-child(4) img { object-position: 38% 50%; }
.catalog-category:hover { color: var(--wine); transform: translateY(-2px); }
.catalog-category:hover .catalog-category-image { transform: scale(1.015); box-shadow: 0 13px 30px rgba(79,45,42,.12); }
.catalog-category.is-active { background: rgba(169,87,99,.08); color: var(--wine); }
.catalog-category.is-active .catalog-category-image { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(169,87,99,.09); }
.catalog-category:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.catalog-heading {
  margin-bottom: 30px;
  padding-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.catalog-heading .kicker { margin-bottom: 8px; }
.catalog-heading h3 { margin: 0; font: 400 clamp(2.65rem, 4vw, 4.8rem)/.95 var(--serif); letter-spacing: -.045em; }
.catalog-heading > p { max-width: 310px; margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.65; text-align: right; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 52px) clamp(18px, 2vw, 34px); }
.product-card { min-width: 0; }
.product-card[hidden] { display: none; }
.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  border-radius: 24px 24px 7px 7px;
  background: #e7dbd2;
  box-shadow: 0 1px 0 rgba(92,50,45,.06);
}
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.75,.25,1), filter .35s ease; }
.product-card:nth-child(1) .product-image img, .product-card:nth-child(4) .product-image img { object-position: 50% 67%; }
.product-card:nth-child(3) .product-image img { object-position: 37% 50%; }
.product-image-pending {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(176,95,108,.12), transparent 28%), linear-gradient(145deg, #f0e6df, #e6d6cf);
  color: var(--rose);
  font: 500 .62rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-image-pending::before { content: '♡'; position: absolute; color: rgba(111,31,53,.11); font: 400 7rem/1 var(--serif); }
.product-image-pending span { position: relative; padding-top: 104px; }
.product-copy { padding: 18px 2px 0; }
.product-kind { margin: 0 0 8px; color: var(--rose); font-size: .55rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.product-copy h3 { min-height: 2.1em; margin: 0 0 10px; font: 400 clamp(1.65rem, 2vw, 2.35rem)/1.05 var(--serif); letter-spacing: -.035em; }
.product-price { margin: 0 0 16px; color: var(--muted); font-size: .67rem; }
.product-link { width: fit-content; padding-bottom: 5px; display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .64rem; font-weight: 600; text-decoration: none; transition: border-color .25s ease, color .25s ease, gap .25s ease; }
.product-link:hover { gap: 14px; border-color: var(--wine); color: var(--wine); }
.product-link:focus-visible, .product-image:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
@media (hover: hover) { .product-card:hover .product-image img { transform: scale(1.02); } }

html[data-public-theme="dark"] .catalog-category.is-active { background: rgba(208,138,154,.13); }
html[data-public-theme="dark"] .catalog-category-image { background: #332929; }
html[data-public-theme="dark"] .product-image { background: #352b2a; box-shadow: 0 16px 36px rgba(0,0,0,.18); }
html[data-public-theme="dark"] .product-image-pending { background: radial-gradient(circle at 50% 38%, rgba(208,138,154,.15), transparent 29%), linear-gradient(145deg,#372d2c,#2b2323); }
html[data-public-theme="dark"] .product-image-pending::before { color: rgba(240,182,194,.14); }

@media (max-width: 1100px) {
  .catalog-categories { grid-template-columns: repeat(5, minmax(100px,1fr)); gap: 18px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .presents.section { padding-inline: 0; }
  .presents .section-heading, .catalog-heading, .product-grid { margin-left: 24px; margin-right: 24px; }
  .catalog-categories {
    margin-bottom: 58px;
    padding: 8px 24px 16px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .catalog-categories::-webkit-scrollbar { display: none; }
  .catalog-category { width: 104px; min-width: 104px; scroll-snap-align: start; }
  .catalog-category-image { width: 88px; }
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .catalog-heading > p { text-align: left; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px 14px; }
  .product-image { border-radius: 18px 18px 6px 6px; }
  .product-copy h3 { min-height: 2.25em; font-size: clamp(1.55rem,7vw,2rem); }
}
@media (max-width: 390px) {
  .presents .section-heading, .catalog-heading, .product-grid { margin-left: 18px; margin-right: 18px; }
  .catalog-categories { padding-inline: 18px; }
  .product-grid { gap-inline: 12px; }
  .product-copy { padding-top: 14px; }
  .product-kind { min-height: 2.5em; font-size: .5rem; }
  .product-copy h3 { font-size: 1.48rem; }
  .product-link { min-height: 40px; align-items: center; }
}

/* Preferências públicas: painel independente do admin */
.public-preferences-trigger {
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 .64rem var(--sans);
}
.public-preferences-trigger:hover { border-color: var(--wine); color: var(--wine); }
.public-preferences-trigger:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.public-preferences[hidden] { display: none; }
.public-preferences { position: fixed; z-index: 200; inset: 0; }
.public-preferences-backdrop { position: absolute; inset: 0; border: 0; background: rgba(40,25,24,.38); opacity: 0; cursor: default; transition: opacity .22s ease; backdrop-filter: blur(3px); }
.public-preferences-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100%;
  padding: clamp(28px,5vw,54px);
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: -24px 0 70px rgba(55,32,30,.14);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.2,.75,.25,1);
}
.public-preferences.is-open .public-preferences-backdrop { opacity: 1; }
.public-preferences.is-open .public-preferences-panel { transform: none; }
.public-preferences-open { overflow: hidden; }
.public-preferences-heading { margin-bottom: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.public-preferences-heading .kicker { margin-bottom: 9px; }
.public-preferences-heading h2 { margin: 0; font: 400 clamp(2.8rem,6vw,4.4rem)/.95 var(--serif); letter-spacing: -.045em; }
.public-preferences-close { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--wine); cursor: pointer; font: 300 1.6rem/1 var(--sans); }
.public-preferences-panel section { padding: 24px 0; border-top: 1px solid var(--line); }
.public-preferences-label { margin: 0 0 12px; color: var(--rose); font-size: .58rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.public-preference-options { padding: 4px; display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: var(--linen); }
.public-preference-options button { min-height: 42px; flex: 1; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font: 600 .62rem var(--sans); }
.public-preference-options button.active { background: var(--wine); color: #fff; box-shadow: 0 5px 16px rgba(111,31,53,.15); }
.public-preference-options button:focus-visible, .public-preferences-close:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.public-contrast-toggle { margin-top: 14px; padding: 13px 2px; display: flex; align-items: center; gap: 11px; color: var(--ink); cursor: pointer; font-size: .68rem; }
.public-contrast-toggle input { width: 19px; height: 19px; accent-color: var(--wine); }
.public-preferences-note { margin: 30px 0 0; color: var(--muted); font-size: .62rem; line-height: 1.65; }
html[data-public-theme="dark"] .public-preferences-panel { border-color: var(--line); background: #241d1d; box-shadow: -24px 0 70px rgba(0,0,0,.32); }
html[data-public-theme="dark"] .public-preference-options { background: #302727; }
html[data-public-contrast="high"] { --muted: #5a4644; --line: rgba(73,43,40,.32); }
html[data-public-theme="dark"][data-public-contrast="high"] { --ink: #fffaf6; --muted: #ead8d0; --line: rgba(255,245,239,.38); --wine: #f0a8b8; }
html[data-public-text="large"] { font-size: 112.5%; }
html[data-public-motion="reduce"] *, html[data-public-motion="reduce"] *::before, html[data-public-motion="reduce"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }

/* Preferências operacionais do painel */
.settings-preference-group { margin-top: 20px; }
.settings-preference-group .theme-selector { width: 100%; }
.settings-preference-group .theme-selector button { min-height: 42px; flex: 1; }
.orders-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: .64rem; }
.orders-pagination button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--wine); cursor: pointer; font: 600 .62rem var(--sans); }
.orders-pagination button:disabled { opacity: .38; cursor: not-allowed; }
.orders-pagination button:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
html[data-admin-theme="dark"] .orders-pagination button { border-color: var(--line); color: #f4c4ce; }

@media (max-width: 760px) {
  .public-preferences-trigger { width: 100%; min-height: 44px; justify-content: space-between; border-radius: 10px; }
  .public-preferences-panel { padding: 28px 22px; }
  .public-preferences-heading h2 { font-size: 3rem; }
  .public-preference-options { flex-wrap: wrap; }
  .public-preference-options button { min-width: 88px; }
  .settings-preference-group .theme-selector { display: flex; flex-wrap: wrap; }
  .settings-preference-group .theme-selector button { min-width: 92px; }
  .orders-pagination { justify-content: space-between; }
}

/* Ajustes finais: Configurações alinhadas, dark mode editorial e detalhes dos presentes */
.settings-page { max-width: 1180px; }
.settings-page .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}
.settings-page .settings-appearance,
.settings-page .settings-operations,
.settings-page .settings-audit { grid-column: 1 / -1; }
.settings-page .settings-card { height: auto; min-width: 0; }
.settings-page .settings-appearance,
.settings-page .settings-operations { padding: clamp(26px, 3vw, 38px); }
.settings-page .settings-visual-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.settings-page .settings-visual-options > div,
.settings-page .settings-preference-group {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.38);
}
.settings-page .settings-visual-options .theme-selector,
.settings-page .settings-preference-group .theme-selector { width: 100%; margin-top: 0; }
.settings-page .settings-visual-options .theme-selector button,
.settings-page .settings-preference-group .theme-selector button { min-width: 0; flex: 1; }
.settings-page .settings-preference-group { margin-top: 14px; }
.settings-page .settings-operations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
}
.settings-page .settings-operations > .settings-eyebrow,
.settings-page .settings-operations > h2,
.settings-page .settings-operations > .settings-description { grid-column: 1 / -1; }
.settings-page .settings-operations .settings-preference-group { margin-top: 20px; }
.settings-page .settings-form-grid { gap: 22px; }
.settings-page .settings-save-bar { padding: 2px 0 4px; }
.settings-page .settings-card > :first-child { margin-top: 0; }

/* O botão de preferências integra a mesma linha tipográfica do menu público. */
@media (min-width: 1051px) {
  .public-preferences-trigger {
    position: relative;
    min-height: 0;
    padding: 0 0 2px;
    gap: 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .public-preferences-trigger::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s ease;
  }
  .public-preferences-trigger:hover::after { transform: scaleX(1); transform-origin: left; }
}
@media (max-width: 1050px) {
  .public-preferences-trigger {
    width: auto;
    min-height: 48px;
    padding: 0;
    justify-content: flex-start;
    gap: 14px;
    border: 0;
    border-radius: 0;
    font: 400 2rem var(--serif);
  }
}

/* Tema escuro premium do painel: grafite quente, superfícies separadas e marsala contido. */
html[data-admin-theme="dark"] {
  --ink: #f5eee9;
  --muted: #bfafa7;
  --line: rgba(255,255,255,.09);
  --wine: #d89aaa;
  --wine-dark: #edbdc8;
  --rose: #c88796;
  --rust: #c68169;
  color-scheme: dark;
}
html[data-admin-theme="dark"] .admin-page { background: #181516; }
html[data-admin-theme="dark"] .admin-topbar {
  border-color: var(--line);
  background: rgba(28,24,25,.94);
  backdrop-filter: blur(18px);
}
html[data-admin-theme="dark"] .admin-navigation {
  border-color: rgba(255,255,255,.1);
  background: #242021;
  box-shadow: 0 26px 70px rgba(0,0,0,.42);
}
html[data-admin-theme="dark"] .admin-navigation > a:hover,
html[data-admin-theme="dark"] .admin-navigation > a.active { background: #392b30; color: #f2c4cf; }
html[data-admin-theme="dark"] .admin-menu-toggle { border-color: var(--line); background: #282324; }
html[data-admin-theme="dark"] .admin-table-wrap,
html[data-admin-theme="dark"] .admin-empty,
html[data-admin-theme="dark"] .admin-panel,
html[data-admin-theme="dark"] .team-card,
html[data-admin-theme="dark"] .settings-card,
html[data-admin-theme="dark"] .detail-grid article,
html[data-admin-theme="dark"] .admin-actions {
  border-color: var(--line);
  background: #242021;
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}
html[data-admin-theme="dark"] .settings-page .settings-visual-options > div,
html[data-admin-theme="dark"] .settings-page .settings-preference-group,
html[data-admin-theme="dark"] .theme-selector { border-color: var(--line); background: #1c191a; }
html[data-admin-theme="dark"] .admin-table tbody tr:hover { background: rgba(216,154,170,.055); }
html[data-admin-theme="dark"] .admin-table tr { border-color: var(--line); }
html[data-admin-theme="dark"] .admin-panel input,
html[data-admin-theme="dark"] .admin-panel select,
html[data-admin-theme="dark"] .admin-actions select,
html[data-admin-theme="dark"] .team-card input,
html[data-admin-theme="dark"] .team-card select,
html[data-admin-theme="dark"] .settings-card input:not([type="checkbox"]),
html[data-admin-theme="dark"] .settings-card textarea,
html[data-admin-theme="dark"] .email-settings-form input:not([type="radio"]),
html[data-admin-theme="dark"] .admin-role-select-trigger {
  border-color: rgba(255,255,255,.11);
  background: #2c2728;
  color: #f5eee9;
}
html[data-admin-theme="dark"] .admin-role-select-trigger:hover { border-color: rgba(216,154,170,.55); background: #332b2d; }
html[data-admin-theme="dark"] .admin-role-select-options {
  border-color: rgba(255,255,255,.1);
  background: #282324;
  box-shadow: 0 22px 50px rgba(0,0,0,.4);
}
html[data-admin-theme="dark"] .admin-role-select-option:hover,
html[data-admin-theme="dark"] .admin-role-select-option.is-active { background: #3a2d31; color: #f2c4cf; }
html[data-admin-theme="dark"] .admin-role-select-option.is-selected,
html[data-admin-theme="dark"] .admin-button,
html[data-admin-theme="dark"] .admin-filters a.active,
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active { background: #82364d; color: #fff8f5; }
html[data-admin-theme="dark"] .admin-secondary-button { border-color: #bd788b; color: #edbdc8; }
html[data-admin-theme="dark"] .admin-danger { color: #e7a1a5; }
html[data-admin-theme="dark"] .admin-alert { border: 1px solid #694047; background: #3c272b; color: #f0c7ca; }
html[data-admin-theme="dark"] .admin-alert-success,
html[data-admin-theme="dark"] .admin-alert.is-success { border-color: #3e5946; background: #25342a; color: #c6dec9; }
html[data-admin-theme="dark"] .admin-table tr { background: transparent; }

/* Página de detalhes: usa apenas dados e imagens reais já existentes. */
.product-detail-page { min-height: 100vh; background: var(--paper); color: var(--ink); }
.product-detail-header {
  min-height: 92px;
  padding: 18px clamp(22px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.product-back-link { color: var(--wine); font-size: .68rem; font-weight: 600; text-decoration: none; }
.product-back-link span { margin-right: 8px; }
.product-detail-shell {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 118px) 0 clamp(84px, 9vw, 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .78fr);
  align-items: start;
  gap: clamp(62px, 8vw, 130px);
}
.product-gallery { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 24px; }
.product-thumbnails { width: 82px; display: flex; flex-direction: column; gap: 12px; }
.product-thumbnails[hidden] { display: none; }
.product-thumbnails button {
  width: 82px;
  aspect-ratio: 1;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}
.product-thumbnails button.is-active { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110,31,53,.09); }
.product-thumbnails img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.product-main-figure {
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 4px 74px 4px 4px;
  background: var(--linen);
  box-shadow: 0 28px 70px rgba(70,38,34,.1);
}
.product-main-figure > img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-video { grid-column: 2; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--linen); }
.product-detail-video[hidden] { display: none !important; }
.product-detail-pending { width: 100%; height: 100%; display: grid; place-content: center; gap: 16px; text-align: center; color: var(--rose); }
.product-detail-pending[hidden] { display: none; }
.product-detail-pending span { color: rgba(110,31,53,.16); font: 400 10rem/1 var(--serif); }
.product-detail-pending p { margin: 0; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.product-detail-copy { padding-top: clamp(12px, 3vw, 52px); }
.product-detail-copy .kicker { margin-bottom: 22px; }
.product-detail-copy h1 { margin: 0; font: 400 clamp(4rem, 6vw, 7rem)/.82 var(--serif); letter-spacing: -.055em; }
.product-detail-price { margin: 30px 0 44px; color: var(--wine); font-size: .82rem; font-weight: 600; }
.product-detail-section { padding: 28px 0; border-top: 1px solid var(--line); }
.product-detail-section h2 { margin: 0 0 12px; font: 500 1.45rem/1.1 var(--serif); }
.product-detail-section p { max-width: 520px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.8; }
.product-order-button { width: min(100%, 360px); margin-top: 38px; justify-content: space-between; text-decoration: none; }
html[data-public-theme="dark"] .product-detail-page { background: var(--paper); }
html[data-public-theme="dark"] .product-main-figure { background: #302727; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
html[data-public-theme="dark"] .product-detail-pending span { color: rgba(240,182,194,.15); }

@media (max-width: 1024px) {
  .settings-page .settings-operations { grid-template-columns: 1fr; }
  .settings-page .settings-operations .settings-preference-group { margin-top: 14px; }
  .product-detail-shell { gap: 48px; grid-template-columns: minmax(0,1fr) minmax(310px,.85fr); }
}
@media (max-width: 760px) {
  .settings-page .settings-grid,
  .settings-page .settings-visual-options,
  .settings-page .settings-form-grid { grid-template-columns: 1fr; }
  .settings-page .settings-visual-options { gap: 12px; }
  .settings-page .settings-card { grid-column: 1; }
  .product-detail-header { min-height: 82px; padding-inline: 18px; }
  .product-back-link { max-width: 126px; text-align: right; }
  .product-detail-shell {
    width: min(100% - 36px, 620px);
    padding: 42px 0 84px;
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .product-gallery { grid-template-columns: 1fr; gap: 14px; }
  .product-detail-video { grid-column: 1; }
  .product-main-figure { grid-row: 1; border-radius: 3px 46px 3px 3px; }
  .product-thumbnails { width: 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .product-thumbnails::-webkit-scrollbar { display: none; }
  .product-thumbnails button { width: 70px; flex: 0 0 70px; }
  .product-detail-copy { padding: 0 4px; }
  .product-detail-copy h1 { font-size: clamp(3.7rem, 17vw, 5.4rem); line-height: .88; }
  .product-detail-price { margin: 24px 0 34px; }
  .product-order-button { width: 100%; margin-top: 28px; }
}
@media (max-width: 390px) {
  .product-detail-header .wordmark small { display: none; }
  .product-detail-shell { width: calc(100% - 28px); }
  .settings-page .settings-appearance,
  .settings-page .settings-operations { padding: 20px 16px; }
  .settings-page .settings-visual-options > div,
  .settings-page .settings-preference-group { padding: 14px; }
}

/* V32 FINAL — mantido no fim para prevalecer sobre compatibilidades antigas. */
.settings-page .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: stretch;
  gap: 22px;
}
.settings-page .settings-appearance,
.settings-page .settings-audit,
.settings-page .settings-form-grid { grid-column: 1 / -1; }
.settings-page .settings-operations,
.settings-page .settings-clients {
  grid-column: auto;
  height: 100%;
  padding: clamp(26px, 3vw, 34px);
  display: block;
}
.settings-page .settings-operations .settings-preference-group,
.settings-page .settings-clients .settings-preference-group { margin-top: 14px; }
.settings-page .settings-operations .theme-selector,
.settings-page .settings-clients .theme-selector { width: 100%; }
.settings-page .settings-operations .theme-selector button,
.settings-page .settings-clients .theme-selector button { min-width: 0; padding-inline: 10px; flex: 1 1 0; }
.settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) {
  min-height: 0;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}
.settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) .settings-link:last-child,
.settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) .settings-inline-form:last-child { margin-top: auto; }
.settings-page .settings-system .settings-details { margin-top: 13px; }
.settings-page .settings-system .settings-details div { padding: 8px 0; }
.settings-page .settings-system .settings-note { margin-top: 10px; }
.settings-page .settings-card .status-pill { margin-top: 18px; }
.settings-page .settings-form-grid { align-items: stretch; }
.settings-page .settings-form-grid > .settings-card { height: 100%; }

@media (min-width: 1051px) {
  .site-header { grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr); }
  .site-header .wordmark { grid-column: 1; justify-self: start; }
  .site-header .main-nav {
    grid-column: 2;
    justify-self: center;
    align-items: center;
    gap: clamp(24px, 2.4vw, 44px);
  }
  .site-header .header-cta { grid-column: 3; justify-self: end; }
  html[data-public-theme="dark"] .site-header .main-nav {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

html[data-admin-theme="dark"] {
  --ink: #f7f0eb;
  --muted: #cdbfc0;
  --line: #493940;
  --wine: #d4879a;
  --wine-dark: #e3a2b1;
  --rose: #d4879a;
  color-scheme: dark;
}
html[data-admin-theme="dark"] .admin-page { background: #171317; color: var(--ink); }
html[data-admin-theme="dark"] .admin-topbar { border-color: var(--line); background: rgba(23,19,23,.94); }
html[data-admin-theme="dark"] .admin-navigation,
html[data-admin-theme="dark"] .admin-table-wrap,
html[data-admin-theme="dark"] .admin-empty,
html[data-admin-theme="dark"] .admin-panel,
html[data-admin-theme="dark"] .team-card,
html[data-admin-theme="dark"] .settings-card,
html[data-admin-theme="dark"] .detail-grid article,
html[data-admin-theme="dark"] .admin-actions { border-color: var(--line); background: #211a1e; box-shadow: 0 18px 48px rgba(0,0,0,.18); }
html[data-admin-theme="dark"] .admin-menu-toggle,
html[data-admin-theme="dark"] .settings-page .settings-visual-options > div,
html[data-admin-theme="dark"] .settings-page .settings-preference-group,
html[data-admin-theme="dark"] .theme-selector,
html[data-admin-theme="dark"] .admin-panel input,
html[data-admin-theme="dark"] .admin-panel select,
html[data-admin-theme="dark"] .admin-actions select,
html[data-admin-theme="dark"] .team-card input,
html[data-admin-theme="dark"] .team-card select,
html[data-admin-theme="dark"] .settings-card input:not([type="checkbox"]),
html[data-admin-theme="dark"] .settings-card textarea,
html[data-admin-theme="dark"] .email-settings-form input:not([type="radio"]),
html[data-admin-theme="dark"] .admin-role-select-trigger { border-color: var(--line); background: #2a2025; color: var(--ink); }
html[data-admin-theme="dark"] .admin-navigation > a:hover,
html[data-admin-theme="dark"] .admin-navigation > a.active,
html[data-admin-theme="dark"] .admin-table tbody tr:hover,
html[data-admin-theme="dark"] .theme-selector button:hover,
html[data-admin-theme="dark"] .audit-filters button:hover,
html[data-admin-theme="dark"] .admin-role-select-option:hover,
html[data-admin-theme="dark"] .admin-role-select-option.is-active { background: #34272e; color: #efbdc9; }
html[data-admin-theme="dark"] .admin-button,
html[data-admin-theme="dark"] .admin-filters a.active,
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active,
html[data-admin-theme="dark"] .admin-role-select-option.is-selected { background: #8f304d; color: #fff8f5; }
html[data-admin-theme="dark"] .theme-selector button,
html[data-admin-theme="dark"] .audit-filters button { background: transparent; color: #cdbfc0; box-shadow: none; }
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active { background: #8f304d; color: #fff8f5; }

html[data-public-theme="dark"] {
  --linen: #211a1e;
  --paper: #171317;
  --ink: #f7f0eb;
  --muted: #cdbfc0;
  --line: #493940;
  --wine: #d4879a;
  --wine-dark: #e3a2b1;
  --rose: #d4879a;
  color-scheme: dark;
}
html[data-public-theme="dark"] body,
html[data-public-theme="dark"] .presents,
html[data-public-theme="dark"] .final-cta,
html[data-public-theme="dark"] .order-page,
html[data-public-theme="dark"] .product-detail-page { background: #171317; color: var(--ink); }
html[data-public-theme="dark"] .site-header.is-scrolled { border-color: var(--line); background: rgba(23,19,23,.92); }
html[data-public-theme="dark"] .public-preferences-panel,
html[data-public-theme="dark"] .hero-cards article,
html[data-public-theme="dark"] .gift-option,
html[data-public-theme="dark"] .order-card { border-color: var(--line); background: #211a1e; }
html[data-public-theme="dark"] .menu-toggle,
html[data-public-theme="dark"] .public-preference-options,
html[data-public-theme="dark"] .order-card input,
html[data-public-theme="dark"] .order-card textarea,
html[data-public-theme="dark"] .custom-select-trigger,
html[data-public-theme="dark"] .date-trigger,
html[data-public-theme="dark"] .catalog-category-image,
html[data-public-theme="dark"] .product-image,
html[data-public-theme="dark"] .product-main-figure { border-color: var(--line); background: #2a2025; color: var(--ink); }

.gift-site-offer {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: clamp(44px, 7vw, 104px); align-items: center;
  background: #f1e8e1; color: #28171e;
}
.gift-site-offer::before {
  content: ""; position: absolute; z-index: -1; width: min(52vw, 680px); aspect-ratio: 1;
  top: 50%; right: -13%; border: 1px solid rgba(110,31,53,.12); border-radius: 50%;
  transform: translateY(-50%);
}
.gift-site-offer-copy { max-width: 610px; }
.gift-site-offer-copy .kicker { color: #8a4051; }
.gift-site-offer-copy h2 { margin: 0; font: 400 clamp(3rem, 5.3vw, 5.4rem)/.94 var(--serif); letter-spacing: -.052em; }
.gift-site-offer-copy h2 em { color: var(--wine); font-weight: 400; }
.gift-site-offer-price { display:grid; gap:3px; margin:0 0 22px !important; color:#6f3949 !important; }
.gift-site-offer-price strong { font-size:1.25rem; color:#c8144b; }
.gift-site-offer-price span { font-size:.7rem; }
.brand-logo { display:block; width:132px; height:auto; max-height:94px; object-fit:contain; object-position:center; }
.site-header { height:112px; }
.site-header.is-scrolled { height:86px; }
.site-header .wordmark { display:flex; align-items:center; }
.site-header .brand-logo { width:104px; height:104px; max-height:none; }
.catalog-intro { position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(170px,250px) minmax(0,1fr); align-items:center; gap:clamp(28px,6vw,90px); max-width:1240px; min-height:300px; margin:0 auto 70px; padding:42px clamp(28px,5vw,72px); overflow:hidden; border:1px solid rgba(125,41,69,.18); border-radius:28px; background:radial-gradient(circle at 7% 92%,rgba(224,189,164,.36),transparent 28%),radial-gradient(circle at 93% 4%,rgba(174,82,108,.13),transparent 30%),linear-gradient(112deg,#fffdf8 0%,#fbf3eb 55%,#f4e6dd 100%); box-shadow:0 22px 55px rgba(94,59,48,.10); }
.catalog-intro::before { content:""; position:absolute; z-index:-1; left:22%; right:0; bottom:0; height:1px; background:linear-gradient(90deg,transparent,rgba(125,41,69,.24),transparent); }
.catalog-intro::after { content:""; position:absolute; z-index:-1; width:360px; height:360px; right:-110px; top:-160px; border:1px solid rgba(125,41,69,.19); border-radius:50%; box-shadow:0 0 0 22px rgba(125,41,69,.035),0 0 0 44px rgba(125,41,69,.025); }
.catalog-intro-logo { position:relative; z-index:1; width:210px; height:auto; max-height:210px; object-fit:contain; filter:drop-shadow(0 14px 18px rgba(88,45,53,.10)); }
.catalog-intro > div { position:relative; z-index:1; max-width:620px; }
.catalog-intro h1 { margin:0; font:400 clamp(2.8rem,6vw,5.8rem)/.92 var(--serif); letter-spacing:-.05em; color:var(--ink); }
.catalog-intro h1 em { color:var(--wine); }
.catalog-intro p:not(.kicker) { max-width:560px; margin:20px 0 0; color:var(--muted); font-size:.9rem; line-height:1.8; }
@media (max-width:620px) { .brand-logo { width:112px; max-height:80px; } .site-header { height:88px; } .site-header.is-scrolled { height:72px; } .site-header .brand-logo { width:72px; height:72px; max-height:none; } .catalog-intro { grid-template-columns:1fr; gap:24px; min-height:0; margin-bottom:44px; padding:30px 24px 34px; border-radius:20px; } .catalog-intro-logo { width:130px; max-height:130px; } .catalog-intro::after { width:220px; height:220px; right:-110px; top:-80px; } }
.gift-site-offer-copy > p:not(.kicker) { max-width: 465px; margin: 24px 0 27px; color: #635357; font-size: .86rem; line-height: 1.8; }
.gift-site-offer-button { gap: 18px; }
.gift-site-offer-points { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; color: #65575a; font-size: .65rem; font-weight: 600; }
.gift-site-offer-points li { padding: 0 14px; border-left: 1px solid rgba(110,31,53,.24); }
.gift-site-offer-points li:first-child { padding-left: 0; border-left: 0; }
.gift-site-offer-visual { position: relative; width: 100%; max-width: 590px; justify-self: end; padding: 14px 18px 25px 0; }
.gift-site-offer-window {
  overflow: hidden; border: 1px solid rgba(83,47,51,.2); border-radius: 24px;
  background: #fffaf5; box-shadow: 0 28px 70px rgba(65,35,39,.16);
  transform: rotate(1.2deg); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.gift-site-offer-visual:hover .gift-site-offer-window { transform: rotate(0) translateY(-4px); box-shadow: 0 34px 84px rgba(65,35,39,.2); }
.gift-site-offer-windowbar { min-height: 43px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(83,47,51,.11); color: #75676a; font-size: .52rem; font-weight: 700; letter-spacing: .12em; }
.gift-site-offer-windowbar b { color: #a86a76; }
.gift-site-offer-dots { display: flex; gap: 5px; }
.gift-site-offer-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d8b3ad; }
.gift-site-offer-dots i:nth-child(2) { background: #d8c1a0; }
.gift-site-offer-dots i:nth-child(3) { background: #aab69e; }
.gift-site-offer-window-icon { color: #8b5260; font-size: .9rem; }
.gift-site-offer-cover { height: clamp(190px, 25vw, 300px); position: relative; overflow: hidden; background: #ddd0c3; }
.gift-site-offer-cover::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(28,17,21,.58)); }
.gift-site-offer-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.gift-site-offer-cover > span { position: absolute; z-index: 1; right: 18px; bottom: 15px; left: 18px; color: #fffaf5; font: italic 400 1.1rem var(--serif); }
.gift-site-offer-story { padding: 22px clamp(18px,3vw,32px) 25px; }
.gift-site-offer-overline { margin: 0 0 7px; color: #8a4051; font-size: .5rem; font-weight: 700; letter-spacing: .16em; }
.gift-site-offer-story h3 { margin: 0; color: #28171e; font: 400 clamp(2rem,4vw,3.35rem)/.94 var(--serif); letter-spacing: -.045em; }
.gift-site-offer-story h3 em { color: var(--wine); }
.gift-site-offer-memory { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px; }
.gift-site-offer-thumbs { display: flex; align-items: center; }
.gift-site-offer-thumbs img { width: 42px; height: 42px; margin-left: -8px; border: 2px solid #fffaf5; border-radius: 50%; object-fit: cover; }
.gift-site-offer-thumbs img:first-child { margin-left: 0; }
.gift-site-offer-thumbs span { max-width: 52px; margin-left: 8px; color: #716367; font-size: .48rem; line-height: 1.25; }
.gift-site-offer-music { min-width: 0; min-height: 52px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(110,31,53,.12); border-radius: 12px; background: #f7efea; color: #56263a; }
.gift-site-offer-music > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #ead8d4; }
.gift-site-offer-music div { min-width: 0; display: grid; gap: 2px; }
.gift-site-offer-music b { overflow: hidden; color: #38242b; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.gift-site-offer-music small { color: #736568; font-size: .5rem; }
.gift-site-offer-music > i { margin-left: auto; color: #9d6370; font-size: .58rem; font-style: normal; }
.gift-site-offer-seal { position: absolute; top: 0; right: -3px; width: 92px; height: 92px; display: grid; align-content: center; justify-items: center; border: 1px solid #d7b7ae; border-radius: 50%; background: #fbf5ed; color: #74364a; box-shadow: 0 10px 24px rgba(65,35,39,.1); transform: rotate(8deg); }
.gift-site-offer-seal span { font-size: .45rem; font-weight: 700; letter-spacing: .15em; }
.gift-site-offer-seal b { font: italic 400 1.15rem var(--serif); }
.gift-site-offer-seal i { position: absolute; right: 9px; bottom: 5px; color: #a9556c; font-size: .86rem; font-style: normal; }
html[data-public-theme="dark"] .gift-site-offer { background: #211a1e; color: #f6ede8; }
html[data-public-theme="dark"] .gift-site-offer-copy > p:not(.kicker), html[data-public-theme="dark"] .gift-site-offer-points { color: #d0c2bf; }
html[data-public-theme="dark"] .gift-site-offer-window { background: #292125; border-color: rgba(255,255,255,.15); }
html[data-public-theme="dark"] .gift-site-offer-windowbar { color: #cfc2c0; border-color: rgba(255,255,255,.1); }
html[data-public-theme="dark"] .gift-site-offer-story h3, html[data-public-theme="dark"] .gift-site-offer-music b { color: #f7eee9; }
html[data-public-theme="dark"] .gift-site-offer-music { background: #34262d; border-color: rgba(255,255,255,.12); }
html[data-public-theme="dark"] .gift-site-offer-music small, html[data-public-theme="dark"] .gift-site-offer-thumbs span { color: #d2c3c0; }
html[data-public-theme="dark"] .gift-site-offer-seal { background: #34262d; border-color: #70505d; color: #f4d9df; }
@media (max-width: 900px) {
  .gift-site-offer { grid-template-columns:minmax(0,1fr) minmax(320px,.9fr); gap:34px; }
  .gift-site-offer-copy h2 { font-size:clamp(2.8rem,5.8vw,4.5rem); }
  .gift-site-offer-window { border-radius:20px; }
}
@media (max-width: 760px) {
  .gift-site-offer { grid-template-columns:minmax(0,1fr); gap:36px; }
  .gift-site-offer::before { width:90vw; top:auto; right:-35%; bottom:0; transform:none; }
  .gift-site-offer-copy { max-width:580px; }
  .gift-site-offer-copy h2 { font-size:clamp(3rem,11vw,5rem); }
  .gift-site-offer-visual { max-width:560px; justify-self:center; padding-right:10px; }
  .gift-site-offer-cover { height:clamp(190px,55vw,300px); }
  .gift-site-offer-seal { right:-2px; width:78px; height:78px; }
}
@media (max-width:420px) {
  .gift-site-offer { padding-right:20px; padding-left:20px; }
  .gift-site-offer-windowbar { padding:0 10px; font-size:.44rem; }
  .gift-site-offer-story { padding:18px 15px 20px; }
  .gift-site-offer-memory { gap:9px; }
  .gift-site-offer-thumbs img { width:34px; height:34px; }
  .gift-site-offer-thumbs span { max-width:42px; font-size:.43rem; }
  .gift-site-offer-music { gap:7px; padding:7px 8px; }
}
html[data-public-theme="dark"] .main-nav a,
html[data-public-theme="dark"] .public-preferences-trigger { color: #f7f0eb; }
html[data-public-theme="dark"] .main-nav a:hover,
html[data-public-theme="dark"] .public-preferences-trigger:hover { color: #d4879a; }

@media (max-width: 900px) {
  .settings-page .settings-grid { grid-template-columns: 1fr; }
  .settings-page .settings-card,
  .settings-page .settings-form-grid { grid-column: 1; }
}
@media (max-width: 1024px) {
  .product-admin-list { grid-template-columns:1fr; }
  .product-edit-grid { grid-template-columns:minmax(0,1fr) minmax(250px,.8fr); }
}
@media (max-width: 760px) {
  .product-category-create,.product-category-list article,.product-edit-grid,.product-form-two,.approval-comparison { grid-template-columns:1fr; }
  .product-admin-list { grid-template-columns:1fr; }
  .product-admin-card { grid-template-columns:minmax(90px,115px) minmax(0,1fr); gap:14px; padding:14px; }
  .product-admin-title { display:grid; }
  .product-admin-price { white-space:normal; }
  .product-category-list form { width:100%; }
  .product-category-list form input { flex:1; }
  .approval-card-actions,.approval-card-actions form { align-items:stretch; flex-direction:column; }
  .approval-card-actions form:last-child { justify-content:stretch; }
  .approval-card-actions .admin-button,.approval-card-actions .admin-danger { width:100%; min-height:46px; }
  .approval-card-actions input { max-width:none; }
  .product-form-actions { align-items:stretch; flex-direction:column; }
  .product-form-actions > * { width:100%; text-align:center; }
}
@media (max-width: 420px) {
  .product-admin-card { grid-template-columns:1fr; }
  .product-admin-photo { max-height:250px; aspect-ratio:4/3; }
  .product-admin-actions { align-items:stretch; flex-direction:column; }
  .product-admin-actions > *, .product-admin-actions form, .product-admin-actions button { width:100%; text-align:center; }
  .product-category-list article { align-items:stretch; }
}
@media (max-width: 390px) {
  .settings-page .settings-operations,
  .settings-page .settings-clients,
  .settings-page .settings-grid > article.settings-card:not(.settings-appearance):not(.settings-operations):not(.settings-clients):not(.settings-audit) { padding: 20px 16px; }
}

/* V56: hero in normal flow so the benefits never touch the photograph. */
.home-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px clamp(32px, 7vw, 110px);
  padding: 150px clamp(24px, 5.4vw, 104px) 48px;
}
.home-page .hero-copy { position: relative; inset: auto; width: auto; grid-column: 1; grid-row: 1; }
.home-page .hero-media-wrap {
  position: relative; inset: auto; width: 100%; height: clamp(460px, 40vw, 640px);
  grid-column: 2; grid-row: 1;
}
.home-page .hero-cards {
  position: relative; inset: auto; width: 100%; padding: 0;
  grid-column: 1 / -1; grid-row: 2; gap: 18px;
}
.home-page .scroll-cue { display: none; }
.order-card > h1 { line-height: 1.03; }
.order-basket-field { margin-bottom: 32px; }
.basket-label { margin: 0 0 12px; font-size: .8rem; font-weight: 600; }
.basket-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.basket-option, .basket-summary {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px;
  background: var(--paper); color: var(--ink); text-align: left;
}
.basket-option { display: block; padding: 0; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.basket-option[hidden], .basket-options[hidden] { display: none; }
.basket-option:hover, .basket-option[aria-pressed="true"] { border-color: var(--wine); box-shadow: 0 6px 20px rgba(77,48,48,.1); }
.basket-option:focus-visible, .basket-change:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.basket-option img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; }
.basket-caption { display: grid; gap: 8px; padding: 18px; overflow-wrap: anywhere; }
.basket-caption strong { font: 500 1.45rem/1.15 var(--serif); }
.basket-caption small { color: var(--muted); font-size: .72rem; line-height: 1.6; }
.basket-summary { display: grid; grid-template-columns: minmax(140px, .9fr) minmax(0, 1fr); align-items: center; }
.basket-summary img { width: 100%; height: 240px; object-fit: contain; }
.basket-photo-placeholder { display: grid; place-items: center; min-height: 180px; padding: 24px; color: var(--muted); text-align: center; font: 500 1.5rem/1.3 var(--serif); }
.basket-change { padding: 12px 0; margin-top: 8px; border: 0; background: transparent; color: var(--wine); font-size: .75rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.basket-error { color: var(--wine); font-size: .8rem; }
.order-next-step { margin-top:32px; padding:24px; border:1px solid var(--line); border-radius:20px; background:var(--paper); text-align:center; }
.order-next-step h2 { margin:0 0 16px; font:500 2rem/1.2 var(--serif); }
.order-next-step p { margin:0 0 22px; color:var(--muted); font-size:.85rem; line-height:1.7; }
.order-next-step .button { max-width:100%; white-space:normal; }
.order-next-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.order-next-actions .button { margin-inline:auto; }
.gift-site-offer-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px; }

.whatsapp-float { position:fixed; z-index:40; right:24px; bottom:24px; display:grid; place-items:center; width:62px; height:62px; padding:0; border-radius:50%; background:transparent; color:#fff; box-shadow:0 12px 30px rgba(12,94,47,.3),0 3px 8px rgba(0,0,0,.12); text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.whatsapp-float:hover { background:transparent; color:#fff; transform:translateY(-3px); box-shadow:0 16px 34px rgba(12,94,47,.38),0 4px 10px rgba(0,0,0,.15); }
.whatsapp-float:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.whatsapp-float-icon { display:grid; place-items:center; width:62px; height:62px; border-radius:50%; background:transparent url("imagens/whatsapp-logo.png") center/contain no-repeat; color:#fff; line-height:1; }
.whatsapp-float-icon svg { display:none; }
.whatsapp-float-copy { display:none; }
.whatsapp-float-copy strong { font-size:.75rem; font-weight:700; }
.whatsapp-float-copy small { font-size:.62rem; opacity:.9; }
html[data-public-theme="dark"] .whatsapp-float { box-shadow:0 12px 32px rgba(0,0,0,.5); }
@media (max-width: 520px) { .order-next-actions > * { width:100%; justify-content:center; } .gift-site-offer-actions { align-items:stretch; flex-direction:column; } }
@media (max-width: 520px) { .whatsapp-float { right:14px; bottom:14px; width:56px; height:56px; } .whatsapp-float-icon { width:36px; height:36px; } }

@media (max-width: 760px) {
  .home-page .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; min-height: 0; padding: 104px 24px 40px; }
  .home-page .hero-media-wrap { grid-column: 1; grid-row: 1; height: clamp(340px, 80vw, 460px); }
  .home-page .hero-copy { grid-row: 2; }
  .home-page .hero-cards { grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 12px; }
  .home-page .hero-cards article { min-width: 0; min-height: 96px; }
}
@media (max-width: 420px) {
  .basket-options { gap: 12px; }
  .basket-caption { padding: 12px; }
  .basket-caption strong { font-size: 1.2rem; }
  .basket-option .basket-caption small { display: none; }
  .basket-summary { grid-template-columns: minmax(0, 1fr); }
  .basket-summary img { height: 260px; }
}

/* Home do catálogo: marca à esquerda, faixa fotográfica e somente presentes. */
.catalog-home .site-header {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "brand navigation action";
  border-bottom-color: var(--line);
  background: rgba(251, 248, 243, .96);
}
.catalog-home .site-header .wordmark { grid-area: brand; justify-self: start; }
.catalog-home .site-header .brand-logo {
  transition: width .35s ease, height .35s ease;
}
.catalog-home .site-header.is-scrolled .brand-logo { width: 72px; height: 72px; }
.catalog-home .site-header .main-nav {
  grid-area: navigation; justify-self: center; align-items: center;
  gap: clamp(18px, 2vw, 34px);
}
.catalog-home .site-header .header-cta { grid-area: action; justify-self: end; }
.catalog-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1fr);
  width: calc(100% - clamp(32px, 7vw, 112px));
  max-width: 1530px;
  height: clamp(270px, 26vw, 390px);
  margin: 136px auto 0;
  overflow: hidden;
  border: 1px solid rgba(37,28,29,.28);
  border-radius: 12px;
  background: #f3e9e2;
}
.catalog-banner-photo { min-width: 0; overflow: hidden; }
.catalog-banner-photo img { width: 100%; height: 100%; object-fit: cover; }
.catalog-banner-photo-left img { object-position: 50% 69%; }
.catalog-banner-photo-right img { object-position: 50% 66%; }
.catalog-banner-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 100%, rgba(191, 131, 136, .13), transparent 68%), #f8f3ee;
}
.catalog-banner-message .kicker { margin: 0 0 20px; color: #8b485b; }
.catalog-banner-message h1 {
  margin: 0;
  color: #251c1d;
  font: 400 clamp(2.7rem, 5.4vw, 6.5rem)/.92 var(--serif);
  letter-spacing: -.055em;
}
.catalog-banner-message h1 em { color: #8b304d; font-weight: 400; }
.catalog-home .presents.section { padding-top: clamp(58px, 6vw, 92px); scroll-margin-top: 104px; }
.catalog-home footer { background: #f3e7ed; color: #251c1d; border-top: 1px solid rgba(110,31,53,.16); }
.catalog-home .footer-brand span,
.catalog-home .footer-brand small,
.catalog-home .footer-contact,
.catalog-home .footer-contact span,
.catalog-home .footer-links a { color: #251c1d; }
.catalog-home .footer-links a:hover,
.catalog-home .footer-contact:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-home .copyright { color: #251c1d; border-top-color: rgba(37,28,29,.27); }
html[data-public-theme="dark"] .catalog-home .site-header {
  border-bottom-color: var(--line);
  background: rgba(23, 19, 23, .96);
}
html[data-public-theme="dark"] .catalog-banner-message {
  background: radial-gradient(circle at 50% 100%, rgba(180, 105, 127, .11), transparent 68%), #242024;
}
html[data-public-theme="dark"] .catalog-banner-message .kicker { color: #d7a6b3; }
html[data-public-theme="dark"] .catalog-banner-message h1 { color: #f7f0eb; }
html[data-public-theme="dark"] .catalog-banner-message h1 em { color: #d4879a; }
html[data-public-theme="dark"] .catalog-banner { border-color: rgba(255,248,235,.78); }
html[data-public-theme="dark"] .catalog-home footer { background: #2a2328; color: #f7f0eb; }
html[data-public-theme="dark"] .catalog-home .footer-brand span,
html[data-public-theme="dark"] .catalog-home .copyright { color: #d4879a; }
html[data-public-theme="dark"] .catalog-home .footer-brand small,
html[data-public-theme="dark"] .catalog-home .footer-contact,
html[data-public-theme="dark"] .catalog-home .footer-contact span,
html[data-public-theme="dark"] .catalog-home .footer-links a { color: #f7f0eb; }
html[data-public-theme="dark"] .catalog-home .copyright { border-top-color: rgba(212,135,154,.27); }

/* Ajustes finais de navegação, filtros e ações administrativas. */
.final-cta .button-light { background: #fff8eb; color: #6e1f35; box-shadow: 0 8px 22px rgba(110,31,53,.08); }
.final-cta .button-light:hover { background: #fffdf7; }
.admin-filters { overflow-x: visible; flex-wrap: wrap; align-items: center; }
.admin-filters a { flex: 0 0 auto; }
.admin-table td, .admin-table th { border-radius: 0 !important; }
.admin-row-actions { align-items: center; }
.admin-row-actions .admin-row-link { border-radius: 0; }
.admin-table tbody tr { border-radius: 0 !important; }
.product-admin-card { border-radius: 0; }
.settings-catalog-access { min-height: 100%; }
.settings-catalog-access .settings-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 18px; border: 1px solid var(--wine); border-radius: 8px; background: var(--wine); color: #fff8eb; text-decoration: none; font-weight: 700; }
.settings-catalog-access .settings-link:hover { background: var(--wine-dark); color: #fffdf7; }
html[data-admin-theme="dark"] .settings-catalog-access .settings-link { border-color: #8f304d; background: #8f304d; color: #fff8f5; }
html[data-admin-theme="dark"] .settings-catalog-access .settings-link:hover { border-color: #915167; background: #915167; color: #fff8f5; }
@media (max-width: 760px) {
  .admin-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-filters a { text-align: center; }
  .admin-filter-footer { min-height: 42px; }
  .admin-range-filter input { height: 34px; }
  .admin-table tr { border-radius: 0 !important; }
  .admin-row-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-row-actions .admin-row-link { text-align: center; }
}
@media (max-width: 1050px) {
  .catalog-home .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
  }
  .catalog-home .site-header .menu-toggle { grid-area: toggle; justify-self: end; }
  .catalog-home .site-header .main-nav { grid-area: auto; align-items: flex-start; }
}
@media (max-width: 760px) {
  .catalog-home .site-header {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 18px;
  }
  .catalog-home .site-header .wordmark { min-width: 0; }
  .catalog-home .site-header .brand-logo { width: 68px; height: 68px; }
  .catalog-home .site-header .menu-toggle { display: flex; }
  .catalog-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(136px, 38vw, 220px) auto;
    width: calc(100vw - 28px);
    max-width: calc(100% - 28px);
    height: auto;
    margin-top: 106px;
    border-radius: 9px;
  }
  .catalog-banner-photo-left { grid-column: 1; grid-row: 1; }
  .catalog-banner-photo-right { grid-column: 2; grid-row: 1; }
  .catalog-banner-message {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: clamp(25px, 7vw, 42px) 18px;
  }
  .catalog-banner-message .kicker {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: .56rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .catalog-banner-message h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 4rem);
    line-height: .96;
    overflow-wrap: break-word;
  }
  .catalog-home .presents.section { width: 100%; max-width: 100vw; min-width: 0; }
  .catalog-home .product-grid { min-width: 0; }
  .catalog-home .presents.section { padding-top: 52px; scroll-margin-top: 80px; }
}
@media (max-width: 520px) {
  .catalog-home .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  .catalog-home .product-card { width: 100%; max-width: 100%; }
  .catalog-home .product-copy h3 { min-height: 0; }
}
@media (max-width: 420px) {
  .catalog-banner-message h1 { font-size: clamp(2rem, 9vw, 2.4rem); }
}
@media (max-width: 620px) {
  .catalog-home .site-header.is-scrolled .brand-logo { width: 54px; height: 54px; }
}

/* Filtros reais e contatos compactos nas listas administrativas. */
.admin-list-filters {
  margin: 0 0 24px;
  padding: 20px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}
.admin-list-filters label { min-width: 0; display: grid; gap: 8px; color: var(--muted); font-size: .67rem; font-weight: 600; }
.admin-filter-heading { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.admin-filter-heading strong { font-size: .8rem; }
.admin-filter-heading span { color: var(--muted); font-size: .64rem; font-weight: 400; }
.admin-filter-caption { align-self: center; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-list-filters input:not([type="range"]):not([type="checkbox"]), .admin-list-filters select {
  width: 100%; min-width: 0; height: 45px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 500 .72rem var(--sans);
}
.admin-list-filters :focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.admin-list-filters select[hidden] { display: none !important; }
.admin-filter-select { position: relative; min-width: 0; }
.admin-filter-select.is-open { z-index: 10; }
.admin-filter-select-trigger {
  width: 100%; height: 45px; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font: 500 .72rem var(--sans); text-align: left; cursor: pointer;
}
.admin-filter-select-trigger:hover { border-color: var(--wine); }
.admin-filter-select-trigger:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.admin-filter-select-trigger > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-filter-select-arrow { flex: 0 0 auto; color: var(--wine); font-size: 1rem; transition: transform .18s ease; }
.admin-filter-select.is-open .admin-filter-select-arrow { transform: rotate(180deg); }
.admin-filter-select-options {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 20;
  max-height: min(320px, 45vh); padding: 7px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 13px;
  background: #fffaf7; box-shadow: 0 18px 42px rgba(63,32,38,.15);
  animation: selectReveal .18s ease-out;
}
.admin-filter-select-options[hidden] { display: none !important; }
.admin-filter-select-option {
  min-height: 42px; padding: 10px 12px; display: flex; align-items: center;
  border-radius: 8px; color: var(--ink); cursor: pointer;
  font: 500 .78rem/1.35 var(--sans);
}
.admin-filter-select-option:hover, .admin-filter-select-option.is-active { background: #f1e3e9; color: var(--wine); }
.admin-filter-select-option.is-selected { background: #8f304d; color: #fff8eb; }
.admin-range-filter > span { color: var(--wine); font-size: .68rem; }
.admin-range-filter input { width: 100%; height: 28px; accent-color: var(--wine); cursor: pointer; }
.admin-list-filters .admin-price-toggle { min-height: 45px; display: flex; align-items: center; gap: 9px; }
.admin-price-toggle input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--wine); }
.admin-filter-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .67rem; }
.admin-filter-footer button { padding: 7px 0; border: 0; background: transparent; color: var(--wine); font-size: .67rem; font-weight: 600; cursor: pointer; }
.admin-filter-empty { padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.admin-filter-empty[hidden], .admin-table [hidden], .product-admin-card[hidden] { display: none !important; }
.mobile-client-list, .client-mobile-more { display: none; }
html[data-admin-theme="dark"] .admin-list-filters, html[data-admin-theme="dark"] .mobile-client-group { background: #282226; }
html[data-admin-theme="dark"] .admin-list-filters input:not([type="range"]):not([type="checkbox"]), html[data-admin-theme="dark"] .admin-list-filters select { background: #342b30; color: #f7f0eb; }
html[data-admin-theme="dark"] .admin-filter-select-trigger { background: #342b30; border-color: var(--line); color: #f7f0eb; }
html[data-admin-theme="dark"] .admin-filter-select-options { background: #292729; border-color: #493940; box-shadow: 0 18px 42px rgba(0,0,0,.34); }
html[data-admin-theme="dark"] .admin-filter-select-option { color: #f7f0eb; }
html[data-admin-theme="dark"] .admin-filter-select-option:hover,
html[data-admin-theme="dark"] .admin-filter-select-option.is-active { background: #3e3038; color: #f2c4d0; }
html[data-admin-theme="dark"] .admin-filter-select-option.is-selected { background: #8f304d; color: #fff8eb; }
/* O filtro Todos permanece legível mesmo quando outro status está selecionado. */
.admin-orders-page .admin-filters > a:first-child:not(.active) {
  background: #f1dfe5; border-color: #dec1ca; color: #722a40;
}
html[data-admin-theme="dark"] .admin-orders-page .admin-filters > a:first-child:not(.active) {
  background: #382931; border-color: #684554; color: #f0c5d0;
}
.admin-orders-page .admin-filters > a:first-child:hover { border-color: var(--wine); }
@media (max-width: 1024px) {
  .admin-list-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-filter-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .admin-list-filters { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .admin-list-filters input:not([type="range"]):not([type="checkbox"]), .admin-list-filters select { font-size: 1rem; }
  .admin-filter-select-trigger { font-size: 1rem; }
  .admin-filter-select-options { position: static; max-height: min(320px, 50svh); margin-top: 8px; }
  .admin-filter-footer { flex-wrap: wrap; }
  .admin-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-filters a { text-align: center; }
  .admin-filter-caption { grid-column: 1 / -1; }
  html.admin-orders-ready .admin-orders-page .admin-table-wrap { display: none; }
  html.admin-orders-ready .admin-orders-page .mobile-client-list { display: grid; gap: 12px; }
  .mobile-client-group {
    min-width: 0; border: 1px solid var(--line); border-radius: 16px;
    background: rgba(255,255,255,.62); overflow: hidden;
  }
  .mobile-client-group summary {
    min-height: 84px; padding: 17px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; column-gap: 8px; cursor: pointer; list-style: none;
  }
  .mobile-client-group summary::-webkit-details-marker { display: none; }
  .mobile-client-group summary::after { content: '⌄'; grid-column: 2; grid-row: 1 / 4; color: var(--wine); font-size: 1.2rem; }
  .mobile-client-group[open] summary::after { transform: rotate(180deg); }
  .mobile-client-group summary strong { min-width: 0; overflow-wrap: anywhere; font-size: 1rem; }
  .mobile-client-group summary span { grid-column: 1; color: var(--muted); font-size: .86rem; }
  .mobile-client-group summary small { grid-column: 1; color: var(--rose); font-size: .6rem; }
  .mobile-client-group ul { margin: 0; padding: 0 18px 8px; list-style: none; }
  .mobile-client-group li { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); font-size: .68rem; }
  .mobile-client-group li span { min-width: 0; overflow-wrap: anywhere; }
  .mobile-client-group li a { color: var(--wine); font-weight: 600; text-decoration: none; }
  .admin-clients-page .admin-table tr { display: block; padding: 17px 18px; }
  .admin-clients-page .admin-table td { display: block; padding: 0; }
  .admin-clients-page .admin-table td::before { display: none; }
  .admin-clients-page .admin-table td:first-child strong { display: block; margin-bottom: 4px; font-size: 1rem; }
  .admin-clients-page .admin-table td:nth-child(n+3), .admin-clients-page .admin-table td small { display: none; }
  .admin-clients-page .admin-table td:nth-child(2) > span { color: var(--muted); font-size: .86rem; }
  .admin-clients-page .client-mobile-more { display: block; margin-top: 12px; font-size: .68rem; }
  .client-mobile-more summary { width: max-content; color: var(--wine); cursor: pointer; }
  .client-mobile-more div { padding: 10px 0 2px; color: var(--muted); }
  .client-mobile-more p { margin: 0 0 7px; }
}

/* Edição do catálogo e acabamento da seção final. */
.home-page :is(a, button, summary),
.product-detail-page :is(a, button, summary),
.order-page :is(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.catalog-category, .catalog-category img {
  -webkit-user-select: none;
  user-select: none;
}
.catalog-category img { pointer-events: none; }
@media (hover: none) {
  .catalog-category:hover { transform: none; }
  .catalog-category:hover .catalog-category-image { transform: none; box-shadow: none; }
  .catalog-category.is-active:hover .catalog-category-image { box-shadow: 0 0 0 4px rgba(169,87,99,.09); }
}
.catalog-home footer {
  background: #dec0cd;
  border-top-color: rgba(100, 32, 56, .24);
}
.catalog-home .copyright { border-top-color: rgba(37, 28, 29, .34); }
html[data-public-theme="dark"] .catalog-home footer { background: #392831; }
.catalog-home .button-primary,
.catalog-home .admin-button { background: #642038; color: #fff8f5; }
.catalog-home .button-primary:hover,
.catalog-home .admin-button:hover { background: #4d172b; }
html[data-admin-theme="dark"] .admin-button,
html[data-admin-theme="dark"] .admin-filters a.active,
html[data-admin-theme="dark"] .theme-selector button.active,
html[data-admin-theme="dark"] .audit-filters button.active,
html[data-admin-theme="dark"] .admin-role-select-option.is-selected,
html[data-admin-theme="dark"] .admin-filter-select-option.is-selected {
  background: #64283f;
  color: #fff8f5;
}
.catalog-appearance-editor { margin-bottom: 20px; padding: clamp(20px, 3vw, 30px); }
.products-admin .admin-success,
.site-editor-page .admin-success {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  margin: 0 0 18px; padding: 10px 17px; border: 1px solid #bdd8c5;
  border-radius: 999px; background: #e8f4ec; color: #285440;
  font-size: .78rem; font-weight: 600; line-height: 1.45;
}
html[data-admin-theme="dark"] .products-admin .admin-success,
html[data-admin-theme="dark"] .site-editor-page .admin-success {
  border-color: #537663; background: #263b32; color: #d8eadc;
}
.catalog-editor-note { margin: 0 0 18px; color: var(--muted); font-size: .78rem; }
.catalog-appearance-form { display: grid; gap: 16px; }
.catalog-appearance-form label { display: grid; gap: 8px; min-width: 0; font-size: .82rem; font-weight: 600; }
.catalog-appearance-form input,
.catalog-appearance-form select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 13px;
  background: #fffdfa; color: var(--ink); font: inherit;
}
.catalog-appearance-form .admin-filter-select-trigger,
.product-edit-form .admin-filter-select-trigger { min-height: 48px; border-radius: 13px; font-size: .82rem; }
.catalog-editor-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-appearance-form .admin-button { justify-content: center; min-height: 45px; width: fit-content; }
.product-category-list article { grid-template-columns: minmax(120px,.7fr) minmax(160px,1fr) auto auto; }
.product-category-edit { position: relative; min-width: 0; }
.product-category-edit[open] { z-index: 35; }
.product-category-edit summary { width: max-content; max-width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--wine); cursor: pointer; font: 600 .7rem var(--sans); list-style: none; }
.product-category-edit summary::-webkit-details-marker { display: none; }
.product-category-edit summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.product-category-list .product-category-edit form { position: absolute; top: calc(100% + 7px); left: 0; z-index: 35; width: min(330px,calc(100vw - 42px)); padding: 17px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 16px 40px rgba(45,25,31,.16); }
.product-category-list .product-category-edit label { display: block; font-size: .69rem; }
.product-category-list .product-category-edit button { width: max-content; }
html[data-admin-theme="dark"] .product-category-edit summary,
html[data-admin-theme="dark"] .product-category-list .product-category-edit form { border-color: #493940; background: #2c262b; color: #f7f0eb; }
.catalog-order-menu { position: relative; z-index: 1; margin-left: auto; }
.catalog-order-menu[open] { z-index: 30; }
.catalog-order-menu summary {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--wine);
  background: var(--paper); font-size: 1.3rem; line-height: 1; cursor: pointer;
  list-style: none;
}
.catalog-order-menu summary::-webkit-details-marker { display: none; }
.catalog-order-menu summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.catalog-order-menu > div {
  position: absolute; top: calc(100% + 5px); right: 0; min-width: 140px;
  padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); box-shadow: 0 14px 32px rgba(45,25,31,.16);
}
.catalog-order-menu > div form { display: grid; gap: 3px; width: 100%; }
.catalog-order-menu > div { display: grid; gap: 3px; }
.catalog-order-save {
  position: fixed; z-index: 90; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(620px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 17px; background: var(--paper);
  box-shadow: 0 16px 40px rgba(45,25,31,.2);
}
.catalog-order-save[hidden] { display: none; }
.catalog-order-save p { flex: 1; margin: 0; font-size: .76rem; color: var(--ink); }
.catalog-order-save button { white-space: nowrap; }
.catalog-order-notice:empty { display: none; }
.catalog-order-notice { color: var(--wine); font-weight: 600; }
html[data-admin-theme="dark"] .catalog-order-save { background: #2c262b; border-color: #493940; }
html[data-admin-theme="dark"] .catalog-order-save p { color: #f7f0eb; }
.catalog-order-menu button {
  width: 100%; padding: 9px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink); font: 600 .74rem var(--sans);
  text-align: left; cursor: pointer;
}
.catalog-order-menu button:hover:not(:disabled) { background: #efdae3; color: #642038; }
.catalog-order-menu button:disabled { opacity: .4; cursor: default; }
.product-photo-order { position: absolute; top: 7px; right: 7px; }
.product-photo-order summary { width: 34px; height: 34px; background: var(--paper); }
.product-photo-order > div { min-width: 125px; }
.product-photo-preview { overflow: visible; }
.product-photo-preview img { border-radius: 12px 12px 0 0; }
.product-photo-preview:focus-within { z-index: 40; }
html[data-admin-theme="dark"] .catalog-appearance-form input,
html[data-admin-theme="dark"] .catalog-order-menu summary,
html[data-admin-theme="dark"] .catalog-order-menu > div { background: #2c262b; color: #f7f0eb; border-color: #493940; }
html[data-admin-theme="dark"] .catalog-order-menu button { color: #f7f0eb; }
html[data-admin-theme="dark"] .catalog-order-menu button:hover:not(:disabled) { background: #44313b; color: #ffe1ea; }
@media (max-width: 760px) {
  .catalog-editor-pair, .product-category-list article { grid-template-columns: minmax(0, 1fr); }
  .catalog-order-menu { margin-left: 0; }
  .catalog-appearance-form .admin-button { width: 100%; }
  .catalog-order-save { flex-wrap: wrap; }
  .catalog-order-save p { flex-basis: 100%; }
  .catalog-order-save button { flex: 1; }
}

/* Um único marsala para ações principais e escolhas ativas no admin escuro. */
html[data-admin-theme="dark"] :is(.admin-button, .settings-catalog-access .settings-link,
  .admin-filters a.active, .theme-selector button.active, .audit-filters button.active,
  .admin-role-select-option.is-selected, .admin-filter-select-option.is-selected) {
  background: #8f304d;
  border-color: #8f304d;
  color: #fff8eb;
}
html[data-admin-theme="dark"] :is(.admin-button, .settings-catalog-access .settings-link):hover {
  background: #a34565;
  border-color: #a34565;
  color: #fff8eb;
}

/* Filtros de pedidos: o status selecionado conserva a própria cor. */
.admin-filters a.active:not(.status-filter),
html[data-admin-theme="dark"] .admin-filters a.active:not(.status-filter) {
  background: transparent; color: var(--ink); border-color: var(--line); box-shadow: inset 0 0 0 1px var(--line);
}
.admin-filters .status-filter.status--novo.active { background: #e7ccd5; color: #71263c; border-color: #d8a8b7; }
.admin-filters .status-filter.status--em-contato.active { background: #ead8af; color: #674914; border-color: #d4b879; }
.admin-filters .status-filter.status--confirmado.active { background: #cce2cf; color: #275331; border-color: #a4c9ab; }
.admin-filters .status-filter.status--em-producao.active { background: #e9cdbd; color: #743b27; border-color: #d5ab93; }
.admin-filters .status-filter.status--entregue.active { background: #cedbbf; color: #3c5325; border-color: #a9bd92; }
.admin-filters .status-filter.status--cancelado.active { background: #eac9c8; color: #783032; border-color: #d9a5a4; }
html[data-admin-theme="dark"] .admin-filters .status-filter.status--novo.active { background: #603543; color: #f8d5df; border-color: #96576b; }
html[data-admin-theme="dark"] .admin-filters .status-filter.status--em-contato.active { background: #5a4828; color: #f5dfa6; border-color: #8a713b; }
html[data-admin-theme="dark"] .admin-filters .status-filter.status--confirmado.active { background: #34513b; color: #d1eed6; border-color: #568663; }
html[data-admin-theme="dark"] .admin-filters .status-filter.status--em-producao.active { background: #5e3b2d; color: #f5ceb7; border-color: #916046; }
html[data-admin-theme="dark"] .admin-filters .status-filter.status--entregue.active { background: #405134; color: #e2edbb; border-color: #697c4c; }
html[data-admin-theme="dark"] .admin-filters .status-filter.status--cancelado.active { background: #63383a; color: #fad3d4; border-color: #986064; }
.admin-filters a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.settings-page .settings-grid > .settings-catalog-access { grid-column: 1 / -1; min-height: 0; padding: 24px 28px; }
.settings-page .settings-catalog-access .settings-description { margin-top: 8px; }
.settings-page .settings-catalog-access .settings-link { width: fit-content; min-width: 180px; margin-top: 14px; }
.support-page .admin-heading h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.support-page .team-grid { max-width: 1000px; }
.support-page .team-card { padding: 24px; }
.support-page .support-authorize .admin-role-select-trigger { padding-right: 22px; }
.team-card .approval-exemption { padding: 18px; }
.team-card .approval-exemption p { margin: 9px 0; }
.team-delete-account { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .68rem; }
.team-delete-account summary { display: inline-block; cursor: pointer; color: var(--wine); }
.team-delete-account form { margin-top: 12px; display: grid; gap: 10px; max-width: 320px; }
.team-delete-account p { margin: 0; }
.team-delete-account label { display: grid; gap: 6px; }
.team-delete-account input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #fff); color: var(--ink); }
.team-delete-account .admin-danger { width: fit-content; }
.admin-range-filter input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--line); border-radius: 6px; }
.admin-range-filter input[type="range"]::-moz-range-track { height: 6px; background: var(--line); border-radius: 6px; }
@media (max-width: 760px) { .settings-page .settings-grid > .settings-catalog-access { grid-column: auto; padding: 20px 16px; } }
/* A lista de personalização recolhe com a mesma suavidade da abertura. */
.custom-select.is-closing .custom-select-options { pointer-events: none; animation: selectDismiss .18s ease-in forwards; }
@keyframes selectDismiss { to { opacity: 0; transform: translateY(-5px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { .custom-select.is-closing .custom-select-options { animation: none; } }

/* A célula permanece uma célula: bordas e ações seguem a mesma linha. */
@media (min-width: 761px) {
  .admin-table td.admin-row-actions { display: table-cell; vertical-align: middle; }
}
.admin-row-actions-inner { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; }
@media (max-width: 760px) {
  .admin-table td.admin-row-actions { display: block !important; }
  .admin-table td.admin-row-actions::before { display: none; }
  .admin-row-actions-inner { flex-wrap: wrap; }
}
