*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #c41e3a;
  --red-dark: #9a1830;
  --red-light: #fde8ec;
  --black: #1a1a1a;
  --gray-600: #555;
  --gray-400: #888;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --yellow: #f5c518;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body.supermercado-atr-theme {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transition: background var(--transition);
}

.whatsapp-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--red);
}

.logo-text span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}

.nav-links,
.menu-primary,
.menu-fallback {
  display: none;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a,
.menu-primary a,
.menu-fallback a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  transition: color var(--transition);
}

.nav-links a:hover,
.menu-primary a:hover,
.menu-fallback a:hover {
  color: var(--red);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

.nav.open .nav-links,
.nav.open .menu-primary,
.nav.open .menu-fallback {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1.5rem 4vw;
  gap: 1rem;
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links,
  .menu-primary,
  .menu-fallback { display: flex; }
}

.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero-brush {
  height: 12px;
  background: var(--red);
  opacity: 0.9;
}

.hero-brush-top {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12'%3E%3Cpath fill='black' d='M0 12 Q150 0 300 8 T600 4 T900 10 T1200 2 V12 Z'/%3E%3C/svg%3E");
  mask-size: cover;
}

.hero-brush-bottom {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12'%3E%3Cpath fill='black' d='M0 0 Q200 12 400 4 T800 8 T1200 0 V12 H0 Z'/%3E%3C/svg%3E");
  mask-size: cover;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    padding: 4rem 0 3rem;
  }
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin: 1rem 0 0.5rem;
}

.hero-lead {
  margin: 1rem 0 1.75rem;
  max-width: 48ch;
  color: var(--gray-600);
  font-size: 1.05rem;
}

.hero-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 2rem;
  justify-content: center;
}

.hero-icons span {
  background: var(--gray-100);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  margin-top: 1rem;
}

.btn-whatsapp:hover {
  background: #1da851;
}

.ofertas {
  background: var(--gray-100);
}

.ofertas-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .ofertas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .ofertas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.oferta-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.oferta-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-light);
}

.oferta-card.destaque {
  border-color: var(--yellow);
  background: linear-gradient(135deg, #fffef5, var(--white));
}

.oferta-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.oferta-preco {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--red);
  margin: 0.5rem 0;
}

.oferta-preco span {
  font-size: 1rem;
  vertical-align: super;
}

.oferta-preco small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.oferta-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.whatsapp-banner {
  background: var(--red);
  color: var(--white);
  padding: 3.5rem 0;
}

.whatsapp-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .whatsapp-inner {
    grid-template-columns: 1fr auto;
  }
}

.whatsapp-inner h2 {
  color: var(--white);
}

.whatsapp-inner p {
  opacity: 0.92;
  max-width: 42ch;
}

.qr-placeholder {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--black);
  min-width: 180px;
}

.qr-grid {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  background:
    repeating-linear-gradient(0deg, var(--black) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, var(--black) 0 4px, transparent 4px 8px);
  opacity: 0.15;
  border-radius: 4px;
}

.qr-placeholder span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.sobre p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.sobre strong {
  color: var(--red);
}

.dept-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .dept-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dept-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.dept-card:hover {
  background: var(--red-light);
  transform: translateY(-2px);
}

.dept-card span {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.dept-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contato-lista {
  list-style: none;
}

.contato-lista li {
  margin-bottom: 1.25rem;
}

.contato-lista strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 0.25rem;
}

.contato-lista a:hover {
  color: var(--red);
}

.contato-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ddd;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  min-height: 240px;
}

.contato-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.footer {
  background: var(--black);
  color: var(--white);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red);
}

.footer-brand span {
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.6;
}

.content-area {
  padding-top: 6rem;
  max-width: 720px;
}

.content-area h1 {
  max-width: none;
  margin-bottom: 1.5rem;
}

.entry-content {
  color: var(--gray-600);
}
