
:root {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-soft: #f6eee5;
  --ink: #2a211c;
  --muted: #6e625a;
  --brown: #6b3f27;
  --brown-dark: #3d2417;
  --gold: #c99652;
  --line: #eadfd4;
  --shadow: 0 18px 50px rgba(61,36,23,.10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brown-dark);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,250,244,.94);
  border-bottom: 1px solid rgba(234,223,212,.85);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -.03em;
  font-size: 1.15rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brown);
  color: #fff;
  font-size: 1.05rem;
}
.brand span { color: var(--brown); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
  border-radius: 10px;
}
.nav-links a:hover, .nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--brown-dark);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brown-dark);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #392318;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/padaria.webp") center/cover no-repeat;
  transform: scale(1.015);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(32,18,10,.82) 0%, rgba(32,18,10,.54) 50%, rgba(32,18,10,.20) 100%);
}
.hero-content {
  width: min(760px, calc(100% - 40px));
  margin-right: auto;
  margin-left: max(20px, calc((100% - var(--max))/2));
  padding: 72px 0;
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--brown-dark); }
.btn-secondary { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.07); }

section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.kicker {
  color: var(--brown);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-head p { margin: 0; color: var(--muted); }

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.search {
  position: relative;
}
.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,150,82,.14); }
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.filter:hover, .filter.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 22px rgba(61,36,23,.045);
  transition: transform .22s ease, box-shadow .22s ease;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product:hover .product-image img { transform: scale(1.045); }
.product-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--brown-dark);
  box-shadow: 0 7px 18px rgba(0,0,0,.16);
  cursor: pointer;
}
.product-body { padding: 17px 17px 19px; }
.product-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}
.product-category {
  display: inline-block;
  margin-top: 8px;
  color: var(--brown);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.empty {
  display: none;
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty.show { display: block; }

.location {
  background: var(--surface-soft);
}
.location-grid {
  display: grid;
  grid-template-columns: .8fr 1.5fr;
  gap: 24px;
}
.location-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--brown-dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.location-card h2 { margin: 8px 0 10px; font-size: 2rem; line-height: 1.05; }
.location-card p { color: rgba(255,255,255,.76); }
.address {
  margin: 24px 0;
  font-weight: 750;
}
.map {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 100%; min-height: 430px; border: 0; }

.recommendation { text-align: center; }
.recommend-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.recommend-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--brown);
  font-size: 1.5rem;
}
.recommend-card h2 { margin: 0 0 8px; }
.recommend-card p { margin: 0 auto 20px; color: var(--muted); max-width: 560px; }
.text-link {
  color: var(--brown);
  font-weight: 900;
  text-underline-offset: 3px;
}

footer {
  padding: 30px 0;
  background: #24140d;
  color: rgba(255,255,255,.68);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { color: #fff; font-weight: 900; }
.footer-inner p { margin: 0; font-size: .9rem; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(25,15,10,.82);
  backdrop-filter: blur(7px);
}
.modal.open { display: grid; }
.modal-dialog {
  position: relative;
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 20px;
  background: #17100c;
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.modal-image {
  width: 100%;
  height: min(74vh, 760px);
  object-fit: contain;
  background: #17100c;
}
.modal-caption {
  padding: 14px 18px 17px;
  color: #fff;
  background: #241710;
}
.modal-caption strong { display: block; }
.modal-caption span { color: rgba(255,255,255,.62); font-size: .84rem; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .location-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav { min-height: 64px; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    display: none;
    top: 70px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
  .hero { min-height: 650px; }
  .hero::after { background: linear-gradient(90deg, rgba(32,18,10,.84), rgba(32,18,10,.5)); }
  .hero-content { margin-inline: auto; }
  section { padding: 70px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .product { border-radius: 16px; }
  .product-body { padding: 13px; }
  .product-open { width: 36px; height: 36px; }
  .map, .map iframe { min-height: 340px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.7rem; }
  .hero-actions .btn { width: 100%; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Contato */
.contact { padding: 88px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(61,36,23,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover, .contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: #d8c4b2;
  box-shadow: var(--shadow);
}
.contact-card.whatsapp { border-color: #d6e9dc; }
.contact-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--brown);
  font-weight: 900;
  font-size: .88rem;
}
.contact-card.whatsapp .contact-icon { background: #e6f5eb; color: #18864b; }
.contact-card > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.contact-card strong { color: var(--ink); font-size: 1rem; }
.contact-card small { color: var(--muted); overflow-wrap: anywhere; }
.contact-arrow { margin-left: auto; color: var(--gold); font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 750; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--brown); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

/* Identidade oficial e acesso ao Espaço XANSHIN */
.brand { gap: 10px; }
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(61,36,23,.10);
}
.brand b { color: var(--brown); }
.nav-xanshin {
  background: #ffe8f2;
  color: #a20f3d !important;
  border: 1px solid #f5c2d5;
}
.nav-xanshin:hover, .nav-xanshin:focus-visible {
  background: #ffd5e5 !important;
  color: #850c31 !important;
}
.xanshin-promo {
  display: grid;
  width: min(390px, 100%);
  gap: 2px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(180,12,65,.88), rgba(246,93,145,.70));
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.xanshin-promo:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
.xanshin-promo-kicker {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}
.xanshin-promo strong { font-size: 1.25rem; }
.xanshin-promo span:last-child { font-size: .9rem; opacity: .9; }
@media (max-width: 820px) {
  .brand img { width: 42px; height: 42px; }
  .nav-xanshin { display: block; }
}
