/* ==========================================================
   Collection Page - Professional Shopping Layout
   Diseño inspirado en páginas de e-commerce profesionales
   ========================================================== */

/* ========== SCROLL VERTICAL EN MÓVIL ========== */
/* Asegurar que el scroll vertical funcione en toda la página */
body {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

/* Permitir scroll vertical en contenedores */
.collection-main,
.container,
#gridColeccion {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

/* Permitir scroll vertical en imágenes */
img {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* Específico para imágenes de productos */
.product-card img,
#gridColeccion img,
.products-grid img {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
  /* Permitir que el scroll pase a través de la imagen */
  -webkit-overflow-scrolling: touch;
}

/* ========== LAYOUT PRINCIPAL ========== */
.collection-main {
  min-height: calc(100vh - 200px);
  padding: 20px 0;
}

/* ========== CONTROLES DE VISTA ========== */
.view-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.view-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.view-btn.active {
  background: #00e0ff;
  color: #000;
  border-color: #00e0ff;
}

/* ========== VISTA DE PRODUCTO INDIVIDUAL ========== */
.product-detail-header {
  margin-bottom: 20px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== GALERÍA DE IMÁGENES ========== */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-container {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 16px;
}

.gallery-nav.next {
  right: 16px;
}

.thumbnail-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.thumbnail-gallery::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: #00e0ff;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== INFORMACIÓN DEL PRODUCTO ========== */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 0;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-sku {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: monospace;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00e0ff;
}

.product-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.description-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.read-more-btn {
  background: none;
  border: none;
  color: #00e0ff;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
  align-self: flex-start;
  padding: 0;
}

.read-more-btn:hover {
  color: #00b8d4;
}

/* ========== OPCIONES DE COMPRA ========== */
.purchase-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.color-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #00e0ff;
  box-shadow: 0 0 0 2px rgba(0, 224, 255, 0.3);
}

.color-option::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
}

.size-selector {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 200px;
}

.size-selector:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.size-selector:focus {
  outline: none;
  border-color: #00e0ff;
  box-shadow: 0 0 0 2px rgba(0, 224, 255, 0.2);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 150px;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  font-weight: 600;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-btn.minus {
  border-radius: 8px 0 0 8px;
}

.qty-btn.plus {
  border-radius: 0 8px 8px 0;
}

.qty-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-right: none;
  color: #fff;
  text-align: center;
  width: 70px;
  height: 40px;
  font-size: 1rem;
  font-weight: 600;
}

.qty-input:focus {
  outline: none;
  border-color: #00e0ff;
}

/* ========== ACCIONES DE COMPRA ========== */
.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.btn-add-cart {
  background: linear-gradient(135deg, #00e0ff, #00b8d4);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  color: #000;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #00b8d4, #0097a7);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 224, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ========== NAVEGACIÓN ENTRE PRODUCTOS ========== */
.product-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========== GRID DE PRODUCTOS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Estilos para el contenedor de colección */
#gridColeccion {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

#gridColeccion .product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  /* Permitir scroll vertical en móvil */
  touch-action: manipulation;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

#gridColeccion .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#gridColeccion .product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #0e0e0e;
  /* Permitir scroll vertical en móvil */
  touch-action: manipulation;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#gridColeccion .product-card .meta {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#gridColeccion .product-card .meta strong {
  color: #e6e6e6;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

#gridColeccion .product-card .meta .price {
  color: #00e0ff;
  font-weight: 600;
  font-size: 1.2rem;
}

#gridColeccion .product-card .meta p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

#gridColeccion .product-card .cta-row {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

#gridColeccion .product-card .cta-row .btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

#gridColeccion .product-card .cta-row .btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.3);
}

.products-grid .product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.products-grid .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.products-grid .product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #0e0e0e;
}

.products-grid .product-card .meta {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.products-grid .product-card .meta strong {
  color: #e6e6e6;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
}

.products-grid .product-card .meta .price {
  color: #00e0ff;
  font-weight: 600;
  font-size: 1.2rem;
}

.products-grid .product-card .meta p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.products-grid .product-card .cta-row {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

.products-grid .product-card .cta-row .btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text, #fff);
  text-decoration: none;
  transition: all 0.2s ease;
}

.products-grid .product-card .cta-row .btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .product-price {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .collection-main {
    padding: 16px 0;
  }
  
  .product-detail-container {
    gap: 24px;
  }
  
  .product-title {
    font-size: 1.8rem;
  }
  
  .product-price {
    font-size: 1.3rem;
  }
  
  .purchase-actions {
    gap: 10px;
  }
  
  /* Grid de productos móvil */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }
  
  .products-grid .product-card {
    border-radius: 10px;
  }
  
  .products-grid .product-card img {
    height: 180px;
  }
  
  .products-grid .product-card .meta {
    padding: 12px;
    gap: 6px;
  }
  
  .products-grid .product-card .meta strong {
    font-size: 1rem;
  }
  
  .products-grid .product-card .meta .price {
    font-size: 1.1rem;
  }
  
  .products-grid .product-card .meta p {
    font-size: 0.85rem;
  }
  
  .products-grid .product-card .cta-row {
    padding: 0 12px 12px;
    gap: 6px;
  }
  
  .products-grid .product-card .cta-row .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .btn-add-cart,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  .product-navigation {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .thumbnail-gallery {
    gap: 6px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
  
  .color-selector {
    gap: 8px;
  }
  
  .color-option {
    width: 32px;
    height: 32px;
  }
  
  .quantity-selector {
    max-width: 120px;
  }
  
  /* Grid de productos móvil pequeño */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
  }
  
  .products-grid .product-card img {
    height: 160px;
  }
  
  .products-grid .product-card .meta {
    padding: 10px;
    gap: 4px;
  }
  
  .products-grid .product-card .meta strong {
    font-size: 0.95rem;
  }
  
  .products-grid .product-card .meta .price {
    font-size: 1rem;
  }
  
  .products-grid .product-card .meta p {
    font-size: 0.8rem;
  }
  
  .products-grid .product-card .cta-row {
    padding: 0 10px 10px;
    gap: 4px;
  }
  
  .products-grid .product-card .cta-row .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .qty-btn,
  .qty-input {
    height: 36px;
  }
  
  /* Responsive para #gridColeccion en móvil pequeño */
  #gridColeccion {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
  }
  
  #gridColeccion .product-card {
    /* Permitir scroll vertical en móvil pequeño */
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  
  #gridColeccion .product-card img {
    height: 160px;
    /* Permitir scroll vertical en móvil pequeño */
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  #gridColeccion .product-card .meta {
    padding: 10px;
    gap: 4px;
  }
  
  #gridColeccion .product-card .meta strong {
    font-size: 0.95rem;
  }
  
  #gridColeccion .product-card .meta .price {
    font-size: 1rem;
  }
  
  #gridColeccion .product-card .meta p {
    font-size: 0.8rem;
  }
  
  #gridColeccion .product-card .cta-row {
    padding: 0 10px 10px;
    gap: 4px;
  }
  
  #gridColeccion .product-card .cta-row .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  /* Grid de productos móvil muy pequeño */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  
  .products-grid .product-card img {
    height: 140px;
  }
  
  .products-grid .product-card .meta {
    padding: 8px;
    gap: 3px;
  }
  
  .products-grid .product-card .meta strong {
    font-size: 0.9rem;
  }
  
  .products-grid .product-card .meta .price {
    font-size: 0.95rem;
  }
  
  .products-grid .product-card .meta p {
    font-size: 0.75rem;
  }
  
  .products-grid .product-card .cta-row {
    padding: 0 8px 8px;
    gap: 3px;
  }
  
  .products-grid .product-card .cta-row .btn {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
  
  .qty-input {
    width: 50px;
  }
}

/* ========== UTILIDADES ========== */
.hidden {
  display: none !important;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-detail-view {
  animation: fadeIn 0.3s ease-out;
}

/* ========== ESTADOS DE CARGA ========== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #00e0ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========== VISTA DE LISTA ========== */
#gridColeccion.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: unset !important;
}

#gridColeccion.list-view .product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 16px !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}

#gridColeccion.list-view .product-card img {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

#gridColeccion.list-view .product-card .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 !important;
}

#gridColeccion.list-view .product-card .meta strong {
  color: #e6e6e6;
  font-size: 1.2rem;
  margin: 0;
}

#gridColeccion.list-view .product-card .meta .price {
  color: #00e0ff;
  font-weight: 600;
  font-size: 1.1rem;
}

#gridColeccion.list-view .product-card .meta p {
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.4;
}

#gridColeccion.list-view .product-card .cta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

#gridColeccion.list-view .product-card .cta-row .btn {
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.22);
  color: var(--text, #fff);
}

/* Responsive para vista de lista */
@media (max-width: 768px) {
  #gridColeccion.list-view .product-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  #gridColeccion.list-view .product-card img {
    width: 100% !important;
    height: 200px !important;
  }
  
  #gridColeccion.list-view .product-card .cta-row {
    min-width: auto;
    width: 100%;
  }
  
  /* Responsive para #gridColeccion */
  #gridColeccion {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }
  
  #gridColeccion .product-card {
    border-radius: 10px;
    /* Permitir scroll vertical en móvil */
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  
  #gridColeccion .product-card img {
    height: 180px;
    /* Permitir scroll vertical en móvil */
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  #gridColeccion .product-card .meta {
    padding: 12px;
    gap: 6px;
  }
  
  #gridColeccion .product-card .meta strong {
    font-size: 1rem;
  }
  
  #gridColeccion .product-card .meta .price {
    font-size: 1.1rem;
  }
  
  #gridColeccion .product-card .meta p {
    font-size: 0.85rem;
  }
  
  #gridColeccion .product-card .cta-row {
    padding: 0 12px 12px;
    gap: 6px;
  }
  
  #gridColeccion .product-card .cta-row .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* ========== ESTILOS ADICIONALES PARA VISTA DE LISTA ========== */
/* Forzar override de estilos de grid */
#gridColeccion.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  grid-auto-rows: unset !important;
}

#gridColeccion.list-view .product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 16px !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

#gridColeccion.list-view .product-card img {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

#gridColeccion.list-view .product-card .meta {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 0 !important;
}

#gridColeccion.list-view .product-card .meta strong {
  color: #e6e6e6 !important;
  font-size: 1.2rem !important;
  margin: 0 !important;
}

#gridColeccion.list-view .product-card .meta .price {
  color: #00e0ff !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
}

#gridColeccion.list-view .product-card .meta p {
  color: rgba(255,255,255,0.7) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

#gridColeccion.list-view .product-card .cta-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 120px !important;
}

#gridColeccion.list-view .product-card .cta-row .btn {
  padding: 8px 12px !important;
  border-radius: 10px !important;
  text-align: center !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: var(--text, #fff) !important;
}

/* ========== OVERRIDE FINAL PARA VISTA DE LISTA ========== */
/* Asegurar que la vista de lista funcione sin importar otros estilos */
body #gridColeccion.list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  grid-auto-rows: unset !important;
  grid-gap: unset !important;
  grid-column-gap: unset !important;
  grid-row-gap: unset !important;
}

body #gridColeccion.list-view .product-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 16px !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/* ========== ESTILOS DE ACCESIBILIDAD ========== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mejorar accesibilidad de botones */
.view-btn {
  position: relative;
}

/* ========== ESTILOS PARA VISTA DE COLECCIONES ========== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.collection-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.collection-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.collection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collection-card:hover .collection-overlay {
  opacity: 1;
}

.collection-overlay h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.collection-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.collection-overlay .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.collection-overlay .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.collection-info {
  padding: 20px;
}

.collection-info h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.collection-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }
  
  .collection-image {
    height: 150px;
  }
  
  .collection-info {
    padding: 16px;
  }
  
  .collection-overlay h3 {
    font-size: 1.25rem;
  }
  
  .collection-overlay p {
    font-size: 0.85rem;
  }
}

.view-btn:focus {
  outline: 2px solid #00e0ff;
  outline-offset: 2px;
}

.view-btn[aria-pressed="true"] {
  background: rgba(0, 224, 255, 0.2);
  border-color: #00e0ff;
}

/* Mejorar accesibilidad de navegación */
nav[aria-label] {
  position: relative;
}

/* Mejorar accesibilidad de secciones */
section[aria-label] {
  position: relative;
}
