/* ---------- Design System (Light-only) ---------- */
/* ---------- Design System (Light-only) ---------- */
/* Forçar tema claro: variáveis definidas para aparência clara independente das preferências do sistema. */

/* Manrope (variable) — self-hosted, sem dependência de CDN externa. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Core colors */
  --bg: #ffef70;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --main-text: #704241;
  --primary: #e1b800;
  --accent: #e11d48;

  /* Layout */
  --header-height: 104px;
  --max-width: 1120px;
  --container-pad: 16px;

  /* Borders / radius */
  --stroke: #e5e7eb;
  --radius: 12px;

  /* Elevation */
  --shadow-sm: 0 4px 10px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.10);

  /* Typography */
  --font-size-base: 16px;
  --line-height: 1.5;

  /* Motion */
  --transition-fast: 180ms;
  --ring: rgba(225, 184, 0, .35);

  /* misc */
  --chocolate: #704241;
}

@media (max-width: 1024px) {
  :root {
    --header-height: 96px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 88px;
  }
}


/* Mobile tweak: make the Accept button appear first and remove vertical offsets so it
   doesn't look 'too low' on small screens. Also increase spacing for touch targets. */
@media (max-width: 520px) {
  .cookie-banner__actions {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* bring the primary action visually higher on narrow screens */
  .cookie-banner__actions .btn-primary {
    order: -1;
    transform: none !important;
  }

  .cookie-banner__actions .btn,
  .cookie-banner__actions .btn-outline,
  .cookie-banner__actions .btn-muted {
    transform: none !important;
    flex: 1 1 100%;
    min-width: 0;
  }

  .cookie-banner__inner {
    padding: 14px 16px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 76px;
  }
}

/* Hide all content on desktop widths so only mobile clients see the store. */
@media (min-width: 768px) {
  body {
    background: #ffffff;
  }

  body>* {
    display: none !important;
  }
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: var(--line-height);
}

/* Base typography & utilities */
html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--main-text);
  margin: .25rem 0 .6rem;
  line-height: 1.1;
  letter-spacing: -0.02em
}

h1 {
  font-size: 2rem
}

h2 {
  font-size: 1.25rem
}

h3 {
  font-size: 1rem
}

p {
  margin: 0 0 1rem
}

.muted {
  color: var(--muted)
}

.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 var(--container-pad)
}

.container-wide {
  max-width: calc(var(--max-width) + 240px)
}

/* Form controls */
input,
select,
textarea,
button {
  font: inherit;
  color: inherit
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  display: block;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-sizing: border-box;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-color: color-mix(in oklab, var(--primary) 40%, var(--stroke));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--surface) 85%, black);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[disabled] {
  opacity: .6;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), color-mix(in oklab, var(--primary) 80%, black));
  color: #151515;
  border-color: transparent;
  font-weight: 700
}

.btn-outline {
  background: transparent
}

/* ensure anchor buttons don't show default underline/color */
.btn,
a.btn {
  text-decoration: none;
  color: inherit;
}

/* Small helpers for spacing */
.stack {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

/* card improvements (light touch) */
/* Estilo para ícone de desconto 20% nos produtos */

.card {
  border-radius: calc(var(--radius) - 4px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

/* Improve the footer template image sizing to be responsive within cards */
.card__media img {
  width: 100%;
  height: auto;
  display: block
}

/* Pack label under image */
.card__pack-label {
  margin-top: 6px;
  display: block;
  background: #704241;
  color: #fff;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1;
}

/* Small price display lines under main price */
.card__price-unit {
  color: #111;
  font-size: 0.9rem;
  margin: 0;
}

.card__price-pack {
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}

/* ---------------- Checkout specific styles ---------------- */
body.checkout-page {
  background: linear-gradient(180deg, rgba(255, 239, 112, 0.22) 0%, rgba(255, 255, 255, 0.96) 46%), #fff7cf;
}

body.checkout-page .header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

/* ---------------- Thank you / PIX styles ---------------- */
body.thankyou-page {
  background: linear-gradient(180deg, rgba(255, 239, 112, 0.16) 0%, rgba(255, 255, 255, 0.95) 42%), #fff7cf;
}

body.thankyou-page .header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.thankyou-wrapper {
  padding: 96px 0 120px;
}

.thankyou {
  display: grid;
  gap: 40px;
}

.thankyou-hero {
  position: relative;
  padding: 48px clamp(24px, 5vw, 56px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(112, 66, 65, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.thankyou-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(780px 420px at 88% 8%, rgba(255, 214, 94, 0.32), transparent 68%);
  pointer-events: none;
}

.thankyou-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(112, 66, 65, 0.16);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .75rem;
  color: var(--muted);
}

.thankyou-hero__title {
  position: relative;
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 2.65rem);
  color: var(--main-text);
}

.thankyou-hero__subtitle {
  position: relative;
  margin: 0;
  max-width: 520px;
  font-size: 1rem;
  color: color-mix(in oklab, var(--muted) 70%, var(--text) 30%);
}

.thankyou-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 6vw, 48px);
  margin-top: 32px;
}

.thankyou-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.thankyou-meta__label {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.thankyou-meta__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--main-text);
}

.thankyou-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 24px;
}

.thankyou-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(112, 66, 65, 0.14);
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thankyou-card__title {
  margin: 0;
  font-size: 1.5rem;
}

.thankyou-card__subtitle {
  margin: 0;
  font-size: .98rem;
  color: var(--muted);
}

.thankyou-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Collection banner (inserido dinamicamente via JS) */
.collection-banner {
  margin: 28px 0;
}

.collection-banner .banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}


.thankyou-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.thankyou-item__thumb {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.thankyou-item__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thankyou-item__name {
  font-weight: 600;
  color: var(--main-text);
}

.thankyou-item__total {
  font-weight: 700;
  color: var(--main-text);
}

.thankyou-summary__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(112, 66, 65, 0.12);
  font-size: 1.05rem;
}

.thankyou-card__note {
  font-size: .9rem;
  color: var(--muted);
  background: rgba(112, 66, 65, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
}

.thankyou-card__action {
  align-self: flex-start;
}

.thankyou-payment {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: flex-start;
}

.pix-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pix-card__qr {
  width: 100%;
  max-width: 280px;
  align-self: center;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.pix-payload {
  width: 100%;
  min-height: 90px;
  resize: none;
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  background: rgba(249, 250, 251, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px;
  color: var(--main-text);
}

.pix-card__label {
  font-size: .85rem;
  color: var(--muted);
}

.pix-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pix-copy-message {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  color: var(--main-text);
  font-weight: 700;
  text-align: center;
}

.pix-copy-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pix-card__hint {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.pix-tips {
  margin: 0;
  padding-left: 18px;
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.thankyou-benefits__card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.thankyou-benefits__card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.thankyou-benefits__card p {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.thankyou-empty {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: clamp(32px, 8vw, 64px);
  box-shadow: 0 18px 45px rgba(112, 66, 65, 0.14);
  display: grid;
  gap: 18px;
  justify-items: center;
}

.thankyou-empty__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.thankyou-empty__copy {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
}

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

  .thankyou-payment {
    position: static;
  }
}

@media (max-width: 768px) {
  .thankyou-wrapper {
    padding: 78px 0 96px;
  }

  .thankyou-hero {
    border-radius: 24px;
  }

  .thankyou-card,
  .thankyou-benefits__card {
    border-radius: 22px;
  }

  .thankyou-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .thankyou-meta {
    gap: 16px;
  }

  .pix-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .thankyou-card__action,
  .pix-card__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.checkout-wrapper {
  padding: 88px 0 120px;
}

.checkout {
  padding: 0;
}

.checkout-header {
  position: relative;
  max-width: 960px;
  margin: 0 auto 44px;
  padding: 40px 48px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(112, 66, 65, 0.18);
  overflow: hidden;
}

.checkout-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(850px 420px at 90% 10%, rgba(255, 214, 94, 0.32), transparent 65%);
  pointer-events: none;
}

.checkout-header__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
}

.checkout-header__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.checkout-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(112, 66, 65, 0.12);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.checkout-subtitle {
  margin: 0;
  color: color-mix(in oklab, var(--muted) 85%, var(--text) 15%);
  max-width: 520px;
  font-size: 1rem;
}

.checkout-trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.checkout-trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(112, 66, 65, 0.14);
  font-weight: 600;
  font-size: .85rem;
  color: var(--main-text);
}

.checkout-trust__copy {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.checkout-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 28px 0 0;
  margin: 32px 0 0;
}

.checkout-step {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(112, 66, 65, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(112, 66, 65, 0.08);
  color: var(--muted);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.checkout-step__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: color-mix(in oklab, var(--primary) 45%, white);
  color: var(--main-text);
  box-shadow: 0 8px 20px rgba(112, 66, 65, 0.16);
}

.checkout-step__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-step__title {
  font-weight: 600;
  color: var(--text);
}

.checkout-step__caption {
  font-size: .85rem;
  color: var(--muted);
}

.checkout-step.is-current {
  border-color: rgba(112, 66, 65, 0.3);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(112, 66, 65, 0.14);
}

.checkout-step.is-current .checkout-step__icon {
  background: linear-gradient(145deg, var(--primary), color-mix(in oklab, var(--primary) 70%, white));
  color: #151515;
}

.checkout-step.is-next {
  opacity: .9;
}

.checkout-step.is-complete {
  border-color: rgba(112, 66, 65, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: color-mix(in oklab, var(--muted) 60%, var(--text) 40%);
  box-shadow: 0 8px 22px rgba(112, 66, 65, 0.08);
}

.checkout-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 0 0;
  margin: 24px 0 0;
  list-style: none;
}

.checkout-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: color-mix(in oklab, var(--muted) 88%, var(--text) 12%);
}

.checkout-benefits li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(225, 184, 0, 0.2);
}

/* ---------------- Delivery step styles ---------------- */
.delivery-page .header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.delivery-hero::after {
  background: radial-gradient(820px 420px at 88% 12%, rgba(255, 214, 94, 0.3), transparent 70%);
}

.delivery-grid {
  gap: 32px;
}

.delivery-card {
  gap: 24px;
}

.delivery-mini-info {
  display: grid;
  gap: 6px;
  font-size: .95rem;
  color: color-mix(in oklab, var(--muted) 40%, var(--text) 60%);
}

.delivery-mini-info__email {
  font-size: .92rem;
  color: var(--muted);
}

.delivery-mini-info__phone {
  font-size: .92rem;
}

.delivery-mini-info__link {
  color: inherit;
  text-decoration: underline;
}

.delivery-mini-info strong {
  font-size: 1rem;
  color: var(--main-text);
}

.delivery-address.address-grid {
  display: grid;
  grid-template-columns: 160px 1fr 110px;
  gap: 18px;
}

.delivery-address .form-field {
  margin: 0;
}

.delivery-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .9rem;
}

.delivery-help a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(112, 66, 65, 0.35);
}

.delivery-error {
  display: none;
  color: #b91c1c;
  font-weight: 600;
}

.delivery-payment {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.delivery-payment__options {
  border: 0;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.delivery-payment__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(112, 66, 65, 0.18);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 600;
  color: var(--main-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.delivery-payment__option input {
  accent-color: var(--primary);
}

.delivery-payment__option:has(input:checked) {
  border-color: rgba(112, 66, 65, 0.32);
  box-shadow: 0 6px 18px rgba(112, 66, 65, 0.14);
}

.delivery-card-fields {
  display: none;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.delivery-card-fields .form-field--full {
  grid-column: 1 / -1;
}

.delivery-status {
  font-size: .9rem;
}

.delivery-status.is-error {
  color: #b3261e;
}

.delivery-status.is-success {
  color: #05603a;
}

.delivery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.delivery-actions .btn-primary {
  min-width: 190px;
  justify-content: center;
}

.delivery-summary {
  gap: 20px;
}

.delivery-summary__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.delivery-item__thumb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.delivery-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-item__name {
  font-weight: 600;
}

.delivery-item__details {
  font-size: .9rem;
  color: var(--muted);
}

.delivery-item__total {
  font-weight: 700;
}

.delivery-summary__estimate {
  font-size: .9rem;
  color: var(--muted);
  background: rgba(112, 66, 65, 0.08);
  padding: 10px 12px;
  border-radius: 16px;
}

.delivery-summary__estimate.is-pending {
  background: rgba(112, 66, 65, 0.05);
  color: color-mix(in oklab, var(--muted) 85%, var(--text) 15%);
}

.delivery-summary__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .98rem;
}

.delivery-summary__row.is-total {
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 1px solid rgba(112, 66, 65, 0.12);
  padding-top: 12px;
  margin-top: 4px;
}

.delivery-summary__installment {
  font-size: .9rem;
  color: var(--muted);
}

.delivery-summary__note {
  font-size: .88rem;
  color: color-mix(in oklab, var(--muted) 70%, var(--text) 30%);
  background: rgba(112, 66, 65, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
}

.delivery-summary__empty {
  font-size: .95rem;
  color: var(--muted);
}

.delivery-shipping {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(112, 66, 65, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(112, 66, 65, 0.1);
}

.delivery-shipping.is-visible {
  display: flex;
}

.delivery-shipping h3 {
  margin: 0;
  font-size: 1.1rem;
}

.delivery-shipping__option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(112, 66, 65, 0.16);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.delivery-shipping__option input {
  accent-color: var(--primary);
}

.delivery-shipping__option:has(input:checked) {
  border-color: rgba(112, 66, 65, 0.32);
  box-shadow: 0 10px 26px rgba(112, 66, 65, 0.12);
}

.delivery-shipping__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.delivery-shipping__title {
  font-weight: 700;
  color: var(--main-text);
}

.delivery-shipping__desc {
  font-size: .9rem;
  color: var(--muted);
}

.delivery-shipping__price {
  font-weight: 700;
  color: var(--main-text);
}

@media (max-width: 960px) {
  .delivery-address.address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .delivery-card-fields {
    grid-template-columns: 1fr;
  }

  .delivery-address.address-grid {
    grid-template-columns: 1fr;
  }

  .delivery-help {
    flex-direction: column;
    align-items: flex-start;
  }

  .delivery-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .delivery-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .delivery-shipping__option {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .delivery-shipping__price {
    grid-column: 2;
    justify-self: start;
  }
}

.checkout-alert {
  display: none;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 16px;
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(112, 66, 65, 0.12);
  font-weight: 500;
}

.checkout-alert:not(:empty) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-alert[data-variant="error"] {
  border-left-color: #dc2626;
  color: #991b1b;
}

.checkout-alert[data-variant="success"] {
  border-left-color: #16a34a;
  color: #166534;
}

.checkout-layout,
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 36px;
  align-items: start;
}

.checkout-card {
  position: relative;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-radius: 28px;
  border: 1px solid rgba(112, 66, 65, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 45px rgba(112, 66, 65, 0.12);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid rgba(112, 66, 65, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(112, 66, 65, 0.08);
}

.form-block.is-hidden {
  display: none !important;
}

.form-block__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-block__header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.form-block__header p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  color: var(--text);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field-group--split .form-field {
  flex: 1 1 min(240px, 100%);
}

.segmented-control {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(112, 66, 65, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.segmented-control__option {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.segmented-control__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.segmented-control__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.segmented-control__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.segmented-control__option input:checked+.segmented-control__label,
.segmented-control__option.is-active .segmented-control__label {
  background: linear-gradient(145deg, var(--primary), color-mix(in oklab, var(--primary) 76%, white));
  color: #151515;
  box-shadow: 0 10px 24px rgba(112, 66, 65, 0.18);
}

.segmented-control__option input:focus-visible+.segmented-control__label {
  box-shadow: 0 0 0 4px var(--ring);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(112, 66, 65, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(112, 66, 65, 0.12);
}

.form-footer .btn {
  min-width: 160px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.checkout-summary {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 26px;
  border: 1px solid rgba(112, 66, 65, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 45px rgba(112, 66, 65, 0.12);
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.summary-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-eyebrow {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text);
}

.summary-items {
  min-height: 140px;
}

.summary-items__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(112, 66, 65, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(112, 66, 65, 0.08);
}

.summary-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--bg) 60%, white);
  border: 1px solid rgba(112, 66, 65, 0.05);
}

.summary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-item__fallback {
  font-weight: 700;
  color: var(--main-text);
}

.summary-item__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-item__title {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.summary-item__meta {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.summary-item__total {
  font-size: 1rem;
  color: var(--main-text);
}

.summary-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(112, 66, 65, 0) 0%, rgba(112, 66, 65, 0.24) 50%, rgba(112, 66, 65, 0) 100%);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.35rem;
  margin: 0;
}

.summary-total dt {
  font-weight: 600;
  color: var(--text);
}

.summary-total dd {
  margin: 0;
  font-weight: 700;
  color: var(--main-text);
}

.summary-footnote {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

.summary-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  align-items: center;
  text-align: center;
}

.summary-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {

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

  .checkout-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .checkout-wrapper {
    padding: 72px 0 100px;
  }

  .checkout-header {
    padding: 32px 24px;
  }

  .checkout-header__top {
    gap: 16px;
  }

  .checkout-benefits {
    gap: 8px 16px;
  }

  .checkout-card {
    padding: 28px 22px;
  }

  .form-block {
    padding: 20px 18px;
  }

  .form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-footer .btn {
    width: 100%;
  }

  .summary-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .summary-item__total {
    grid-column: 1 / -1;
    justify-self: flex-end;
  }
}

@media (max-width: 540px) {
  .checkout-step {
    flex: 1 1 100%;
  }
}

/* ---------------- Product page tweaks ---------------- */
/* Estilos específicos para a descrição do produto (exibida em product.php) */
.product-detail__description {
  margin: 6px 0 6px;
  color: color-mix(in oklab, var(--text) 80%, var(--main-text) 20%);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 70ch;
  /* limita a largura da linha para melhor leitura */
  display: block;
  width: 100%;
}

/* Visual refinements: diferenciar a descrição do resto das informações */
.product-detail__description {
  background: transparent;
  padding: 0.25rem 0;
}

/* Em telas pequenas, ajustar tamanho e largura */
@media (max-width: 900px) {
  .product-detail__description {
    font-size: 0.96rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .product-detail__description {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
}

/* ---------------- Cookie banner styles ---------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1400;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner.open {
  pointer-events: auto;
}

.cookie-banner__inner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  padding: 14px 20px;
  /* mais espaçamento interno para evitar que botões encostem na borda */
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: calc(var(--max-width) - 32px);
}

.cookie-banner__text {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  /* aumentar espaçamento entre botões */
  margin-left: auto;
  align-items: center;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-banner__actions {
    margin-left: 0;
    justify-content: flex-end;
  }
}

/* design aprimorado para cookie banner */
.cookie-banner {
  bottom: 44px;
  /* elevado para não colidir com barras do SO/navegador */
}

.cookie-banner__inner {
  align-items: center;
  padding: 10px 16px;
  transition: transform 260ms cubic-bezier(.2, .9, .2, 1), opacity 260ms ease;
  transform: translateY(6px);
  opacity: 0;
}

.cookie-banner.open .cookie-banner__inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__icon {
  display: inline-flex;
  font-size: 28px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(112, 66, 65, 0.06), rgba(112, 66, 65, 0.02));
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.cookie-banner__title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--chocolate);
}

.cookie-banner__body {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner__text {
  color: var(--text);
  margin: 0;
  max-width: 56ch;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  margin-left: 16px;
  align-self: flex-start;
  margin-top: 6px;
}

.cookie-banner__actions .btn {
  padding: 10px 14px;
  border-radius: 12px;
  /* cantos um pouco mais arredondados para aparência profissional */
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cookie-banner__actions .btn-muted {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  transform: translateY(-0.35em);
  transition: transform 180ms ease;
}

/* botão 'Revisar' / 'Recusar' - borda destacada */
.cookie-banner__actions .btn-outline {
  background: transparent;
  color: #752C1E;
  border: 2px solid #752C1E;
  transform: translateY(-0.35em);
  transition: transform 180ms ease;
}

.cookie-banner__actions .btn-outline:hover {
  background: rgba(117, 44, 30, 0.06);
  transform: translateY(-0.45em);
}

/* botão Aceitar: preenchimento liso #FEB800 e texto branco */
.cookie-banner__actions .btn-primary {
  background: #FEB800;
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(254, 184, 0, 0.18);
  /* reduzir deslocamento para que o botão não pareça 'flutuar' muito acima da caixa */
  transform: translateY(-0.35em);
  transition: transform 180ms ease;
}

.cookie-banner__actions .btn-primary:hover {
  filter: brightness(0.98);
  transform: translateY(-0.5em);
}

.cookie-banner__actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
}

.cookie-banner__actions .btn:focus {
  outline: 3px solid color-mix(in oklab, var(--primary) 35%, transparent);
  outline-offset: 2px;
}

@media (max-width:720px) {
  .cookie-banner__inner {
    padding: 12px;
  }

  .cookie-banner__text {
    font-size: 0.95rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    align-self: stretch;
    margin-left: 0;
    margin-top: 8px;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 48%;
  }

  .cookie-banner__actions .btn+.btn {
    margin-left: 0;
  }
}

/* Remover elevação do botão em telas muito pequenas para manter fluxo natural */
@media (max-width:420px) {
  .cookie-banner__actions .btn-primary {
    transform: none;
  }
}

@media (max-width:420px) {

  .cookie-banner__actions .btn-outline,
  .cookie-banner__actions .btn-muted {
    transform: none;
  }
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-block.is-hidden {
  display: none !important;
}

.form-block__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-block__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.form-block__header p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* Newsletter signup above footer */
.newsletter {
  background: #F7E053;
  padding: 22px 0;
}

.newsletter__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.newsletter__text h2 {
  margin: 0 0 6px;
  font-size: 2.15rem;
  color: var(--main-text);
}

.newsletter__text .muted {
  margin: 0;
  display: none;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 680px;
}

.newsletter__fields {
  display: flex;
  gap: 8px;
}

.newsletter__fields input[type="text"],
.newsletter__fields input[type="email"] {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 30px;
  background: var(--surface);
}

.newsletter__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.newsletter__agree {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.newsletter__agree a {
  color: var(--main-text);
  text-decoration: underline;
}

.btn-newsletter {
  background: #704241;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-weight: 600;
}

.btn-newsletter:focus {
  outline: 3px solid rgba(112, 66, 65, 0.18);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .newsletter__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter__controls {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter__fields {
    flex-direction: column;
  }

  .btn-newsletter {
    width: 100%;
  }
}

/* spacing between newsletter and footer */
.newsletter {
  margin-bottom: 24px;
}

/* Styles for the inline thank-you / coupon block shown after successful newsletter submission */
.newsletter__thanks {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.newsletter__thanks-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--main-text);
  font-weight: 700;
}

.newsletter__thanks-desc {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.newsletter__coupon {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter__coupon code {
  background: color-mix(in oklab, var(--bg) 92%, white);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.newsletter__dismiss {
  justify-self: flex-end;
  align-self: flex-end;
}

.tag-required {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 70%, white);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #4d3600;
}

/* Address card styles for delivery form */
.address-card {
  padding: 14px;
}

.address-grid {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  gap: 10px;
  align-items: center;
}

.address-grid label {
  display: block;
  font-size: .95rem;
  margin: 0;
}

.address-grid input {
  padding: .6rem .7rem;
  border-radius: 15px;
  border: 1px solid var(--stroke);
}

/* Free shipping indicator */
.free-shipping {
  color: #10703e;
  font-weight: 700;
}

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

/* compact forms inside checkout */
@media (max-width:520px) {
  .checkout h1 {
    font-size: 2.25rem
  }

  .checkout-grid {
    gap: 16px
  }
}

/* small visual polish for footer compact block */
.footer__col.footer__compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center
}

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

.footer__links li {
  margin: 0 0 .35rem
}

.footer__copy {
  margin: 0
}

/* Prevent content from being hidden under the fixed header */
body {
  padding-top: var(--header-height);
}

/* A11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 8px
}

/* Containers */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 16px
}

/* Header */
.header {
  /* fixed header so it remains visible while scrolling */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #FFC72C;
  background-image: none;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(229, 231, 235, 0.12);
}


.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
  height: var(--header-height);
  max-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.brand--center {
  justify-self: center;
}

.brand img {
  display: block;
  height: clamp(60px, calc(var(--header-height) - 24px), 120px);
  width: auto;
  object-fit: contain;
}

.header__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.search input {
  flex: 1;
  padding: .65rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(112, 66, 65, 0.18);
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.search input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: color-mix(in oklab, var(--surface) 85%, black);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 999px;
  padding: .55rem .8rem;
  cursor: pointer;
}

.icon-btn--ghost {
  background: transparent;
  border: none;
  padding: .35rem;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.icon-btn--ghost:hover {
  transform: translateY(-1px);
  opacity: .85;
}

.icon-btn--ghost:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.icon-btn svg {
  display: block
}

.icon-btn img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-btn .sun {
  display: none
}

html[data-theme="light"] .icon-btn .sun {
  display: block
}

html[data-theme="light"] .icon-btn .moon {
  display: none
}

html[data-theme="dark"] .icon-btn .sun {
  display: none
}

html[data-theme="dark"] .icon-btn .moon {
  display: block
}

.badge {
  display: inline-flex;
  min-width: 1.15rem;
  justify-content: center;
  align-items: center;
  font-size: .72rem;
  background: #ff0000;
  color: #ffffff;
  border-radius: 999px;
  padding: .1rem .4rem;
  margin-left: .3rem;
}

.badge--discount {
  position: absolute;
  left: 10px;
  top: 10px;
  background: #ffc40b;
  color: #000;
  border-radius: 999px;
  padding: .3rem .5rem;
  font-weight: 700;
}

.cart-btn {
  position: relative;
}

.cart-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
}

.header__search-panel {
  display: none;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(229, 231, 235, 0.35);
  border-bottom: 1px solid rgba(229, 231, 235, 0.35);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px) saturate(120%);
}

.header__search-panel.is-open {
  display: block;
}

.search-suggestions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(112, 66, 65, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.search-suggestions__item:hover,
.search-suggestions__item:focus-visible {
  background: rgba(255, 239, 112, 0.18);
  border-color: rgba(112, 66, 65, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.search-suggestions__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.06);
}

.search-suggestions__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-suggestions__title {
  font-weight: 600;
  color: var(--text);
}

.search-suggestions__price {
  font-size: .9rem;
  color: var(--muted);
}

.search-suggestions__empty {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  font-size: .9rem;
}

/* Navigation */
.main-nav {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke)
}

.menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: .75rem 0;
  overflow: auto
}

.menu a {
  font-weight: 800;
  font-size: 18px;
  color: #704241;
  line-height: 24px;
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: 10px
}

.menu a.active,
.menu a:hover {
  background: color-mix(in oklab, var(--bg) 85%, black);
  color: var(--text)
}


.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: .35rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  opacity: .85;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .menu {
    display: none
  }

  .menu.open {
    display: flex
  }
}

/* Hero */
.hero {
  background: radial-gradient(1200px 400px at 50% -20%, color-mix(in oklab, var(--primary) 35%, transparent), transparent), url('./assets/hero.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--stroke)
}

.hero__content {
  padding: 64px 0;
  text-align: center
}

.hero h1 {
  font-size: 2.5rem;
  margin: .35rem 0;
  line-height: 1.05
}

.hero p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 21px;
  line-height: 1.45;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto
}

/* Tipografia do título do hero */
.hero h1 {
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700
}

.btn {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: .7rem 1rem;
  border: 1px solid var(--stroke);
  background: color-mix(in oklab, var(--bg) 85%, black);
  color: var(--text);
  cursor: pointer
}

.btn-primary {
  background: var(--primary);
  color: #151515;
  border-color: transparent;
  font-weight: 700
}

.btn-outline:hover {
  border-color: color-mix(in oklab, var(--text) 20%, var(--stroke))
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0
}

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

/* Mobile improvements */
@media (max-width: 520px) {

  /* Header: compactar itens e melhorar espaçamento */
  .header__row {
    min-height: 56px;
    gap: 8px;
    padding: 0 8px
  }

  .brand img {
    height: 55px
  }

  .search {
    gap: 6px
  }

  .search input {
    padding: .5rem .75rem;
    font-size: .95rem
  }

  /* Hero: menos padding e texto menor para não empurrar conteúdo */
  .hero__content {
    padding: 28px 0
  }

  .hero h1 {
    font-size: 1.6rem
  }

  .hero p {
    font-size: 1.05rem
  }

  .hero {
    background-position: 50% 10%;
    background-size: cover
  }

  /* Filtros: inicialmente escondidos (colapsíveis) */
  .filters {
    display: none;
    position: static;
    border: 1px solid var(--stroke);
    background: var(--surface);
    padding: 12px;
    margin-bottom: 12px
  }

  .filters.open {
    display: block
  }

  .filters__toggle {
    display: inline-flex
  }

  /* Produtos: garantir 1 coluna e espaçamento adequado */
  .products {
    grid-template-columns: 1fr;
    gap: 12px
  }

  /* Footer: incrementar espaçamento e legibilidade */
  .footer__row {
    gap: 14px
  }

  .footer__title {
    font-size: .95rem
  }
}

/* Filters */
.filters {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px
}

.filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.filters__toggle {
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: .35rem .6rem
}

.filters__body {
  display: block
}

.filters fieldset {
  margin: 12px 0;
  border: 0;
  padding: 0
}

.filters legend {
  font-weight: 700;
  margin-bottom: 8px
}

.filters label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin: .35rem 0
}

.range-tip {
  color: var(--muted);
  font-size: .9rem
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 780px) {
  .products {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 520px) {
  .products {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.card__media {
  position: relative;
  background: color-mix(in oklab, var(--bg) 85%, black)
}

.card__media img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block
}


.card__body {
  padding: 12px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card__title {
  margin: 0.08rem 0 0.04rem 0;
  font-size: 14px;
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.card__price {
  font-weight: 700;
  margin: 0.2rem 0 0.15rem 0;
}

.card__price s {
  color: var(--muted);
  font-weight: 400;
  margin-left: .25rem
}

.card__installment {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 0.2rem;
}

.card__actions {
  margin-top: 0.25rem;
  display: flex;
  gap: 8px
}

.btn-buy {
  background: var(--primary);
  color: #141415;
  border: 0;
  font-weight: 700
}

/* Prevent buy button label from wrapping and allow it to expand in flex containers
   - Use nowrap to keep the label in one line
   - On collection grid, allow the button to take remaining width so the text fits */
.btn-buy {
  white-space: nowrap;
}

.collection__grid .card__actions .btn-buy {
  white-space: normal;
}

.collection__grid .card__actions .btn-buy {
  flex: 1 1 auto;
  min-width: 0;
}

/* Quantity controls for card */
.recommendation-card .qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
}

.qty-btn {
  border: none;
  background: transparent;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  color: #111;
  font-size: 1rem;
}

.qty-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 6px;
}

.qty-input {
  width: 40px;
  padding: 4px 6px;
  border-radius: 999px;
  border: none;
  text-align: center;
  font-weight: 700;
  background: transparent;
}

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

.qty-input {
  -moz-appearance: textfield;
}

/* Melhoria visual dos cards */
.card {
  border-radius: 14px;
  padding: 8px;
  /* reduced to make the white area smaller */
  /* mais espaçamento interno para parecer cartão */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 96%, transparent), var(--surface));
}

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
  border-color: color-mix(in oklab, var(--primary) 25%, var(--stroke));
}

.card__media {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden
}

.card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain
}


.card__body {
  padding: 10px;
  /* reduced body padding for compact card */
  display: flex;
  flex-direction: column;
  gap: 8px
}

.card__title {
  font-size: 1.05rem;
  color: var(--main-text);
  line-height: 3.15;
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800
}

.card__price {
  font-size: 1.05rem;
  color: var(--text)
}

.card__price-unit {
  font-size: 0.92rem;
  color: #111;
  margin: 0;
}

.card__price-pack {
  font-size: 0.95rem;
  color: #111;
  font-weight: 700;
  margin: 0;
}

.recommendation-card .card__qty-controls {
  margin: 6px 0 4px 0;
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.collection__grid .card__qty-controls {
  margin: 4px 0;
}

.card__price s {
  color: var(--muted);
  margin-left: .5rem
}

.card__installment {
  color: var(--muted);
  font-size: .9rem
}

/* Aplicar a cor principal nos textos destacados (títulos e preços principais) */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--main-text)
}

.card__title {
  color: #000;
}

.card__price {
  color: var(--main-text)
}

/* Make sure prices in collection cards on the home page use the brand color */
.collection .card__price,
.collection .card__price-unit,
.collection .card__price-pack {
  color: #704241 !important;
}

.footer__title {
  color: var(--main-text)
}

.card__actions {
  margin-top: 8px
}

/* Ensure actions are visible and centered in narrow cards */
.collection__grid .card__actions {
  justify-content: flex-start;
  align-items: center;
  z-index: 12;
  position: absolute;
  /* keep button visible even when card content is tall */
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex !important;
  gap: 8px;
}

.btn-buy {
  width: 100%;
  padding: .65rem .9rem;
  border-radius: 10px
}

/* For collection grid we don't want the buy button to be full width under qty controls */
.collection__grid .card__actions .btn-buy {
  width: auto;
}

.collection__grid .btn-buy {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 32px;
}

/* make sure primary button is on top and visible */
.btn-buy {
  z-index: 3;
  display: inline-block;
}

/* ajustar o tamanho da grid nas colunas maiores para evitar cards muito largos */
@media (min-width: 1400px) {
  .products {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

/* Skeletons */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

@media (max-width: 1100px) {
  .skeleton-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 780px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 520px) {
  .skeleton-grid {
    grid-template-columns: 1fr
  }
}

.skeleton-card {
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in oklab, var(--bg) 85%, black), color-mix(in oklab, var(--bg) 70%, black), color-mix(in oklab, var(--bg) 85%, black));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear
}

@keyframes shimmer {
  0% {
    background-position: 0 0
  }

  100% {
    background-position: 200% 0
  }
}

/* Drawer (Cart) */
.drawer {
  position: fixed;
  inset: 0;
  display: none
}

.drawer.open {
  display: block
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(2px)
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: var(--surface);
  /* minimal: remove heavy border/shadow to simplify chrome */
  border-left: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  animation: slideIn .18s forwards
}

/* Banner image inside the cart drawer panel */
.drawer__banner {
  display: none;
}

.drawer__banner img {
  display: none;
}

/* Adjust header spacing when banner exists */
.drawer__panel .drawer__header {
  padding: 20px 22px;
}

@keyframes slideIn {
  to {
    transform: translateX(0)
  }
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 0;
  background: #ffc72c;
  color: #704241;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.drawer__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
}

.drawer__header .icon-btn {
  background: rgba(255, 255, 255, 0.28);
  color: #704241;
  border: none;
}

.drawer__header .icon-btn svg {
  fill: currentColor;
}

.drawer__content {
  padding: 12px;
  flex: 1;
  overflow: auto;
}

.drawer__footer {
  border-top: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.drawer__item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.drawer__item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 0;
}

.drawer__title {
  font-weight: 600;
  margin: 0 0 4px
}

.drawer__price {
  color: var(--muted);
  font-size: .9rem;
}

.drawer__remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
}

.drawer__footer {
  background: #ffc72c;
  color: #704241;
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 -12px 32px rgba(112, 66, 65, 0.18);
}

.drawer__perk {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.drawer__perk-line {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #5bb25b;
}

.drawer__summary {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.drawer__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.drawer__summary-row dt {
  font-weight: 600;
}

.drawer__summary-row dd {
  margin: 0;
  font-weight: 600;
}

.drawer__summary-row--total {
  font-size: 1.05rem;
  font-weight: 700;
}

.drawer__summary-row--total dd {
  font-size: 1.1rem;
}

.drawer__shipping {
  font-weight: 600;
  color: #166534;
}

.drawer__footer .btn-primary {
  width: 100%;
  padding: .85rem .9rem;
  border-radius: 12px;
  font-weight: 700;
  background: #704241;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(112, 66, 65, 0.25);
}

.drawer__continue {
  background: transparent;
  border: none;
  color: rgba(112, 66, 65, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin: 0;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease;
}

.drawer__continue:hover,
.drawer__continue:focus-visible {
  color: #704241;
  outline: none;
}

/* Simplify item card visuals */
.drawer__item .drawer__title {
  font-size: .95rem;
  margin-bottom: 2px
}

.drawer__item .drawer__price {
  font-size: .86rem
}

/* Toasts */
.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 0;
  z-index: 60;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #704241;
  color: #fff7e6;
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 -10px 32px rgba(112, 66, 65, 0.32);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  width: 100%;
  justify-content: center;
  animation: toast-slide-up 220ms ease-out;
}

.toast--success {
  border-top-color: color-mix(in oklab, #704241 20%, var(--primary));
}

.toast--error {
  border-top-color: color-mix(in oklab, #704241 20%, var(--accent));
}

.toast__close {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  color: #fff7e6;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 999px;
}

.toast span {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: #fffdf4;
}

.toast__action {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fffdf4;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.toast__action:active {
  transform: scale(0.97);
}

.toast__action:hover,
.toast__action:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.toast__action:focus-visible {
  outline: none;
}

.toast--closing {
  animation: toast-slide-down 200ms ease-in forwards;
}

@keyframes toast-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

@keyframes toast-slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--stroke);
  background: var(--surface);
  padding: 32px 0 20px;
}

.footer__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

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

.footer__logo {
  display: inline-flex;
}

.footer__logo img {
  width: 128px;
  height: auto;
}

.footer__tagline {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.footer__heading {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

.footer__nav,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__list a,
.footer__contact a,
.footer__privacy {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__contact .phone-link {
  padding: 0;
  border: 0;
  background: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text);
}

.footer__contact .phone-link:hover,
.footer__contact .phone-link:focus {
  transform: none;
}

.footer__list a:hover,
.footer__list a:focus,
.footer__contact a:hover,
.footer__contact a:focus,
.footer__privacy:hover,
.footer__privacy:focus {
  color: var(--text);
  text-decoration: underline;
}

.footer__schedule {
  color: var(--muted);
  font-size: .9rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(112, 66, 65, 0.12);
  padding-top: 16px;
}

.footer__copy {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .footer__layout {
    gap: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Quantity controls used on product page */
.qty-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.qty-btn {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  border: none;
  background: transparent;
}

.qty-input {
  width: 56px;
  padding: 6px 8px;
  border-radius: 999px;
  border: none;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 520px) {
  .qty-controls {
    gap: 6px
  }

  .qty-btn {
    min-width: 34px;
    height: 34px
  }

  .qty-input {
    width: 56px
  }
}

.footer__contact .footer__address {
  color: var(--muted);
  font-style: normal
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px
}

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

@media (max-width: 520px) {
  .footer__row {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .footer {
    padding: 20px 0
  }

  /* centralizar conteúdo no mobile para visual mais equilibrado */
  .footer__row {
    text-align: center
  }

  .footer__col {
    align-items: center
  }
}

/* Ajustes finais para mobile: proporções, paddings e comportamento do menu/busca */
@media (max-width: 520px) {

  /* container menos padding para telas pequenas */
  .container {
    padding: 0 12px
  }

  /* hero menor para não empurrar conteúdo inicial (ajustado) */
  .hero {
    min-height: 200px;
    background-size: cover;
    background-position: 50% 10%
  }

  /* manter os tamanhos solicitados mesmo em mobile */
  .hero__content {
    padding: 28px 0
  }

  .hero h1 {
    font-size: 2.5rem
  }

  .hero p {
    font-size: 21px
  }

  /* cards: imagem mais compacta e conteúdos com espaçamento reduzido */
  .card {
    border-radius: 12px
  }

  /* Tornar a imagem menor e visível por completo (não cortada) */
  .card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: transparent
  }

  .card__media img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 8px
  }

  .card__body {
    padding: 10px
  }

  /* header: reduzir espaçamento e esconder input de busca para exibir só o ícone */
  .header__row {
    padding: 0 10px;
    min-height: 56px
  }

  .search {
    gap: 6px
  }

  .icon-btn {
    padding: .45rem .6rem
  }

  /* menu mobile: exibir vertical quando aberto */
  .menu {
    display: none
  }

  .menu.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2rem 1rem;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background-color: #ffc72c;
    z-index: 1000;
  }

  .close-btn {
    display: none;
  }

  .menu.open .close-btn {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    border-radius: 50%;
    border: 1px solid #704241;
    width: 24px;
    height: 24px;
    color: #704241;
    background: none;
    cursor: pointer;
  }

  .menu.open li:not(:first-child) {
    padding: 10px 0;
    border-bottom: 1px solid #dd7a02;
    position: relative;
  }

  .menu a {
    padding: .6rem .5rem
  }

  /* filtros: exibir quando tiver .open e ocupar largura total */
  .filters {
    display: none
  }

  .filters.open {
    display: block
  }

  /* tornar o botão de filtros mais visível e grande o suficiente */
  .filters__toggle {
    display: inline-flex;
    padding: .5rem .75rem
  }
}

/* Banner exclusivo para mobile (inserido via HTML) */
.mobile-banner {
  display: none
}

@media (max-width: 520px) {
  .mobile-banner {
    display: block;
    padding: 12px 0
  }

  .mobile-banner .container {
    padding: 0 12px
  }

  .mobile-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover
  }

  /* Mobile carousel styles (uses .mobile-carousel) */
  .mobile-carousel .carousel__viewport {
    position: relative;
    overflow: hidden;
  }

  .mobile-carousel .carousel__track {
    display: flex;
    transition: transform .45s ease;
    gap: 0;
    will-change: transform;
  }

  .mobile-carousel .carousel__slide {
    min-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: var(--bg);
  }

  .mobile-carousel .carousel__slide img {
    width: calc(100% - 32px);
    max-width: 520px;
    height: auto;
    display: block;
    border-radius: 12px;
  }

  .mobile-carousel .carousel__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px
  }

  .carousel__prev,
  .carousel__next {
    background: rgba(0, 0, 0, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
  }

  .carousel__dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex: 1
  }

  .carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer
  }

  .carousel__dot.active {
    background: var(--primary)
  }
}

/* Collection dots - mirror the carousel dots UI */
.collection__dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.collection__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
}

.collection__dot.active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Coleções: seções verticais com carrossel horizontal de produtos */
.collections {
  padding: 28px 0;
  border-top: 1px solid var(--stroke);
  background: transparent
}

.collection {
  margin-bottom: 28px
}

.collection__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative
}

.collection__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #704241;
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: center;
  margin: 0;
  letter-spacing: 0.6px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-shadow: 0 1px 0 rgba(112, 66, 65, 0.06)
}

.collection__viewall {
  font-size: .95rem;
  color: var(--muted);
  text-decoration: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%)
}

.collection__body {
  display: block;
  gap: 16px
}

.collection__featured {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.collection__featured img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover
}

.collection__items {
  overflow: hidden
}

.collection__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory
}

.collection__list .card {
  min-width: 220px;
  flex: 0 0 auto;
  scroll-snap-align: start
}

.collection__controls {
  display: flex;
  gap: 8px;
  align-items: center
}

/* Hide collection navigation buttons (arrows) — we want the collection to behave like the carousel */
.collection__controls,
.collection__btn,
.collection__btn--prev,
.collection__btn--next {
  display: none !important;
}

.collection__btn {
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: .5rem .6rem;
  border-radius: 8px;
  cursor: pointer
}

@media (max-width: 900px) {
  .collection__body {
    grid-template-columns: 1fr
  }

  .collection__featured {
    order: 2
  }
}

/* Correções de proporção para cards dentro das coleções
   - força uma altura consistente para a área de mídia dos cards
   - garante que cada card tenha layout em coluna e ocupe largura total do seu contêiner
   - evita que um card fique muito pequeno ou muito grande quando existem múltiplos na mesma seção */
.collection .card {
  display: flex;
  flex-direction: column;
  height: 100%
}

.collection__body>div {
  display: flex;
  gap: 12px;
  align-items: stretch
}

.collection__featured {
  flex: 0 0 360px
}

.collection__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.collection__featured .card,
.collection__items .card {
  width: 100%
}

/* Forçar cards da mesma coleção a terem exatamente a mesma altura
   - --collection-card-h controla a altura (valor default 380px)
   - .card__media ocupa uma fração fixa do card; .card__body ocupa o restante
   - títulos longos são truncados para evitar que aumentem a altura total */
.collection {
  --collection-card-h: 380px
}

.collection .card {
  height: var(--collection-card-h);
  display: flex;
  flex-direction: column
}

.collection__featured .card {
  flex: 0 0 auto
}

.collection__featured .card,
.collection__items .card {
  position: relative;
  /* anchor absolute actions */
}

.collection__featured .btn-buy,
.collection__items .btn-buy {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.collection__items .card {
  flex: 0 0 auto
}

.collection__featured .card__media,
.collection__items .card__media {
  flex: 0 0 55%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.collection__featured .card__media img,
.collection__items .card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.collection__featured .card__body,
.collection__items .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px
}

.collection__featured .card__body,
.collection__items .card__body {
  padding-bottom: 64px;
}

.collection__featured .card__actions,
.collection__items .card__actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 8;
}

/* truncamento para títulos muito longos (mantém altura fixa do body) */
.card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Garantir que links dentro dos cards não pareçam links padrão (azul sublinhado)
   — mantemos comportamento de foco/hover e a capacidade de clicar em todo o título. */
.card__link,
.card__title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.card__title-link {
  font-weight: 800
}

.card__link:focus,
.card__title-link:focus {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.card__link:hover,
.card__title-link:hover {
  color: var(--main-text);
  text-decoration: none
}

@media (max-width: 900px) {

  /* mobile: altura automática para evitar cortar conteúdos importantes; reduzimos ratio de mídia */
  .collection {
    --collection-card-h: unset
  }

  .collection__grid {
    --collection-card-h: unset
  }

  .collection .card {
    height: auto
  }

  /* Mobile: show one card per viewport (stacked) */
  .collection__grid .card {
    flex: 0 0 100%;
  }

  .collection__featured .card__media,
  .collection__items .card__media {
    flex: 0 0 auto
  }

  .collection__featured .card__media img,
  .collection__items .card__media img {
    height: 160px;
    object-fit: cover
  }

  /* mobile: keep actions flowing normally and remove extra padding */
  .collection__grid .card__actions {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: inherit !important;
  }

  .collection__grid .card__body {
    padding-bottom: 12px !important;
  }

  .collection__featured .card__body,
  .collection__items .card__body {
    padding-bottom: 12px !important;
  }

  .collection__featured .card__actions,
  .collection__items .card__actions {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: inherit !important;
  }
}

/* Nova grade de coleções: 3 cards iguais por linha (desktop) */
/* Grid/Carousel container: por padrão mostra 3 colunas, mas quando há overflow se torna rolável horizontalmente
   e exibe botões de navegação. Cada card tem largura fixa (min-width) para evitar encolhimento. */
.collection__grid {
  display: flex;
  --collection-grid-gap: 5px;
  gap: var(--collection-grid-gap);
  /* reduced gap as requested */
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Option 4: cards with larger body area but compact images */
  --collection-card-h: 580px;
  /* slightly increased height to avoid tiny overflow */
  /* Hide native scrollbar visuals */
  -ms-overflow-style: none;
  /* IE 10+ */
  scrollbar-width: none;
  /* Firefox */
  overscroll-behavior-x: contain;
  /* prevent page bounce/chain when swiping horizontally */
  /* Allow both vertical and horizontal panning (browser will decide) */
  touch-action: auto;
  overscroll-behavior-y: auto;
  /* ensure vertical scroll chains to page */
}

.collection__grid .card {
  min-height: var(--collection-card-h);
  height: auto;
  display: flex;
  flex-direction: column;
  /* show exactly two cards side-by-side in the viewport (no cut) */
  flex: 0 0 calc((100% - var(--collection-grid-gap)) / 2);
  scroll-snap-align: start;
  overflow: visible;
  position: relative;
  /* needed for absolute-positioned actions */
  touch-action: auto;
  /* allow both axes pan on card */
  overscroll-behavior-x: contain;
  /* avoid nested horizontal scroll/bounce effects */
}

/* Reduce card padding within collection grid to avoid micro overflows caused by cumulative padding */
.collection__grid .card {
  padding: 2px 6px;
}

.collection__grid .card__media {
  flex: 0 0 45%;
  /* shrink image area so body/action occupy more height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6px;
  /* reduced to compact the white area around the image */
  /* adiciona espaço interno para a imagem não colar nas bordas */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.95));
  touch-action: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.collection__grid .qty-controls {
  gap: 4px;
  padding: 2px 6px;
}

.collection__grid .qty-btn {
  width: 24px;
  height: 24px;
}

.collection__grid .qty-input {
  width: 36px;
}

.collection__grid .card__actions .btn-buy {
  font-size: .88rem;
  padding: .35rem .55rem;
}

.collection__grid .card__media img {
  max-width: 100%;
  height: 136px;
  /* slightly reduce to free a few pixels to avoid overflow */
  width: 100%;
  object-fit: contain;
  /* mostra a imagem inteira sem cortar */
  object-position: center;
  display: block;
}

/* Prevent images from being dragged on touch devices which can interfere with scrolling */
.collection__grid img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Hide visible scrollbars on WebKit browsers */
.collection__grid::-webkit-scrollbar {
  display: none;
}

.collection__grid .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  overflow: hidden;
  /* explicitly hide any local vertical overflow to avoid local scroll */
  padding-bottom: 56px;
  /* reduce padding-bottom accordingly (space for actions) */
  touch-action: auto;
  /* allow horizontal pan to start here, so grid can scroll */
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  /* ensure vertical scroll chains to page */
}

/* Limit title/desc lines to prevent dynamic wrapping that changes card height */
.collection__grid .card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection__grid .card__desc {
  max-height: 44px;
  /* roughly 2 lines */
  overflow: hidden;
}

/* Avoid negative margins causing tiny overflows inside collection cards */
.collection__grid .card__price {
  margin: 0 0 0.25rem !important;
}

/* Best-effort: make sure elements inside a card don't block horizontal pan started here */
.collection__grid .card * {
  touch-action: auto;
  overscroll-behavior-y: auto;
}

/* Controles do carrossel */
.collection__viewport {
  position: relative
}

.collection__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffd54a, #ffef70);
  border: 6px solid rgba(255, 200, 0, 0.18);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 0 0 2px #704241;
  padding: 0
}

.collection__btn svg {
  display: block;
  width: 16px;
  height: 16px
}

.collection__btn--prev {
  left: 6px
}

.collection__btn--next {
  right: 6px
}

.collection__btn:hover {
  transform: translateY(-50%) scale(1.06)
}

.collection__btn:active {
  transform: translateY(-50%) scale(.98)
}

.collection__btn {
  color: #704241
}

.collection__btn svg path,
.collection__btn svg line {
  stroke: #704241
}

.collection__btn[disabled] {
  opacity: .4;
  pointer-events: none
}

/* Quando não houver overflow (poucos itens) os botões ficam invisíveis via JS (classe .no-controls) */
.collection.no-controls .collection__btn {
  display: none
}

/* Ajustes visuais para parecer com o layout do anexo: cartão com imagem centralizada, título destaque e botão arredondado */
.card__media {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 250, 250, 0.97));
  padding: 10px;
  border-radius: 10px
}

.card__media img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain
}

.btn-buy {
  background: #704241;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: .6rem 0;
  font-weight: 800
}

.card__title small {
  font-weight: 400;
  color: var(--muted);
  display: block;
  font-size: .85rem
}

/* Produto individual - estilo mais compacto e com tipografia similar ao anexo */
.product-detail--minimal .product-detail__title {
  font-family: 'Manrope', Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  color: var(--main-text);
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 6px
}

.product-detail--minimal .product-detail__desc {
  color: var(--muted);
  font-size: 0.95rem
}

.product-detail--minimal .product-detail__media {
  max-width: 320px;
}

.product-detail--minimal .product-detail__media img {
  max-height: 180px;
}

/* Layout do detalhe do produto - garante duas colunas (imagem + informações) e comportamento responsivo */
.product-detail {
  display: grid;
  /* use an auto-sized main column so content centers naturally */
  grid-template-columns: auto 320px;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  justify-content: center;
  /* center the two-column grid inside the container */
  max-width: 920px;
  /* limit width so grid can be centered within container */
  margin: 0 auto;
  /* center the product-detail block inside the page */
  justify-items: center;
  /* center items inside grid cells by default */
}

/* Página de produto: fundo branco para destacar o card do produto */
body.product-page {
  background: #ffffff;
  /* fundo branco apenas para a página do produto */
  color: var(--text);
}

/* Ajuste: manter o container com um leve espaçamento visual sobre o fundo branco */
body.product-page .container {
  background: transparent;
}

body.product-page .cookie-banner__inner {
  background: rgba(255, 255, 255, 0.98);
}

.product-detail__media {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  /* ensure the media cell centers itself */
  /* Opção 2: cartão elevado por trás da imagem principal */
  padding: 12px;
  /* espaço interno ao redor da imagem */
  background: color-mix(in oklab, var(--surface) 98%, transparent);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.product-detail__media img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  /* imagem sem borda própria — o "cartão" é criado pelo contêiner acima */
  border: 0;
  padding: 0;
  box-shadow: var(--shadow-sm);
  background: transparent;
  box-sizing: border-box;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: center;
  /* center the info column in its grid cell */
  text-align: center;
  /* center text and description as requested */
  max-width: 520px;
  /* prevent the info column from stretching too wide */
}

.product-detail__actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

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

  .product-detail__media {
    margin-bottom: 8px
  }

  .product-detail__media img {
    max-height: 360px
  }
}

@media (max-width: 1100px) {
  .collection__grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 520px) {
  .collection__grid {
    grid-template-columns: 1fr
  }

  .collection {
    --collection-card-h: unset
  }

  .collection__grid .card {
    height: auto
  }

  .collection__grid .card__media img {
    height: 160px
  }
}



/* Telefonia no footer - estilos para mobile/tap targets maiores */
.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px
}


.phone-link {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  border: 0;
  outline: none;
}

.phone-link:focus-visible {
  outline: none;
  text-decoration: underline;
}

.phone-number {
  font-size: 1.05rem
}

.phone-desc {
  font-size: .85rem;
  color: var(--muted)
}

@media (max-width: 520px) {
  .phone-number {
    font-size: 1.15rem;
  }
}

/* Observação: a regra abaixo foi removida porque já existe um controle
   consistente dos media dentro de .card__media e para preservar o
   aspect-ratio e comportamento responsivo. Se quiser um tamanho fixo,
   ajuste .card__media img em vez de duplicar regras. */

/* Modal de tabela nutricional (overlay fixo) */
.nutr-modal {
  position: fixed;
  inset: 0;
  /* top:0 right:0 bottom:0 left:0 */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.nutr-modal.open {
  display: flex;
}

.nutr-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.nutr-modal__panel {
  position: relative;
  z-index: 2;
  max-width: 92%;
  width: 640px;
  max-height: 88vh;
  overflow: auto;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 12px;
}

.nutr-modal__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px
}

.nutr-modal__close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer
}

@media (max-width: 600px) {
  .nutr-modal__panel {
    width: 96%;
    padding: 8px;
  }
}

/* Recommendation / related products styling (product.php uses #recommendationGrid) */
.recommendation-grid,
.recommendation-viewport .recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  align-items: start;
  touch-action: pan-y;
  /* allow vertical scroll to pass through */
}

.recommendation-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.recommendation-card .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  touch-action: pan-y;
  /* allow vertical pan when starting inside recommendation card */
}

.recommendation-card .card__media {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center
}

.recommendation-card .card__media {
  flex-direction: column;
}

.recommendation-card .card__media img {
  max-height: 140px;
  /* slightly larger for visibility */
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.recommendation-card .card__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1
}

.recommendation-card .card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Ajuste: colocar o botão de adicionar abaixo do preço em visual mobile-first
   e restaurar layout em linha para telas maiores */
.recommendation-card .card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

@media (min-width: 900px) {
  .recommendation-card .card__footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* When recommendations are rendered inside a small viewport provide horizontal scroll fallback */
.recommendation-viewport {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.recommendation-viewport .recommendation-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 10px;
}

/* Small polish: ensure footer doesn't inherit modal/image overflow */
.footer,
.drawer {
  position: relative;
  z-index: 10
}

/* Fix: garantir que o drawer (carrinho) seja sempre um overlay fixo e acima do footer
   Algumas regras genéricas acima estavam forçando .drawer a ser position:relative dentro
   do fluxo — sobrescrevemos aqui com especificidade e z-index para evitar que fique
   preso dentro do footer ou apareça apenas parcialmente. */
.drawer {
  position: fixed;
  /* garante overlay global */
  inset: 0;
  display: none;
  z-index: 1500;
  /* acima do footer e conteúdo */
}

.drawer.open {
  display: block;
}

.drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 1490
}

.drawer__panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  z-index: 1501
}

/* Quando o drawer abrir, bloqueamos o scroll do body para evitar rolagem por baixo */
body.drawer-open {
  overflow: hidden;
}


/* ----- Overrides to fix image cropping, button styles and card alignment ----- */
/* Ensure every card is a column so footer/buttons align at bottom */
.card {
  display: flex;
  flex-direction: column;
}

/* Card media: use contain so images are not cropped and keep aspect ratio */
.card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card__media img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Make sure card body grows so footers stay aligned */
.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1
}

.card__footer {
  margin-top: auto
}

/* Small add button used in recommendation cards */
.btn-add-small {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .6rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #151515;
  font-weight: 600;
  text-decoration: none
}

/* Reinforce primary buy button look in case specificity was overridden */
.btn-buy,
.btn.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .8rem;
  border-radius: 12px;
  background: #704241;
  color: #fff;
  border: 0;
  font-weight: 800
}

/* Ensure buy button is above media/content and not clipped */
.btn-buy {
  z-index: 3;
}

/* Make sure recommendation images are not stretched or cropped */
.recommendation-card .card__media img {
  max-height: 100px;
  width: auto;
  object-fit: contain
}

/* Reduce spacing in recommendation card titles/descriptions to avoid uneven heights */
.recommendation-card .card__body .card__title,
.recommendation-card .card__body h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.1
}

.recommendation-card .card__body .card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0
}

/* Fallback: ensure buttons visible on all cards */
.card .btn,
.card button {
  z-index: 2
}


/* Ensure grid items stretch to same height so buttons align even with different description lengths */
.recommendation-grid>*,
.collection__grid>* {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Anchor wrapper in recommendations should stretch */
.recommendation-grid a.recommendation-card,
.recommendation-grid>a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Force internal card elements to grow so footer/button stays at bottom */
.recommendation-card .card,
.collection__grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recommendation-card .card__body,
.collection__grid .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recommendation-card .card__footer,
.collection__grid .card__footer {
  margin-top: auto
}

/* Safety: avoid min-height surprises due to older inline heights */
.collection__grid .card,
.recommendation-grid .card {
  min-height: 0
}

/* Forçar estilo do botão de newsletter com maior especificidade para evitar overrides
   - preenchimento sólido na cor da marca
   - texto branco
   - borda arredondada 30px
   - aplica apenas ao botão com ambas as classes (.btn.btn-newsletter) */
.btn.btn-newsletter {
  background: #704241 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 16px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.btn.btn-newsletter:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

/* ==========================================================================
   Correções de layout — cookie banner, alvos de toque e overflow
   (bloco autoritativo: fica por último e vence as regras duplicadas acima)
   ========================================================================== */

/* Cookie banner: card flutuante com margens, sem estourar a viewport */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  display: none;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cookie-banner.is-visible { display: flex; }
.cookie-banner.open { pointer-events: auto; }
.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(112, 66, 65, .10);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .18);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  transform: none;
  opacity: 1;
}

.cookie-banner__media { display: flex; }
.cookie-banner__icon {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 10px;
}
.cookie-banner__title { margin: 0 0 2px; font-size: 1rem; }
.cookie-banner__body { min-width: 0; }
.cookie-banner__text {
  margin: 0;
  max-width: none;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  align-self: center;
}

.cookie-banner__actions .btn {
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  transform: none !important;
  box-shadow: none;
  white-space: nowrap;
  font-size: .9rem;
}
.cookie-banner__actions .btn:hover,
.cookie-banner__actions .btn:focus { transform: none !important; }
.cookie-banner__actions .btn-muted {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding-inline: 8px;
}
.cookie-banner__actions .btn-outline {
  background: transparent;
  border: 1.5px solid #752C1E;
  color: #752C1E;
}
.cookie-banner__actions .btn-primary {
  background: #FEB800;
  color: #fff;
  border: 0;
  font-weight: 700;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
  }
  .cookie-banner__media { display: none; }
  .cookie-banner__text { font-size: .85rem; }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
    text-align: center;
  }
  .cookie-banner__actions .btn-primary {
    grid-column: 1 / -1;
    order: -1;
  }
}

/* Alvos de toque: dots de carrossel/paginação com área real de 32px */
.carousel__dot {
  position: relative;
  width: 32px !important;
  height: 32px !important;
  padding: 0;
  background: transparent !important;
  border: 0;
}
.carousel__dot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .16);
  transition: background var(--transition-fast);
}
.carousel__dot.active::after { background: var(--primary); }

.collection__dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
}
.collection__dot::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
}
.collection__dot.active {
  transform: none;
  box-shadow: none;
}
.collection__dot.active::after {
  background: var(--main-text);
  transform: scale(1.25);
}

/* Checkboxes dos filtros: área de toque maior */
.filters input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--main-text);
  flex: 0 0 auto;
}

/* Links pequenos que funcionam como botão */
#helpCep,
.delivery-mini-info__link,
footer ul a[aria-label] {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

/* Nenhum controle deve estourar o container do card */
.card .btn,
.card .qty-controls { max-width: 100%; }

/* Opções de pagamento: radios com área de toque maior */
.delivery-payment__option {
  min-height: 44px;
  align-items: center;
}
.delivery-payment__option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--main-text);
}

/* Cards das coleções: título sem line-height inflado e botão nunca cortado */
.card__title {
  line-height: 1.3 !important;
}

.collection__grid .card__body {
  overflow: visible;
}

.collection__grid .card__actions {
  margin-top: auto;
  padding-top: 8px;
}

.collection__grid .card__actions .btn-buy {
  min-height: 40px;
  line-height: 1.2;
  padding: .45rem .6rem;
}

/* A imagem não pode roubar a altura do corpo: o card cresce com o conteúdo. */
.collection__grid .card__media {
  flex: 0 0 auto;
}
.collection__grid .card {
  height: auto;
  min-height: 0;
}