/* Grid de catálogo de productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive design para el grid */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }
}

/* Estilos para las tarjetas de producto */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  height: fit-content;
}

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

.product-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b6cb0;
  margin: 0 0 1rem 0;
}

.product-link {
  display: inline-block;
  background-color: #3182ce;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  width: 100%;
  transition: background-color 0.3s ease;
}

.product-link:hover {
  background-color: #2c5282;
  color: white;
  text-decoration: none;
}

/* Product Gallery - Image Carousel */
.product-gallery {
  position: relative;
}

.main-carousel {
  position: relative;
  overflow: hidden;
}

.main-carousel .item {
  display: none;
}

.main-carousel .item:first-child {
  display: block;
}

/* Estilos para las miniaturas */
.thumb-carousel {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 15px !important;
}

.thumb-carousel .item {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 auto !important;
  display: flex !important;
}

.thumb-carousel .item:hover,
.thumb-carousel .item.synced {
  opacity: 1;
  border-color: #007bff;
}

.thumb-carousel .item img {
  display: block;
  width: 100px;
  height: 80px;
  object-fit: cover;
}

/* Controles de navegación */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Responsive para móviles */
@media (max-width: 576px) {
  .thumb-carousel .item img {
    width: 70px;
    height: 60px;
  }
}