/* style.css */
/* ==========================================================================
   Variáveis e Reset
   ========================================================================== */
:root {
  --primary-color: #0d47a1; /* Um azul mais profissional e sério */
  --primary-hover: #002171;
  --secondary-color: #1a1a1a;
  --text-dark: #2c3e50;
  --text-light: #546e7a;
  --bg-color: #ffffff;
  --bg-light: #eaeef2;
  --border-color: #e0e6ed;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.25);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Componentes Gerais
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 0 0 20px;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title.left-align {
  text-align: left;
}

.section-title.left-align::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* Header */
.page-header {
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo-highlight {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-light);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--text-dark);
}

.cart-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.icon-nav-item {
  display: flex;
  align-items: center;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition);
}

.icon-link:hover, .icon-link.active {
  background-color: var(--primary-color);
  color: #fff;
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-desc {
  color: #a0aec0;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #a0aec0;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  font-size: 0.9rem;
}

/* ==========================================================================
   Página Home - Banner e Cards
   ========================================================================== */
.hero-section {
  margin-top: 30px;
}

.hero-grid {
  display: flex;
  gap: 20px;
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.main-banner {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background-color: var(--secondary-color);
  min-height: 450px;
}

.banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
  pointer-events: none;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  z-index: 3;
  color: #fff;
  max-width: 550px;
}

.banner-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.banner-title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.banner-subtitle {
  font-size: 1.1rem;
  margin-bottom: 35px;
  color: #f0f0f0;
  line-height: 1.6;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.banner-actions {
  display: flex;
  gap: 15px;
}

.banner-btn {
  padding: 15px 35px;
  font-size: 1rem;
  border-radius: 50px;
  font-weight: 600;
}

.main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  z-index: 1;
}

.main-banner img[src=""] {
  display: none;
}

.main-banner img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-light);
  font-size: 1.2rem;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.side-cards {
  width: 300px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.card-thumb {
  background-color: rgba(28, 28, 28, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  height: 100px;
  position: relative;
  box-shadow: var(--shadow);
}

.card-thumb:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--text-light);
}

.card-thumb.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(18, 58, 122, 0.8);
  transform: scale(1.02);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-thumb img[src=""] {
  display: none;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  padding: 5px;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   Seção Sobre a Empresa
   ========================================================================== */
.about-section {
  margin: 80px auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.05rem;
}

.about-features {
  margin-top: 30px;
  margin-bottom: 30px;
}

.about-features li {
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-image {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: #e9ecef;
}

.about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 500;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* ==========================================================================
   Carrossel
   ========================================================================== */
.carousel-section {
  margin-top: 40px;
}

.carousel-container {
  position: relative;
  background-color: var(--bg-color);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.carousel-track-wrapper {
  overflow: hidden;
  margin: 0 40px; /* Espaço para os botões */
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: calc(25% - 15px); /* 4 itens visíveis no desktop */
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  height: 200px;
  position: relative;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.carousel-item img[src=""] {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background-color: var(--primary-hover);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* ==========================================================================
   Seção de Confiança
   ========================================================================== */
.trust-wrapper {
  background-color: #fff;
  padding: 80px 0;
  margin: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.trust-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.trust-item {
  background-color: var(--bg-light);
  padding: 40px 25px;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.trust-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-color);
  background-color: #fff;
}

.trust-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(13, 71, 161, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.trust-item:hover .trust-icon-wrapper {
  background-color: var(--primary-color);
  color: #fff;
}

.trust-icon {
  font-size: 2rem;
}

.trust-title {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.trust-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ==========================================================================
   Seção de Contato
   ========================================================================== */
.contact-section {
  margin: 80px auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.contact-card {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon-box {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==========================================================================
   Página de Produtos
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.product-card {
  background-color: #ffffff; /* Branco puro para contrastar com o fundo */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* Sombra mais evidente */
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); /* Sombra mais forte no hover */
}

/* Banner específico do produto (topo do card) */
.product-banner {
  height: 100px;
  background-color: #e9ecef;
  position: relative;
  overflow: hidden;
}

.product-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Imagem principal do produto */
.product-image {
  height: 200px;
  background-color: #f8f9fa;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-text {
  color: #999;
}

/* Detalhes do produto */
.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
  flex: 1; /* Faz a descrição ocupar o espaço restante para empurrar o preço/botão para baixo */
}

.product-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-btn {
  width: 100%;
}

/* ==========================================================================
   Ações do Produto (Listagem)
   ========================================================================== */
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1;
  padding: 10px 5px;
  font-size: 0.9rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ==========================================================================
   Página Individual de Produto (Marketplace Style)
   ========================================================================== */
.product-details-container {
  margin: 40px 0;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.single-product-wrapper {
  display: flex;
  gap: 40px;
}

.single-product-left {
  flex: 1;
  max-width: 50%;
}

.single-product-image {
  background-color: #f8f9fa;
  height: 400px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.single-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product-placeholder {
  color: var(--text-light);
  position: absolute;
}

.single-product-thumbnails {
  display: flex;
  gap: 15px;
}

.thumb-box {
  width: 80px;
  height: 80px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.thumb-box:hover {
  border-color: var(--primary-color);
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.single-product-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.single-product-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-frete {
  background-color: #1b5e20;
  color: #fff;
}

.badge-segura {
  background-color: #0d47a1;
  color: #fff;
}

.single-product-price-container {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-product-price {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-dark);
}

.single-product-installments {
  color: #2e7d32;
  font-size: 1.1rem;
  font-weight: 500;
}

.single-product-description, .single-product-features {
  margin-bottom: 25px;
}

.single-product-description h3, .single-product-features h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.single-product-description p {
  color: var(--text-light);
  line-height: 1.6;
}

.single-product-features ul {
  list-style: none;
}

.single-product-features li {
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.single-product-features li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
}

.single-product-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.btn-buy-now {
  flex: 1;
  background-color: #2e7d32;
  font-size: 1.1rem;
  border-color: #2e7d32;
  color: #fff;
}

.btn-buy-now:hover {
  background-color: #1b5e20;
  border-color: #1b5e20;
}

.btn-add-cart {
  flex: 1;
  background-color: var(--bg-color);
  color: var(--primary-color);
  font-size: 1.1rem;
  border: 2px solid var(--primary-color);
}

.btn-add-cart:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.product-not-found {
  text-align: center;
  padding: 50px 0;
}

.product-not-found h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.product-not-found p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ==========================================================================
   Header Cart
   ========================================================================== */
.cart-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

#cart-count {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: inline-block;
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    flex-direction: column;
  }
  
  .side-cards {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }
  
  .carousel-item {
    min-width: calc(33.333% - 13.333px); /* 3 itens no tablet */
  }
  
  .trust-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 30px 0;
  }
  .page-title {
    font-size: 1.8rem;
  }
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    height: auto;
    padding: 15px 20px;
    gap: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .header nav {
    width: 100%;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    display: block;
    text-align: center;
  }

  .cart-link {
    justify-content: center;
  }
  
  .side-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-item {
    min-width: calc(50% - 10px); /* 2 itens em telas menores */
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-desc {
    margin: 0 auto;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .single-product-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  
  .single-product-left {
    max-width: 100%;
  }
  
  .single-product-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    min-width: 100%; /* 1 item no mobile */
  }
  
  .trust-section, .contact-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .main-banner {
    min-height: 250px;
  }
  
  .banner-title {
    font-size: 2.2rem;
  }
  
  .banner-content {
    left: 20px;
    right: 20px;
  }
  
  .banner-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   Carrinho Lateral (Sidebar)
   ========================================================================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.cart-header h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
}

.close-cart {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-cart:hover {
  color: var(--primary-color);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--bg-light);
}

/* Scrollbar styling for cart items */
.cart-items::-webkit-scrollbar {
  width: 6px;
}
.cart-items::-webkit-scrollbar-track {
  background: var(--bg-light);
}
.cart-items::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-color);
  padding: 10px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.cart-item-price {
  color: var(--text-light);
  font-size: 0.9rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.cart-item-controls button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.cart-item-controls button:hover {
  background-color: var(--primary-hover);
}

.cart-item-controls span {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: color 0.2s;
}

.remove-item:hover {
  color: #ff5252;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.btn-empty-cart {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  flex: 1;
}

.btn-empty-cart:hover {
  background-color: #333;
  color: #fff;
}

.btn-checkout {
  flex: 2;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.toast {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}

/* ==========================================================================
   Abas de Pedidos (Customer Panel)
   ========================================================================== */
.tabs-pedidos {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -2px; /* Overlap with container border */
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ==========================================================================
   Modal de Pré-checkout (Melhorado)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Para não grudar nas bordas em telas pequenas */
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 600px; /* Aumentado para acomodar os novos campos */
    max-height: 90vh; /* Para não ultrapassar a tela */
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideInModal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.modal-body {
    padding: 24px;
    background-color: #f8f9fa;
    overflow-y: auto; /* Permite scroll caso a tela seja pequena */
}

/* Novo estilo para os formulários mais complexos */
.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 10px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 16px;
}

/* Grid para alinhar os campos lado a lado */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* Tamanhos específicos para os campos de endereço */
.col-cep { flex: 0 0 140px !important; }
.col-uf { flex: 0 0 80px !important; }
.col-numero { flex: 0 0 100px !important; }

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    .col-cep, .col-uf, .col-numero {
        flex: 1 !important;
    }
}

.modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #495057;
}

.modal-body select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.1);
}

.modal-body input::placeholder,
.modal-body textarea::placeholder {
    color: #adb5bd;
}

.modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-body .btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.modal-body .btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

@keyframes slideInModal {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
