/* ===============================================
   FULLER PINTO ECOMMERCE - ENHANCED STYLES
   Mejoras visuales manteniendo identidad de marca
   Optimizado para móviles y responsivo
   =============================================== */

/* ===== VARIABLES MEJORADAS ===== */
:root {
  /* Colores de marca Fuller Pinto */
  --fp-primary: #206725;
  --fp-primary-light: #2a7a2f;
  --fp-primary-dark: #1a5620;
  --fp-secondary: #103312;
  --fp-accent: #F95F09;
  --fp-success: #a3be4c;

  /* Gradientes */
  --fp-gradient-primary: linear-gradient(135deg, #206725 0%, #2a7a2f 100%);
  --fp-gradient-accent: linear-gradient(135deg, #F95F09 0%, #ff7a2d 100%);

  /* Sombras mejoradas */
  --fp-shadow-sm: 0 2px 8px rgba(32, 103, 37, 0.1);
  --fp-shadow-md: 0 4px 20px rgba(32, 103, 37, 0.15);
  --fp-shadow-lg: 0 8px 32px rgba(32, 103, 37, 0.2);
  --fp-shadow-hover: 0 12px 40px rgba(32, 103, 37, 0.25);

  /* Espaciado */
  --fp-spacing-xs: 0.5rem;
  --fp-spacing-sm: 1rem;
  --fp-spacing-md: 1.5rem;
  --fp-spacing-lg: 2rem;
  --fp-spacing-xl: 3rem;

  /* Border radius */
  --fp-radius-sm: 8px;
  --fp-radius-md: 12px;
  --fp-radius-lg: 16px;
  --fp-radius-xl: 24px;
}

/* ===== MEJORAS GENERALES ===== */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* ===== CORRECCIONES ESPECÍFICAS ===== */

/* Corrección del espaciado entre header y slider */
.fixed-top + div {
  margin-top: 0 !important;
}

/* Espaciado móvil corregido */
@media (max-width: 767px) {
  .row[style*="height: 25vh"] {
    height: 12vh !important;
  }
}

/* Espaciado escritorio corregido */
@media (min-width: 768px) {
  .d-none.d-sm-none.d-md-block[style*="height: 10vh"] {
    height: 8vh !important;
  }
}

/* ===== CORRECCIONES PARA CARDS DE PRODUCTOS ===== */

/* Contenedor principal de productos */
.product-item {
  padding: var(--fp-spacing-sm);
  border-radius: var(--fp-radius-md);
  background: white;
  box-shadow: var(--fp-shadow-sm);
  transition: all 0.3s ease;
  overflow: visible; /* Permite que los efectos bounce se vean completamente */
  margin-bottom: var(--fp-spacing-sm); /* Espacio para efectos hover */
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-hover);
}

/* Corrección del área de botones en las cards */
.product-item .button-area {
  padding: var(--fp-spacing-sm) var(--fp-spacing-sm) var(--fp-spacing-sm) !important;
}

/* Centrado del selector de cantidad */
.product-item .row.g-1.mt-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-item .col-3 {
  display: flex;
  justify-content: center;
}

.product-item .input-number {
  width: 100%;
  max-width: 60px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: var(--fp-radius-sm);
  padding: 0.25rem;
  font-size: 0.875rem;
}

/* Botones de la card mejorados */
.product-item .btn-cart {
  background: var(--fp-gradient-primary) !important;
  border: none !important;
  border-radius: var(--fp-radius-sm) !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.product-item .btn-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32, 103, 37, 0.3);
}

.product-item .btn-outline-dark {
  border: 1px solid var(--fp-primary) !important;
  color: var(--fp-primary) !important;
  border-radius: var(--fp-radius-sm) !important;
  padding: 0.5rem !important;
  transition: all 0.3s ease;
}

.product-item .btn-outline-dark:hover {
  background-color: var(--fp-primary) !important;
  color: white !important;
}

/* Overflow visible para carousels */
.products-carousel .swiper {
  overflow: visible;
  padding-top: var(--fp-spacing-sm);
  padding-bottom: var(--fp-spacing-lg);
}

.products-carousel .swiper-wrapper {
  padding-bottom: var(--fp-spacing-sm);
}

/* ===== CONTENEDORES MEJORADOS ===== */
.container-lg {
  padding-left: var(--fp-spacing-sm);
  padding-right: var(--fp-spacing-sm);
}

@media (min-width: 768px) {
  .container-lg {
    padding-left: var(--fp-spacing-md);
    padding-right: var(--fp-spacing-md);
  }
}

/* ===== SECCIONES MEJORADAS ===== */
section {
  padding: var(--fp-spacing-lg) 0;
}

.section-title {
  font-weight: 700;
  color: var(--fp-primary);
  margin-bottom: var(--fp-spacing-md);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--fp-gradient-primary);
  border-radius: 2px;
}

/* ===== BOTONES MEJORADOS ===== */
.btn {
  border-radius: var(--fp-radius-sm);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--fp-gradient-primary);
  border: none;
  box-shadow: var(--fp-shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--fp-shadow-md);
}

/* Botones amarillos para swiper */
.btn-yellow {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: var(--fp-primary);
  border: none;
  font-weight: 600;
  box-shadow: var(--fp-shadow-sm);
}

.btn-yellow:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
  transform: translateY(-1px);
  box-shadow: var(--fp-shadow-md);
}

/* ===== PRODUCTOS MEJORADOS ===== */
.product-item {
  background: white;
  border-radius: var(--fp-radius-lg);
  padding: var(--fp-spacing-md);
  margin-bottom: var(--fp-spacing-lg);
  box-shadow: var(--fp-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--fp-gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-item:hover::before {
  transform: scaleX(1);
}

.product-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--fp-shadow-hover);
}

.product-item figure {
  margin-bottom: var(--fp-spacing-md);
  position: relative;
  overflow: hidden;
  border-radius: var(--fp-radius-md);
}

.product-item figure img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover figure img {
  transform: scale(1.05);
}

/* Ribbon de descuento mejorado */
.discount-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--fp-gradient-accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--fp-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--fp-shadow-sm);
  z-index: 2;
}

/* Área de botones mejorada */
.product-item .button-area {
  background: white;
  border-radius: var(--fp-radius-md);
  padding: var(--fp-spacing-sm);
  box-shadow: var(--fp-shadow-md);
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover .button-area {
  transform: translateY(0);
  opacity: 1;
}

/* ===== CATEGORÍAS MEJORADAS ===== */
.category-carousel .swiper-slide {
  text-align: center;
  transition: all 0.3s ease;
}

.category-carousel .swiper-slide:hover {
  transform: translateY(-5px);
}

.category-carousel img {
  border-radius: 50%;
  border: 4px solid var(--fp-primary);
  transition: all 0.3s ease;
  box-shadow: var(--fp-shadow-sm);
}

.category-carousel .swiper-slide:hover img {
  box-shadow: var(--fp-shadow-lg);
  border-color: var(--fp-accent);
}

.category-title {
  font-weight: 600;
  color: var(--fp-primary);
  margin-top: var(--fp-spacing-sm);
}

/* ===== CAROUSELES MEJORADOS ===== */
.swiper-prev, .swiper-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--fp-primary);
  border: 2px solid var(--fp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--fp-shadow-md);
  transition: all 0.3s ease;
}

.swiper-prev:hover, .swiper-next:hover {
  background: var(--fp-primary);
  color: white;
  transform: scale(1.1);
}

/* ===== BANNERS MEJORADOS ===== */
.banner-blocks {
  gap: var(--fp-spacing-md);
}

.banner-ad {
  border-radius: var(--fp-radius-xl);
  overflow: hidden;
  box-shadow: var(--fp-shadow-lg);
  transition: all 0.3s ease;
  position: relative;
}

.banner-ad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(32, 103, 37, 0.1), rgba(249, 95, 9, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner-ad:hover::before {
  opacity: 1;
}

.banner-ad:hover {
  transform: scale(1.02);
}

/* ===== CARDS DE SERVICIOS MEJORADAS ===== */
.card {
  border: none;
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-sm);
  transition: all 0.3s ease;
  background: white;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--fp-shadow-lg);
}

.card svg {
  color: var(--fp-primary);
  transition: all 0.3s ease;
}

.card:hover svg {
  color: var(--fp-accent);
  transform: scale(1.1);
}

/* ===== WHATSAPP BUTTON MEJORADO ===== */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-icon a {
  display: block;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--fp-shadow-lg);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-icon a:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* PRELOADER ANTIGUO - OCULTO TEMPORALMENTE */
.preloader-wrapper {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.preloader {
  display: none !important;
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--fp-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVO MÓVIL MEJORADO ===== */
@media (max-width: 768px) {
  :root {
    --fp-spacing-sm: 0.75rem;
    --fp-spacing-md: 1rem;
    --fp-spacing-lg: 1.5rem;
    --fp-spacing-xl: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-item {
    padding: var(--fp-spacing-sm);
    margin-bottom: var(--fp-spacing-md);
  }

  .product-item .button-area {
    position: static;
    transform: none;
    opacity: 1;
    margin-top: var(--fp-spacing-sm);
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .whatsapp-icon {
    bottom: 80px;
    right: 15px;
  }

  .whatsapp-icon a {
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon img {
    width: 28px;
    height: 28px;
  }

  .banner-blocks {
    grid-template-columns: 1fr;
    gap: var(--fp-spacing-sm);
  }

  .swiper-prev, .swiper-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states mejorados */
.btn:focus,
.product-item:focus-within {
  outline: 2px solid var(--fp-accent);
  outline-offset: 2px;
}

/* ===== UTILIDADES ===== */
.text-gradient {
  background: var(--fp-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: var(--fp-shadow-lg);
}

/* ===== CORRECCIONES FINALES ESPECÍFICAS ===== */

/* Eliminar espacios extra entre header y carousel - CORRECCIÓN DEFINITIVA */
app-header + div[style*="height"] {
  display: none !important;
}

/* Espaciado específico para móviles - OCULTAR COMPLETAMENTE */
.row[style*="height: 25vh"],
.row[style*="height: 30vh"],
.row[style*="height: 33vh"] {
  display: none !important;
}

/* Espaciado específico para escritorio - OCULTAR COMPLETAMENTE */
.d-none.d-sm-none.d-md-block[style*="height"] {
  display: none !important;
}

/* Corrección para que el carousel esté pegado al header */
app-carousel,
.carousel,
.carousel-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Header fijo mejorado */
header.fixed-top,
app-header.fixed-top {
  background: white !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
  z-index: 1030;
}

/* ===== BUSCADOR MEJORADO ===== */

/* Contenedor principal del buscador */
.search-bar {
  background: #f8f9fa !important;
  border: 2px solid transparent;
  border-radius: var(--fp-radius-lg) !important;
  padding: 0.75rem 1rem !important;
  box-shadow: var(--fp-shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.search-bar:focus-within {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 4px rgba(32, 103, 37, 0.1), var(--fp-shadow-md);
  transform: translateY(-1px);
}

/* Input del buscador mejorado */
.search-bar .form-control {
  border: none !important;
  background: transparent !important;
  font-size: 1rem;
  padding: 0.5rem 0;
  color: #333;
  font-weight: 500;
}

.search-bar .form-control:focus {
  outline: none !important;
  box-shadow: none !important;
}

.search-bar .form-control::placeholder {
  color: #666;
  font-weight: 400;
}

/* Icono de búsqueda mejorado */
.search-bar .col-1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar svg {
  color: var(--fp-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-bar svg:hover {
  color: var(--fp-primary-dark);
  transform: scale(1.1);
}

/* ===== RESULTADOS DE BÚSQUEDA MEJORADOS ===== */

.search-results {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: 400px !important;
  overflow-y: auto !important;
  background: white !important;
  border: none !important;
  border-radius: var(--fp-radius-lg) !important;
  box-shadow: var(--fp-shadow-lg) !important;
  z-index: 1050 !important;
  scrollbar-width: thin;
  scrollbar-color: var(--fp-primary) #f1f1f1;
}

/* Scrollbar personalizado para WebKit */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--fp-primary);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: var(--fp-primary-dark);
}

/* Items de resultados mejorados */
.search-result-item {
  display: flex !important;
  align-items: center !important;
  padding: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border-bottom: 1px solid #f0f0f0;
}

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

.search-result-item:hover {
  background: linear-gradient(90deg, rgba(32, 103, 37, 0.05) 0%, transparent 100%) !important;
  padding-left: 1.25rem !important;
}

/* Imagen del producto en resultados */
.search-result-item .product-image {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: var(--fp-radius-sm) !important;
  margin-right: 1rem !important;
  box-shadow: var(--fp-shadow-sm);
  transition: transform 0.3s ease;
}

.search-result-item:hover .product-image {
  transform: scale(1.05);
}

/* Información del producto en resultados */
.search-result-item .product-info {
  flex: 1 !important;
}

.search-result-item .product-info b {
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  color: #333 !important;
  font-weight: 600 !important;
  display: block;
  margin-bottom: 0.25rem;
}

.search-result-item .product-info p {
  color: #666 !important;
  line-height: 1.3 !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Precio destacado */
.search-result-item .product-info b {
  background: linear-gradient(90deg, var(--fp-primary) 0%, var(--fp-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsividad del buscador */
@media (max-width: 768px) {
  .search-bar {
    margin: 0 !important;
    border-radius: var(--fp-radius-md) !important;
  }

  .search-results {
    max-height: 300px !important;
  }

  .search-result-item {
    padding: 0.75rem !important;
  }

  .search-result-item .product-image {
    width: 50px !important;
    height: 50px !important;
  }
}

@media (max-width: 576px) {
  .search-bar .form-control {
    font-size: 0.9rem;
  }

  .search-result-item .product-info b {
    font-size: 0.85rem !important;
  }

  .search-result-item .product-info p {
    font-size: 0.75rem !important;
  }
}

/* Corrección de overflow en carousels para efectos bounce */
.swiper-container,
.swiper {
  overflow: visible !important;
  padding: var(--fp-spacing-md) 0;
}

.swiper-wrapper {
  overflow: visible !important;
}

.swiper-slide {
  overflow: visible !important;
}

/* Ajustes específicos para las cards de productos */
.product-item figure {
  margin-bottom: var(--fp-spacing-sm);
  overflow: hidden;
  border-radius: var(--fp-radius-md);
}

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

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

/* ===== PRODUCTOS - ÁREA DE BOTONES COMPLETAMENTE RENOVADA ===== */

/* Área de botones moderna y funcional */
.product-item .button-area {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  padding: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin: 8px !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-item .button-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(32, 103, 37, 0.1), transparent);
  transition: left 0.5s ease;
}

.product-item:hover .button-area::before {
  left: 100%;
}

/* Layout de botones perfecto */
.product-item .button-area .row {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.product-item .button-area .col-3,
.product-item .button-area .col-7,
.product-item .button-area .col-2 {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
}

/* ===== SELECTOR DE CANTIDAD MODERNO ===== */
.product-item .col-3 {
  width: auto !important;
  flex: 0 0 100px !important;
}

.product-item .input-group {
  background: #f8f9fa !important;
  border-radius: 20px !important;
  border: 2px solid rgba(32, 103, 37, 0.2) !important;
  overflow: hidden !important;
  width: 100px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.3s ease !important;
}

.product-item .input-group:hover {
  border-color: var(--fp-primary) !important;
  box-shadow: 0 0 0 2px rgba(32, 103, 37, 0.1) !important;
}

.product-item .btn-outline-secondary {
  background: var(--fp-primary) !important;
  border: none !important;
  color: white !important;
  width: 28px !important;
  height: 32px !important;
  border-radius: 50% !important;
  margin: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 6px rgba(32, 103, 37, 0.3) !important;
}

.product-item .btn-outline-secondary:hover {
  background: var(--fp-primary-dark) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(32, 103, 37, 0.4) !important;
}

.product-item .form-control {
  border: none !important;
  background: transparent !important;
  text-align: center !important;
  font-weight: 700 !important;
  color: var(--fp-primary) !important;
  font-size: 0.9rem !important;
  width: 44px !important;
  height: 32px !important;
  padding: 0 !important;
}

.product-item .form-control:focus {
  box-shadow: none !important;
  background: transparent !important;
}

/* ===== BOTÓN AÑADIR AL CARRITO MODERNO ===== */
.product-item .col-7 {
  flex: 1 !important;
  margin: 0 8px !important;
}

.product-item .btn-primary {
  background: var(--fp-gradient-primary) !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: white !important;
  height: 36px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-item .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.product-item .btn-primary:hover::before {
  left: 100%;
}

.product-item .btn-primary:hover {
  background: var(--fp-primary-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(32, 103, 37, 0.4) !important;
}

/* ===== BOTÓN VER PRODUCTO MODERNO ===== */
.product-item .col-2 {
  width: auto !important;
  flex: 0 0 36px !important;
}

.product-item .btn-outline-dark {
  background: white !important;
  border: 2px solid var(--fp-primary) !important;
  color: var(--fp-primary) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-item .btn-outline-dark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--fp-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.product-item .btn-outline-dark:hover::before {
  width: 100%;
  height: 100%;
}

.product-item .btn-outline-dark:hover {
  color: white !important;
  border-color: var(--fp-primary) !important;
  transform: scale(1.1) rotate(360deg) !important;
  box-shadow: 0 6px 20px rgba(32, 103, 37, 0.3) !important;
}

/* Responsive para productos */
@media (max-width: 768px) {
  .product-item .button-area {
    padding: 10px !important;
    margin: 6px !important;
  }

  .product-item .input-group {
    width: 85px !important;
    height: 32px !important;
  }

  .product-item .btn-primary {
    height: 32px !important;
    font-size: 0.7rem !important;
    padding: 6px 12px !important;
  }

  .product-item .btn-outline-dark {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Corrección del título de producto */
.product-item h3 {
  margin-bottom: var(--fp-spacing-xs);
  font-size: 0.9rem;
  line-height: 1.3;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Rating y precio alineados */
.product-item .rating {
  margin-bottom: var(--fp-spacing-xs);
}

/* Corrección del precio */
.product-item .text-dark.fw-semibold {
  font-size: 1rem;
  color: var(--fp-primary) !important;
}

/* Precio tachado */
.product-item del {
  font-size: 0.85rem;
  color: #999;
}

/* ===== APLICACIÓN GLOBAL DE ESTILOS ===== */

/* ===== HEADER Y NAVEGACIÓN MEJORADOS ===== */

/* Header principal */
header {
  background: white !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
  transition: all 0.3s ease;
}

/* Logo mejorado */
header .img-fluid {
  max-height: 45px;
  transition: transform 0.3s ease;
}

header .img-fluid:hover {
  transform: scale(1.05);
}

/* Botón menú hamburguesa mejorado */
.navbar-toggler {
  border: 2px solid var(--fp-primary) !important;
  border-radius: var(--fp-radius-sm) !important;
  padding: 0.5rem !important;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background-color: var(--fp-primary) !important;
  color: white !important;
}

.navbar-toggler svg {
  color: var(--fp-primary);
  transition: color 0.3s ease;
}

.navbar-toggler:hover svg {
  color: white;
}

/* Enlaces de navegación mejorados */
.nav-link {
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
  position: relative;
}

.nav-link:hover {
  color: var(--fp-primary) !important;
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--fp-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Iconos del header mejorados */
.list-unstyled li a {
  transition: all 0.3s ease !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
}

.list-unstyled li a:hover {
  background-color: var(--fp-primary) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--fp-shadow-md) !important;
}

.list-unstyled li a svg {
  transition: all 0.3s ease;
}

/* Badge del carrito mejorado */
.badge.bg-danger {
  background: var(--fp-gradient-accent) !important;
  font-size: 0.7rem !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: var(--fp-shadow-sm);
}

/* ===== MEJORAS EN NAVEGACIÓN GLOBAL ===== */
.navbar {
  box-shadow: var(--fp-shadow-sm);
  background: white !important;
}

/* Offcanvas mejorado */
.offcanvas {
  box-shadow: var(--fp-shadow-lg);
  border: none;
}

.offcanvas-header {
  background: var(--fp-gradient-primary);
  color: white;
  border-radius: 0;
}

.offcanvas-body {
  padding: var(--fp-spacing-md);
}

.offcanvas .nav-link {
  padding: var(--fp-spacing-sm);
  border-radius: var(--fp-radius-sm);
  margin-bottom: 0.25rem;
}

.offcanvas .nav-link:hover {
  background-color: rgba(32, 103, 37, 0.1);
  color: var(--fp-primary) !important;
}

/* ===== BOTONES GLOBALES MEJORADOS ===== */
.btn {
  font-weight: 500;
  border-radius: var(--fp-radius-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--fp-gradient-primary) !important;
  border: none !important;
  color: white !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--fp-shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--fp-primary) !important;
  color: var(--fp-primary) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--fp-primary) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Botones de acción secundarios */
.btn-secondary {
  background: #6c757d !important;
  border: none !important;
}

.btn-success {
  background: var(--fp-success) !important;
  border: none !important;
}

/* ===== CARDS GLOBALES MEJORADAS ===== */
.card {
  border: none;
  box-shadow: var(--fp-shadow-sm);
  border-radius: var(--fp-radius-md);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--fp-shadow-md);
  transform: translateY(-4px);
}

.card-header {
  background: var(--fp-gradient-primary);
  color: white;
  border: none;
  padding: var(--fp-spacing-md);
}

.card-body {
  padding: var(--fp-spacing-md);
}

.card-footer {
  background: #f8f9fa;
  border: none;
  padding: var(--fp-spacing-md);
}

/* ===== FORMULARIOS GLOBALES MEJORADOS ===== */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--fp-radius-sm);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 0.2rem rgba(32, 103, 37, 0.15);
  transform: translateY(-1px);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Select mejorado */
.form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--fp-radius-sm);
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 0.2rem rgba(32, 103, 37, 0.15);
}

/* Checkbox y radio mejorados */
.form-check-input {
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: var(--fp-primary);
  border-color: var(--fp-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(32, 103, 37, 0.15);
}

/* ===== ELEMENTOS DE FEEDBACK ===== */

/* Alerts mejorados */
.alert {
  border: none;
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
  padding: var(--fp-spacing-md);
}

.alert-success {
  background-color: rgba(163, 190, 76, 0.1);
  color: #5d7c0b;
  border-left: 4px solid var(--fp-success);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #842029;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #664d03;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  color: #055160;
  border-left: 4px solid #0dcaf0;
}

/* Tooltips mejorados */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  background-color: var(--fp-secondary);
  border-radius: var(--fp-radius-sm);
  padding: 0.5rem 0.75rem;
}

/* Modals mejorados */
.modal-content {
  border: none;
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--fp-gradient-primary);
  color: white;
  border: none;
  padding: var(--fp-spacing-md) var(--fp-spacing-lg);
}

.modal-body {
  padding: var(--fp-spacing-lg);
}

.modal-footer {
  border: none;
  padding: var(--fp-spacing-md) var(--fp-spacing-lg);
  background: #f8f9fa;
}

/* Contenedores principales */
.container,
.container-lg,
.container-fluid {
  padding-left: var(--fp-spacing-sm);
  padding-right: var(--fp-spacing-sm);
}

@media (min-width: 768px) {
  .container,
  .container-lg,
  .container-fluid {
    padding-left: var(--fp-spacing-md);
    padding-right: var(--fp-spacing-md);
  }
}

/* ===== ESTILOS ADICIONALES PARA COMPONENTES ESPECÍFICOS ===== */

/* ===== MENÚ OFFCANVAS COMPLETAMENTE REVOLUCIONARIO ===== */

/* Offcanvas principal con diseño futurista */
.offcanvas {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
  box-shadow: 0 0 50px rgba(32, 103, 37, 0.3) !important;
  border: none !important;
  position: relative !important;
  overflow: hidden !important;
}

.offcanvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 103, 37, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(249, 95, 9, 0.2) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: menuGlow 8s ease-in-out infinite;
}

@keyframes menuGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Header del menú con efecto holográfico */
.offcanvas-header {
  background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-accent) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 2rem !important;
  position: relative !important;
  z-index: 2 !important;
  overflow: hidden !important;
  color: white !important;
}

.offcanvas-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: holographic 4s linear infinite;
}

@keyframes holographic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.offcanvas-title {
  color: white !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(32, 103, 37, 0.3),
    0 0 30px rgba(32, 103, 37, 0.2) !important;
  z-index: 3 !important;
  position: relative !important;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(32, 103, 37, 0.3); }
  to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(32, 103, 37, 0.5); }
}

/* Botón de cerrar futurista */
.offcanvas .btn-close {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  filter: invert(1) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 3 !important;
}

.offcanvas .btn-close:hover {
  background: rgba(231, 76, 60, 0.8) !important;
  transform: rotate(180deg) scale(1.1) !important;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.5) !important;
}

/* Cuerpo del menú */
.offcanvas-body {
  padding: 2rem !important;
  background: transparent !important;
  position: relative !important;
  z-index: 2 !important;
}

/* ===== NAVEGACIÓN FUTURISTA ===== */
.offcanvas .navbar-nav {
  gap: 0 !important;
  width: 100% !important;
}

.offcanvas .nav-item {
  margin-bottom: 0.5rem !important;
  position: relative !important;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 1rem 1.5rem !important;
  border-radius: 15px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.offcanvas .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(32, 103, 37, 0.8), transparent);
  transition: left 0.5s ease;
}

.offcanvas .nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fp-gradient-primary);
  transition: width 0.4s ease;
  transform: translateY(-50%);
}

.offcanvas .nav-link:hover {
  color: white !important;
  background: rgba(32, 103, 37, 0.3) !important;
  border-color: rgba(32, 103, 37, 0.5) !important;
  transform: translateX(10px) !important;
  box-shadow:
    0 10px 30px rgba(32, 103, 37, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.offcanvas .nav-link:hover::before {
  left: 100%;
}

.offcanvas .nav-link:hover::after {
  width: 100%;
}

/* Estados activos */
.offcanvas .nav-link.active {
  background: var(--fp-gradient-primary) !important;
  color: white !important;
  border-color: var(--fp-primary) !important;
  box-shadow:
    0 0 20px rgba(32, 103, 37, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Responsive para el menú */
@media (max-width: 768px) {
  .offcanvas-header {
    padding: 1.5rem !important;
  }

  .offcanvas-body {
    padding: 1.5rem !important;
  }

  .offcanvas .nav-link {
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .offcanvas-title {
    font-size: 1.2rem !important;
  }
}

/* Categorías mejoradas */
.category-carousel .swiper-slide {
  transition: all 0.3s ease;
}

.category-carousel .swiper-slide:hover {
  transform: translateY(-4px);
}

.category-carousel img {
  transition: transform 0.3s ease;
  box-shadow: var(--fp-shadow-sm);
}

.category-carousel img:hover {
  transform: scale(1.05);
  box-shadow: var(--fp-shadow-md);
}

/* ===== BANNER BLOCKS CORREGIDO ===== */
/* Grid layout con 1 imagen grande izquierda y 2 pequeñas derecha */
.banner-blocks {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--fp-spacing-md);
  min-height: 400px;
}

/* Imagen grande izquierda - ocupa 2 filas */
.banner-blocks .block-1 {
  grid-area: 1 / 1 / 3 / 8;
}

/* Imagen pequeña superior derecha */
.banner-blocks .block-2 {
  grid-area: 1 / 8 / 2 / 13;
}

/* Imagen pequeña inferior derecha */
.banner-blocks .block-3 {
  grid-area: 2 / 8 / 3 / 13;
}

.banner-blocks .banner-ad {
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
  box-shadow: var(--fp-shadow-sm);
  transition: all 0.3s ease;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 180px;
}

.banner-blocks .banner-ad.large {
  min-height: 100%;
}

.banner-blocks .banner-ad:hover {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-md);
}

/* Responsive para banner blocks */
@media screen and (max-width: 1140px) {
  .banner-blocks {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: var(--fp-spacing-md);
  }

  .banner-blocks .block-1 {
    grid-area: 1 / 1 / 2 / 2;
    min-height: 250px;
  }

  .banner-blocks .block-2 {
    grid-area: 2 / 1 / 3 / 2;
    min-height: 180px;
  }

  .banner-blocks .block-3 {
    grid-area: 3 / 1 / 4 / 2;
    min-height: 180px;
  }
}

@media screen and (max-width: 768px) {
  .banner-blocks {
    gap: var(--fp-spacing-sm);
  }

  .banner-blocks .banner-ad {
    min-height: 150px;
  }

  .banner-blocks .block-1 {
    min-height: 200px;
  }
}

/* WhatsApp button mejorado */
.whatsapp-icon {
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}

.whatsapp-icon a {
  background: #25D366;
  border-radius: 50%;
  padding: var(--fp-spacing-sm);
  box-shadow: var(--fp-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Carrito mejorado */
.offcanvas-cart {
  box-shadow: var(--fp-shadow-lg);
}

/* Subscribe section */
.subscribe-section {
  background: var(--fp-gradient-primary);
  border-radius: var(--fp-radius-xl);
  margin: var(--fp-spacing-xl) 0;
}

/* Footer mejorado */
footer {
  background: var(--fp-secondary);
  color: white;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

/* Breadcrumbs mejorados */
.breadcrumb {
  background: transparent;
  padding: var(--fp-spacing-sm) 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--fp-primary);
}

/* Paginación mejorada */
.pagination .page-link {
  border: 1px solid var(--fp-primary);
  color: var(--fp-primary);
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: var(--fp-primary);
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: var(--fp-primary);
  border-color: var(--fp-primary);
}

/* Alerts mejorados */
.alert {
  border: none;
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
}

/* Forms mejorados */
.form-control {
  border: 1px solid #ddd;
  border-radius: var(--fp-radius-sm);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 0.2rem rgba(32, 103, 37, 0.25);
}

/* Modals mejorados */
.modal-content {
  border: none;
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-lg);
}

.modal-header {
  background: var(--fp-gradient-primary);
  color: white;
  border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0;
}

/* Tooltips mejorados */
.tooltip {
  font-size: 0.875rem;
}

.tooltip-inner {
  background-color: var(--fp-secondary);
  border-radius: var(--fp-radius-sm);
}

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

.spinner-border {
  color: var(--fp-primary);
}

/* Responsive utilities */
@media (max-width: 575px) {
  .container,
  .container-lg {
    padding-left: var(--fp-spacing-xs);
    padding-right: var(--fp-spacing-xs);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* ===== ANIMACIONES DE ENTRADA ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== GRID DE PRODUCTOS MEJORADO ===== */
.product-grid {
  gap: var(--fp-spacing-md);
}

@media (max-width: 576px) {
  .product-grid {
    gap: var(--fp-spacing-sm);
  }
}

/* ===== RATINGS MEJORADOS ===== */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating svg {
  transition: color 0.2s ease;
}

/* ===== PRECIO MEJORADO ===== */
.price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fp-spacing-xs);
  margin: var(--fp-spacing-sm) 0;
}

.price-current {
  font-weight: 700;
  color: var(--fp-primary);
  font-size: 1.25rem;
}

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

/* ===== BLOG CARDS MEJORADAS ===== */
.post-item {
  transition: all 0.3s ease;
  border-radius: var(--fp-radius-lg);
  overflow: hidden;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--fp-shadow-lg);
}

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

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

.zoom-effect {
  overflow: hidden;
  border-radius: var(--fp-radius-md);
}

/* ===== NEWSLETTER MEJORADO ===== */
.newsletter-section {
  background: var(--fp-gradient-primary);
  border-radius: var(--fp-radius-xl);
  padding: var(--fp-spacing-xl);
  color: white;
  text-align: center;
}

/* ===== BREADCRUMBS MEJORADOS ===== */
.breadcrumb {
  background: none;
  padding: var(--fp-spacing-sm) 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--fp-primary);
  font-weight: 600;
}

/* ===== CORRECCIONES ESPECÍFICAS DE FOOTER Y CARRITO ===== */

/* ===== FOOTER CORREGIDO ===== */

/* Footer principal - evitar que se "reviente" */
footer {
  background: var(--fp-secondary) !important;
  color: white !important;
  overflow: hidden;
}

footer .container-lg {
  max-width: 100% !important;
  padding: 0 var(--fp-spacing-md) !important;
}

/* Contenedores del footer */
footer .row {
  margin: 0 !important;
}

footer .col-lg-3,
footer .col-md-6,
footer .col-sm-6,
footer .col-md-2 {
  padding: var(--fp-spacing-sm) !important;
  word-wrap: break-word;
  overflow: hidden;
}

/* Logo del footer */
footer img[alt="logo"] {
  max-width: 180px !important;
  height: auto !important;
  margin-bottom: var(--fp-spacing-md);
}

/* Enlaces del footer */
footer .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.25rem 0 !important;
  transition: color 0.3s ease;
  font-size: 0.9rem !important;
  line-height: 1.4;
}

footer .nav-link:hover {
  color: white !important;
  padding-left: 0.5rem !important;
}

/* Títulos del footer */
footer .widget-title {
  color: white !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: var(--fp-spacing-md) !important;
  border-bottom: 2px solid var(--fp-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Redes sociales del footer */
footer .social-links .btn {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease;
}

footer .social-links .btn:hover {
  background: var(--fp-primary) !important;
  border-color: var(--fp-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--fp-shadow-md);
}

/* Suscripción del footer */
footer .form-control {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  border-radius: 0.5rem 0 0 0.5rem !important;
}

footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer .form-control:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--fp-primary) !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(32, 103, 37, 0.25) !important;
}

footer .btn-dark {
  background: var(--fp-primary) !important;
  border-color: var(--fp-primary) !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
}

footer .btn-dark:hover {
  background: var(--fp-primary-dark) !important;
  border-color: var(--fp-primary-dark) !important;
}

/* Footer bottom */
#footer-bottom {
  background: var(--fp-primary-dark) !important;
  padding: var(--fp-spacing-md) 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-bottom .copyright {
  text-align: center !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
}

/* Imagen de vigilado */
footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.7rem !important;
  text-align: center !important;
  letter-spacing: 2px !important;
  margin-top: 0.5rem !important;
}

/* ===== CARRITO SIDEBAR COMPLETAMENTE RENOVADO ===== */

/* Offcanvas principal del carrito */
.offcanvas-end {
  width: 420px !important;
  max-width: 90vw !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%) !important;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
}

/* Header del carrito */
.offcanvas-header {
  background: var(--fp-gradient-primary) !important;
  color: white !important;
  border-bottom: none !important;
  padding: 1.5rem !important;
  position: relative !important;
  overflow: hidden !important;
}

.offcanvas-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.offcanvas-title {
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
  position: relative !important;
}

.btn-close {
  filter: invert(1) !important;
  opacity: 0.9 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  z-index: 2 !important;
  position: relative !important;
}

.btn-close:hover {
  opacity: 1 !important;
  transform: scale(1.1) rotate(90deg) !important;
  background: rgba(255,255,255,0.3) !important;
}

/* Alerts del carrito */
.offcanvas-header .alert {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  margin: 0 !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px) !important;
}

/* Items del carrito */
.offcanvas-body {
  padding: 1.5rem !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  background: transparent !important;
}

/* Cada item del carrito con diseño moderno */
.offcanvas-body .d-flex.align-items-center {
  background: white !important;
  border-radius: 16px !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  border: 1px solid rgba(32, 103, 37, 0.1) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.offcanvas-body .d-flex.align-items-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--fp-gradient-primary);
  transition: width 0.3s ease;
}

.offcanvas-body .d-flex.align-items-center:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(32, 103, 37, 0.15) !important;
}

.offcanvas-body .d-flex.align-items-center:hover::before {
  width: 8px;
}

/* Imagen del producto en carrito */
.offcanvas-body img {
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  max-width: 70px !important;
  height: 70px !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.offcanvas-body .d-flex.align-items-center:hover img {
  transform: scale(1.05);
}

/* Título del producto en carrito */
.offcanvas-body h6 {
  color: #2c3e50 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.5rem !important;
}

/* Precios en carrito */
.offcanvas-body .h6 span {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #666 !important;
}

.offcanvas-body .h6 span b {
  color: var(--fp-primary) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

/* ===== SELECTOR DE CANTIDAD MODERNO ===== */
.offcanvas-body .input-group {
  border: none !important;
  border-radius: 25px !important;
  overflow: hidden !important;
  max-width: 110px !important;
  height: 36px !important;
  background: #f8f9fa !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
  display: flex !important;
  align-items: center !important;
}

.offcanvas-body .btn-outline-secondary {
  border: none !important;
  background: var(--fp-primary) !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  margin: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(32, 103, 37, 0.3) !important;
}

.offcanvas-body .btn-outline-secondary:hover {
  background: var(--fp-primary-dark) !important;
  color: white !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(32, 103, 37, 0.4) !important;
}

.offcanvas-body .form-control {
  border: none !important;
  background: transparent !important;
  font-weight: 700 !important;
  color: var(--fp-primary) !important;
  width: 46px !important;
  height: 32px !important;
  text-align: center !important;
  font-size: 1rem !important;
  padding: 0 !important;
}

.offcanvas-body .form-control:focus {
  box-shadow: none !important;
  background: transparent !important;
}

/* Botón de eliminar mejorado */
.offcanvas-body .bi-trash {
  color: #e74c3c !important;
  font-size: 1.2rem !important;
  padding: 8px !important;
  border-radius: 50% !important;
  background: rgba(231, 76, 60, 0.1) !important;
  transition: all 0.3s ease !important;
}

.offcanvas-body .bi-trash:hover {
  color: white !important;
  background: #e74c3c !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

/* ===== FOOTER DEL CARRITO CORREGIDO ===== */

/* Footer del offcanvas - SUBTOTAL VISIBLE */
.offcanvas-header.flex-column:last-child {
  background: #f8f9fa !important;
  border-top: 1px solid #dee2e6 !important;
  color: #333 !important;
  padding: var(--fp-spacing-lg) !important;
}

/* Subtotal - TEXTO OSCURO Y VISIBLE */
.offcanvas-header.flex-column:last-child .text-light-emphasis {
  color: #333 !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
}

.offcanvas-header.flex-column:last-child .h4 {
  color: var(--fp-primary) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
}

/* Botón checkout */
.offcanvas-header.flex-column:last-child .btn-primary {
  background: var(--fp-gradient-primary) !important;
  border: none !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  transition: all 0.3s ease;
}

.offcanvas-header.flex-column:last-child .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--fp-shadow-md);
}

/* Responsividad del footer */
@media (max-width: 768px) {
  footer .col-lg-3,
  footer .col-md-6,
  footer .col-sm-6,
  footer .col-md-2 {
    margin-bottom: var(--fp-spacing-md) !important;
  }

  footer img[alt="logo"] {
    max-width: 150px !important;
  }

  .offcanvas-end {
    width: 320px !important;
  }
}

/* Scrollbar personalizado para carrito */
.offcanvas-body::-webkit-scrollbar {
  width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
  background: var(--fp-primary);
  border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: var(--fp-primary-dark);
}
