:root {
  --ink: #100c09;
  --charcoal: #1c1611;
  --glass: rgba(255, 250, 242, 0.12);
  --glass-strong: rgba(255, 250, 242, 0.18);
  --glass-line: rgba(255, 250, 242, 0.22);
  --paper: #fffaf2;
  --muted: rgba(255, 250, 242, 0.68);
  --muted-dark: #766a5d;
  --gold: #caa24f;
  --gold-soft: #ead7a9;
  --olive: #56673d;
  --wine: #7a342d;
  --line: rgba(255, 250, 242, 0.16);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  color-scheme: dark;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(16, 12, 9, 0.78), rgba(16, 12, 9, 0.96)),
    url("assets/images/optimized/trio-arabe-hero.jpg") center top / 980px auto fixed,
    var(--ink);
  color: var(--paper);
  font-size: 16px;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(202, 162, 79, 0.22), transparent 34%),
    linear-gradient(140deg, rgba(122, 52, 45, 0.2), rgba(86, 103, 61, 0.16), transparent 62%);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

a {
  color: inherit;
}

.app-shell {
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom));
}

.app-shell.is-loading .app-main {
  opacity: 0.55;
}

.glass-panel {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.16), rgba(255, 250, 242, 0.07));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.app-topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 8px;
}

.topbar-brand {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.topbar-brand img {
  width: min(176px, 52vw);
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
}

.topbar-brand span {
  margin-top: -2px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.icon-button,
.cart-pill {
  display: inline-grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
}

.icon-button {
  width: 44px;
}

.icon-button.subtle {
  background: rgba(255, 250, 242, 0.06);
}

.cart-pill {
  grid-template-columns: 18px auto;
  gap: 7px;
  min-width: 52px;
  padding: 0 11px;
  color: var(--gold-soft);
  font-weight: 900;
}

.app-main {
  position: relative;
  padding-top: 14px;
  transition: opacity 180ms ease;
}

.app-screen {
  display: none;
  animation: screenIn 220ms ease both;
}

.app-screen.is-active {
  display: grid;
  gap: 14px;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  display: grid;
  justify-items: center;
  min-height: 390px;
  padding: 34px 22px;
  overflow: hidden;
  text-align: center;
}

.hero-card img {
  width: min(440px, 82vw);
  margin: 8px auto 12px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.42));
}

.eyebrow,
.screen-heading > span,
.featured-strip span,
.magazine-copy span,
.cart-head span,
.confirmation-block > span {
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card p {
  max-width: 520px;
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-card h1,
.screen-heading h2,
.magazine-copy h2,
.cart-head strong,
.empty-state strong,
.order-confirm-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.06;
}

.hero-card h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.brand-subtitle,
.screen-heading p,
.magazine-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.quick-actions,
.featured-strip,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-action,
.contact-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  color: var(--paper);
  text-align: left;
  text-decoration: none;
}

button.quick-action,
button.contact-card {
  width: 100%;
}

.quick-action strong,
.quick-action small,
.contact-card strong,
.contact-card small {
  display: block;
}

.quick-action small,
.contact-card small {
  margin-top: 3px;
  color: var(--muted);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(234, 215, 169, 0.12);
  color: var(--gold-soft);
}

.service-icon.whatsapp {
  background: #25d366;
  color: #ffffff;
}

.catalog-toolbar {
  position: sticky;
  top: calc(max(10px, env(safe-area-inset-top)) + 74px);
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.search-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.9);
  color: var(--muted-dark);
}

.search-field input,
.order-form input,
.order-form select,
.order-form textarea,
.event-form input,
.event-form select,
.event-form textarea,
.item-note input,
.pix-block textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  outline: 0;
}

.search-field input {
  height: 44px;
  border: 0;
  background: transparent;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 800;
}

.category-button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.featured-strip article {
  display: grid;
  gap: 8px;
  min-height: 106px;
  padding: 16px;
}

.featured-strip strong {
  font-size: 0.98rem;
  line-height: 1.42;
}

.catalog-grid {
  display: grid;
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
}

.product-card.is-unavailable {
  opacity: 0.72;
}

.product-media {
  position: relative;
  display: block;
  min-height: 176px;
  overflow: hidden;
  background: rgba(255, 250, 242, 0.08);
  cursor: zoom-in;
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-media:hover img {
  transform: scale(1.025);
}

.zoom-hint {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(234, 215, 169, 0.35);
  border-radius: 999px;
  background: rgba(16, 12, 9, 0.72);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.product-content {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-tag {
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(234, 215, 169, 0.3);
  border-radius: 999px;
  background: rgba(234, 215, 169, 0.12);
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-meta small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.16;
}

.product-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.product-footer {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.price {
  color: var(--gold-soft);
  font-size: 1.02rem;
  font-weight: 900;
}

.primary-button,
.secondary-button,
.add-button,
.magazine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-button,
.add-button {
  border: 0;
  background: linear-gradient(135deg, var(--olive), #708552);
  color: var(--paper);
}

.secondary-button {
  border: 1px solid var(--glass-line);
  background: rgba(255, 250, 242, 0.1);
  color: var(--paper);
}

.add-button {
  width: 100%;
  min-height: 40px;
  font-size: 0.82rem;
}

.add-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.order-hint,
.cart-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.screen-heading,
.event-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.screen-heading h2 {
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.event-form,
.order-form {
  gap: 12px;
}

.event-form label,
.order-form label,
.item-note {
  display: grid;
  gap: 7px;
}

.event-form label span,
.order-form label span,
.item-note span {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-form input,
.event-form select,
.order-form input,
.order-form select {
  height: 46px;
  padding: 0 12px;
}

.event-form textarea,
.order-form textarea,
.pix-block textarea {
  resize: vertical;
  min-height: 96px;
  padding: 11px 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.magazine-feature {
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.magazine-cover {
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.magazine-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.magazine-copy {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.magazine-copy h2 {
  font-size: 2rem;
}

.magazine-button {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
}

.guide-root {
  display: grid;
  gap: 14px;
}

.guide-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  align-items: end;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(16, 12, 9, 0.16), rgba(16, 12, 9, 0.92)),
    var(--guide-hero-image) center / cover;
}

.guide-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, rgba(122, 52, 45, 0.42), transparent 54%);
}

.guide-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.guide-hero h1,
.guide-section-head h2,
.featured-place-copy h2,
.partner-cta h2,
.guide-place-copy h3,
.place-detail-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.06;
}

.guide-hero h1 {
  font-size: clamp(2.8rem, 13vw, 5.8rem);
}

.guide-hero p,
.guide-section-head h2,
.featured-place-copy p,
.partner-cta p,
.guide-place-copy p,
.place-detail-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-hero p {
  max-width: 560px;
  color: rgba(255, 250, 242, 0.86);
  font-size: 1.02rem;
}

.guide-hero-actions,
.partner-cta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gold-outline {
  border-color: rgba(202, 162, 79, 0.64);
  color: var(--gold-soft);
}

.guide-filter-stack {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.guide-filter-group {
  display: grid;
  gap: 9px;
}

.guide-filter-group > span,
.guide-section-head > span,
.featured-place-copy > span,
.partner-cta > span,
.guide-place-copy > span,
.place-detail-copy h3 {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.guide-filter-row::-webkit-scrollbar {
  display: none;
}

.guide-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
  font-size: 0.83rem;
  font-weight: 850;
}

.guide-chip.is-active {
  border-color: var(--gold);
  background: rgba(202, 162, 79, 0.9);
  color: var(--ink);
}

.featured-place {
  display: grid;
  overflow: hidden;
}

.featured-place-media,
.guide-place-media {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.featured-place-media img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.featured-place-copy,
.partner-cta {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.featured-place-copy h2,
.partner-cta h2 {
  font-size: clamp(1.9rem, 8vw, 3rem);
}

.featured-place-copy strong {
  color: var(--gold-soft);
}

.guide-section {
  display: grid;
  gap: 14px;
}

.guide-section-head {
  display: grid;
  gap: 8px;
  padding: 4px 2px;
}

.guide-section-head h2 {
  max-width: 780px;
  color: var(--paper);
  font-size: clamp(1.55rem, 6vw, 2.7rem);
}

.guide-grid {
  display: grid;
  gap: 14px;
}

.guide-place-card {
  display: grid;
  overflow: hidden;
}

.guide-place-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.guide-place-card:hover .guide-place-media img {
  transform: scale(1.025);
}

.brossi-seal {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(234, 215, 169, 0.42);
  border-radius: 999px;
  background: rgba(16, 12, 9, 0.76);
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.brossi-seal.inline {
  position: static;
  width: fit-content;
}

.guide-place-copy {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.guide-place-copy h3 {
  font-size: 1.36rem;
}

.guide-place-copy small {
  color: var(--gold-soft);
  font-weight: 850;
}

.partner-cta {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(122, 52, 45, 0.38), rgba(16, 12, 9, 0.82)),
    rgba(255, 250, 242, 0.12);
}

.place-detail-view {
  display: grid;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
}

.place-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.24);
}

.place-gallery img {
  width: 100%;
  height: 136px;
  border-radius: 6px;
  object-fit: cover;
}

.place-detail-copy {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.place-detail-copy h2 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.place-detail-copy h3 {
  margin: 0 0 7px;
}

.place-meta-line,
.place-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-meta-line span,
.place-chip-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.08);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.place-contact-grid {
  display: grid;
  gap: 10px;
}

.place-contact-grid a,
.related-places button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
  text-align: left;
  text-decoration: none;
}

.place-contact-grid small {
  color: var(--muted);
}

.place-reserve {
  width: 100%;
}

.related-places {
  display: grid;
  gap: 10px;
}

.related-places h3 {
  margin: 0;
}

.related-places > div {
  display: grid;
  gap: 8px;
}

.related-places button {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
}

.related-places img {
  width: 64px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.bottom-nav {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  max-width: 620px;
  margin: 0 auto;
  padding: 6px;
}

.bottom-nav button {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.bottom-nav button.is-active {
  background: rgba(234, 215, 169, 0.18);
  color: var(--gold-soft);
}

.app-footer {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  text-align: center;
}

.app-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.app-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.app-footer a {
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.cart-backdrop,
.image-modal,
.place-modal,
.order-confirm-modal {
  position: fixed;
  inset: 0;
}

.cart-backdrop {
  z-index: 40;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 160ms ease;
}

.cart-backdrop[hidden],
.image-modal[hidden],
.place-modal[hidden],
.order-confirm-modal[hidden],
.share-feedback[hidden] {
  display: none !important;
}

.cart-backdrop.is-open {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 41;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, calc(100% - 20px));
  overflow: hidden;
  transform: translateX(calc(100% + 18px));
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-head,
.cart-footer,
.order-confirm-panel header,
.order-confirm-panel footer {
  padding: 16px;
  background: rgba(16, 12, 9, 0.64);
}

.cart-head,
.order-confirm-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-head strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.cart-body {
  overflow-y: auto;
  padding: 14px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.1);
}

.cart-item img {
  width: 78px;
  height: 78px;
  border-radius: 6px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.22;
}

.cart-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-control button,
.remove-item {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--glass-line);
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.08);
  color: var(--paper);
}

.qty-control span {
  min-width: 24px;
  text-align: center;
  font-weight: 900;
}

.remove-item {
  color: #ffb4a9;
}

.item-note {
  margin-top: 10px;
}

.item-note input {
  height: 40px;
  padding: 0 10px;
}

.order-form {
  display: grid;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-footer {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.total-line,
.confirmation-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
}

.total-line strong,
.confirmation-total strong {
  color: var(--gold-soft);
  font-size: 1.16rem;
}

.empty-state,
.no-results {
  display: grid;
  gap: 7px;
  min-height: 160px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--paper);
  font-size: 1.2rem;
}

.image-modal,
.place-modal,
.order-confirm-modal {
  z-index: 70;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-modal.is-open,
.place-modal.is-open,
.order-confirm-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-backdrop,
.place-modal-backdrop,
.order-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
}

.image-modal-panel,
.place-detail-panel,
.order-confirm-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
}

.image-modal-panel {
  display: grid;
}

.place-detail-panel {
  width: min(1040px, 100%);
}

.image-modal-panel > img {
  width: 100%;
  max-height: 56dvh;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.image-modal-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.image-modal-copy span {
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.image-modal-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.12;
}

.image-modal-copy strong {
  color: var(--gold-soft);
  font-size: 1.16rem;
}

.image-modal-copy p,
.image-modal-copy small {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.preview-add {
  width: 100%;
}

.order-confirm-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(590px, 100%);
}

.order-confirm-panel h2 {
  margin-top: 3px;
  font-size: 1.48rem;
}

.order-confirm-summary {
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 16px;
}

.confirmation-block {
  display: grid;
  gap: 10px;
}

.confirmation-block ul,
.confirmation-block dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.confirmation-block li,
.confirmation-block dl div,
.confirmation-total {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-block li {
  list-style: none;
}

.confirmation-block li small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.confirmation-block dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confirmation-block dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.confirmation-block p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.08);
  color: var(--muted);
  line-height: 1.42;
}

.confirmation-block li strong,
.confirmation-total strong {
  color: var(--gold-soft);
  white-space: nowrap;
}

.pix-block textarea {
  min-height: 110px;
  font-size: 0.78rem;
}

.pix-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(234, 215, 169, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.92);
}

.pix-qr img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: contain;
}

.pix-qr figcaption,
.pix-safe-note {
  margin: 0;
  color: rgba(16, 12, 9, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.38;
  text-align: center;
}

.pix-block .pix-safe-note {
  background: rgba(255, 250, 242, 0.92);
  border-color: rgba(234, 215, 169, 0.24);
}

.order-code {
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
}

.confirmation-total small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.order-confirm-panel footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.share-feedback {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
  left: max(16px, env(safe-area-inset-left));
  z-index: 90;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(16, 12, 9, 0.92);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.icon-wrap,
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 10px;
  }

  .quick-actions,
  .featured-strip {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 360px;
    padding: 28px 16px;
  }

  .product-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .product-media,
  .product-media img {
    min-height: 178px;
  }

  .bottom-nav button {
    font-size: 0.58rem;
  }

  .guide-hero {
    min-height: 390px;
    padding: 20px;
  }

  .guide-hero-actions .primary-button,
  .guide-hero-actions .secondary-button,
  .partner-cta .primary-button,
  .partner-cta .secondary-button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .product-media,
  .product-media img {
    min-height: 240px;
  }

  .event-form,
  .screen-heading {
    width: min(780px, 100%);
    margin: 0 auto;
  }

  .magazine-feature {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    align-items: stretch;
  }

  .featured-place {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  }

  .featured-place-media img {
    height: 100%;
    min-height: 390px;
  }

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

  .place-detail-view {
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  }

  .place-gallery {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .place-gallery img {
    height: 210px;
  }

  .image-modal-panel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .image-modal-panel > img {
    height: 100%;
    max-height: calc(100dvh - 28px);
  }

  .order-confirm-panel footer {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (min-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows: 230px minmax(0, 1fr);
  }

  .product-media,
  .product-media img {
    min-height: 230px;
  }
}
