/* Estilos generales */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
  }
  
  .hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  }
  
  /* Galería de imágenes */
  .card-img-top {
    height: 220px;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
  }
  
  .main-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  
  .main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
  }
  
  .thumbnail-strip {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(to bottom, #ffffff 50%, #f8f9fa 100%);
  }
  
  .thumbnail-item {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
  }
  
  .thumbnail-item:hover,
  .thumbnail-item.active {
    opacity: 1;
    border-color: #0d6efd;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
  }
  
  /* Ribbon destacado */
  .ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
  }
  
  .ribbon span {
    position: absolute;
    width: 120px;
    padding: 5px 0;
    background: #dc3545;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    right: -25px;
    top: 18px;
    transform: rotate(45deg);
    text-transform: uppercase;
  }

  .ribbon_preventa {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
  }
  
  .ribbon_preventa span {
    position: absolute;
    width: 120px;
    padding: 5px 0;
    background: #10e934;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    right: -25px;
    top: 18px;
    transform: rotate(45deg);
    text-transform: uppercase;
  }
  
  /* Tipografía y espacios */
  .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .category-badges .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    margin: 2px;
    border-radius: 6px;
  }
  
  .bg-gradient-category {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
  }
  
  .admin-actions .btn-icon {
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s ease;
  }
  
  .admin-actions .btn-icon:hover {
    background: rgba(0,0,0,0.05);
  }
  
  .price-info .text-success {
    font-weight: 700;
    letter-spacing: -0.5px;
  }