/* ==========================================================================
   VARIÁVEIS GLOBAIS (DESIGN TOKENS - E-COMMERCE)
   ========================================================================== */
:root {
  /* Cores Principais baseadas na ecoBRISA */
  --color-primary: #0070a4;
  --color-primary-dark: #005982;
  --color-primary-deeper: #004261;
  --color-primary-light: #e0f2fe;

  /* UI Colors */
  --color-success: #06d6a0;
  --color-success-dark: #04a87c;
  --color-warning: #ffd166;
  --color-danger: #ef476f;

  /* Neutrals */
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;
  --color-border: #e2e8f0;

  /* Typography Colors */
  --color-text: #334155;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;

  /* Typography Fonts */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-primary-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-deeper);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  border: 1px solid var(--color-success);
}
.btn-success:hover {
  background: var(--color-success-dark);
  color: #fff;
}

.btn-cta-orange {
  background: #f08607;
  color: #fff;
  border: 1px solid #f08607;
  box-shadow: 0 4px 14px rgba(240, 134, 7, 0.4);
}
.btn-cta-orange:hover {
  background: #d87606;
  color: #fff;
  transform: translateY(-2px);
}

.btn-buy {
  background: var(--color-success);
  color: #fff;
  width: 100%;
}
.btn-buy:hover {
  background: var(--color-success-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}
.btn-outline:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar-notice {
  background: var(--color-primary-deeper);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

/* ==========================================================================
   HEADER E-COMMERCE
   ========================================================================== */
.eco-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  gap: 2rem;
}

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

.header-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-primary-deeper);
  letter-spacing: -0.5px;
  line-height: 1;
}
.header-logo .logo-text span {
  color: var(--color-primary);
  font-weight: 400;
}

.logo-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

.logo-boreal {
  height: 45px;
  object-fit: contain;
}

.header-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.header-search input:focus {
  border-color: var(--color-primary);
}
.header-search .btn-search {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.header-search .btn-search:hover {
  background: var(--color-primary-dark);
}
.header-search .btn-search svg {
  width: 20px;
  height: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-dark);
}
.action-item > svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary-dark);
}
.action-text {
  display: flex;
  flex-direction: column;
}
.action-text .label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1;
}
.action-text .value {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.icon-wrap {
  position: relative;
  display: flex;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Categorias Menu */
.header-nav {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
}
.cat-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.cat-list::-webkit-scrollbar {
  display: none;
}
.cat-list a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: inline-block;
  line-height: 1.5;
  padding: 0.25rem 0;
}
.cat-list a:hover,
.cat-list a.active {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   TRUST BAR (Faixa de Vantagens)
   ========================================================================== */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: relative;
  z-index: 20;
}
.trust-grid {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  gap: 2rem;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2rem;
  animation: scrollMarquee 35s linear infinite;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 2rem)); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-section {
  background: var(--color-surface);
  position: relative;
}
.swiper {
  width: 100%;
  height: 450px;
}
.slide-bg-1 {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.slide-bg-2 {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.slide-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.slide-content {
  max-width: 500px;
}
.slide-tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.slide-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.slide-content p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.slide-image img {
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary-dark) !important;
  transform: scale(0.7);
}
.swiper-pagination-bullet-active {
  background: var(--color-primary-dark) !important;
}

/* ==========================================================================
   CATEGORIAS CÍRCULOS
   ========================================================================== */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.cat-circles-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.cat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.cat-circle-card:hover {
  transform: translateY(-5px);
}

.cat-img {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}
.cat-img img {
  max-height: 100%;
}

.cat-circle-card span {
  font-weight: 700;
  color: var(--color-text-dark);
  font-size: 0.95rem;
}

/* ==========================================================================
   VITRINE (PRODUCTS)
   ========================================================================== */
.bg-light {
  background: var(--color-surface-2);
}

.vitrine-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.vitrine-header .section-title {
  margin-bottom: 0;
}
.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-warning);
  color: var(--color-text-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 10;
}

.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.product-img img {
  max-height: 100%;
  mix-blend-mode: multiply; /* Removes white background from placeholders */
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-specs {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-deeper);
  margin-top: auto;
  margin-bottom: 1rem;
}

/* ==========================================================================
   BANNERS MEIO (PROMOS)
   ========================================================================== */
.banners-mid {
  padding-top: 0;
}
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.banner-card {
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.banner-pecas {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.banner-manutencao {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}
.banner-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}
.banner-content p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER E-COMMERCE
   ========================================================================== */
.eco-footer {
  background: var(--color-text-dark);
  color: #fff;
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-logo .logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.footer-logo .logo-text span {
  color: var(--color-primary);
}

.logo-boreal-footer {
  height: 80px;
  object-fit: contain;
}

.about-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--color-primary);
}
.social-links svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.links-col h4,
.contact-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}
.links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.links-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.links-col a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}
.contact-item div {
  display: flex;
  flex-direction: column;
}
.contact-item span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.contact-item strong {
  font-size: 1rem;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.payment-methods span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.payment-icons {
  display: flex;
  gap: 0.5rem;
}
.pay-icon {
  background: #fff;
  color: var(--color-text-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.copy-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
  .header-search {
    display: none;
  }
  .action-text {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    padding-bottom: 0.5rem;
  }
  .trust-item {
    flex-shrink: 0;
    font-size: 0.8rem;
    background: var(--color-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
  .hero-section .swiper {
    height: 520px;
  }
  .slide-inner {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding-bottom: 3.5rem;
    padding-top: 3.5rem;
  }
  .slide-image {
    display: none; /* Hide image on mobile for simpler text slider */
  }
  .cat-circles-grid {
    gap: 1.5rem;
  }
  .banners-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   CATÁLOGO DE PRODUTOS
   ========================================================================== */
.catalog-main {
  background-color: var(--color-bg);
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.catalog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalog-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.catalog-sidebar {
  flex: 0 0 250px;
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}

.search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 164, 0.1);
}

.filter-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-categories li {
  margin-bottom: 0.5rem;
}

.filter-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}

.filter-btn:hover {
  background: var(--color-bg);
}

.filter-btn.active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.catalog-content {
  flex: 1;
}

.catalog-item {
  animation: fadeIn 0.4s ease;
}

.no-results {
  text-align: center;
  padding: 3rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
}

/* ==========================================================================
   MODAL DE PRODUTO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-surface);
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s ease;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-text);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-main-img {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
}

.modal-main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-thumbnails {
  display: flex;
  gap: 1rem;
}

.modal-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.modal-thumbnails img:hover {
  border-color: rgba(0, 112, 164, 0.3);
}

.modal-thumbnails img.active {
  border-color: var(--color-primary);
}

.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.modal-desc {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.modal-options h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.color-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.color-btn {
  padding: 0.5rem 1.25rem;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: 0.2s;
}

.color-btn:hover {
  border-color: var(--color-text-muted);
}

.color-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.modal-actions {
  margin-top: auto;
}

@media (max-width: 992px) {
  .catalog-layout {
    flex-direction: column;
  }
  .catalog-sidebar {
    width: 100%;
    flex: none;
    padding: 1rem;
  }
  .filter-group {
    margin-bottom: 1rem;
  }
  .filter-categories {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    /* Oculta scrollbar no chrome/safari */
  }
  .filter-categories::-webkit-scrollbar {
    height: 4px;
  }
  .filter-categories::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 4px;
  }
  .filter-categories li {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .filter-btn {
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .modal-title {
    font-size: 1.5rem;
  }
}

      /* Modal de Cidades */
      .city-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
      }
      .city-modal-overlay.active {
        opacity: 1;
        visibility: visible;
      }
      .city-modal {
        background: #fff;
        width: 90%;
        max-width: 450px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        transform: translateY(20px);
        transition: 0.3s ease;
        display: flex;
        flex-direction: column;
        max-height: 90vh;
      }
      .city-modal-overlay.active .city-modal {
        transform: translateY(0);
      }
      .city-modal-header {
        padding: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        position: relative;
      }
      .city-modal-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        color: var(--color-text-dark);
      }
      .city-modal-header p {
        font-size: 0.9rem;
        color: var(--color-text-muted);
      }
      .btn-close-modal {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--color-text-muted);
        line-height: 1;
      }

      .city-modal-body {
        padding: 1.5rem;
        overflow-y: auto;
        flex-grow: 1;
      }

      .btn-geo {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: #e0f2fe;
        color: var(--color-primary-dark);
        border: 1px solid #bae6fd;
        padding: 0.8rem;
        border-radius: var(--radius-md);
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 1.5rem;
        transition: 0.2s;
      }
      .btn-geo:hover {
        background: #bae6fd;
      }
      .btn-geo.loading {
        opacity: 0.7;
        pointer-events: none;
      }

      .city-search-box {
        position: relative;
        margin-bottom: 1rem;
      }
      .city-search-box input {
        width: 100%;
        padding: 0.8rem 1rem 0.8rem 2.5rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: 1rem;
        outline: none;
      }
      .city-search-box input:focus {
        border-color: var(--color-primary);
      }
      .city-search-box svg {
        position: absolute;
        left: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--color-text-muted);
        width: 18px;
        height: 18px;
      }

      .city-list {
        list-style: none;
        padding: 0;
        margin: 0;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        max-height: 250px;
        overflow-y: auto;
      }
      .city-list li {
        border-bottom: 1px solid var(--color-border);
      }
      .city-list li:last-child {
        border-bottom: none;
      }
      .city-list button {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
        background: none;
        border: none;
        font-size: 1rem;
        cursor: pointer;
        transition: 0.2s;
        color: var(--color-text-dark);
      }
      .city-list button:hover {
        background: #f8fafc;
        color: var(--color-primary-dark);
        padding-left: 1.5rem;
      }

      .city-error {
        text-align: center;
        padding: 2rem 1rem;
        display: none;
      }
      .city-error.active {
        display: block;
      }
      .city-error h4 {
        color: #9f1239;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
      }
      .city-error p {
        font-size: 0.9rem;
        color: var(--color-text-muted);
        margin-bottom: 1.5rem;
      }

      @media (max-width: 992px) {
        .lp-grid,
        .ps-grid {
          grid-template-columns: 1fr;
          text-align: center;
        }
        .lp-hero p {
          margin: 0 auto 2rem auto;
        }
        .selo-economia {
          right: 20px;
        }
      }

      /* Otimizações Específicas para Celular */
      @media (max-width: 576px) {
        .lp-header {
          flex-direction: column;
          gap: 1rem;
          padding: 1.5rem 1rem;
          text-align: center;
        }
        .header-logo {
          justify-content: center;
        }
        .lp-hero {
          padding: 3rem 1rem;
        }
        .lp-hero h1 {
          font-size: 2.2rem;
        }
        .btn-large {
          font-size: 1rem;
          padding: 0.8rem 1.2rem;
        }
        .selo-economia {
          width: 100px;
          height: 100px;
          font-size: 0.8rem;
          top: -10px;
          right: 0;
        }
        .ps-card {
          padding: 1.5rem;
        }
        .trust-grid {
          gap: 1.5rem;
        }
        .timeline::before {
          left: 18px;
        }
        .timeline-icon {
          width: 40px;
          height: 40px;
          box-shadow: 0 0 0 4px #f8fafc;
        }
        .timeline-item {
          gap: 1rem;
        }
      }


