:root {
  --brand-black: #020305;
  --brand-dark: #16181d;
  --brand-white: #ffffff;
  --brand-gray-100: #f3f3f3;
  --brand-gray-300: #d1d2d4;
  --brand-gray-600: #6f6f71;
  --brand-green: #25d366;
  --content-max-width: 1600px;
  --radius: 16px;
  --shadow-soft: 0 10px 26px rgba(2, 3, 5, 0.15);
  --shadow-strong: 0 18px 35px rgba(2, 3, 5, 0.2);
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "SA Display";
  src: local("Nasalization Rg"), local("NasalizationRg-Regular");
}

html,
body {
  margin: 0;
  font-family: Montserrat, "Myriad Pro", Myriad, Arial, sans-serif;
  color: var(--brand-dark);
  background: #fff;
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.site-header {
  background: var(--brand-white);
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 20;
}

.info-bar {
  background: #020305;
  color: #fff;
}

.info-bar-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
  font-size: 15px;
  padding: 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 80px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  text-decoration: none;
  margin-right: auto;
}

.logo-image {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap; /* Don't wrap on desktop if possible */
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  text-align: right;
}

.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
}

.main-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--brand-black);
  padding-bottom: 3px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px; /* Força um tamanho fixo pro container */
  width: 48px;
  background: none;
  padding: 0;
  border: none;
  transition: opacity 0.2s ease;
}

.instagram-icon {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain;
  display: block;
}

.button.whatsapp {
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.button {
  border: 1px solid var(--brand-black);
  background: var(--brand-white);
  color: var(--brand-black);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.ghost {
  border-color: var(--brand-gray-300);
}

.button.whatsapp {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #fff;
}

.hero-banner {
  margin-top: 12px;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(2, 3, 5, 0.9) 0%, rgba(2, 3, 5, 0.5) 38%, rgba(2, 3, 5, 0.1) 65%),
    url("https://images.unsplash.com/photo-1551830820-330a71b99659?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.hero-overlay {
  max-width: 720px;
  padding: 52px 44px;
  color: #fff;
}

.hero-overlay h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
}

.hero-overlay p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.hero {
  margin: 34px 0 20px;
}

.hero.intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero.intro p {
  margin: 0;
  color: var(--brand-gray-600);
}

.eyebrow {
  color: var(--brand-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-overlay .eyebrow {
  color: #fff;
}

.cards-stage {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
}

.home-main {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

.home-cards {
  margin: 0;
  width: 100%;
}

.card {
  position: relative;
  flex: 1;
  min-height: min(60vh, 600px);
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0s;
  box-shadow: 0 12px 28px rgba(2, 3, 5, 0.22);
  background-color: #1b1f27;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.card:nth-child(1) {
  z-index: 1;
}

.card:nth-child(2) {
  flex: 1.3;
  z-index: 3;
  box-shadow: 0 16px 35px rgba(2, 3, 5, 0.3);
}

.card:nth-child(3) {
  z-index: 1;
}

.home-cards .card {
  min-height: min(60vh, 600px);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(2, 3, 5, 0.42);
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 3, 5, 0.12) 0%,
    rgba(2, 3, 5, 0.35) 60%,
    rgba(2, 3, 5, 0.75) 100%
  );
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: 22px;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  opacity: 0.9;
}

.card-title {
  margin: 0;
  color: #fff;
  font-size: 1.62rem;
  line-height: 1.15;
  font-family: "Myriad Pro", Montserrat, Arial, sans-serif;
}

.card-visual-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  max-width: 32ch;
}

.quick-info,
.panel,
.page-content section {
  background: var(--brand-white);
  border: 1px solid #e8e8e8;
  border-radius: 0;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer {
  background: var(--brand-white);
  border: 1px solid #e8e8e8;
  border-radius: 0;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

.quick-grid,
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.quick-grid h3,
.channels h3 {
  margin-bottom: 8px;
}

.page-content {
  margin-top: 28px;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  margin-top: 0;
}

.services-helper-text {
  color: #f08c00;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: -4px;
  margin-bottom: 12px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-list li {
  background: var(--brand-gray-100);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.service-item-link {
  width: 100%;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.service-item-link > div {
  text-align: left;
}

.service-item-link:hover {
  opacity: 0.82;
}

.status {
  font-weight: 600;
  margin-top: 0;
}

.status.error {
  color: #c1121f;
}

.json-editor {
  width: 100%;
  min-height: 460px;
  background: #fafafa;
  color: #101114;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.9rem;
  padding: 12px;
}

.editor-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand-black);
}

.blog-hero {
  text-align: center;
}

.blog-description {
  color: var(--brand-gray-600);
  margin-bottom: 0;
}

.blog-list {
  display: block;
}

.blog-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.blog-carousel-nav {
  width: 48px;
  height: 48px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: var(--brand-black);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.blog-carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.blog-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.blog-carousel-track {
  display: flex;
  gap: 12px;
  padding: 4px 2px;
}

.blog-list-item {
  background: #fff;
  border: 1px solid #ececec;
  padding: 0;
  display: grid;
  gap: 0;
  text-align: left;
  min-width: min(320px, 82vw);
  flex: 0 0 min(320px, 82vw);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2, 3, 5, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-list-item.active {
  border-color: rgba(240, 140, 0, 0.45);
  box-shadow: 0 16px 34px rgba(2, 3, 5, 0.14);
  transform: translateY(-4px);
}

.blog-list-item h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.blog-list-item p {
  margin: 0;
  color: var(--brand-gray-600);
  line-height: 1.55;
}

.blog-card-media {
  min-height: 190px;
  background-color: #1d2128;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px;
}

.blog-card-media.no-image {
  background: linear-gradient(135deg, #2a2e35 0%, #111318 100%);
}

.blog-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-black);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card-content {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.blog-card-meta {
  color: #a06b00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-black);
  font-weight: 700;
  margin-top: 4px;
}

.blog-article {
  text-align: left;
}

.blog-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.blog-images img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
}

.blog-body p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.blog-meta {
  border-top: 1px solid #e8e8e8;
  padding-top: 12px;
  font-weight: 600;
  color: var(--brand-gray-600);
}

.blog-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-admin-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.blog-admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.blog-admin-form input,
.blog-admin-form textarea {
  width: 100%;
  border: 1px solid #dbdbdb;
  background: #fafafa;
  padding: 10px 12px;
  font: inherit;
}

.blog-admin-list {
  display: grid;
  gap: 10px;
}

.blog-admin-item {
  border: 1px solid #e5e5e5;
  background: var(--brand-gray-100);
  padding: 12px;
  text-align: left;
}

.blog-admin-item h3,
.blog-admin-item p {
  margin: 0 0 8px;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 4px;
  min-height: 20px;
}

/* Specialized Services Cards */
.specialized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.specialized-card {
  position: relative;
  display: block;
  height: 240px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--brand-white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(2, 3, 5, 0.1);
}

.specialized-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2, 3, 5, 0.2);
}

.specialized-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.specialized-card:hover .specialized-card-bg {
  transform: scale(1.05);
}

.specialized-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(2, 3, 5, 0.9) 0%, rgba(2, 3, 5, 0.6) 70%, transparent 100%);
  z-index: 2;
}

.specialized-card-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 920px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
    height: auto;
    min-height: auto;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
  }

  .top-actions {
    width: 100%;
    justify-content: center;
  }

  .instagram-icon {
    height: 40px; /* Reduz um pouco no mobile */
    width: auto;
  }

  .button.whatsapp {
    align-self: center; /* Evita que o botão estique verticalmente */
  }
}

@media (min-width: 768px) {
  .info-bar-inner {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .info-bar-inner {
    font-size: 15px;
  }
}

@media (max-width: 920px) {
  .hero-overlay {
    padding: 34px 24px;
  }

  .cards-stage {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .home-main {
    min-height: auto;
    display: block;
  }

  .home-cards {
    margin: 20px 0 28px;
  }

  .card {
    width: 100% !important;
    max-width: 420px;
    min-height: 380px;
    clip-path: none !important;
    margin: 0 !important;
  }

  .card:hover {
    transform: scale(1.02);
  }

  .specialized-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .specialized-card {
    height: 200px;
  }

  .blog-carousel {
    grid-template-columns: 1fr;
  }

  .blog-carousel-nav {
    display: none;
  }
}

/* ==========================================================================
   MERCADO LIVRE STORE
   ========================================================================== */
.ml-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.ml-product-card {
  background: var(--brand-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e8e8e8;
}

.ml-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ml-product-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  overflow: hidden;
  padding: 10px;
}

.ml-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.ml-product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ml-product-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand-black);
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ml-product-price {
  font-size: 22px;
  font-weight: 700;
  color: #a06b00;
  margin-bottom: 16px;
}

.ml-product-buy {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

.empty-state, .error-state, .loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  color: var(--brand-gray-600);
  font-weight: 600;
}

/* Barra de Busca */
.search-container {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-wrapper {
  display: flex;
  gap: 10px;
  background: var(--brand-white);
  padding: 8px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.search-wrapper input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 1rem;
  outline: none;
}

/* Paginação */
.ml-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

#pageInfo {
  font-weight: 700;
  color: var(--brand-gray-600);
}

.ml-pagination-container .button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.pb-120 { padding-bottom: 120px; }



/* --- LGPD & Cookies Banner --- */
#sa-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 24px;
  z-index: 10000;
  display: flex;
  justify-content: center;
  animation: sa-slide-up 0.4s ease-out;
}

.sa-cookie-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.sa-cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.sa-cookie-content a {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
}

.sa-cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.sa-btn-primary, .sa-btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.sa-btn-primary {
  background: #000;
  color: #fff;
}

.sa-btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
}

.sa-btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.sa-btn-secondary:hover {
  background: #e0e0e0;
}

@keyframes sa-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  #sa-cookie-banner {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 20px;
  }
  .sa-cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .sa-cookie-actions {
    width: 100%;
  }
  .sa-btn-primary, .sa-btn-secondary {
    flex: 1;
    padding: 14px;
  }
}