/* ============================================================
   MARCH'S SABOR & RECHEIOS — design tokens
   Preto quente #16120E · Dourado #C9A227 · Creme #F6EEDD
   Vinho (acento de CTA secundário) #9c7a1a
   ============================================================ */

:root {
  --black: #16120e;
  --black-soft: #201a14;
  --cream: #f6eedd;
  --cream-2: #efe3cc;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --gold-deep: #9c7a1a;
  --wine: #9c7a1a;
  --wine-light: #d4c07e;
  --ink: #2a2119;
  --text-cream-muted: #cfc3ac;

  --font-display: 'Cormorant Garamond', serif;
  --font-script: 'Marcellus', serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 14px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 .4em;
  line-height: 1.08;
}

p {
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 .8em;
}

.eyebrow.center {
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-title.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-align: center;
}

.btn:active {
  transform: scale(.97);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: #231a08;
  box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
  box-shadow: 0 12px 26px rgba(201, 162, 39, .4);
}

.btn-outline {
  border-color: rgba(246, 238, 221, .55);
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(246, 238, 221, .1);
}

.btn-whats {
  background: #25D366;
  color: #0b3b20;
}

.btn-pix {
  background: var(--wine);
  color: #fff2ea;
}

.btn-small {
  padding: 9px 18px;
  font-size: .82rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}

.btn-full {
  width: 100%;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 18, 14, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 39, .5);
}

.brand-word {
  color: var(--cream);
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
}

.brand-word small {
  font-family: var(--font-body);
  font-size: .55rem;
  letter-spacing: .22em;
  color: var(--gold);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-cream-muted);
  font-size: .92rem;
  font-weight: 600;
  transition: color .2s;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid rgba(201, 162, 39, .4);
  color: var(--cream);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--wine);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 14, .35) 0%, rgba(22, 18, 14, .55) 55%, rgba(22, 18, 14, .96) 100%);
}

.hero-content {
  position: relative;
  color: var(--cream);
  padding-bottom: 72px;
  padding-top: 120px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--cream);
  max-width: 11ch;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-cream-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-cta .btn {
  padding: 18px 34px;
  font-size: 1.1rem;
}

.hero-stripe {
  display: flex;
  gap: 6px;
  margin-top: 56px;
  height: 34px;
}

.hero-stripe span {
  flex: 1;
  border-radius: 4px;
}

.hero-stripe span:nth-child(1) {
  background: var(--wine-light);
}

.hero-stripe span:nth-child(2) {
  background: var(--gold);
}

.hero-stripe span:nth-child(3) {
  background: var(--wine-light);
}

.hero-stripe span:nth-child(4) {
  background: var(--gold);
}

.hero-stripe span:nth-child(5) {
  background: var(--wine-light);
}

/* ============ ABOUT ============ */
.about {
  background: var(--cream);
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  padding-left: 26px;
  position: relative;
  font-weight: 600;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 2px;
  background: var(--gold);
}

/* ============ MENU ============ */
.menu {
  background: var(--black);
  padding: 100px 0;
  color: var(--cream);
}

.menu .eyebrow {
  color: var(--gold-light);
}

.menu .section-title {
  color: var(--cream);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 44px;
}

.tab {
  background: transparent;
  border: 1px solid rgba(201, 162, 39, .35);
  color: var(--text-cream-muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
}

.tab.active,
.tab:hover {
  background: var(--gold);
  color: #231a08;
  border-color: var(--gold);
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  animation: fadeIn .35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.product-card {
  background: var(--black-soft);
  border: 1px solid rgba(201, 162, 39, .18);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.pc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-body--noimg {
  padding-top: 26px;
}

.pc-body h3 {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0;
}

.pc-desc {
  color: var(--text-cream-muted);
  font-size: .88rem;
  margin: 0;
}

.pc-note {
  color: var(--gold-light);
  font-size: .78rem;
  margin: 0;
}

.pc-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
  font-size: .88rem;
}

.pc-options label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-cream-muted);
  cursor: pointer;
}

.pc-flavor-label {
  margin: 2px 0 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-light);
}

.pc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.pc-qty {
  width: 64px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, .3);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
}

/* ============ TORTA CONFIGURATOR (signature) ============ */
.torta-config {
  position: relative;
  background: var(--cream);
  padding: 110px 0;
  overflow: hidden;
}

.torta-stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(100deg,
      var(--cream) 0 90px,
      var(--cream-2) 90px 96px,
      var(--cream) 96px 180px,
      rgba(201, 162, 39, .18) 180px 186px);
}

.torta-grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.torta-gallery {
  display: grid;
  gap: 16px;
}

.torta-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.torta-sub {
  color: #5a4d3a;
  max-width: 52ch;
}

.torta-field {
  margin-top: 26px;
}

.torta-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-deep);
}

.torta-field-label {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-deep);
}

#tortaTamanho {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 46, 34, .25);
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(124, 46, 34, .25);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .2s;
}

.chip:has(input:checked) {
  background: var(--wine);
  color: #fff2ea;
  border-color: var(--wine);
}

.chip input {
  accent-color: var(--wine);
}

.chip em {
  font-style: normal;
  opacity: .85;
  font-size: .78em;
}

.torta-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed rgba(124, 46, 34, .3);
}

.torta-total span {
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.torta-total strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--wine);
}

#addTortaBtn {
  margin-top: 22px;
}

/* ============ SHOWCASE ============ */
.showcase {
  background: var(--black);
  padding: 90px 0 100px;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/logo.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 640px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.showcase > .wrap {
  position: relative;
  z-index: 1;
}

.showcase .eyebrow {
  color: var(--gold-light);
}

.showcase .section-title {
  color: var(--cream);
  margin-bottom: 40px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-grid img {
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ============ HOW ============ */
.how {
  background: var(--cream);
  padding: 90px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.how-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(124, 46, 34, .12);
}

.how-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--wine);
  margin-bottom: 10px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  color: var(--text-cream-muted);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(201, 162, 39, .18);
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  margin-bottom: 14px;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.credit strong {
  color: var(--gold-light);
}

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 14, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 70;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(420px, 92vw);
  background: var(--cream);
  z-index: 80;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, .25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Padroniza a barra de rolagem entre navegadores (Edge/IE mostra
     setinhas quadradas por padrão; aqui fica igual e discreta em todos). */
  scrollbar-width: thin;
  scrollbar-color: #b6862c #f1e9dc;
}

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

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

.cart-drawer::-webkit-scrollbar-thumb {
  background-color: #b6862c;
  border-radius: 8px;
}

.cart-drawer::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

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

.cart-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(124, 46, 34, .15);
}

.cart-head button {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

.cart-items {
  flex: none;
  padding: 18px 24px;
}

.cart-empty {
  color: #8a7d68;
  font-size: .9rem;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(124, 46, 34, .1);
}

.cart-line-name {
  font-weight: 700;
  font-size: 1rem;
}

.cart-line-opt {
  color: #7a6c56;
  font-size: .86rem;
  line-height: 1.4;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--wine);
  font-size: .84rem;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
}

.cart-line-price {
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
}

.cart-foot {
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(124, 46, 34, .15);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.cart-delivery-row {
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--text-cream-muted);
  margin-bottom: 6px;
}

.cart-delivery {
  margin-bottom: 8px;
}

.delivery-mode-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .9rem;
}

.delivery-mode-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.delivery-fields {
  margin-top: 8px;
}

#deliveryBairro {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 46, 34, .25);
  font-family: var(--font-body);
  margin-bottom: 4px;
}

#deliveryEndereco {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 46, 34, .25);
  font-family: var(--font-body);
}

.cart-note-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 10px 0 6px;
}

#cartNote,
#cartNome {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 46, 34, .25);
  font-family: var(--font-body);
}

.checkout-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.cart-payment-note {
  font-size: .72rem;
  color: #8a7d68;
  margin-top: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .88rem;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 90;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============ RESPONSIVE ============ */
@media (max-width:900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .torta-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .showcase-grid img {
    height: 220px;
  }
}

@media (max-width:900px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(201, 162, 39, .25);
  }
}

/* Estoque esgotado */
.product-card.esgotado {
  opacity: .55;
}

.product-card.esgotado img {
  filter: grayscale(1);
}

.opcao-esgotada {
  opacity: .45;
  text-decoration: line-through;
  cursor: not-allowed;
}

.add-to-cart:disabled {
  cursor: not-allowed;
  background: #999 !important;
}