/* Cart page layout fixes */
.cart-section .section-content {
  display: block;
}

.cart-section .carrinho-rodape {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-radius: 12px;
}

.cart-section .carrinho-total {
  text-align: center;
  margin: 5px 0 10px;
}

.cart-section .carrinho-total h3 {
  font-weight: 700;
}

.cart-section .carrinho-total h3 span {
  color: var(--primary-color);
}

/* Buttons - harmonized with brand colors */
.cart-section .carrinho-acoes .btn {
  height: 48px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cart-section .cart-continue-btn {
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cart-section .cart-continue-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25);
}

.cart-section .cart-finalize-btn {
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.cart-section .cart-finalize-btn:hover {
  background: #ff8533;
  border-color: #ff8533;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.25);
}

.cart-section .carrinho-acoes {
  display: flex;
  justify-content: center;
  gap: 15px;
}

@media (max-width: 768px) {
  .cart-section .carrinho-acoes {
    flex-direction: column;
    width: 100%;
  }
  .cart-section .carrinho-acoes .btn {
    width: 100%;
    max-width: none;
  }
}

/* Quantity controls refinement */
.cart-section .quantidade-controles {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-section .qtd-btn {
  background: #fff;
  color: var(--secondary-color);
}

.cart-section .qtd-btn:hover {
  background: rgba(var(--primary-rgb), 0.08);
}
/* Main Variables */
:root {
  --primary-color: #ff6600;
  --secondary-color: #333333;
  --light-color: #ffffff;
  --gray-light: #f4f4f4;
  --gray-medium: #e0e0e0;
  --gray-dark: #707070;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --font-primary: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--gray-light);
  color: var(--secondary-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cases page refinements */
.cases-page .page-header {
  text-align: center;
  margin: 40px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.cases-page .maintenance-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.cases-page .btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
}

.cases-page .btn-primary:hover {
  background: #ff8533;
  border-color: #ff8533;
}

/* Header Styles */
header {
  background-color: var(--light-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 8px 0;
  font-size: 0.9rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
}

.header-top-left,
.header-top-right {
  display: flex;
  align-items: center;
}

.header-top-left span {
  margin-right: 15px;
}

.header-top-right a {
  color: var(--light-color);
  margin-left: 15px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 70px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-medium);
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.search-bar button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background-color: #ff8533;
}

.nav-icons {
  display: flex;
}

.nav-icon {
  position: relative;
  margin-left: 25px;
  font-size: 1.3rem;
  color: var(--secondary-color);
  cursor: pointer;
}

.nav-icon span {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  background-color: var(--secondary-color);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
}

.nav-links a {
  color: var(--light-color);
  padding: 0 15px;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -15px;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
  margin-bottom: 40px;
  width: 100%;
  background-color: #333;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/lion.png');
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.7;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

.hero-content {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 30px;
  position: relative;
  z-index: 2;
  border-radius: 8px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  font-weight: 600;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

.hero-security {
  font-size: 1rem !important;
  color: #fff;
  display: block;
  margin-bottom: 20px !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary,
.btn-secondary {
  background-color: var(--primary-color);
  color: var(--light-color);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 30px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #ff8533;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-primary i {
  font-size: 1.2rem;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--light-color);
  color: var(--light-color);
}

.btn-outline:hover {
  background-color: var(--light-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Section Styles */
.section {
  margin: 40px 0;
  background-color: var(--light-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.section-content {
  padding: 20px;
}

/* Melhorias index - cards destaque e sobre nós */
.product-about {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin: 6px 0 10px;
  line-height: 1.4;
}

/* Estilos para elementos dos cards (produtos page e index) */
.product-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.product-brand-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.product-brand-name {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  margin: 0 0 4px 0;
  line-height: 1.2;
  display: block;
}

.product-type {
  font-size: 0.95rem;
  color: #000;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.price-old {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
}

.price-current.price-promotional {
  color: #e74c3c;
}

.section.about-section .section-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.7;
}

.section.about-section .section-content p {
  margin-bottom: 15px;
}

.section.about-section .section-content p:last-child {
  margin-bottom: 0;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 40px;
  margin: 0 20px;
}

.product-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Regra removida - já existe na nova versão */

/* Regra removida - conflitava com nova versão */

.product-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background-color: var(--gray-light);
  position: relative;
}

.product-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transform: scale(1.50);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 3px;
}

.product-info {
  padding: 15px;
}

.product-category {
  color: var(--gray-dark);
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 10px;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn-cart {
  flex: 1;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 8px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cart:hover {
  background-color: #ff8533;
}

.btn-wishlist {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-light);
  border-radius: 5px;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn-wishlist:hover {
  background-color: #ffebe0;
  color: var(--primary-color);
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature {
  padding: 20px;
  background-color: var(--light-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--gray-medium);
  padding-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-medium);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  background-color: #222;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0,0,0,0.1);
}

.mobile-menu-toggle:active {
  background-color: rgba(0,0,0,0.2);
}

.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--light-color);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary-color);
  cursor: pointer;
}

.mobile-menu-links {
  padding: 20px 0;
}

.mobile-menu-links a {
  display: block;
  padding: 15px 20px;
  color: var(--secondary-color);
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

.mobile-menu-links a:hover {
  background-color: var(--gray-light);
  color: var(--primary-color);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
}

.mobile-overlay.active {
  display: block;
}

/* Carousel Mobile Improvements */
.carousel-container {
  position: relative;
  margin: 0 -10px;
  overflow: hidden;
}

/* Regras antigas removidas - usando nova versão unificada 
   IMPORTANTE: Todas as animações de carrossel são controladas manualmente via JS */

/* Centralizar todas as sections */
.section {
  max-width: 1200px;
  margin: 40px auto;
}

.section .section-content {
  max-width: 100%;
}

.brand-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.brand-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
  display: block;
  margin: auto;
}

.brand-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Container único e centrado */
.carousel-container{
  position: relative;
  width: 100%;
  max-width: 1000px;       /* pode ajustar */
  margin-inline: auto;
  padding: 20px 50px;      /* setas dentro do container */
  overflow: hidden;
  text-align: center;
}

/* Produtos - texto à esquerda */
.produtos-carousel .product-info {
  text-align: left;
}

/* Marcas - altura extra para evitar corte */
.marcas-carousel.carousel-container {
  padding: 30px 50px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Track com gap; NADA de margin nos itens  */
.carousel-track{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* o JS alterna para center quando couber */
  gap: 15px;                   /* produtos */
  transition: none;            /* desativa animação por padrão */
  overflow: hidden;
}

/* ativa animação só quando pedirmos no JS */
.carousel-track.animate{ 
  transition: transform .5s ease; 
}

/* Garante que não há animação automática */
.carousel-track:not(.animate) {
  transition: none !important;
}
.marcas-carousel .carousel-track{ 
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 15px 0;
}

/* Centralização da seção de marcas */
.marcas-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Itens sem margin lateral */
.carousel-item.product-card{ flex:0 0 280px; width:280px; }
.brand-item{ 
  flex: 0 0 140px; 
  width: 140px; 
  height: 90px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: #fff; 
  border-radius: 12px; 
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); 
  border: 2px solid rgba(0,0,0,.05);
  transition: all 0.3s ease;
}

/* Setas ficam relativas ao container (já estão) */
.carousel-controls{ 
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  z-index: 20;
}
.carousel-prev{ left: 5px; }
.carousel-next{ right: 5px; }

.carousel-controls:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.05);
}

/* Dots iguais (opcional) */
.carousel-dots{ display:flex; justify-content:center; gap:8px; margin-top:15px; }
.carousel-dot{ width:10px; height:10px; border-radius:50%; border:0; background:rgba(0,0,0,.3); cursor:pointer; transition: all 0.3s ease; }
.carousel-dot.active{ background:var(--primary-color); transform:scale(1.2); }

/* Regras duplicadas removidas - usando versão acima */

/* Ensure proper spacing and alignment */
.section .section-content {
  padding: 20px;
  max-width: 100%;
}

/* Especial para carrosséis */
.section .carousel-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
  
  .carousel-item {
    width: 260px;
  }
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block !important;
    position: relative;
    z-index: 10;
  }
  
  .main-nav {
    display: none;
  }
  
  .header-main {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  
  .logo-img {
    height: 50px;
  }
  
  .logo-text {
    font-size: 1.5rem;
  }
  
  .search-bar {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
    flex: 1;
  }
  
  .nav-icons {
    order: 2;
  }
  
  .hero {
    height: 350px;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .carousel-item {
    width: 240px;
  }
  
  .section-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  
  .header-main {
    padding: 8px 0;
  }
  
  .logo {
    flex: 1;
  }
  
  .logo-img {
    height: 45px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .search-bar {
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
    order: 3;
  }
  
  .search-bar input {
    padding: 10px 45px 10px 15px;
    font-size: 0.95rem;
  }
  
  .search-bar button {
    padding: 6px 12px;
    right: 8px;
  }
  
  .nav-icons {
    order: 2;
    gap: 15px;
  }
  
  .nav-icon {
    margin-left: 0;
    font-size: 1.2rem;
  }
  
  .hero {
    height: 280px;
    margin-bottom: 25px;
  }
  
  .hero-content {
    width: calc(100% - 30px);
    padding: 20px;
  }
  
  .hero h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  
  .hero-security {
    font-size: 0.8rem !important;
    margin-bottom: 18px !important;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
  }
  
  .hero-buttons {
    gap: 10px;
    margin-top: 8px;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .product-card {
    margin-bottom: 0;
    max-width: none;
    border-radius: 10px;
  }
  
  .product-image {
    height: 140px;
    padding: 12px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-title {
    font-size: 0.85rem;
    height: 32px;
    margin-bottom: 6px;
    line-height: 1.2;
  }
  
  .product-price {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .carousel-container {
    margin: 0 -5px;
  }
  
  .carousel-item {
    width: 180px;
  }
  
  .carousel-item.product-card {
    flex: 0 0 180px;
    width: 180px;
  }
  
  .btn-cart {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 5px;
  }
  
  .brand-item {
    width: 110px;
    height: 70px;
    border-radius: 10px;
    padding: 12px;
    margin: 0 6px;
  }
  
  .section {
    margin: 25px 0;
    border-radius: 10px;
  }
  
  .section-header {
    padding: 18px;
  }
  
  .section-content {
    padding: 18px;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .feature {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,1) 100%);
    border: 1px solid rgba(255,102,0,0.1);
  }
  
  .feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: rgba(255,102,0,0.2);
  }
  
  .feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #ff8533);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .feature-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .section-header {
    padding: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
  
  .header-main {
    padding: 6px 0;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .search-bar {
    margin: 10px 0 0;
  }
  
  .search-bar input {
    padding: 9px 40px 9px 12px;
    font-size: 0.9rem;
    border-radius: 25px;
  }
  
  .search-bar button {
    padding: 5px 10px;
    right: 6px;
  }
  
  .nav-icon {
    font-size: 1.1rem;
  }
  
  .hero {
    height: 260px;
    margin-bottom: 20px;
  }
  
  .hero-content {
    width: calc(100% - 20px);
    padding: 15px;
  }
  
  .hero h2 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  
  .hero p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .hero-security {
    font-size: 0.75rem !important;
    margin-bottom: 15px !important;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 11px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
}

/* Tablet pequeno */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .product-card {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  }
  
  .product-image {
    height: 160px;
    padding: 15px;
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-title {
    font-size: 0.9rem;
    height: 36px;
    margin-bottom: 8px;
  }
  
  .product-price {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
  }
  
  .carousel-container {
    margin: 0 -8px;
  }
  
  .carousel-item {
    width: 160px;
  }
  
  .carousel-item.product-card {
    flex: 0 0 160px;
    width: 160px;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-cart {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
  }
  
  .btn-wishlist {
    width: 100%;
    height: 38px;
    border-radius: 6px;
  }
  
    .brand-item {
    width: 90px;
    height: 60px;
    border-radius: 10px;
    padding: 8px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 0 4px;
  }

  .brand-item img {
    max-width: 85%;
    max-height: 85%;
    filter: grayscale(30%);
    transition: all 0.3s ease;
  }

  .brand-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
  }
  
  .carousel-controls {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  .carousel-prev {
    left: -8px;
  }
  
  .carousel-next {
    right: -8px;
  }
  
  .section {
    margin: 18px 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  
  .section-header {
    padding: 15px;
  }
  
  .section-content {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.15rem;
  }
  
  .features {
    gap: 15px;
  }
  
  .feature {
    padding: 18px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .hero {
    height: 240px;
  }
  
  .hero-content {
    padding: 12px;
  }
  
  .hero h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .hero p {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .hero-security {
    font-size: 0.7rem !important;
    margin-bottom: 12px !important;
  }
  
  .btn-primary,
  .btn-secondary {
    font-size: 0.85rem;
    padding: 10px 12px;
  }
  
  .carousel-container {
    margin: 0 -6px;
  }
  
  .carousel-item {
    width: 140px;
  }
  
  .carousel-item.product-card {
    flex: 0 0 140px;
    width: 140px;
  }
  
  .product-image {
    height: 120px;
    padding: 10px;
  }
  
  .product-info {
    padding: 10px;
  }
  
  .product-title {
    font-size: 0.75rem;
    height: 30px;
    line-height: 1.2;
  }
  
  .product-price {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  
  .btn-cart {
    font-size: 0.75rem;
    padding: 8px 10px;
  }
  
  .brand-item {
    width: 75px;
    height: 52px;
    padding: 6px;
    margin: 0 3px;
  }
  
  .carousel-controls {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  
  .carousel-prev {
    left: -6px;
  }
  
  .carousel-next {
    right: -6px;
  }
  
  .section {
    margin: 15px 0;
    border-radius: 10px;
  }
  
  .section-header {
    padding: 12px;
  }
  
  .section-content {
    padding: 12px;
  }
  
  .section-title {
    font-size: 1.05rem;
  }
  
  .feature {
    padding: 15px;
  }
  
  .feature-icon {
    font-size: 1.8rem;
  }
}

/* Modal Mobile Improvements */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-product-image {
    height: 200px;
  }
  
  .modal-product-info h3 {
    font-size: 1.2rem;
  }
  
  .modal-product-price {
    font-size: 1.3rem;
  }
  
  /* Product Modal Mobile */
  .produto-modal-content {
    width: 95% !important;
    max-width: none !important;
    margin: 10px auto !important;
    max-height: 95vh !important;
    overflow-y: auto !important;
    border-radius: 8px !important;
  }
  
  .produto-modal-body {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .produto-modal-left,
  .produto-modal-right {
    width: 100% !important;
    flex: none !important;
  }
  
  .produto-modal-left img {
    width: 100% !important;
    max-width: 300px !important;
    height: 250px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  .modal-details {
    margin: 15px 0 !important;
  }
  
  .detail-row {
    padding: 8px 0 !important;
    font-size: 0.9rem !important;
  }
  
  .modal-actions {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .modal-quantidade {
    justify-content: center !important;
    margin-bottom: 10px !important;
  }
  
  .btn-add-cart,
  .btn-toggle-favorito {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px !important;
    font-size: 0.9rem !important;
    height: 38px !important;
  }
  
  .close-modal {
    font-size: 1.5rem !important;
    top: 15px !important;
    right: 15px !important;
  }
  
  /* Login/Register Modal Mobile */
  .modal {
    padding: 10px !important;
  }
  
  .modal-content {
    width: 95% !important;
    margin: 20px auto !important;
    padding: 20px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }
  
  .modal-header h2 {
    font-size: 1.3rem !important;
  }
  
  .form-group {
    margin-bottom: 15px !important;
  }
  
  .form-group label {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
  }
  
  .form-group input,
  .form-group select {
    padding: 12px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    padding: 12px !important;
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }
  
  .form-row {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  .form-row .form-group {
    width: 100% !important;
  }
}

/* Modern Product Modal Styling */
.produto-modal-modern {
  display: grid;
  grid-template-columns: 1fr 1fr; /* imagem esquerda, infos direita */
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25), 0 10px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  max-height: 480px;
  overflow: hidden;
}

.modal-header-block {
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #222;
}

.modal-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 20px;
}

.price-current {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 800;
}

.price-old {
  color: var(--gray-dark);
  text-decoration: line-through;
  font-size: 1.2rem;
}

.modal-details {
  margin: 16px 0;
  font-size: 1rem;
  gap: 4px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  font-size: 0.85rem;
}

.detail-label {
  font-weight: 600;
  color: var(--secondary-color);
  min-width: 55px;
  font-size: 0.85rem;
}

.detail-value {
  color: var(--gray-dark);
  text-align: right;
  flex: 1;
  margin-left: 8px;
  font-weight: 500;
}

.modal-descricao {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 8px;
  margin: 10px 0;
  line-height: 1.4;
  color: #555;
  font-size: 0.85rem;
  font-weight: 500;
}

.modal-descricao:empty {
  display: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* Específico para botões no modal */
.modal-actions .btn-add-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 14px;
  height: 34px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-actions .btn-add-cart:hover {
  background-color: #e65a00;
  box-shadow: 0 3px 10px rgba(255,102,0,0.3);
  transform: translateY(-1px);
}

.modal-quantidade {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-medium);
  border-radius: 4px;
  overflow: hidden;
  background: #f8f8f8;
}

.qtd-btn {
  background-color: #f5f5f5;
  border: none;
  color: var(--gray-dark);
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.8rem;
}

.qtd-btn:hover {
  background-color: #e9e9e9;
}

#modal-quantidade {
  width: 50px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 1rem;
  -moz-appearance: textfield;
  appearance: textfield;
  background: #fff;
}

.btn-add-cart {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 16px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(255,102,0,0.2);
}

.btn-add-cart:hover {
  background-color: #e65a00;
  box-shadow: 0 4px 12px rgba(255,102,0,0.4);
  transform: translateY(-1px);
}

.btn-toggle-favorito {
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1.2rem;
  color: #ccc;
}

.btn-toggle-favorito i {
  font-size: 1.2rem;
  color: var(--gray-dark);
}

.btn-toggle-favorito[data-favorito="1"] i {
  color: var(--primary-color);
}

.btn-toggle-favorito:hover {
  background-color: #e9e9e9;
  color: var(--primary-color);
}

.produto-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.modal-categoria {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #666;
  text-align: center;
}
.modal-title {
  justify-content: center;
  margin-top: 0;
}

.produto-modal-right { align-self: start; }

.brand-icon {
    width: 35px; 
    height: 35px;
    vertical-align: middle;
    margin: 0;
    margin-bottom: 10px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.produto-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  overflow: auto;
  padding-top: 80px;
}

.produto-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25), 0 10px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  max-width: 800px;
  width: 90%;
  position: relative;
  margin: 20px;
}

.modal-gallery {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.modal-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  max-width: 90%;
  max-height: 90%;
}

.produto-modal-right {
  padding: 0 16px;
}

@media (max-width: 576px) {
  .produto-modal-content {
    width: 98% !important;
    margin: 5px auto !important;
    max-height: 98vh !important;
  }
  
  .produto-modal-left img {
    height: 200px !important;
    max-width: 250px !important;
  }
  
  .modal-actions {
    padding: 15px !important;
  }
  
  .qtd-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }
  
  #modal-quantidade {
    width: 60px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
} 

.compat-header {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 12px 0 4px;
}

/* Product card improvements */
.product-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.product-brand-icon {
    width: 25px;
    height: 25px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    margin-bottom: 22px;
}

.product-brand-name {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  margin: 0 0 4px 0;
  line-height: 1.2;
  display: block;
}

.product-type {
  font-size: 0.95rem;
  color: #000;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
} 