/* Contenedor principal */
.product-carousel-wrapper {
  position: relative;
  padding: 0 5px;
  margin: 0 0px;
}

.custom-product-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-slides-container {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 12px;
  padding: 5px;
}

.product-slide-item {
  flex: 0 0 calc(50% - 6px);
  min-width: 0;
}

/* Tarjeta de producto moderna */
.modern-product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); /* más marcado */
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.modern-product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Sección de imagen */
.product-media-section {
  position: relative;
  padding: 12px 12px 0 12px;
}

.product-image-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-main-image {
  width: 80%;
  height: 90%; /* Reducido para móvil */
  object-fit: cover;
  transition: transform 0.3s ease;
  display: flex;
}

.modern-product-card:hover .product-main-image {
  transform: scale(1.05);
}

/* Badges y estados */
.product-status-badge {
  position: absolute;
  top: 20px;
  left: -25px;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  padding: 4px 25px;
  transform: rotate(-45deg);
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.product-discount-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #000000, #000000);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.product-new-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Panel de acciones rápidas */
.quick-actions-panel {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.modern-product-card:hover .quick-actions-panel {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.action-btn:hover {
  background: #ff9400; 
  color: white;
  transform: scale(1.1);
}

/* Sección de información */
.product-info-section {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #28a745;
  margin-bottom: 6px;
}

.delivery-info i {
  font-size: 9px;
}

.product-rating {
  margin-bottom: 8px;
}

.stars-rating {
  display: flex;
  gap: 2px;
}

.star {
  color: #dee2e6;
  font-size: 10px;
}

.star.filled {
  color: #ffc107;
}

.product-title {
  font-family: inherit;
  margin-bottom: 10px;
  flex: 1;
  color: #ff9400 !important;
}

.product-title a {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  color: #ff9400;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.product-title a:hover {
  color: #ff9400 !important;
}

/* Fila de precio y acción */
.product-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.current-price {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
}

.original-price {
  font-size: 11px;
  color: #a0aec0;
  text-decoration: line-through;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cart-btn {
  background: linear-gradient(135deg, #ff9400, #ff9400);
  color: white;
}

.cart-btn:hover {
  background: linear-gradient(135deg, #ff9400, #ff9400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.order-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.order-btn:hover {
  background: linear-gradient(135deg, #128c7e, #0c6b5e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Navegación del carousel */
.carousel-progress {
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  margin-top: 15px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9400, #ff9400);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #ff9400;
  transform: scale(1.2);
}

/* Responsividad mejorada */
@media (min-width: 480px) {
  .product-slide-item {
    flex: 0 0 calc(50% - 6px);
  }

  .product-main-image {
    height: 160px;
  }
}

@media (min-width: 768px) {
  .product-carousel-wrapper {
    padding: 0 15px;
    margin: 0 -15px;
  }

  .carousel-slides-container {
    gap: 16px;
    padding: 10px;
  }

  .product-slide-item {
    flex: 0 0 calc(25% - 12px);
  }

  .product-main-image {
    height: 250px;
  }

  .product-media-section {
    padding: 16px 16px 0 16px;
  }

  .product-info-section {
    padding: 16px;
  }

  .product-title a {
    font-family: inherit;
    font-size: 14px;
  }

  .action-button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .product-slide-item {
    flex: 0 0 calc(20% - 13px);
  }

  .product-main-image {
    height: 200px;
  }
}

@media (min-width: 1200px) {
  .product-slide-item {
    flex: 0 0 calc(20% - 13px);
  }

  .product-main-image {
    height: 220px;
  }
}

/* Estados de interacción táctil */
@media (hover: none) {
  .quick-actions-panel {
    opacity: 1;
    transform: translateX(0);
  }

  .modern-product-card:active {
    transform: scale(0.98);
  }
}
/* Contenedor principal */
.featured-products-grid-container {
  width: 100%;
  padding: 0 5px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.grid-product-item {
  animation: fadeInUp 0.6s ease-out;
}

.grid-product-item.hidden-product {
  display: none;
}

/* Tarjeta de producto */
.featured-product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-product-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Sección de imagen */
.product-media-area {
  position: relative;
  padding: 12px 12px 0 12px;
}

.product-img-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-grid-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-product-card:hover .product-grid-image {
  transform: scale(1.05);
}

/* Badges y estados */
.stock-status-badge {
  position: absolute;
  top: 20px;
  left: -25px;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  padding: 4px 25px;
  transform: rotate(-45deg);
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
}

.discount-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff9400, #ff9400);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.family-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #000000, #000000);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Panel de acciones rápidas */
.grid-actions-panel {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.featured-product-card:hover .grid-actions-panel {
  opacity: 1;
  transform: translateX(0);
}

.grid-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.grid-action-btn:hover {
  background: #ff9400;
  color: white;
  transform: scale(1.1);
}

/* Sección de información */
.product-details-area {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shipping-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #28a745;
  margin-bottom: 6px;
}

.shipping-info i {
  font-size: 9px;
}

.rating-stars {
  margin-bottom: 8px;
}

.stars-container {
  display: flex;
  gap: 2px;
}

.star-icon {
  color: #dee2e6;
  font-size: 10px;
}

.star-icon.filled {
  color: #ffc107;
}

.grid-product-title {
  font-family: inherit;
  margin-bottom: 10px;
  flex: 1;
}

.grid-product-title a {
  font-size: 13px;
  line-height: 1.3;
  color: #000000;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
  font-family: inherit;
}

.grid-product-title a:hover {
  color: #ff9400;
}

/* Fila de precio y acción */
.price-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.final-price {
  font-size: 14px;
  font-weight: 700;
  color: #833AB4;
}

.original-price-line {
  font-size: 11px;
  color: #a0aec0;
  text-decoration: line-through;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  width: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.add-cart-btn {
  background: linear-gradient(135deg, #ff9400, #ff9400);
  color: white;
}

.add-cart-btn:hover {
  background: linear-gradient(135deg, #ff9400, #ff9400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.whatsapp-order-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.whatsapp-order-btn:hover {
  background: linear-gradient(135deg, #128c7e, #0c6b5e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Botón Ver Más */
.load-more-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, #000000, #000000);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #000000, #000000);
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.product-count {
  font-size: 12px;
  opacity: 0.8;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .product-grid-image {
    height: 180px;
  }

  .product-media-area {
    padding: 16px 16px 0 16px;
  }

  .product-details-area {
    padding: 16px;
  }

  .grid-product-title a {
    font-size: 14px;
  }

  .action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .product-grid-image {
    height: 200px;
  }
}

@media (min-width: 1200px) {
  .featured-products-grid-container {
    padding: 0 20px;
  }
}

/* Estados de interacción táctil */
@media (hover: none) {
  .grid-actions-panel {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Efecto de carga */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

.simple-categories-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 15px 0;
}

.categories-scroll-container {
  width: 100%;
  overflow: hidden;
}

.categories-scroll-track {
  display: flex;
  gap: 15px;
  animation: scrollCategories 30s linear infinite;
  width: max-content;
}

.category-tag {
  flex: 0 0 auto;
  padding: 10px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  color: #495057;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-tag:hover {
  background: #833AB4;
  color: white;
  border-color: #833AB4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-tag.active {
  background: #833AB4;
  color: white;
  border-color: #833AB4;
}

/* Pausar animación al hacer hover */
.categories-scroll-container:hover .categories-scroll-track {
  animation-play-state: paused;
}

@keyframes scrollCategories {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .category-tag {
    padding: 8px 16px;
    font-size: 13px;
  }

  .categories-scroll-track {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .category-tag {
    padding: 6px 12px;
    font-size: 12px;
  }

  .categories-scroll-track {
    gap: 10px;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: inherit;
	font-weight: 700;
	color: #000000;
	line-height: 1.1;
	margin-top: 0;
	margin-bottom: 8px;
}