/* ===============================================
   CLIENTE RESPONSIVE - Reemplaza estilos inline
   =============================================== */

/* PROBLEMA 1: IMAGEN PRODUCTO (180px fijo) */
.product-image-responsive {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .product-image-responsive {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .product-image-responsive {
    height: 140px;
  }
}

@media (max-width: 360px) {
  .product-image-responsive {
    height: 120px;
  }
}

/* PROBLEMA 2: ICONO PRODUCTO (180px fijo) */
.product-icon-responsive {
  font-size: 80px;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

@media (max-width: 768px) {
  .product-icon-responsive {
    font-size: 60px;
    height: 160px;
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .product-icon-responsive {
    font-size: 50px;
    height: 140px;
    padding: 20px 10px;
  }
}

@media (max-width: 360px) {
  .product-icon-responsive {
    font-size: 40px;
    height: 120px;
    padding: 15px 8px;
  }
}

/* PROBLEMA 3: THUMBNAIL GALERÍA (56x56px fijo) */
.detail-thumb-responsive {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: border-color 0.2s;
}

.detail-thumb-responsive.active {
  border-color: #9b2d7d;
}

@media (max-width: 768px) {
  .detail-thumb-responsive {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .detail-thumb-responsive {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 360px) {
  .detail-thumb-responsive {
    width: 36px;
    height: 36px;
  }
}

/* PROBLEMA 4: MEDIA DETALLE - VIDEO/IMAGEN (280px fijo) */
.detail-media-responsive {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}

/* Video específico */
.detail-media-responsive.video-element {
  background: #000;
  display: block;
}

@media (max-width: 768px) {
  .detail-media-responsive {
    max-height: 240px;
  }
}

@media (max-width: 480px) {
  .detail-media-responsive {
    max-height: 200px;
  }
}

@media (max-width: 360px) {
  .detail-media-responsive {
    max-height: 160px;
  }
}

/* PROBLEMA 5: BOTONES CANTIDAD (32x32px fijo) */
.qty-button-responsive {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: #9b2d7d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.qty-button-responsive:hover {
  background: #f5f5f5;
  border-color: #9b2d7d;
}

.qty-button-responsive:active {
  background: #e8e8e8;
}

@media (max-width: 480px) {
  .qty-button-responsive {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .qty-button-responsive {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* PROBLEMA 6: INPUT CANTIDAD (50px fijo) */
.qty-input-responsive {
  width: 50px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.qty-input-responsive:focus {
  outline: none;
  border-color: #9b2d7d;
  box-shadow: 0 0 0 2px rgba(155, 45, 125, 0.1);
}

/* Remove arrows from number input */
.qty-input-responsive::-webkit-outer-spin-button,
.qty-input-responsive::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input-responsive[type=number] {
  -moz-appearance: textfield;
}

@media (max-width: 480px) {
  .qty-input-responsive {
    width: 60px;
    padding: 8px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .qty-input-responsive {
    width: 70px;
    padding: 10px;
    font-size: 16px;
  }
}

/* CONTENEDOR CANTIDAD (para flex layout) */
.qty-container-responsive {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .qty-container-responsive {
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .qty-container-responsive {
    gap: 12px;
  }
}
