/* =========================================================
   1. CORES E MEDIDAS PRINCIPAIS
   ========================================================= */
:root {
  --pink: #f02b82;
  --pink-dark: #c81766;
  --pink-pale: #fff0f6;
  --blue: #066ab4;
  --navy: #034777;
  --ink: #17364f;
  --cream: #fff9f1;
  --white: #ffffff;
  --green: #20b15a;
  --border: #e7edf2;
  --muted: #687f91;
  --shadow: 0 18px 45px rgba(3, 71, 119, 0.12);
  --card-radius: 24px;
  --page-width: 1100px;
}

/* =========================================================
   2. BASE DO SITE
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(
    #ffffff 0%,
    var(--cream) 54%,
    #f3f8fc 100%
  );
  font-family: Inter, Arial, sans-serif;
}

section[id] {
  scroll-margin-top: 82px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(240, 43, 130, 0.3);
  outline-offset: 3px;
}

/* =========================================================
   3. CABEÇALHO E NAVEGAÇÃO
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid #edf1f5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--pink);
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.03em;
}

.brand span {
  display: block;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--navy);
  font-weight: 800;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--pink);
}

.small-button {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--pink);
}

nav .small-button:hover {
  color: var(--white);
  background: var(--pink-dark);
}

/* =========================================================
   4. APRESENTAÇÃO PRINCIPAL
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
  max-width: var(--page-width);
  margin: auto;
  padding: 74px 24px 64px;
}

.eyebrow,
.section-tag {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--pink-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.eyebrow {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pink-pale);
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(3rem, 5.2vw, 4.55rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1 strong {
  color: var(--pink);
}

.hero-copy > p {
  max-width: 680px;
  font-size: 1.14rem;
  line-height: 1.7;
}

.hero-copy > .opening-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  width: fit-content;
  margin: 18px 0 8px;
  padding: 13px 18px;
  border: 2px solid rgba(240, 43, 130, 0.22);
  border-radius: 16px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(55, 28, 63, 0.09);
  font-size: 1rem;
  line-height: 1.35;
}

.opening-hours span {
  grid-row: 1 / 3;
  align-self: center;
  margin-right: 11px;
  font-size: 1.5rem;
}

.opening-hours strong {
  color: var(--pink);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  padding: 15px 21px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.primary {
  color: var(--white);
  background: var(--pink);
}

.secondary {
  border: 1px solid #dce7ef;
  color: var(--blue);
  background: var(--white);
}

.hero-image {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #e6edf2;
  border-radius: 38px;
  background: #17110d;
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   5. SEÇÕES E CARDÁPIO
   ========================================================= */
.section {
  max-width: var(--page-width);
  margin: auto;
  padding: 70px 20px;
}

.section h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
}

.section-lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: #587085;
  line-height: 1.65;
}

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

.product {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0 24px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--white);
  box-shadow: 0 8px 25px rgba(13, 72, 118, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 72, 118, 0.13);
}

.product-image-wrap {
  height: 280px;
  margin: 0 -24px 22px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.product:hover .product-image {
  transform: scale(1.035);
}

.badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: #edf7ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.16rem;
}

.product p {
  flex: 1;
  margin: 0;
  color: #6b7f90;
  line-height: 1.5;
}

.flavor-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.flavor-label {
  color: #6b7f90;
  font-size: 0.78rem;
  font-weight: 700;
}

.flavor-chip {
  padding: 4px 9px;
  border: 1px solid rgba(240, 43, 130, 0.2);
  border-radius: 999px;
  background: rgba(240, 43, 130, 0.08);
  color: #c91f6f;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.flavor-picker {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #6b7f90;
  font-size: 0.78rem;
  font-weight: 800;
}

.flavor-picker select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(240, 43, 130, 0.25);
  border-radius: 12px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.flavor-picker select:focus {
  outline: 3px solid rgba(240, 43, 130, 0.15);
  border-color: var(--pink);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.price {
  color: var(--pink-dark);
  font-size: 1.2rem;
  font-weight: 950;
}

.add-button {
  padding: 11px 15px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.add-button:hover {
  transform: translateY(-1px);
  background: var(--navy);
}

/* =========================================================
   6. FORMULÁRIO E CARRINHO
   ========================================================= */
.order-section {
  background: linear-gradient(135deg, #fff7f2, #eef7fc);
}

.order-heading {
  padding-bottom: 20px;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 22px;
  padding-top: 0;
}

.card {
  padding: 28px;
  border: 1px solid rgba(12, 73, 117, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.45rem;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  color: #9d255c;
  background: var(--pink-pale);
  line-height: 1.45;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d7e1e9;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-pale);
}

.custom-choice {
  margin-top: 2px;
  border-color: rgba(240, 43, 130, 0.45);
  background: var(--pink-pale);
}

.field-hint {
  min-height: 1em;
  margin-top: -4px;
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cart-card {
  position: sticky;
  top: 94px;
}

.empty-cart {
  padding: 22px;
  border: 1px dashed #cbd8e2;
  border-radius: 14px;
  color: #728494;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f4;
}

.cart-item small {
  display: block;
  margin-top: 4px;
  color: #718394;
}

.cart-flavor {
  display: block;
  margin-top: 4px;
  color: #c91f6f;
  font-size: 0.78rem;
  font-weight: 800;
}

.remove-button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--pink-dark);
  background: var(--pink-pale);
  font-size: 1.2rem;
}

.remove-button:hover {
  color: var(--white);
  background: var(--pink-dark);
}

.totals {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 2px solid #edf2f6;
}

.totals p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.grand-total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--navy);
  font-size: 1.25rem;
}

.whatsapp-button {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--green);
  font-weight: 950;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.whatsapp-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.94);
}

/* =========================================================
   7. INFORMAÇÕES E RODAPÉ
   ========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-grid article {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(13, 72, 118, 0.08);
}

.info-grid article > span {
  font-size: 1.8rem;
}

.info-grid h3 {
  margin: 0 0 7px;
  color: var(--navy);
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  padding: 42px 20px;
  color: var(--white);
  background: var(--navy);
  text-align: center;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
}

footer p {
  margin: 7px 0;
}

footer a:hover {
  text-decoration: underline;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.06);
}

.cart-notification {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: var(--white);
  background: #146c43;
  box-shadow: 0 14px 34px rgba(15, 67, 47, 0.28);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-notification.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   8. TABLETS E CELULARES
   ========================================================= */
@media (max-width: 880px) {
  nav > a:not(.small-button) {
    display: none;
  }

  .hero,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .hero-image img {
    min-height: 360px;
    height: 360px;
  }

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

  .cart-card {
    position: static;
  }
}

@media (max-width: 580px) {
  .topbar {
    gap: 12px;
  }

  .small-button {
    padding: 10px 13px;
  }

  .hero {
    padding-top: 44px;
  }

  .section {
    padding: 52px 18px;
  }

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

  .product-image-wrap {
    height: 260px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
