/* ====================================
   TIENDA PAGE STYLES
   ==================================== */

/* Page Title */
main h1 {
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
}

.page-title {
  color: #000000 !important;
  font-weight: 800;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  text-align: center;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.page-subtitle {
  color: #1e3a8a;
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  margin-bottom: 50px;
  text-align: center;
}

/* Product Card */
.producto-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.producto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.3);
}

.producto-card:hover::before {
  transform: scaleX(1);
}

/* Product Image */
.imagen-marco {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.imagen-marco::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 10px;
  pointer-events: none;
}

.producto-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.producto-card:hover .producto-imagen {
  transform: scale(1.05);
}

/* Product Info */
.producto-nombre {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000000 !important;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9),
               0 0 8px rgba(255, 255, 255, 0.7),
               0 0 12px rgba(255, 255, 255, 0.5) !important;
}

.producto-descripcion {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
  min-height: 60px;
}

/* Price Selector */
.precio-selector {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.precio-opcion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.precio-opcion:hover {
  background: #e9ecef;
}

.precio-opcion.selected {
  background: #4a148c;
  color: white;
}

.precio-opcion input[type="radio"] {
  margin-right: 10px;
}

/* Add to Cart Button */
.btn-agregar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-agregar:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Floating Cart */
.carrito-flotante {
  position: fixed;
  top: 100px;
  right: 30px;
  background: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.carrito-flotante:hover {
  transform: scale(1.1);
}

.carrito-icono {
  font-size: 2rem;
  color: #4a148c;
}

.carrito-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Shipping Banner */
.alert.alert-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 15px;
  color: white;
}

.shipping-icon {
  font-size: 3rem;
  opacity: 0.3;
}

/* Stock Indicators */
.producto-sin-stock {
  opacity: 0.7;
}

.overlay-sin-stock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  z-index: 1;
}

.overlay-sin-stock span {
  background: #dc3545;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-agregar:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-agregar:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Stock Badge Customization */
.badge {
  font-size: 0.85rem;
  padding: 8px 15px;
  font-weight: 600;
  border-radius: 20px;
}

.badge i {
  margin-right: 5px;
}

/* Color Selector */
.color-selector {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.color-label {
  display: block;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.color-label i {
  color: #667eea;
  margin-right: 5px;
}

/* Carousel Container */
.color-carousel-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.carousel-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  z-index: 2;
}

.carousel-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

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

.carousel-btn i {
  font-size: 1.2rem;
  font-weight: bold;
}

.color-carousel-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.color-carousel {
  display: flex;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 24px;
  border-radius: 4px;
}

.color-opcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
  min-width: 100px;
  flex-shrink: 0;
}

.color-opcion input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-opcion:hover:not(.color-disabled) {
  border-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.color-opcion.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.color-opcion.color-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

.color-circulo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.color-disabled .color-circulo {
  position: relative;
}

.color-circulo i {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.color-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 3px;
}

.color-stock {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

.color-opcion.selected .color-nombre {
  color: #667eea;
  font-weight: 700;
}

.color-disabled .color-nombre,
.color-disabled .color-stock {
  color: #999;
}

/* Filter Dropdown Elegante */
.filtro-dropdown-container {
  max-width: 500px;
  margin: 0 auto;
}

.filtro-label {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filtro-label i {
  color: #667eea;
  margin-right: 8px;
}

.filtro-dropdown {
  position: relative;
  width: 100%;
}

.filtro-dropdown-btn {
  width: 100%;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filtro-dropdown-btn:hover {
  border-color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.filtro-seleccionado {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filtro-seleccionado i {
  color: #667eea;
  font-size: 1.2rem;
}

.dropdown-arrow {
  color: #667eea;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.filtro-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.filtro-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filtro-search {
  padding: 15px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border-radius: 15px 15px 0 0;
}

.filtro-search i {
  color: #667eea;
  font-size: 1.1rem;
}

.filtro-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: #333;
  padding: 5px;
}

.filtro-search input::placeholder {
  color: #999;
}

.filtro-opciones {
  overflow-y: auto;
  max-height: 300px;
  padding: 10px 0;
}

.filtro-opciones::-webkit-scrollbar {
  width: 8px;
}

.filtro-opciones::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.filtro-opciones::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.filtro-opciones::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.filtro-opcion {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  gap: 12px;
}

.filtro-opcion:hover {
  background: #f8f9fa;
}

.filtro-opcion.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  font-weight: 700;
}

.filtro-opcion i:first-child {
  font-size: 1.3rem;
  color: #667eea;
  min-width: 25px;
  text-align: center;
}

.filtro-opcion span {
  flex: 1;
  font-size: 0.95rem;
}

.filtro-opcion .check-icon {
  opacity: 0;
  color: #667eea;
  font-size: 1.2rem;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.filtro-opcion.active .check-icon {
  opacity: 1;
}

/* Type Section */
.tipo-seccion {
  margin-bottom: 50px;
  animation: fadeIn 0.5s ease;
}

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

.tipo-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid;
  border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tipo-titulo i {
  color: #667eea;
  font-size: 1.8rem;
}

.tipo-titulo .badge {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .carrito-flotante {
    right: 15px;
    width: 60px;
    height: 60px;
  }

  .tipo-titulo {
    font-size: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .filtro-dropdown-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .filtro-label {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .filtro-dropdown-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .filtro-seleccionado i {
    font-size: 1rem;
  }

  .filtro-dropdown-menu {
    max-height: 350px;
  }

  .filtro-opciones {
    max-height: 250px;
  }

  .filtro-opcion {
    padding: 10px 15px;
  }

  .filtro-opcion span {
    font-size: 0.9rem;
  }

  .color-opcion {
    min-width: 80px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .carousel-btn i {
    font-size: 1rem;
  }

  .color-circulo {
    width: 35px;
    height: 35px;
  }

  .color-nombre {
    font-size: 0.75rem;
  }

  .color-stock {
    font-size: 0.7rem;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  .indicator.active {
    width: 18px;
  }
}
