﻿:root {
  --bg: #f5f5f3;
  --panel: #fff;
  --card: #fff;
  --text: #282625;
  --muted: #716d69;
  --black: #211f1e;
  --red: #bd2432;
  --red-dark: #941b27;
  --red-soft: #fff0ef;
  --gold: #e4b53e;
  --line: #e6e2df;
  --shadow: 0 12px 28px rgba(32, 24, 18, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  color: var(--text);
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  grid-template-areas: "brand search cart" "nav nav nav";
  align-items: center;
  column-gap: 22px;
  padding: 8px max(22px, calc((100% - 1200px) / 2)) 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(23, 18, 15, 0.07);
}

.utility-bar {
  background: var(--red-dark);
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
}

.utility-content {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.delivery-quick-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.72rem;
}

.delivery-quick-check label { white-space: nowrap; }

.delivery-quick-check input {
  width: 132px;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  color: var(--text);
  background: #fff;
  font-size: 0.76rem;
}

.delivery-quick-check button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  color: #352a16;
  background: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

#homeCepStatus[data-state="success"] { color: #e4f4df; }
#homeCepStatus[data-state="error"] { color: #ffe2df; }
#homeCepStatus[data-state="loading"] { color: #fff; }

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-logo {
  width: clamp(120px, 12vw, 180px);
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  flex-shrink: 0;
}

.brand-mark {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  font-size: 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e34a50 0%, #a71927 100%);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.2), 0 8px 14px rgba(189,36,50,0.18);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #ebebeb;
}

.topbar nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.topbar nav a {
  color: #484442;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.topbar nav a:hover {
  color: var(--red);
}

.site-search {
  grid-area: search;
  display: flex;
  flex: 1 1 250px;
  max-width: none;
  min-width: 190px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #f8f8f7;
}

.site-search input {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.84rem;
}

.site-search:focus-within { border-color: var(--red); }

.site-search button {
  border: 0;
  padding: 0 14px;
  color: white;
  background: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.site-search button:hover { background: var(--red-dark); }

.cart-button {
  grid-area: cart;
  justify-self: end;
  border: 0;
  background: var(--red);
  color: white;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cart-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.hero {
  height: clamp(320px, 30vw, 410px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(28, 17, 16, 0.96) 0%, rgba(49, 25, 23, 0.88) 43%, rgba(49, 25, 23, 0.18) 100%),
    url("../images/hero/hero-banner-cortes-1.jpg") center 52% / cover no-repeat,
    linear-gradient(112deg, #211615 0%, #48211e 52%, #772a2d 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(228, 181, 62, 0.3);
  border-radius: 50%;
}

.hero::before {
  width: min(48vw, 570px);
  aspect-ratio: 1;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 28px rgba(228, 181, 62, 0.035),
    0 0 0 68px rgba(228, 181, 62, 0.025);
}

.hero::after {
  width: min(30vw, 350px);
  aspect-ratio: 1;
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: block;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 54px 22px;
  color: #fff;
}

.hero-eyebrow {
  display: block;
  color: #e4b53e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero .hero-copy h1 {
  margin: 18px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.98;
}

.hero .hero-copy p {
  max-width: 460px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #e4b53e;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  background: #e4b53e;
  color: #211f1e;
}

.hero-button:hover {
  background: #f0c957;
}

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

.cookie-manage-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  max-height: min(80vh, 620px);
  overflow-y: auto;
  left: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(20, 15, 12, 0.28);
}

.cookie-banner[hidden],
.cookie-preferences[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--red-dark);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cookie-banner-actions button,
.cookie-preferences > button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.cookie-primary-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
}

.cookie-preferences {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cookie-preference {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cookie-preference input {
  margin-top: 4px;
  accent-color: var(--red);
}

.cookie-preference span,
.cookie-preference small {
  display: block;
}

.cookie-preference small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.4;
}

.cookie-preferences > button {
  justify-self: start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
  padding: 28px 0;
}

.hero-card {
  display: none;
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 11px;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--red); }

.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 68px;
  font-weight: 600;
  line-height: 0.98;
  margin: 14px 0 20px;
  max-width: 720px;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero p {
  font-size: 1.12rem;
  max-width: 620px;
  color: #5e3438;
  line-height: 1.7;
}

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

.btn {
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 0;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn:disabled,
.checkout-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.btn-red {
  background: var(--red);
  color: white;
  box-shadow: none;
}

.btn-red:hover { background: var(--red-dark); }

.btn-outline {
  color: var(--red-dark);
  border: 1px solid rgba(148, 27, 39, 0.34);
  background: rgba(255,255,255,0.42);
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(148, 27, 39, 0.32);
  padding: 8px 0;
  margin-right: 8px;
  border-radius: 0;
  font-size: 0.78rem;
  color: #5e3438;
}

.hero-badges span::before {
  content: "—";
  color: var(--red);
  margin-right: 8px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 27, 39, 0.18);
  box-shadow: 0 18px 40px rgba(148, 27, 39, 0.12);
  border-radius: 6px;
  padding: 30px 26px;
}

.mini-badge {
  display: inline-block;
  background: transparent;
  color: var(--red);
  border: 0;
  border-bottom: 1px solid rgba(148, 27, 39, 0.28);
  border-radius: 0;
  padding: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 16px 0 14px;
  font-size: 36px;
  font-weight: 600;
}

.hero-card ul {
  padding-left: 18px;
  margin: 0 0 18px;
  color: #5e3438;
  line-height: 2;
}

.hero-card-price {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--red);
}

.info-strip {
  background: #28211e;
  color: white;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 12px max(22px, calc((100% - 1200px) / 2));
}

.info-strip > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(211, 183, 126, 0.28);
  font-size: 0.8rem;
  color: #f1ece3;
}

.info-strip > div:last-child { border-right: 0; }
.info-strip strong { color: #d3b77e; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.info-strip span { color: #ddd5ca; }

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 38px;
  padding-bottom: 28px;
}

.trust-bar > div {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 20px;
  text-align: center;
  box-shadow: none;
}

.trust-bar > div:last-child { border-right: 0; }

.trust-bar strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 8px;
}

.trust-bar span {
  color: var(--muted);
  font-weight: 600;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.categories--top {
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  scrollbar-width: thin;
}

.categories--top button { flex: 0 0 auto; white-space: nowrap; }

.categories button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid #e2ddd8;
  border-radius: 999px;
  background: #fff;
  color: #514a46;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.categories button:hover,
.categories button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.categories button:hover {
  transform: translateY(-1px);
}

.categories button:focus-visible,
.add-btn:focus-visible {
  outline: 3px solid rgba(228, 181, 62, 0.7);
  outline-offset: 2px;
}

.categories button.is-active .cat-icon {
  filter: none;
}

.occasion-shortcuts {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 4px;
}

.occasion-shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.occasion-shortcut-list button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d9c8a3;
  border-radius: 999px;
  background: #fffaf0;
  color: #5d4315;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.occasion-shortcut-list button:hover,
.occasion-shortcut-list button[aria-pressed="true"] {
  border-color: #8b6722;
  background: #8b6722;
  color: #fff;
}

.cat-icon {
  margin-right: 7px;
}

.products-section {
  padding-top: 20px;
  padding-bottom: 76px;
}

.featured-section {
  padding-top: 30px;
  padding-bottom: 20px;
}

.featured-section .section-heading { margin-bottom: 20px; }

.featured-more-link {
  color: var(--red-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.featured-more-link:hover { text-decoration: underline; }

.products-section .section-heading {
  align-items: end;
  margin-bottom: 28px;
}

.products-section .section-heading h2 {
  margin-top: 7px;
  font-size: clamp(34px, 4vw, 46px);
}

.catalog-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

#categorySelect {
  min-width: 220px;
  min-height: 46px;
  padding: 0 40px 0 15px;
  border: 1px solid #ded8d2;
  border-radius: 7px;
  background-color: #fff;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

#categorySelect:focus-visible {
  outline: 3px solid rgba(228, 181, 62, 0.55);
  outline-offset: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.empty-products {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px dashed #cfc4b8;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e3dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(43, 31, 23, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #d6c5a7;
  box-shadow: 0 14px 32px rgba(43, 31, 23, 0.11);
}

.product-image {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 1.35 / 1;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fbf9f5 0%, #f0e9df 100%);
}

.product-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.food-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #78313a;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9) 0 43px, transparent 44px),
    linear-gradient(145deg, #fbf8f2, #eee5d8);
}

.food-placeholder::before {
  position: absolute;
  width: 90px;
  aspect-ratio: 1;
  border: 1px solid rgba(189, 36, 50, 0.12);
  border-radius: 50%;
  content: "";
}

.food-placeholder span {
  position: relative;
  font-size: 2.5rem;
  line-height: 1;
}

.food-placeholder small {
  position: relative;
  color: #85766b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(228, 181, 62, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 232, 0.96);
  color: #72510e;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 18px 17px;
}

.product-category {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbf0ef;
  color: var(--red-dark);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 10px 0 6px;
  color: #2d2522;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.product-body p {
  display: -webkit-box;
  min-height: 0;
  margin: 0 0 19px;
  overflow: hidden;
  color: #77716b;
  font-size: 0.8rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-bottom {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eeeae5;
}

.product-bottom > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-bottom strong {
  color: #302622;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.product-bottom small {
  margin-left: 0;
  color: #847b73;
  font-size: 0.68rem;
  font-weight: 600;
}

.add-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.add-btn:hover {
  transform: translateY(-1px);
  background: var(--red-dark);
  box-shadow: 0 5px 12px rgba(148, 27, 39, 0.2);
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .categories {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-top: 17px;
    padding-bottom: 9px;
    scrollbar-width: thin;
  }

  .occasion-shortcuts { padding-top: 17px; }

  .occasion-shortcut-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }

  .occasion-shortcut-list button { flex: 0 0 auto; min-height: 40px; }

  .categories button {
    flex: 0 0 auto;
    min-height: 39px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .products-section {
    padding-top: 17px;
    padding-bottom: 55px;
  }

  .products-section .section-heading {
    align-items: stretch;
    gap: 16px;
    margin-bottom: 20px;
  }

  .products-section .section-heading h2 {
    font-size: 36px;
  }

  .catalog-description {
    max-width: 34ch;
    font-size: 0.84rem;
  }

  #categorySelect {
    width: 100%;
    min-width: 0;
  }

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

  .product-image {
    aspect-ratio: 1.2 / 1;
  }

  .product-image img {
    padding: 9px;
  }

  .food-placeholder::before {
    width: 70px;
  }

  .food-placeholder span {
    font-size: 2rem;
  }

  .food-placeholder small {
    font-size: 0.55rem;
  }

  .badge {
    top: 8px;
    left: 8px;
    min-height: 22px;
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  .product-body {
    padding: 13px 12px 12px;
  }

  .product-category {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  .product-body h3 {
    margin: 9px 0 5px;
    font-size: 22px;
  }

  .product-body p {
    margin-bottom: 13px;
    font-size: 0.76rem;
  }

  .product-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding-top: 12px;
  }

  .product-bottom strong {
    font-size: 1.1rem;
  }

  .product-bottom small {
    font-size: 0.68rem;
  }

  .add-btn {
    width: 100%;
    min-height: 40px;
  }
}

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

.stores {
  padding-top: 12px;
  padding-bottom: 70px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.store-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 18px;
  box-shadow: none;
}

.store-tag {
  display: inline-block;
  color: var(--red-dark);
  background: var(--red-soft);
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 14px 0 8px;
  font-size: 25px;
  font-weight: 600;
}

.store-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.store-address {
  font-size: 0.8rem;
}

.store-map-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.store-map-link:hover {
  text-decoration: underline;
}

.offer {
  background: #332123;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 38px max(22px, calc((100% - 1200px) / 2));
  margin-top: 12px;
  border-top: 1px solid var(--gold);
}

.offer h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 10px 0 8px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0;
}

.offer p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 1.06rem;
}

.contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.contact h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 10px 0 18px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0;
}

.contact p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.contact-card {
  background: #e9e2d7;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 24px;
  display: grid;
  align-content: center;
  gap: 18px;
  box-shadow: none;
}

.contact-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
}

.contact-card span {
  color: var(--muted);
  display: block;
}

footer {
  background: #211b19;
  color: rgba(255,255,255,0.8);
  padding: 24px 22px 40px;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 12, 8, 0.62);
  display: none;
  justify-content: center;
  align-items: start;
  padding: 40px 16px;
  z-index: 50;
}

.overlay.open {
  display: flex;
}

.cart, .checkout {
  width: min(100%, 520px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
  border-radius: 6px;
  box-shadow: 0 26px 54px rgba(18,12,8,0.22);
  padding: 20px 18px 22px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-header h2 { margin: 0; }

.cart-footer {
  margin-top: 12px;
  padding-top: 1px;
  background: #fff;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #ead8d7;
  border-radius: 8px;
  background: #fff8f7;
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkout-summary-total {
  padding-top: 10px;
  border-top: 1px solid #ead8d7;
  font-weight: 800;
}

.checkout-summary strong {
  color: var(--red-dark);
  font-size: 1.08rem;
}

.cart-header button {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  font-size: 1.5rem;
  background: #f4efe9;
  cursor: pointer;
}

#cartItems {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: white;
}

.cart-item strong {
  display: block;
  margin-bottom: 4px;
}

.cart-item small { color: var(--muted); }

.cart-weight-notice {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-weight-notice[data-state="error"] { color: var(--red); font-weight: 700; }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4efe9;
  margin-bottom: 8px;
}

.qty button {
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  font-size: 1.1rem;
  cursor: pointer;
}

.remove {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}

.checkout-btn, .continue-btn {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 14px;
  font-weight: 800;
  cursor: pointer;
}

[hidden] { display: none !important; }

.checkout-error {
  margin: 0;
  color: var(--red-dark);
  font-weight: 700;
}

.order-success {
  display: grid;
  gap: 12px;
}

.order-success h3 {
  margin: 0;
  color: var(--red-dark);
}

.order-success p { margin: 0; line-height: 1.6; }

.checkout-btn {
  background: var(--red);
  color: white;
  box-shadow: none;
}

.continue-btn {
  background: #e9e2d7;
  color: var(--text);
}

#checkoutForm {
  display: grid;
  gap: 14px;
}

.delivery-only-note {
  margin: 0;
  color: var(--red-dark);
  font-weight: 800;
}

.cep-status {
  min-height: 0;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cep-status[data-state="success"] { color: #3f684b; }
.cep-status[data-state="error"] { color: var(--red-dark); }

.delivery-address-details {
  display: grid;
  grid-template-columns: minmax(80px, 0.55fr) minmax(0, 1.45fr);
  gap: 12px;
}

.payment-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.card-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-security-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.pix-instructions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pix-instructions img {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  object-fit: contain;
  background: white;
}

.pix-copy-row {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 8px;
}

.pix-copy-row input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

#checkoutForm label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

#checkoutForm input,
#checkoutForm select,
#checkoutForm textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  background: white;
  color: var(--text);
}

#checkoutForm textarea {
  min-height: 88px;
  resize: vertical;
}

/* Consistent keyboard focus and motion preferences across the storefront. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(189, 36, 50, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

@media (max-width: 880px) {
  .hero-content, .contact { grid-template-columns: 1fr; }

  .topbar {
    height: auto;
    padding-top: 14px;
    padding-bottom: 0;
  }

  .topbar nav {
    justify-content: center;
    width: 100%;
  }

  .info-strip, .trust-bar { grid-template-columns: 1fr; }

  .info-strip > div,
  .trust-bar > div {
    border-right: 0;
    border-bottom: 1px solid rgba(211, 183, 126, 0.28);
  }

  .trust-bar > div { border-bottom-color: var(--line); }

  .info-strip > div:last-child,
  .trust-bar > div:last-child { border-bottom: 0; }

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

@media (max-width: 600px) {
  .container, .hero-content, .offer {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero::before {
    width: 82vw;
    right: -31%;
    opacity: 0.65;
  }

  .hero::after {
    width: 52vw;
    right: -16%;
    opacity: 0.65;
  }

  .hero-copy {
    padding: 42px 16px 58px;
  }

  .hero-copy h1 {
    font-size: 50px;
  }

  .hero-copy p {
    max-width: 320px;
    font-size: 0.94rem;
  }

  .hero-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
    grid-template-areas: "brand search cart" "nav nav nav";
    column-gap: 10px;
    padding: 10px 16px 0;
  }

  .product-card { border-radius: 10px; }

  .product-body { min-width: 0; }

  .product-body h3 { min-height: 2.1em; }

  .product-bottom { margin-top: auto; }

  .brand-logo { width: clamp(104px, 28vw, 150px); }

  .site-search { min-width: 0; height: 40px; }

  .site-search button { padding: 0 10px; font-size: 0.75rem; }

  .cart-button { padding: 9px 11px; }

  .utility-content {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding-top: 8px;
    padding-bottom: 9px;
    font-size: 0.68rem;
  }

  .utility-content > span:first-child { display: none; }

  .delivery-quick-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin: 0;
  }

  .delivery-quick-check label { grid-column: 1 / -1; }

  .delivery-quick-check input { width: 100%; min-height: 44px; }

  .delivery-quick-check button { min-height: 44px; }

  #homeCepStatus { grid-column: 1 / -1; }

  .topbar nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding: 9px 0 10px;
  }

  .topbar nav a { white-space: nowrap; }

  .topbar nav a { padding: 6px 0; }

  .categories button { min-height: 44px; }

  .hero-card h3 { font-size: 32px; }

  .section-heading h2,
  .offer h2,
  .contact h2 { font-size: 36px; }

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

  #categorySelect { width: 100%; }

  .product-image img { padding: 0; }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 18px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions button,
  .cookie-preferences > button {
    width: 100%;
  }

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

  .overlay {
    align-items: stretch;
    padding: 0;
  }

  .cart, .checkout {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .cart-header {
    position: sticky;
    top: -16px;
    z-index: 2;
    margin: -16px -16px 16px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .cart-footer {
    position: sticky;
    bottom: calc(-20px - env(safe-area-inset-bottom));
    margin: 14px -16px calc(-20px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px rgba(32, 24, 18, 0.06);
  }

  #checkoutForm { gap: 12px; }

  #checkoutForm input,
  #checkoutForm select,
  #checkoutForm textarea { min-height: 44px; }

  #checkoutForm textarea { min-height: 82px; }

  .hero {
    min-height: 320px;
    height: auto;
    background-position: center, 62% center, center;
  }

  .hero::before, .hero::after { opacity: 0.2; }

  .hero-copy { padding-top: 54px; padding-bottom: 60px; }

  .categories--top {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .featured-section { padding-top: 22px; padding-bottom: 10px; }
}

@media (max-width: 480px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cart" "search search" "nav nav";
    row-gap: 10px;
  }

  .brand-logo { width: clamp(105px, 36vw, 150px); }

  .site-search { width: 100%; }

  .site-search input { font-size: 0.82rem; }

  .topbar nav { padding-top: 7px; }

  .cart-button { min-height: 42px; }

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

  .product-grid { gap: 10px; }

  .product-body { padding: 12px 10px; }

  .product-body h3 { font-size: 21px; }

  .add-btn { min-height: 44px; }
}

.geocoding-attribution { flex-basis: 100%; text-align: right; font-size: .68rem; opacity: .82; }
.geocoding-attribution a { color: inherit; }

/* Refinos visuais e controles mais confortáveis em telas pequenas. */
:root { --radius-control: 8px; --radius-card: 14px; }

.product-card, .store-card, .contact-card, .cart, .checkout { border-radius: var(--radius-card); }
.site-search, #categorySelect, #checkoutForm input, #checkoutForm select, #checkoutForm textarea,
.add-btn, .hero-button, .btn, .checkout-btn, .continue-btn, .cart-button,
.site-search button, .delivery-quick-check button { border-radius: var(--radius-control); }

.product-card {
  border-color: #e8e1d8;
  box-shadow: 0 5px 18px rgba(43, 31, 23, .055);
}

.product-image { aspect-ratio: 1.18 / 1; background: #f3eee8; }
.product-image img { object-fit: cover; background: #f3eee8; }
.section-heading { gap: 20px; }
.products-section { padding-top: clamp(36px, 5vw, 64px); }
.stores { padding-top: clamp(32px, 4vw, 52px); }

@media (max-width: 600px) {
  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cart" "search search" "nav nav";
    row-gap: 8px;
    padding: 8px 14px 0;
  }
  .topbar nav { justify-content: flex-start; gap: 20px; padding: 7px 0 9px; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .brand-logo { width: clamp(108px, 34vw, 145px); }
  .cart-button { min-width: 48px; min-height: 44px; }
  .site-search { height: 44px; }
  .product-grid { gap: 12px; }
  .product-card { border-radius: 12px; }
  .product-image { aspect-ratio: 1 / 1; }
  .product-body { padding: 13px 12px; }
  .product-body h3 { font-size: clamp(19px, 5vw, 23px); }
  .add-btn { min-height: 44px; border-radius: 8px; }
  .section-heading { gap: 12px; }
  .stores { padding-bottom: 48px; }
}

@media (max-width: 380px) {
  .topbar nav { gap: 16px; }
  .topbar nav a { font-size: .82rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 1.35 / 1; }
}
