/* ==========================================================================
   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;
}
.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);
}
.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;
}
.trust-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.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; /* Hide on small, maybe add search icon */ }
  .action-text { display: none; }
  .trust-grid { justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-section .swiper { height: 400px; }
  .slide-inner { flex-direction: column; justify-content: center; text-align: center; }
  .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; }
}
