:root {
  --primary-color: #2a2e15;
  --secondary-color: #2b2f14;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --border-color: #e5e7eb;
}

/* Custom Bootstrap theme */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #2b2f14;
  border-color: #2b2f14;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 60vh;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer; /* Adicionado cursor pointer para indicar que o card é clicável */
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
  z-index: 10;
}

/* Product Cards Links */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Category Filter */
.btn-outline-primary.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Animations */
.product-item {
  transition: opacity 0.3s ease;
}

.product-item.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mega Menu Styles */
.mega-dropdown {
  position: static;
}

.mega-dropdown .mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  margin-top: 0;
  padding: 2rem 0;
}

.mega-dropdown .mega-menu .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.category-mega-item {
  display: block;
  transition: all 0.3s ease;
}

.category-mega-item:hover {
  transform: translateY(-3px);
}

.category-mega-img {
  height: 120px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.category-mega-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
  border-radius: 8px 8px 0 0;
}

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Sticky navbar */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .mega-dropdown .mega-menu {
    min-width: 100%;
    max-width: 100%;
  }

  .category-mega-img,
  .category-mega-placeholder {
    height: 100px;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Cart badge */
.badge {
  font-size: 0.7rem;
}

/* Banner Styles - Full Width */
.hero-banners {
  width: 100%;
  margin: 0;
  padding: 0;
}

.banner-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.banner-link:hover {
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

/* Simplificando estilos de banner para melhor compatibilidade */
.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Altura máxima para banners desktop
@media (min-width: 768px) {
  .banner-image {
    max-height: 600px;
  }
} */

/* Altura máxima para banners mobile */
@media (max-width: 767px) {
  .banner-image {
    max-height: 400px;
  }
}

/* Carousel controls para banners */
.hero-banners .carousel-control-prev,
.hero-banners .carousel-control-next {
  width: 5%;
  opacity: 0.7;
}

.hero-banners .carousel-control-prev:hover,
.hero-banners .carousel-control-next:hover {
  opacity: 1;
}

.hero-banners .carousel-indicators {
  margin-bottom: 1rem;
}

.hero-banners .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
}

.hero-banners .carousel-indicators button.active {
  background-color: var(--primary-color);
}

/* Category Cards */
.category-card {
  transition: all 0.3s ease;
  cursor: pointer; /* Adicionado cursor pointer para cards de categoria */
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Footer */
footer a:hover {
  color: var(--secondary-color) !important;
}
