:root {
  --ink: #21130d;
  --coffee: #2a1309;
  --brown: #58361f;
  --cacao: #9a7656;
  --line: rgba(79, 49, 31, 0.22);
  --paper: #eadcc8;
  --paper-2: #deccb3;
  --paper-3: #caa987;
  --cream: #f5ecdd;
  --white: #fff8ec;
  --shadow: 0 18px 40px rgba(49, 28, 14, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  /* Evita rolagem lateral no celular sem quebrar o cabeçalho fixo (sticky),
     o que aconteceria com overflow: hidden. */
  overflow-x: clip;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  padding: 8px 16px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--coffee);
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.topbar-pill strong {
  color: var(--paper-3);
}

.topbar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ticker {
  overflow: hidden;
  background: #1c0c05;
  color: rgba(234, 214, 189, 0.85);
  border-bottom: 1px solid rgba(234, 214, 189, 0.08);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  padding: 9px 0;
  animation: tickerScroll 26s linear infinite;
}

.ticker-item {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid rgba(75, 43, 23, 0.08);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 108px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 26px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  height: 48px;
  padding: 0 6px 0 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-bar input:focus {
  outline: none;
}

.search-bar input::placeholder {
  color: var(--brown);
}

.search-bar button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--coffee);
  cursor: pointer;
}

.search-bar button svg {
  width: 16px;
  height: 16px;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.widget-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.widget-button svg:not(.chevron) {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke-width: 1.6;
}

.widget-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.cart-trigger svg {
  width: 27px;
  height: 27px;
}

@media (max-width: 1180px) {
  .widget-label {
    display: none;
  }
}

.account-widget {
  position: relative;
}

.account-flyout {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.account-widget.is-open .account-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-flyout .button {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
}

.account-greeting {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.account-role {
  display: inline-block;
  margin: -4px 0 2px;
  color: var(--cacao);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .account-flyout {
    right: -48px;
  }
}

.flash-message {
  background: rgba(154, 118, 86, 0.16);
  border-bottom: 1px solid var(--line);
  color: var(--coffee);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
}

.cart-widget {
  position: relative;
}

.cart-flyout {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(380px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(380px, 90vw);
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 40px rgba(49, 28, 14, 0.2);
  transform: translateX(100%);
  transition: transform 280ms ease;
}

.cart-widget.is-open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-tab {
  position: absolute;
  top: 160px;
  left: -22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--coffee);
  cursor: pointer;
  box-shadow: -6px 4px 14px rgba(49, 28, 14, 0.18);
  transition: background 150ms ease;
}

.cart-drawer-tab:hover {
  background: var(--paper);
}

.cart-drawer-tab .chevron {
  width: 18px;
  height: 18px;
  transition: transform 240ms ease;
}

.cart-widget.is-open .cart-drawer-tab .chevron {
  transform: rotate(180deg);
}

.cart-drawer-body {
  height: 100%;
  overflow: hidden;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-flyout-header,
.cart-flyout-upsell,
.cart-flyout-footer {
  flex-shrink: 0;
}

.cart-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: -4px -8px -4px -4px;
  padding: 4px 8px 4px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-3) transparent;
}

.cart-drawer-scroll::-webkit-scrollbar {
  width: 6px;
}

.cart-drawer-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.cart-drawer-scroll::-webkit-scrollbar-thumb {
  background: var(--paper-3);
  border-radius: 999px;
}

@media (max-width: 560px) {
  .cart-drawer-tab {
    top: 120px;
  }
}

.cart-flyout-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--coffee);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-flyout-empty {
  margin: 0;
  font-size: 13px;
  color: var(--brown);
}

.cart-flyout-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-flyout-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.cart-flyout-thumb-link {
  flex-shrink: 0;
}

.cart-flyout-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
  flex-shrink: 0;
}

.cart-flyout-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.cart-flyout-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.cart-flyout-weight {
  font-size: 11px;
  color: var(--brown);
}

.cart-flyout-item .quantity-control.small {
  margin-top: 2px;
}

.cart-flyout-item-end {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-flyout-remove {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  transition: color 150ms ease;
}

.cart-flyout-remove svg {
  width: 17px;
  height: 17px;
}

.cart-flyout-remove:hover {
  color: #9a3b2c;
}

.cart-flyout-price {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-flyout-upsell {
  border: 1px dashed var(--cacao);
  border-radius: 10px;
  padding: 12px;
}

.cart-flyout-upsell-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: var(--coffee);
}

.cart-flyout-upsell-body {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-flyout-upsell-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-flyout-upsell-item .cart-flyout-name {
  white-space: normal;
  line-height: 1.3;
}

.cart-upsell-nav {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--coffee);
  cursor: pointer;
}

.cart-upsell-nav svg {
  width: 14px;
  height: 14px;
}

.cart-upsell-nav:hover {
  background: rgba(154, 118, 86, 0.12);
}

.cart-flyout-upsell-item .button.small {
  flex-shrink: 0;
  width: auto;
  min-height: 34px;
  padding: 0 14px;
}

.cart-flyout-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-flyout-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  text-decoration: line-through;
  opacity: 0.6;
}

.cart-flyout-pix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: #2f6b3a;
}

.cart-flyout-savings {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: #2f6b3a;
}

.cart-flyout-points {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(154, 118, 86, 0.28);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(226, 189, 120, 0.22), rgba(226, 189, 120, 0.06));
  font-size: 12px;
  line-height: 1.4;
  color: var(--brown);
}

.cart-flyout-points svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 50%;
  background: var(--coffee);
  color: #e2bd78;
}

.cart-flyout-points strong {
  color: var(--coffee);
  font-size: 13px;
}

.cart-flyout-points a {
  font-weight: 700;
  color: var(--coffee);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-flyout-footer .button {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
}

@media (max-width: 560px) {
  .cart-flyout {
    right: -48px;
  }
}

.favoritos-widget {
  position: relative;
}

.favoritos-widget.is-open .cart-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contato-widget {
  position: relative;
}

.contato-flyout {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(300px, 88vw);
  padding: 22px;
  background: var(--coffee);
  color: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.contato-widget.is-open .contato-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contato-flyout-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
}

.contato-flyout-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.4;
}

.contato-flyout-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--paper-3);
}

a.contato-flyout-row:hover {
  color: var(--paper);
}

.contato-flyout-cta {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  background: var(--white);
  border-color: var(--white);
  color: var(--coffee);
}

@media (max-width: 560px) {
  .contato-flyout {
    right: -48px;
  }
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--cacao);
  font-size: 11px;
  font-weight: 700;
}

.promo-banner {
  background: linear-gradient(90deg, var(--coffee), #3a1c0d);
  color: var(--cream);
}

.promo-banner-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  padding: 14px 0;
}

.promo-banner-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.promo-banner-headline svg {
  width: 24px;
  height: 24px;
  color: var(--paper-3);
}

.promo-banner-headline h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.promo-banner-inner > p {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: 13px;
  color: rgba(245, 236, 221, 0.82);
}

.promo-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.countdown-box {
  min-width: 58px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
  background: rgba(245, 236, 221, 0.1);
}

.countdown-box strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.countdown-box span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 236, 221, 0.7);
}

.countdown-box-highlight {
  background: var(--cacao);
}

.countdown-box-highlight span {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Entrar / Criar conta ---------- */
.auth-page {
  display: grid;
  place-items: start center;
  padding: clamp(28px, 6vw, 72px) 16px clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(154, 118, 86, 0.16), transparent 60%),
    var(--paper);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(49, 28, 14, 0.12);
}

.auth-header {
  margin-bottom: 26px;
  text-align: center;
}

.auth-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cacao);
}

.auth-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.05;
  color: var(--coffee);
}

.auth-subtitle {
  margin: 10px auto 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brown);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.auth-field[hidden] {
  display: none;
}

.auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--coffee);
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(79, 49, 31, 0.28);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input::placeholder {
  color: rgba(88, 54, 31, 0.5);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--cacao);
  box-shadow: 0 0 0 3px rgba(154, 118, 86, 0.22);
}

.auth-field input[aria-invalid="true"] {
  border-color: #9a3b2c;
}

.auth-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 48px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--cacao);
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle.is-visivel {
  color: var(--coffee);
  background: rgba(154, 118, 86, 0.12);
}

.auth-password-toggle svg {
  width: 19px;
  height: 19px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 13px;
  color: var(--brown);
  cursor: pointer;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--coffee);
}

/* Cliente / Administrador como controle segmentado. */
.auth-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(79, 49, 31, 0.2);
  border-radius: 12px;
  background: var(--cream);
}

.auth-segmented legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--coffee);
}

.auth-segmented label {
  position: relative;
  cursor: pointer;
}

.auth-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-segmented span {
  display: block;
  padding: 10px 8px;
  border-radius: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  transition: background 160ms ease, color 160ms ease;
}

.auth-segmented input:checked + span {
  background: var(--coffee);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(42, 18, 8, 0.18);
}

.auth-segmented input:focus-visible + span {
  outline: 2px solid var(--cacao);
  outline-offset: 2px;
}

.button.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 13px;
}

.auth-divisor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cacao);
}

.auth-divisor::before,
.auth-divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-footnote {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--brown);
}

.auth-footnote a {
  font-weight: 700;
  color: var(--coffee);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Botões de acesso social (login, cadastro e checkout). */
.social-access {
  display: grid;
  gap: 10px;
}

.social-access form {
  margin: 0;
}

.social-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  color: #1f1f1f;
  font: 600 14px var(--sans);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.social-button:hover {
  border-color: #c4c7cc;
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
}

.social-button:focus-visible {
  outline: 2px solid var(--cacao);
  outline-offset: 2px;
}

.social-button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Página do pedido (consulta sem cadastro e link do e-mail) ---------- */
.pedido-page {
  padding: clamp(28px, 5vw, 56px) 16px clamp(48px, 7vw, 80px);
  background: var(--paper);
}

.pedido-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.pedido-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}

.pedido-data {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--brown);
}

.pedido-selo {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(154, 118, 86, 0.16);
  color: var(--coffee);
}

.pedido-selo.is-ok { background: #dfe9d6; color: #36552a; }
.pedido-selo.is-alerta { background: #f3e2bd; color: #7a5410; }
.pedido-selo.is-erro { background: #f1d6cf; color: #8a2f22; }

.pedido-aviso {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #e8cf98;
  border-radius: 12px;
  background: #fbf1da;
  font-size: 14px;
  color: #6b4a12;
}

.pedido-aviso.is-erro {
  border-color: #e4b8ad;
  background: #f8e3dd;
  color: #8a2f22;
}

.pedido-pagamento {
  margin-bottom: 20px;
}

.pedido-pagamento-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pedido-codigo {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.pedido-codigo code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-size: 13px;
  word-break: break-all;
  color: var(--ink);
}

.pedido-codigo .button,
.pedido-trocar .button {
  justify-self: start;
}

.pedido-qr {
  display: block;
  width: 200px;
  height: auto;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pedido-trocar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pedido-trocar summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--coffee);
}

.pedido-trocar form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pedido-opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.pedido-opcao:has(input:checked) {
  border-color: var(--coffee);
  background: var(--cream);
}

.pedido-opcao input {
  accent-color: var(--coffee);
}

.pedido-opcao small {
  display: block;
  font-size: 12px;
  color: var(--cacao);
}

.pedido-etapas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 24px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  list-style: none;
}

.pedido-etapas li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(88, 54, 31, 0.55);
}

.pedido-etapas li + li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.pedido-etapas li.is-feito::before {
  background: var(--coffee);
}

.pedido-etapa-ponto {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.pedido-etapas li.is-feito {
  color: var(--coffee);
}

.pedido-etapas li.is-feito .pedido-etapa-ponto {
  border-color: var(--coffee);
  background: var(--coffee);
}

.pedido-etapas li.is-atual .pedido-etapa-ponto {
  box-shadow: 0 0 0 5px rgba(154, 118, 86, 0.25);
}

.pedido-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pedido-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 14px;
  color: var(--brown);
}

.pedido-card h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--coffee);
}

.pedido-card p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.pedido-itens {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pedido-itens li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pedido-itens small,
.pedido-eventos small {
  display: block;
  font-size: 12px;
  color: var(--cacao);
}

.pedido-itens strong {
  white-space: nowrap;
  color: var(--coffee);
}

.pedido-totais {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
}

.pedido-totais div {
  display: flex;
  justify-content: space-between;
}

.pedido-totais dd {
  margin: 0;
}

.pedido-totais .is-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
  color: var(--coffee);
}

.pedido-eventos {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding-left: 18px;
}

.pedido-ajuda {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--brown);
}

.pedido-ajuda a {
  font-weight: 700;
  color: var(--coffee);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .pedido-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pedido-etapas {
    font-size: 11px;
  }
}

/* Extrato de pontos em Minha conta. */
.pontos-extrato {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pontos-extrato li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.pontos-extrato small {
  display: block;
  font-size: 12px;
  color: var(--cacao);
}

.pontos-extrato strong {
  color: #4d6b3c;
  white-space: nowrap;
}

.pontos-extrato strong.is-negativo {
  color: #9a3b2c;
}

/* Checkout: convite para entrar com Google, compacto. */
.checkout-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.checkout-social-texto {
  display: grid;
  gap: 2px;
  flex: 1 1 280px;
  font-size: 13px;
  color: var(--brown);
}

.checkout-social-texto strong {
  font-size: 15px;
  color: var(--coffee);
}

.checkout-social .social-access {
  flex: 0 1 300px;
}

@media (max-width: 420px) {
  .auth-card {
    border-radius: 14px;
  }

  .auth-field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Natal (destaque da home) ---------- */
.natal-hero {
  --natal-ouro: #e2bd78;
  --natal-ouro-claro: #f3d9a4;
  --natal-vinho: #8f1d26;
  --natal-vinho-claro: #b3303a;
  --natal-verde: #2e6b4a;
  --natal-escuro: #1a0507;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 80% 45%, rgba(226, 189, 120, 0.22), transparent 46%),
    radial-gradient(ellipse at 0% 100%, rgba(46, 107, 74, 0.45), transparent 55%),
    radial-gradient(ellipse at 30% 0%, rgba(179, 48, 58, 0.35), transparent 50%),
    linear-gradient(140deg, #3d0b11 0%, #26070b 55%, var(--natal-escuro) 100%);
  /* Cabeçalho + banner ocupam exatamente a altura da tela.
     --altura-cabecalho é medida pelo script do layout. */
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--altura-cabecalho, 160px));
  min-height: calc(100svh - var(--altura-cabecalho, 160px));
}

.natal-hero > .natal-inner {
  flex: 1;
}

/* Estrelinhas douradas ao fundo. */
.natal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(rgba(243, 217, 164, 0.5) 1px, transparent 1.6px),
    radial-gradient(rgba(243, 217, 164, 0.25) 1px, transparent 1.4px);
  background-size: 90px 90px, 37px 37px;
  background-position: 12px 20px, 0 0;
  mask-image: linear-gradient(100deg, transparent 5%, #000 50%, transparent 98%);
}

/* Neve: duas camadas de flocos em velocidades diferentes. */
.natal-neve,
.natal-neve::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.natal-neve {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.75) 1.4px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.55) 1px, transparent 1.6px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.8px);
  background-size: 140px 140px;
  animation: natal-neve-perto 16s linear infinite;
}

.natal-neve::before {
  content: "";
  background-image:
    radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.9) 2px, transparent 2.8px),
    radial-gradient(circle at 90% 25%, rgba(255, 255, 255, 0.7) 2.4px, transparent 3.2px);
  background-size: 260px 260px;
  opacity: 0.8;
  animation: natal-neve-longe 24s linear infinite;
}

@keyframes natal-neve-perto {
  to { background-position: 0 140px; }
}

@keyframes natal-neve-longe {
  to { background-position: 0 260px; }
}

/* Faixa rolante no topo do banner, listrada como bengala de Natal. */
.natal-marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 189, 120, 0.35);
  background: repeating-linear-gradient(-45deg, var(--natal-vinho) 0 16px, var(--natal-vinho-claro) 16px 32px);
  color: #fff6e6;
}

.natal-marquee-track {
  display: flex;
  width: max-content;
  animation: natal-marquee 28s linear infinite;
}

.natal-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 9px 0 9px 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.natal-marquee-track span::after {
  content: "❄";
  font-size: 11px;
  color: var(--natal-ouro-claro);
}

@keyframes natal-marquee {
  to { transform: translateX(-50%); }
}

.natal-inner {
  width: min(1180px, calc(100% - clamp(32px, 6vw, 96px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4vh, 56px) 0;
}

/* Em telas baixas, a vitrine encolhe para o banner caber na altura. */
@media (min-width: 861px) {
  .natal-media-wrap {
    max-width: min(520px, calc(100svh - var(--altura-cabecalho, 160px) - 120px));
  }

  .natal-titulo-feliz {
    font-size: clamp(44px, min(5.6vw, 9vh), 88px);
  }

  .natal-titulo-natal {
    font-size: clamp(64px, min(9.6vw, 15vh), 144px);
  }
}

.natal-selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(226, 189, 120, 0.45);
  border-radius: 999px;
  background: rgba(26, 5, 7, 0.35);
  color: var(--natal-ouro);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.natal-selo-ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--natal-ouro);
  box-shadow: 0 0 0 0 rgba(226, 189, 120, 0.7);
  animation: natal-pulso 1.8s ease-out infinite;
}

@keyframes natal-pulso {
  70% { box-shadow: 0 0 0 8px rgba(226, 189, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 189, 120, 0); }
}

.natal-titulo {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 0.86;
}

.natal-titulo-feliz {
  margin-left: 0.08em;
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 88px);
  font-style: italic;
  font-weight: 600;
  color: var(--natal-ouro-claro);
}

.natal-titulo-natal {
  font-family: var(--sans);
  font-size: clamp(72px, 9.6vw, 144px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--natal-ouro-claro) 0%, var(--natal-ouro) 45%, #c98a4b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(226, 189, 120, 0.25));
}

.natal-subtitulo {
  max-width: 470px;
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  color: #fff6e6;
}

.natal-texto {
  max-width: 440px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 236, 221, 0.78);
}

.natal-countdown-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.natal-countdown-rotulo {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 236, 221, 0.65);
}

.natal-countdown {
  display: flex;
  gap: 8px;
}

.natal-countdown-box {
  min-width: 66px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(226, 189, 120, 0.3);
  border-radius: 10px;
  background: rgba(26, 5, 7, 0.35);
}

.natal-countdown-box:first-child {
  border-color: var(--natal-ouro);
  background: var(--natal-ouro);
  color: var(--natal-escuro);
}

.natal-countdown-box strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.natal-countdown-box span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.natal-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 30px;
}

.button.natal-cta {
  border-color: var(--natal-ouro);
  background: var(--natal-ouro);
  color: var(--natal-escuro);
  box-shadow: 0 14px 34px rgba(226, 189, 120, 0.25);
  transition: transform 160ms ease, background 160ms ease;
}

.button.natal-cta:hover {
  background: var(--natal-ouro-claro);
  transform: translateY(-1px);
}

.natal-preco {
  font-size: 13px;
  color: rgba(245, 236, 221, 0.72);
}

.natal-preco strong {
  color: var(--natal-ouro);
  font-size: 16px;
}

/* Vitrine com os banners cadastrados no painel. */
.natal-vitrine {
  position: relative;
  padding: 14px;
}

.natal-vitrine::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(226, 189, 120, 0.45);
  border-radius: 26px;
  transform: rotate(-2.5deg);
  pointer-events: none;
}

/* Bolas de Natal penduradas sobre a foto, cada uma num fio de altura diferente. */
.natal-enfeites {
  position: absolute;
  top: 0;
  left: 9%;
  z-index: 10;
  display: flex;
  gap: 26px;
  pointer-events: none;
}

.natal-enfeite {
  --fio: 46px;
  --cor: var(--natal-vinho-claro);
  position: relative;
  width: 1px;
  height: var(--fio);
  margin-top: -14px;
  background: linear-gradient(var(--natal-ouro), rgba(226, 189, 120, 0.6));
  transform-origin: top center;
  animation: natal-balanco 4.2s ease-in-out infinite alternate;
}

.natal-enfeite:nth-child(2) {
  --fio: 78px;
  --cor: var(--natal-ouro);
  animation-delay: -1.4s;
}

.natal-enfeite:nth-child(3) {
  --fio: 56px;
  --cor: var(--natal-verde);
  animation-delay: -2.8s;
}

/* Tampinha dourada. */
.natal-enfeite::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -4px;
  width: 9px;
  height: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--natal-ouro-claro);
}

.natal-enfeite::after {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: -15px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.75) 0 3px, transparent 7px),
    radial-gradient(circle at 40% 35%, var(--cor) 0%, color-mix(in srgb, var(--cor) 55%, #000) 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

@keyframes natal-balanco {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

.natal-media-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  background: #2a0a0d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.natal-media-wrap .hero-slide:nth-child(n) .hero-media {
  object-fit: cover;
  object-position: center;
}

.natal-media-wrap.is-manual .hero-slide {
  animation: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.natal-media-wrap.is-manual .hero-slide.is-active {
  opacity: 1;
}

.natal-media-wrap .hero-controls {
  right: 18px;
  bottom: 18px;
}

.natal-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 10;
  width: 112px;
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--natal-ouro);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--natal-vinho-claro), var(--natal-vinho) 70%);
  color: #fff6e6;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transform: rotate(12deg);
  text-align: center;
}

.natal-badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(243, 217, 164, 0.55);
  border-radius: 50%;
}

.natal-badge small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.natal-badge strong {
  font-size: 36px;
  line-height: 1;
  color: var(--natal-ouro-claro);
}

@media (prefers-reduced-motion: reduce) {
  .natal-marquee-track,
  .natal-selo-ponto,
  .natal-neve,
  .natal-neve::before,
  .natal-enfeite {
    animation: none;
  }
}

@media (max-width: 860px) {
  .natal-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .natal-titulo {
    align-items: center;
  }

  .natal-subtitulo,
  .natal-texto {
    margin-left: auto;
    margin-right: auto;
  }

  .natal-countdown-wrap,
  .natal-ctas {
    justify-content: center;
  }

  .natal-vitrine {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .natal-titulo-feliz {
    font-size: 42px;
  }

  .natal-titulo-natal {
    font-size: 64px;
  }

  .natal-countdown-box {
    min-width: 58px;
  }

  .natal-countdown-box strong {
    font-size: 22px;
  }

  .natal-badge {
    width: 88px;
    height: 88px;
  }

  .natal-badge strong {
    font-size: 28px;
  }

  .natal-enfeites {
    gap: 18px;
  }

  .button.natal-cta {
    width: 100%;
  }
}

/* ---------- Estrelas e avaliações ---------- */
.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #c9a46a;
  stroke-width: 1.6;
}

.stars svg.is-on {
  fill: #d9a441;
  stroke: #d9a441;
}

.product-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 4px;
}

.card-rating-row small {
  font-size: 11px;
  color: var(--cacao);
}

.price-old {
  margin-right: 6px;
  font-size: 0.8em;
  font-weight: 500;
  color: var(--cacao);
}

.card-esgotado {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(154, 59, 44, 0.1);
  color: #7c2a1d;
  font-size: 13px;
  font-weight: 700;
}

.card-esgotado a {
  text-decoration: underline;
}

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: start;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border-radius: 10px;
  background: rgba(248, 238, 222, 0.7);
}

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.reviews-score strong {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--coffee);
}

.reviews-score span:last-child {
  font-size: 12px;
  color: var(--brown);
}

.reviews-bars {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 4px;
}

.reviews-bar {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--brown);
}

.reviews-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.reviews-bar-track span {
  display: block;
  height: 100%;
  background: #d9a441;
}

.review {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.review header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.review p {
  margin: 8px 0;
}

.review footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--cacao);
}

.review-verified {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcebd5;
  color: #2f5524;
  font-weight: 700;
}

.review-reply {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--cacao);
  border-radius: 0 8px 8px 0;
  background: rgba(248, 238, 222, 0.7);
  font-size: 14px;
}

.review-reply p {
  margin: 4px 0 0;
}

.review-form-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(248, 238, 222, 0.7);
}

.review-form-box h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--coffee);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

.review-form textarea {
  min-height: 120px;
  resize: vertical;
}

.review-hint {
  margin: 0;
  font-size: 12px;
  color: var(--cacao);
}

.review-status {
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.review-status.is-ok { background: #dcebd5; color: #2f5524; }
.review-status.is-alerta { background: #f7e6bf; color: #6b4d0f; }
.review-status.is-erro { background: #f3d6cf; color: #7c2a1d; }

/* Seletor de estrelas: inputs em ordem 5→1 com row-reverse, para o hover pintar à esquerda. */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

.star-input legend {
  width: 100%;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown);
}

.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.star-input label {
  font-size: 30px;
  line-height: 1;
  color: var(--paper-3);
  cursor: pointer;
  transition: color 0.1s ease, transform 0.1s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: #d9a441;
}

.star-input input:focus-visible + label {
  outline: 2px solid var(--cacao);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .reviews {
    grid-template-columns: 1fr;
  }
}

.footer-credit {
  color: #e4cfae;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit:hover {
  color: #fff6e6;
}

.socials a .social-icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 680px) {
  .promo-banner-inner {
    justify-content: center;
    text-align: center;
  }

  .promo-banner-inner > p {
    flex-basis: 100%;
    text-align: center;
  }

  .promo-countdown {
    flex-basis: 100%;
    justify-content: center;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, calc(100vh - 250px), 520px);
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg width='360' height='360' viewBox='0 0 360 360' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23856747' stroke-width='1'%3E%3Cpath d='M185 42c30 58 31 111 2 158-29-47-29-100-2-158Z'/%3E%3Cpath d='M149 70c53 35 77 82 72 141-49-31-75-78-72-141Z'/%3E%3Cpath d='M221 70c-53 35-77 82-72 141 49-31 75-78 72-141Z'/%3E%3Cpath d='M118 156c48 5 83 28 104 69-47-4-82-27-104-69Z'/%3E%3Cpath d='M252 156c-48 5-83 28-104 69 47-4 82-27 104-69Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 38% 42%;
  background-size: 360px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  min-height: clamp(440px, calc(100vh - 250px), 520px);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42vw 58vw;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 20;
  max-width: min(440px, calc(42vw - 92px));
  margin-left: clamp(42px, 5.8vw, 108px);
  padding: clamp(42px, 5vh, 60px) 0 36px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 4.25vw, 68px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--cacao);
}

.flourish {
  width: 96px;
  height: 16px;
  margin: 24px 0 24px;
  color: var(--cacao);
}

.hero p {
  max-width: 380px;
  margin: 0 0 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
  color: #21130d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--coffee);
  border-radius: 4px;
  background: transparent;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button svg {
  width: 19px;
  height: 19px;
}

.button.primary {
  border-color: var(--coffee);
  color: var(--white);
  background: var(--coffee);
  box-shadow: 0 10px 24px rgba(42, 18, 8, 0.18);
}

.button.secondary {
  border-color: var(--brown);
  color: var(--brown);
  background: transparent;
}

.hero-media-wrap {
  left: 42vw;
  right: 0;
  width: auto;
  top: 0;
  bottom: 0;
  position: absolute;
  overflow: hidden;
  background: #2a1208;
}

.hero-media-wrap::before,
.hero-media-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-media-wrap::before {
  z-index: 6;
  left: -1253px;
  width: 1306px;
  height: 1306px;
  background: #a88463;
}

.hero-media-wrap::after {
  z-index: 7;
  left: -1250px;
  width: 1300px;
  height: 1300px;
  background: var(--paper);
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 238, 222, 0.72);
  border-radius: 50%;
  color: var(--coffee);
  background: rgba(248, 238, 222, 0.86);
  box-shadow: 0 10px 24px rgba(42, 18, 8, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.hero-control:hover {
  transform: translateY(-1px);
  background: var(--paper);
}

.hero-control span {
  margin-top: -2px;
  font-size: 28px;
  line-height: 1;
}

.hero-media-wrap.is-manual .hero-slide {
  animation: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.hero-media-wrap.is-manual .hero-slide.is-active {
  opacity: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #2a1208;
  opacity: 0;
  animation: heroSlide 15s infinite;
}

.hero-slide:nth-child(2) {
  animation-delay: 3s;
}

.hero-slide:nth-child(3) {
  animation-delay: 6s;
}

.hero-slide:nth-child(4) {
  animation-delay: 9s;
}

.hero-slide:nth-child(5) {
  animation-delay: 12s;
}

.hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #2a1208;
}

.hero-slide:nth-child(1) .hero-media {
  object-fit: cover;
  object-position: 45% 50%;
}

.hero-slide:nth-child(2) .hero-media,
.hero-slide:nth-child(3) .hero-media,
.hero-slide:nth-child(4) .hero-media,
.hero-slide:nth-child(5) .hero-media {
  object-fit: contain;
  object-position: center;
}

.hero-slide:nth-child(2) .hero-media {
  object-fit: cover;
  object-position: 52% 44%;
  filter: contrast(1.04) saturate(1.04);
}

@keyframes heroSlide {
  0%, 16% {
    opacity: 1;
  }

  20%, 98% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.pillars {
  background: rgba(248, 238, 222, 0.72);
  border-top: 1px solid rgba(70, 42, 24, 0.08);
  border-bottom: 1px solid rgba(70, 42, 24, 0.08);
}

.pillars-grid {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  padding: 22px 0 26px;
}

.pillar {
  min-height: 118px;
  padding: 0 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.pillar:first-child {
  padding-left: 0;
}

.pillar:last-child {
  border-right: 0;
  padding-right: 0;
}

.pillar svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  color: var(--brown);
  stroke-width: 1.4;
}

.pillar h3,
.product h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pillar h3 {
  margin-bottom: 7px;
  font-size: 13px;
}

.pillar p {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
}

.products {
  background: linear-gradient(180deg, var(--paper-2), #e7d8c4);
}

.products-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr) auto;
  gap: 34px;
  align-items: center;
  padding: 34px 0 24px;
}

.eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 12px;
  color: var(--cacao);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 7px;
  background: var(--cacao);
}

.eyebrow::before {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 52px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--cacao);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.02;
}

.products-intro p,
.story-copy p {
  margin: 22px 0 28px;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}

.product {
  overflow: hidden;
  border-radius: 7px;
  background: rgba(234, 213, 190, 0.7);
  box-shadow: 0 1px 0 rgba(72, 41, 22, 0.07);
}

.product img {
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
}

.product-body {
  min-height: 104px;
  padding: 18px 18px 20px;
}

.product p {
  margin: 0 0 8px;
  font-size: 13px;
}

.price {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.next-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--cacao);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.next-button svg {
  width: 25px;
  height: 25px;
}

.story {
  position: relative;
  overflow: hidden;
  background: #c8a783;
}

.story::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: 24px;
  width: 210px;
  height: 210px;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2358361f' stroke-width='1.2'%3E%3Cpath d='M90 15c32 48 32 94 0 138-31-44-31-90 0-138Z'/%3E%3Cpath d='M52 46c52 20 84 58 92 112-52-19-83-57-92-112Z'/%3E%3Cpath d='M129 46c-52 20-84 58-92 112 52-19 83-57 92-112Z'/%3E%3Cpath d='M21 123c55-4 97 17 126 62-55 5-97-17-126-62Z'/%3E%3Cpath d='M159 123c-55-4-97 17-126 62 55 5 97-17 126-62Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.story-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(420px, 42%) minmax(360px, 30%) minmax(260px, 28%);
  gap: 0;
  align-items: stretch;
  padding: 0;
}

.story-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 0 8px 8px 0;
  filter: sepia(0.26) saturate(0.86) brightness(0.82) contrast(1.08);
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 48px 36px 58px;
}

.story-copy .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

.story-copy .section-title {
  max-width: 320px;
  font-size: clamp(38px, 3.25vw, 54px);
  line-height: 0.95;
}

.story-copy p {
  max-width: 420px;
  margin: 18px 0 22px;
  font-size: 14px;
  line-height: 1.55;
}

.story .button {
  width: fit-content;
  min-width: 300px;
  min-height: 46px;
  padding: 0 28px;
}

.stamp {
  position: relative;
  align-self: center;
  justify-self: center;
  width: clamp(180px, 15vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stamp-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  opacity: 0.72;
}

.footer {
  color: #ead6bd;
  background: #2a1208;
}

.footer-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(130px, 0.7fr) minmax(170px, 0.8fr) minmax(220px, 1.25fr);
  gap: clamp(28px, 4vw, 58px);
  padding: 30px 0 18px;
}

.footer-brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(86%) sepia(17%) saturate(527%) hue-rotate(350deg) brightness(93%) contrast(87%);
}

.socials {
  display: flex;
  gap: 17px;
  margin-top: 18px;
  padding-left: 0;
}

.socials a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(234, 214, 189, 0.32);
  border-radius: 50%;
  color: #d4b994;
  font-size: 12px;
  font-weight: 700;
}

.footer h4 {
  margin: 0 0 14px;
  color: #d4b994;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li,
.footer p {
  margin: 0 0 8px;
  font-size: 13px;
}

.newsletter-form {
  display: flex;
  max-width: 270px;
  margin-top: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.newsletter-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0 16px;
  background: var(--cream);
  color: var(--ink);
}

.newsletter-form button {
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--white);
  background: var(--cacao);
  cursor: pointer;
}

.footer-bottom {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(234, 214, 189, 0.12);
  color: rgba(234, 214, 189, 0.76);
  font-size: 11px;
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.category-nav {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.category-nav-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: 46px;
}

.categorias-widget {
  position: relative;
  flex-shrink: 0;
}

.categorias-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.categorias-toggle svg {
  width: 17px;
  height: 17px;
}

.categorias-toggle .chevron {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.categorias-widget.is-open .categorias-toggle .chevron {
  transform: rotate(180deg);
}

.categorias-flyout {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.categorias-widget.is-open .categorias-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.categorias-flyout {
  z-index: 120;
}

/* No computador, abre ao passar o mouse; a "ponte" cobre o vão entre o botão e
   o menu para ele não fechar no caminho. No celular continua abrindo no toque. */
@media (hover: hover) and (pointer: fine) {
  .categorias-widget:hover .categorias-flyout,
  .categorias-widget:focus-within .categorias-flyout {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .categorias-widget:hover .categorias-toggle .chevron {
    transform: rotate(180deg);
  }

  .categorias-flyout::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }
}

.categorias-flyout .categorias-flyout-todos {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  color: var(--coffee);
}

@media (max-width: 560px) {
  .categorias-flyout {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    min-width: 0;
  }
}

.categorias-flyout a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.categorias-flyout a:hover {
  background: rgba(154, 118, 86, 0.1);
}

.category-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-left: clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-links::-webkit-scrollbar {
  display: none;
}

.category-links a {
  position: relative;
  flex-shrink: 0;
  padding: 14px 0;
}

.category-links a.active,
.category-links a:hover {
  color: var(--cacao);
}

@media (max-width: 1360px) {
  .hero-inner {
    grid-template-columns: 41vw 59vw;
  }

  .hero-copy {
    max-width: min(410px, calc(41vw - 72px));
    margin-left: clamp(34px, 5vw, 82px);
  }

  .hero h1 {
    font-size: clamp(42px, 4vw, 60px);
  }

  .hero-media-wrap {
    left: 41vw;
  }
}

@media (max-width: 1180px) {
  .hero {
    min-height: 470px;
  }

  .hero-inner {
    min-height: 470px;
  }

  .hero-copy {
    max-width: 390px;
    margin-left: clamp(28px, 4vw, 56px);
    padding: 42px 0 40px;
  }

  .hero h1 {
    font-size: clamp(44px, 5vw, 62px);
  }

  .hero-media-wrap {
    width: 58vw;
  }
}

@media (max-width: 1100px) {
  .nav {
    grid-template-columns: 170px 1fr auto;
  }

  .products-inner {
    grid-template-columns: 1fr;
  }

  .products-intro {
    max-width: 620px;
  }

  .next-button {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    grid-template-columns: 1fr auto;
    row-gap: 10px;
    padding: 16px 0 10px;
  }

  .search-bar {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  .category-nav-inner {
    min-height: 40px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
  }

  .hero-copy {
    width: min(100% - 32px, 560px);
    max-width: none;
    margin: 0 auto;
    padding: 32px 0 40px;
  }

  .hero-media-wrap {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(260px, 52vw, 390px);
    border-bottom-left-radius: 64px;
  }

  .hero-media-wrap::before,
  .hero-media-wrap::after {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .pillar:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  .pillar:nth-child(3) {
    padding-left: 0;
  }

  .story-inner {
    grid-template-columns: 1fr 1fr;
  }

  .story-image {
    height: 300px;
  }

  .story-copy {
    padding: 32px;
  }

  .stamp {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 14px 0 12px;
  }

  .brand-logo {
    width: 150px;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 58px);
  }

  .hero p {
    max-width: 430px;
  }

  .product-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-inner {
    grid-template-columns: 1fr;
  }

  .story-copy {
    padding: 28px 22px 32px;
  }

  .stamp {
    display: none;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) and (min-width: 561px) {
  .pillar,
  .pillar:first-child,
  .pillar:last-child,
  .pillar:nth-child(2),
  .pillar:nth-child(3) {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--line);
  }

  .pillar:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .pillar:nth-child(even) {
    border-right: 0;
  }

  .pillar:nth-last-child(-n + 2) {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .topbar-pill svg {
    display: none;
  }

  .topbar-pill {
    font-size: 10.5px;
  }

  .brand-logo {
    width: 140px;
  }

  .button {
    width: 100%;
    max-width: 320px;
    padding: 0 18px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .pillar,
  .pillar:first-child,
  .pillar:last-child,
  .pillar:nth-child(2),
  .pillar:nth-child(3) {
    min-height: 0;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pillar:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .story-inner {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: auto;
    aspect-ratio: 1.35 / 1;
    border-radius: 0;
  }

  .story-copy {
    padding: 28px 22px 32px;
  }

  .story .button {
    width: 100%;
    min-width: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 24px, 1180px);
    gap: 10px;
  }

  .brand-logo {
    width: 118px;
  }

  .nav-actions {
    gap: 12px;
  }

  .search-bar {
    height: 42px;
  }

  .categorias-toggle span,
  .categorias-toggle {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .flourish {
    margin: 18px 0;
  }

  .product-grid,
  .pillars-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .product img {
    aspect-ratio: 1.35 / 1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (min-width: 1500px) {
  .hero {
    min-height: 520px;
  }

  .hero-inner {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 76px;
  }
}

/* ==========================================================================
   Interior pages (Origem, Produtos, Sobre, Contato)
   Shared design language, distinct class names so nothing collides with the
   home page rules above (".products", ".card" etc. are intentionally unique).
   ========================================================================== */

.utility-bar {
  background: var(--coffee);
  color: rgba(245, 236, 221, 0.86);
}

.utility-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  padding: 10px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
}

.page-hero h1 {
  margin: 10px 0 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.02;
  text-transform: uppercase;
}

.page-hero-compact .page-hero-inner {
  padding: 22px 0;
}

.page-hero-compact .eyebrow {
  margin-bottom: 2px;
}

.page-hero-compact h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
}

.page-hero .lead {
  margin: 0;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.6;
}

.hero-card {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section {
  padding: clamp(48px, 6vw, 76px) 0;
}

.section.alt {
  background: rgba(248, 238, 222, 0.55);
}

.section-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
}

.section-inner.split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.section-inner.split img {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.16) saturate(0.94) brightness(0.96);
}

.intro-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.intro-row p {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
}

.text-block .eyebrow {
  margin-bottom: 10px;
}

.text-block h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
}

.text-block p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--cacao);
  transform: rotate(45deg);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.products {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(234, 213, 190, 0.55);
  box-shadow: 0 1px 0 rgba(72, 41, 22, 0.07);
}

.card img {
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.card:hover .card-actions,
.card:focus-within .card-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--coffee);
  box-shadow: 0 6px 16px rgba(42, 18, 8, 0.22);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.card-action svg {
  width: 16px;
  height: 16px;
}

.card-action:hover {
  background: var(--coffee);
  color: var(--white);
  transform: translateY(-1px);
}

.card-action.is-active {
  background: var(--coffee);
  color: var(--white);
}

.card-action.is-active svg {
  fill: currentColor;
}

.card-action.is-added {
  background: #3a6b3f;
  color: var(--white);
}

.product-trigger {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.product-trigger:hover,
.product-trigger:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(42, 18, 8, 0.18);
}

.product-trigger:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 3px;
}

body.quick-modal-open {
  overflow: hidden;
}

.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.quick-modal[hidden] {
  display: none;
}

.quick-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 11, 6, 0.7);
  backdrop-filter: blur(3px);
}

.quick-modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(720px, 90vh);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(20, 11, 6, 0.45);
  padding: 28px 32px 32px;
}

.quick-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: sticky;
  top: -28px;
  background: var(--white);
  padding-top: 4px;
  z-index: 1;
}

.quick-modal-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 32px);
}

.quick-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(42, 18, 8, 0.28);
  transition: transform 150ms ease, background 150ms ease;
}

.quick-modal-close:hover {
  background: var(--brown);
  transform: scale(1.05);
}

.quick-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.quick-modal-next-modal {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--coffee);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.quick-modal-next-modal svg {
  width: 18px;
  height: 18px;
}

.quick-modal-next-modal:hover {
  background: rgba(154, 118, 86, 0.12);
  border-color: var(--cacao);
  transform: scale(1.05);
}

.quick-modal-next-categoria {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--coffee);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.quick-modal-next-categoria svg {
  width: 18px;
  height: 18px;
}

.quick-modal-next-categoria:hover {
  background: rgba(154, 118, 86, 0.08);
  border-color: var(--cacao);
}

.quick-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.quick-modal-item {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(234, 213, 190, 0.7);
  box-shadow: 0 1px 0 rgba(72, 41, 22, 0.07);
}

.quick-modal-item-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
}

.quick-modal-item-body {
  padding: 14px 16px 18px;
}

.quick-modal-item-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.quick-modal-item-body h3 a {
  color: inherit;
  text-decoration: none;
}

.quick-modal-item-body .product-weight {
  display: block;
  font-size: 12px;
  color: var(--brown);
  margin-bottom: 6px;
}

.quick-modal-item-body .price {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}

.quick-modal-item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quantity-control.small {
  align-self: flex-start;
}

.quantity-control.small button {
  width: 30px;
  height: 32px;
  font-size: 14px;
}

.quantity-control.small input {
  width: 34px;
  height: 32px;
  font-size: 13px;
}

.button.small {
  min-height: 38px;
  padding: 0 18px;
  width: 100%;
  font-size: 11px;
}

.quick-modal-empty {
  margin: 12px 0 20px;
}

.quick-modal-detail {
  z-index: 70;
}

.quick-modal-dialog-detail {
  width: min(720px, 100%);
}

.quick-modal-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(154, 118, 86, 0.16);
  color: var(--coffee);
  cursor: pointer;
  transition: background 150ms ease;
}

.quick-modal-back svg {
  width: 18px;
  height: 18px;
}

.quick-modal-back:hover {
  background: rgba(154, 118, 86, 0.28);
}

.quick-modal-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 28px;
}

@media (max-width: 640px) {
  .quick-modal-detail-body {
    grid-template-columns: 1fr;
  }
}

.quick-modal-detail-media img {
  display: block;
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--white);
}

.quick-modal-detail-categoria {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown);
}

.quick-modal-detail-info h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.05;
}

.quick-modal-detail-info .price {
  font-size: 20px;
  margin-bottom: 4px;
}

.quick-modal-detail-peso {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--brown);
}

.quick-modal-detail-info .quick-modal-item-actions {
  margin-bottom: 8px;
}

.quick-modal-detail-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quick-modal-detail-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown);
}

.quick-modal-detail-section p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
}

.quick-modal-detail-link {
  margin-top: 24px;
  width: 100%;
}

.card-rating {
  display: flex;
  gap: 3px;
  margin: 0 0 8px;
  color: rgba(70, 42, 24, 0.28);
}

.card-rating svg {
  width: 13px;
  height: 13px;
  fill: none;
}

.card-body {
  padding: 20px 20px 22px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
}

.card-body .price {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.product-weight {
  display: block;
  margin: 0 0 8px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body .price {
  margin: 4px 0 14px;
}

.card-cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.card-cart-row .quantity-control {
  flex-shrink: 0;
}

.card-cart-row .button {
  flex: 1;
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
}

.card-body .ingredients {
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--brown);
}

.card-body .ingredients strong {
  color: var(--ink);
}

.card-body .allergen-notice {
  margin: 0;
  color: var(--coffee);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-detail-price {
  margin: 6px 0 18px;
}

.card-body h2 a {
  transition: color 150ms ease;
}

.card-body h2 a:hover {
  color: var(--cacao);
}

.card-body .card-category {
  margin: 0 0 8px;
  color: var(--cacao);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  background: transparent;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.filter-btn:hover {
  border-color: var(--cacao);
  background: rgba(154, 118, 86, 0.08);
}

.filter-btn.is-active {
  border-color: var(--coffee);
  background: var(--coffee);
  color: var(--white);
}

.filter-price {
  appearance: none;
  -webkit-appearance: none;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 40px 10px 18px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358361f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.filter-price:hover {
  border-color: var(--cacao);
}

.filter-price:focus {
  outline: none;
  border-color: var(--coffee);
}

.grid.products .card.is-hidden {
  display: none;
}

.filter-empty {
  margin: 12px 0 0;
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--brown);
}

@media (max-width: 680px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-price {
    width: 100%;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
}

.contact-panel h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
}

.contact-panel p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-list {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.contact-list a {
  font-weight: 700;
  color: var(--brown);
}

.contact-list a.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: #1f7a4d;
  color: #fff;
  font-size: 17px;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}

.contact-list a.contact-whatsapp:hover {
  background: #17603c;
}

.contact-whatsapp svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.contact-whatsapp span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.contact-whatsapp small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.contato-flyout-row .icone-whatsapp {
  color: #5fd38d;
}

.form-panel {
  background: rgba(248, 238, 222, 0.65);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 36px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]),
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 16px;
  background: var(--white);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid .button {
  justify-self: start;
  border: 1px solid var(--coffee);
  background: var(--coffee);
  color: var(--white);
}

.field-error {
  margin: 6px 0 0;
  color: #9a3b2c;
  font-size: 12px;
}

.form-footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--brown);
}

.form-footnote a {
  font-weight: 700;
  color: var(--coffee);
  text-decoration: underline;
}

.account-type-choice {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.account-type-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--brown);
  cursor: pointer;
}

@media (max-width: 860px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .section-inner.split {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .utility-inner {
    gap: 14px 28px;
  }
}

/* ==========================================================================
   Página de produto (galeria, compra, abas, relacionados, barra fixa)
   ========================================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumb a {
  color: var(--brown);
}

.breadcrumb a:hover {
  color: var(--coffee);
  text-decoration: underline;
}

.breadcrumb .is-current {
  color: var(--ink);
  font-weight: 700;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 56px;
}

.product-gallery {
  display: flex;
  gap: 14px;
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 76px;
  flex-shrink: 0;
}

.product-gallery-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--white);
}

.product-gallery-thumb img {
  aspect-ratio: 1;
  object-fit: contain;
}

.product-gallery-thumb.is-active {
  border-color: var(--coffee);
  box-shadow: 0 0 0 1px var(--coffee);
}

.product-gallery-main {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

/* "contain" mostra a foto inteira, sem cortar fotos que não são quadradas. */
.product-gallery-main img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: clamp(8px, 2vw, 20px);
  background: var(--white);
}

.product-buybox h1 {
  margin: 4px 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rating-empty-note {
  font-size: 12px;
  color: var(--brown);
}

.product-buybox .product-detail-price {
  margin: 0 0 10px;
  font-size: 26px;
}

.product-meta {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--brown);
}

.buybox-divider {
  margin: 0 0 22px;
  border: 0;
  border-top: 1px solid var(--line);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.quantity-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brown);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-control button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--coffee);
  font-size: 16px;
  cursor: pointer;
}

.quantity-control button:hover {
  background: rgba(154, 118, 86, 0.12);
}

.quantity-control input {
  width: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buybox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.buybox-actions .button {
  flex: 1;
  min-width: 180px;
}

.favorite-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brown);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.favorite-link svg {
  width: 18px;
  height: 18px;
}

.favorite-link.is-active {
  color: #9a3b2c;
}

.favorite-link.is-active svg {
  fill: currentColor;
}

.buybox-feedback {
  margin: 14px 0 0;
  color: #3a6b3f;
  font-size: 13px;
  font-weight: 700;
}

.product-tabs {
  margin-bottom: 56px;
}

.product-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.product-tab-btn {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0 0 14px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-tab-btn.is-active {
  color: var(--ink);
}

.product-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--coffee);
}

.product-tab-panel {
  display: none;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.65;
}

.product-tab-panel.is-active {
  display: block;
}

.product-tab-panel .ingredients {
  border-top: 0;
  padding-top: 0;
}

.product-related {
  margin-bottom: 40px;
}

.product-related .section-title {
  margin-bottom: 24px;
}

.sticky-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(42, 18, 8, 0.12);
}

.sticky-buybar-inner {
  width: min(1180px, calc(100% - clamp(28px, 5vw, 72px)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.sticky-buybar-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.sticky-buybar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticky-buybar-info strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-buybar .button {
  flex-shrink: 0;
}

.sticky-buybar-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-size: 20px;
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 41;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .product-gallery-thumbs {
    flex-direction: row;
    width: auto;
  }

  .product-gallery-thumb {
    width: 64px;
  }

  .sticky-buybar-info strong {
    max-width: 140px;
  }
}

@media (max-width: 560px) {
  .buybox-actions .button {
    min-width: 100%;
  }

  .sticky-buybar-info {
    display: none;
  }
}

/* ==========================================================================
   Carrinho
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(248, 238, 222, 0.55);
  border-radius: 10px;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-info a {
  font-weight: 700;
  font-size: 14px;
}

.cart-item-info a:hover {
  color: var(--cacao);
}

.cart-item-total {
  font-size: 15px;
  white-space: nowrap;
}

.cart-item-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brown);
  font-size: 18px;
  cursor: pointer;
}

.cart-item-remove:hover {
  background: rgba(154, 118, 86, 0.14);
  color: #9a3b2c;
}

.cart-summary {
  background: rgba(248, 238, 222, 0.65);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.cart-summary-note {
  margin: 0;
  font-size: 12px;
  color: var(--brown);
  line-height: 1.5;
}

.cart-summary .button {
  width: 100%;
  justify-content: center;
}

.cart-summary-total {
  font-size: 18px;
  color: var(--coffee);
}

.cart-coupon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-coupon label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brown);
}

.cart-coupon-row {
  display: flex;
  gap: 8px;
}

.cart-coupon-row input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}

.cart-coupon-row input:focus {
  outline: none;
  border-color: var(--cacao);
}

.cart-coupon-row .button {
  width: auto;
  min-height: 42px;
  padding: 0 20px;
}

.cart-coupon-feedback {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.cart-coupon-feedback.is-erro {
  color: #a3392c;
}

.cart-coupon-feedback.is-sucesso {
  color: #3a6b3f;
}

.cart-coupon-remove {
  border: 0;
  background: transparent;
  color: var(--brown);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.cart-coupon-remove:hover {
  color: var(--coffee);
}

.cart-frete-opcoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-frete-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 150ms ease, background 150ms ease;
}

.cart-frete-opcao:has(input:checked) {
  border-color: var(--cacao);
  background: rgba(154, 118, 86, 0.08);
}

.cart-frete-opcao input {
  accent-color: var(--coffee);
}

.cart-frete-opcao-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--brown);
}

.cart-frete-opcao-info strong {
  font-size: 13px;
  color: var(--ink);
}

.cart-frete-opcao-preco {
  font-size: 14px;
  color: var(--coffee);
  white-space: nowrap;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(240px, 1fr) minmax(280px, 320px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.checkout-step {
  background: rgba(248, 238, 222, 0.55);
  border-radius: 10px;
  padding: 24px;
}

.checkout-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.checkout-step-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.checkout-subtitle {
  margin: 22px 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown);
}

.checkout-address-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.checkout-payment-note {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--brown);
}

.checkout-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.checkout-payment-methods span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--coffee);
}

.checkout-payment-methods svg {
  width: 18px;
  height: 18px;
}

.checkout-payment-feedback {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.checkout-submit {
  width: 100%;
  margin-bottom: 10px;
}

.checkout-step .button.secondary {
  width: 100%;
}

.checkout-summary {
  position: sticky;
  top: 110px;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkout-summary-item .cart-flyout-info {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1180px) {
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-summary {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-item {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty total";
    gap: 10px 14px;
  }

  .cart-item-thumb {
    grid-area: thumb;
    width: 60px;
    height: 60px;
    align-self: start;
  }

  .cart-item-info {
    grid-area: info;
  }

  .cart-item-info a {
    overflow-wrap: anywhere;
  }

  .cart-item .quantity-control {
    grid-area: qty;
    justify-self: start;
  }

  .cart-item-total {
    grid-area: total;
    justify-self: end;
  }

  .cart-item-remove {
    grid-area: remove;
    justify-self: end;
    align-self: start;
  }

  .cart-summary-row {
    gap: 12px;
  }

  .cart-summary-row strong {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .cart-item {
    padding: 12px;
    gap: 8px 10px;
  }

  .cart-summary {
    padding: 20px 16px;
  }

  .cart-item .quantity-control button {
    width: 34px;
    height: 34px;
  }

  .cart-item .quantity-control input {
    width: 38px;
  }
}

.dashboard-grid {
  display: grid;
  gap: 24px;
}

.dashboard-grid.split {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.stat-card {
  background: rgba(248, 238, 222, 0.65);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card strong {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--coffee);
}

.stat-card span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown);
}

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(154, 118, 86, 0.16);
  color: var(--brown);
}

.role-badge.is-admin {
  background: var(--coffee);
  color: var(--white);
}

.data-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  background: rgba(248, 238, 222, 0.65);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--line);
}

.dashboard-favorites {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 860px) {
  .dashboard-grid.split {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Ajustes de celular — ficam no fim para prevalecer sobre as regras acima.
   ========================================================================= */
@media (max-width: 560px) {
  /* Menus suspensos do cabeçalho ocupam a largura da tela em vez de ficarem
     ancorados no ícone (o que os empurrava para fora da tela). */
  .account-flyout,
  .contato-flyout,
  .favoritos-widget .cart-flyout {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
    margin-top: 10px;
  }

  .contact-list a.contact-whatsapp {
    justify-self: stretch;
    justify-content: center;
  }

  .product-detail-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  img,
  video,
  table {
    max-width: 100%;
  }
}
