:root{--lgp-cor:#6c4dff;--lgp-escura:#302175;--lgp-suave:#f0edff;--lgp-sobre:#ffffff;}@media (prefers-color-scheme: dark){:root:not([data-tema="light"]){--lgp-escura:#261a5e;--lgp-suave:#261f48;}}:root[data-tema="dark"]{--lgp-escura:#261a5e;--lgp-suave:#261f48;}
/* ==========================================================================
   APPLE DESIGN FOUNDATIONS — PRIORIDADE TOTAL AO MODO LIGHT
   ========================================================================== */

:root,
:root[data-tema="light"],
:root[data-tema="dark"],
:root:not([data-tema="light"]) {
  color-scheme: light !important;
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", system-ui, sans-serif;
  --apple-bg: #fbfbfd;
  --apple-card: #ffffff;
  --apple-ink: #1d1d1f;
  --apple-muted: #86868b;
  --apple-line: rgba(0, 0, 0, 0.08);
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #34c759;
  --apple-pill-bg: rgba(255, 255, 255, 0.92);
}

/* Força body e containers a ficarem sempre claros e legíveis */
body.body-cidade,
:root:not([data-tema="light"]) body.body-cidade,
:root[data-tema="dark"] body.body-cidade {
  background: var(--apple-bg) !important;
  font-family: var(--apple-font) !important;
  color: var(--apple-ink) !important;
  -webkit-font-smoothing: antialiased;
}

.body-cidade.lgp,
:root:not([data-tema="light"]) .body-cidade.lgp,
:root[data-tema="dark"] .body-cidade.lgp {
  --lgp-bg: #fbfbfd !important;
  --lgp-card: #ffffff !important;
  --lgp-surface: #ffffff !important;
  --lgp-ink: #1d1d1f !important;
  --lgp-muted: #86868b !important;
  --lgp-desc: #6e6e73 !important;
  --lgp-line: rgba(0, 0, 0, 0.08) !important;
  --lgp-fill: rgba(0, 0, 0, 0.04) !important;
  --lgp-cor: #0071e3 !important;
  --lgp-acento: #0071e3 !important;
  background: var(--apple-bg) !important;
}

/* Translucent Top Bar */
.lgp-header.lgp-mkt .lgp-bar,
:root:not([data-tema="light"]) .lgp-header.lgp-mkt .lgp-bar,
:root[data-tema="dark"] .lgp-header.lgp-mkt .lgp-bar {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid var(--apple-line) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.lgp-header.lgp-mkt .lgp-logo-claro {
  display: block !important;
}
.lgp-header.lgp-mkt .lgp-logo-escuro {
  display: none !important;
}

.lgp-local {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 999px !important;
  height: 44px !important;
  padding: 0 16px !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.lgp-local b {
  color: var(--apple-ink) !important;
}

.lgp-local em {
  color: var(--apple-muted) !important;
}

.lgp-local:active {
  transform: scale(0.97) !important;
}

/* Esconde o alternador de tema na cidade para evitar acionar dark mode não intencional */
.lgp-header.lgp-mkt .lgp-tema {
  display: none !important;
}

/* ---------- HERO APPLE DESIGN (LIGHT PRIORITÁRIO) ---------- */
.lgp-hero-apple,
:root:not([data-tema="light"]) .lgp-hero-apple,
:root[data-tema="dark"] .lgp-hero-apple {
  position: relative;
  min-height: 380px;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 20px 42px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.lgp-hero-apple.lgp-hero-neutro {
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 50%, #d2d2d7 100%) !important;
}

.lgp-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.96) 80%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.lgp-hero-in-apple {
  position: relative;
  z-index: 2;
  max-width: 820px !important;
  margin: 0 auto !important;
  text-align: center;
  width: 100%;
}

.lgp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-ink) !important;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lgp-hero-eyebrow i {
  color: var(--apple-blue);
  font-size: 14px;
}

.lgp-hero-eyebrow strong {
  font-weight: 700;
  color: var(--apple-ink) !important;
}

.lgp-hero-title,
:root:not([data-tema="light"]) .lgp-hero-title,
:root[data-tema="dark"] .lgp-hero-title {
  margin: 0 0 10px !important;
  font-size: clamp(28px, 4.2vw, 46px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  color: #1d1d1f !important;
}

.lgp-hero-subtitle,
:root:not([data-tema="light"]) .lgp-hero-subtitle,
:root[data-tema="dark"] .lgp-hero-subtitle {
  margin: 0 auto 28px !important;
  font-size: clamp(15px, 1.4vw, 18px) !important;
  color: #86868b !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  max-width: 580px;
}

/* Spotlight Search Bar */
.lgp-busca-apple,
:root:not([data-tema="light"]) .lgp-busca-apple,
:root[data-tema="dark"] .lgp-busca-apple {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 6px 8px 6px 20px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.lgp-busca-apple:focus-within {
  background: #ffffff !important;
  border-color: var(--apple-blue) !important;
  box-shadow: 0 16px 44px rgba(0, 113, 227, 0.16), 0 0 0 3px rgba(0, 113, 227, 0.24) !important;
  transform: translateY(-2px);
}

.lgp-search-icon {
  font-size: 20px;
  color: var(--apple-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.lgp-busca-apple input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  color: #1d1d1f !important;
  font-weight: 500;
  min-width: 0;
}

.lgp-busca-apple input::placeholder {
  color: #8e8e93;
}

.lgp-search-submit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--apple-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  transition: transform 0.12s ease, background 0.12s ease;
}

.lgp-search-submit:hover {
  background: var(--apple-blue-hover);
}

.lgp-search-submit:active {
  transform: scale(0.92);
}

/* Category Pills / Chips */
.lgp-chips-apple {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-top: 22px;
  padding: 4px 6px 8px;
  justify-content: center;
}

.lgp-chips-apple::-webkit-scrollbar {
  display: none;
}

.lgp-chips-apple a,
:root:not([data-tema="light"]) .lgp-chips-apple a,
:root[data-tema="dark"] .lgp-chips-apple a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  color: #1d1d1f !important;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none !important;
}

.lgp-chips-apple a i {
  font-size: 16px;
  color: var(--apple-blue);
}

.lgp-chips-apple a:hover {
  background: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.lgp-chips-apple a:active {
  transform: scale(0.95);
}

.lgp-chips-apple a.is-ativo {
  background: #1d1d1f !important;
  color: #ffffff !important;
  border-color: #1d1d1f !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.lgp-chips-apple a.is-ativo i {
  color: #ffffff;
}

/* Segmented Control iOS */
.lgp-seg-wrapper {
  display: flex;
  justify-content: center;
  margin: 12px 0 24px;
}

.lgp-seg-apple,
:root:not([data-tema="light"]) .lgp-seg-apple,
:root[data-tema="dark"] .lgp-seg-apple {
  display: inline-flex !important;
  background: rgba(118, 118, 128, 0.12) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 3px !important;
  max-width: 440px !important;
  width: 100% !important;
  border: 0 !important;
}

.lgp-seg-apple a {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 42px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #86868b !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.lgp-seg-apple a i {
  font-size: 18px;
}

.lgp-seg-apple a:active {
  transform: scale(0.97) !important;
}

.lgp-seg-apple a.is-ativo {
  background: #ffffff !important;
  color: #1d1d1f !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04) !important;
}

/* ---------- REDESIGN DOS CARDS DE ESTABELECIMENTO (APPLE STYLE LIGHT) ---------- */
.lgp-loja-card,
:root:not([data-tema="light"]) .lgp-loja-card,
:root[data-tema="dark"] .lgp-loja-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 22px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  padding: 0 !important;
  text-decoration: none !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lgp-loja-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.09) !important;
}

.lgp-loja-card:active {
  transform: scale(0.98) !important;
}

/* Capa */
.lgp-loja-card .lgp-loja-capa {
  position: relative !important;
  display: block !important;
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: #e5e5ea !important;
}

.lgp-loja-card .lgp-loja-capa img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.lgp-loja-card:hover .lgp-loja-capa img {
  transform: scale(1.05) !important;
}

.lgp-loja-card.is-off .lgp-loja-capa img {
  filter: grayscale(0.85);
  opacity: 0.75;
}

/* Badges sobre a capa */
.lgp-loja-capa-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.lgp-pill-apple {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1d1d1f !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: -0.01em;
}

.lgp-pill-apple.is-on {
  color: #00875a !important;
}

.lgp-pill-apple.is-off {
  color: #de350b !important;
}

.lgp-pill-apple.is-destaque {
  background: rgba(255, 240, 179, 0.95);
  color: #b7791f !important;
}

.lgp-pill-apple .lgp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.25);
  display: inline-block;
}

.lgp-pill-apple.is-off .lgp-dot {
  background: #ff3b30;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.25);
}

/* Corpo do card */
.lgp-loja-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 16px 16px;
  flex: 1;
  background: #ffffff !important;
}

/* Avatar 3D com sobreposição */
.lgp-loja-avatar-wrap {
  position: relative;
  margin-top: -26px;
  margin-bottom: 8px;
  z-index: 3;
}

.lgp-loja-card .lgp-loja-logo {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
  object-fit: cover !important;
  display: block !important;
}

.lgp-loja-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.lgp-loja-nome,
:root:not([data-tema="light"]) .lgp-loja-nome,
:root[data-tema="dark"] .lgp-loja-nome {
  margin: 0 0 4px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: #1d1d1f !important;
  line-height: 1.25 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lgp-loja-meta,
:root:not([data-tema="light"]) .lgp-loja-meta,
:root[data-tema="dark"] .lgp-loja-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #86868b !important;
  line-height: 1.3;
  flex-wrap: wrap;
}

.lgp-loja-seg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #86868b !important;
}

.lgp-meta-sep {
  color: rgba(0, 0, 0, 0.25);
}

.lgp-loja-taxa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lgp-loja-taxa.is-gratis {
  color: #00875a !important;
  font-weight: 700;
}

/* Action button sutil */
.lgp-loja-action {
  margin-top: 14px;
  padding: 8px 12px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.lgp-loja-card:hover .lgp-loja-action {
  background: var(--apple-blue);
  color: #ffffff;
}

/* Seções e Carrosséis Apple */
.lgp-sec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lgp-sec-h h2,
:root:not([data-tema="light"]) .lgp-sec-h h2,
:root[data-tema="dark"] .lgp-sec-h h2 {
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #1d1d1f !important;
}

.lgp-sec-h a {
  color: var(--apple-blue) !important;
  font-weight: 600 !important;
}

.lgp-sec-nav button,
:root:not([data-tema="light"]) .lgp-sec-nav button,
:root[data-tema="dark"] .lgp-sec-nav button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--apple-line) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  color: #1d1d1f !important;
  transition: transform 0.12s ease, background 0.12s ease !important;
}

.lgp-sec-nav button:active {
  transform: scale(0.92) !important;
}

/* Cards de Produtos no Marketplace (Light Apple) */
.lgp-card,
:root:not([data-tema="light"]) .lgp-card,
:root[data-tema="dark"] .lgp-card {
  background: #ffffff !important;
  border: 1px solid var(--apple-line) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.lgp-card strong,
:root:not([data-tema="light"]) .lgp-card strong,
:root[data-tema="dark"] .lgp-card strong {
  color: #1d1d1f !important;
}

.lgp-card .lgp-card-loja {
  color: #86868b !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .lgp-loja-card,
  .lgp-loja-card .lgp-loja-capa img,
  .lgp-chips-apple a,
  .lgp-seg-apple a,
  .lgp-busca-apple {
    transition: none !important;
    transform: none !important;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .lgp-hero-apple {
    padding: 36px 16px 28px !important;
    min-height: auto;
  }
  .lgp-chips-apple {
    justify-content: flex-start;
    padding-left: 2px;
  }
}
