/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

/* ===== CABEÇALHO ===== */
.header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid #ff6600;
  position: relative;
}

.header::after {
  content: "FRETE GRÁTIS EM SÃO LUÍS - MA";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff6600;
  color: #fff;
  padding: 2px 15px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-radius: 3px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
  z-index: 1000;
  min-height: 80px;
}

/* Aumentar padding no desktop para permitir logo maior */
@media (min-width: 769px) {
  .header-content {
    padding: 35px 0;
  }
}

.logo .logo-img {
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo a {
  text-decoration: none;
}

/* Logo específica para desktop */
.desktop-logo {
  display: block;
  height: 60px;
  margin-left: 10px;
}

.mobile-logo {
  display: none;
}

@media (max-width: 768px) {
  .logo .logo-img {
    height: 35px;
    max-width: 150px;
  }

  .desktop-logo {
    display: none;
  }

  .mobile-logo {
    display: block;
  }
}

/* ===== NAVEGAÇÃO ===== */
.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #3b8bc9;
}

/* Menu Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 220px;
  margin-top: 10px;
  border: 1px solid #eee;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
  color: #3b8bc9;
}

/* ===== ÍCONES DO CABEÇALHO ===== */
.header-icons {
  display: flex;
  gap: 15px;
}

.search-btn,
.search-btn-mobile,
.cart-btn {
  background: none;
  border: 2px solid rgba(59, 139, 201, 0.3);
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.search-btn:hover,
.search-btn-mobile:hover,
.cart-btn:hover {
  border-color: #3b8bc9;
  background-color: rgba(59, 139, 201, 0.1);
  transform: scale(1.05);
}

/* Barra de pesquisa mobile */
.mobile-search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #eee;
  display: none;
}

.mobile-search-bar input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.mobile-search-bar .search-btn {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #3b8bc9;
}

/* Ocultar elementos mobile no desktop */
@media (min-width: 769px) {
  .search-btn-mobile {
    display: none;
  }
}

/* Ocultar elementos desktop no mobile */
@media (max-width: 768px) {
  .desktop-search-bar {
    display: none;
  }
}

/* ===== BARRA DE PESQUISA DESKTOP ===== */
.desktop-search-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 25px;
  padding: 8px 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
}

.desktop-search-bar input {
  border: none;
  outline: none;
  padding: 8px 40px 8px 12px;
  font-size: 16px;
  flex: 1;
  border-radius: 20px;
  position: relative;
}

.desktop-search-bar {
  position: relative;
}

.desktop-search-bar .search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #3b8bc9;
  padding: 5px;
  transition: color 0.3s;
}

.desktop-search-bar .search-btn:hover {
  color: #2c7ab5;
}

/* Esconder barra de pesquisa no mobile */
@media (max-width: 768px) {
  .desktop-search-bar {
    display: none;
  }
}

/* ===== BOTÃO HAMBÚRGUER ===== */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  margin-right: 15px;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #3b8bc9;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ===== CAROUSEL DE BANNERS ===== */
.hero-carousel {
  background-color: #fff;
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2f1 100%);
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

.slide-content img {
  max-width: 45%;
  height: auto;
  border-radius: 8px;
}

.slide-text {
  max-width: 45%;
}

.slide-text h2 {
  font-size: 36px;
  color: #2c5282;
  margin-bottom: 20px;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
}

.price-new {
  font-size: 32px;
  color: #3b8bc9;
  font-weight: bold;
  margin: 10px 0;
}

/* Botões do Carousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(59, 139, 201, 0.8);
  color: #fff;
  border: none;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(59, 139, 201, 1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Indicadores do Carousel */
.carousel-indicators {
  text-align: center;
  padding: 20px 0;
}

.indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: #3b8bc9;
}

/* ===== SEÇÃO DE PRODUTOS ===== */
.products-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #2c5282;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(59, 139, 201, 0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.product-card h3 {
  color: #2c5282;
  font-size: 18px;
}

/* ===== SEÇÕES DE INFORMAÇÃO ===== */
.info-section {
  padding: 60px 0;
}

.info-section.bg-light {
  background-color: #fff;
}

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

.info-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  color: #2c5282;
  margin-bottom: 15px;
  font-size: 20px;
}

.about-content {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
}

/* ===== BOTÕES ===== */
.btn-primary {
  background-color: #3b8bc9;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
}

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

.btn-secondary {
  background-color: #2c5282;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #1e3a5f;
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

/* ===== RODAPÉ ===== */
.footer {
  background-color: #2c5282;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

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

.footer-col h4 {
  color: #3b8bc9;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #3b8bc9;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PÁGINA DE PRODUTO ===== */
.product-page {
  padding: 40px 0;
}

.breadcrumb {
  margin-bottom: 30px;
  color: #666;
}

.breadcrumb a {
  color: #3b8bc9;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== MENU DE TIPOS DE PRODUTO ===== */
.product-types-menu {
  margin-bottom: 40px;
}

.types-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.types-container::-webkit-scrollbar {
  display: none;
}

.type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.type-option:hover {
  border-color: #3b8bc9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 139, 201, 0.2);
}

.type-option.active {
  border-color: #3b8bc9;
  background-color: #f0f9ff;
}

.type-option img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.type-option span {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  line-height: 1.2;
}

.type-option.active span {
  color: #3b8bc9;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-images {
  display: flex;
  gap: 10px;
}

.thumbnail-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail-images img:hover {
  border-color: #3b8bc9;
}

.product-info h1 {
  color: #2c5282;
  font-size: 28px;
  margin-bottom: 15px;
}

.product-rating {
  margin-bottom: 20px;
}

.stars {
  color: #ffc107;
  font-size: 18px;
}

.rating-count {
  color: #666;
  margin-left: 10px;
}

.product-price {
  margin-bottom: 30px;
}

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

.price-current {
  font-size: 36px;
  color: #3b8bc9;
  font-weight: bold;
}

.product-description {
  margin-bottom: 30px;
}

.product-description h3 {
  color: #2c5282;
  margin-bottom: 15px;
}

.product-description h4 {
  color: #2c5282;
  margin: 20px 0 10px;
}

.product-description ul {
  margin-left: 20px;
  color: #555;
}

.product-description li {
  margin-bottom: 8px;
}

.product-options {
  margin-bottom: 30px;
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.option-group select,
.option-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

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

/* ===== SEÇÃO DE AVALIAÇÕES ===== */
.reviews-section {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
}

.reviews-section h2 {
  color: #2c5282;
  margin-bottom: 30px;
}

.review-summary {
  margin-bottom: 40px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 12px;
  text-align: center;
}

.rating-average {
  display: inline-block;
}

.rating-number {
  font-size: 48px;
  font-weight: bold;
  color: #3b8bc9;
  display: block;
}

.stars-large {
  font-size: 24px;
  color: #ffc107;
  margin: 10px 0;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 600;
  color: #2c5282;
}

.review-stars {
  color: #ffc107;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-date {
  color: #999;
  font-size: 14px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    z-index: 1002;
  }

  .nav ul.active {
    display: flex;
  }

  .nav li {
    width: 100%;
    text-align: left;
  }

  .nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav a:hover {
    background-color: #f8f9fa;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    background-color: #f0f0f0;
    border-top: none;
    width: 100%;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-menu li {
    border-left: 4px solid transparent;
  }

  .dropdown-menu a {
    padding: 12px 40px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
  }

  .dropdown-menu a:hover {
    background-color: #e0e0e0;
    border-left-color: #3b8bc9;
  }

  .slide-content {
    flex-direction: column;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .slide-content img,
  .slide-text {
    max-width: 100%;
  }

  .slide-text h2 {
    font-size: 24px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .product-actions {
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SISTEMA DE PESQUISA ===== */
.search-results-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  margin-top: 10px;
  border: 2px solid #3b8bc9;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.search-results-header h3 {
  margin: 0;
  color: #2c5282;
  font-size: 16px;
  font-weight: 600;
}

.close-search-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s;
}

.close-search-btn:hover {
  background-color: #e9ecef;
  color: #333;
}

.search-results-list {
  padding: 10px;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info h4 {
  margin: 0 0 5px 0;
  color: #2c5282;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.search-result-price {
  margin: 0;
  color: #3b8bc9;
  font-weight: 600;
  font-size: 13px;
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.no-results p {
  margin: 0;
  font-size: 14px;
}

/* ===== CARRINHO DE COMPRAS ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background-color: #f8f9fa;
}

.cart-header h3 {
  margin: 0;
  color: #2c5282;
  font-size: 18px;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.empty-cart {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.empty-cart p {
  margin: 0;
  font-size: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-info h4 {
  margin: 0 0 5px 0;
  color: #2c5282;
  font-size: 14px;
  font-weight: 600;
}

.item-info p {
  margin: 0 0 3px 0;
  color: #666;
  font-size: 12px;
}

.item-info small {
  color: #999;
  font-size: 11px;
}

.remove-item-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #dc3545;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.remove-item-btn:hover {
  background-color: #f8d7da;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
}

.send-order-btn {
  width: 100%;
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.send-order-btn:hover {
  background-color: #20c157;
}

/* Responsividade do carrinho */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .cart-header h3 {
    font-size: 16px;
  }
}

/* Responsividade para pesquisa */
@media (max-width: 768px) {
  .search-results-container {
    width: 95%;
    max-height: 80vh;
  }

  .search-result-item {
    padding: 12px;
  }

  .search-result-image {
    width: 50px;
    height: 50px;
  }

  .search-result-info h4 {
    font-size: 13px;
  }

  .search-result-price {
    font-size: 12px;
  }
}
