﻿/* Estilos específicos para el detalle del producto 1 - MTG-B2000YST-1A */

/* Importar variables globales */
@import url('../variables.css');

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--accent-color);
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.navigation a {
  margin: 0 20px;
  text-decoration: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navigation a:hover {
  color: var(--blue-light);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.navigation a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  transition: var(--transition);
  box-shadow: 0 0 4px var(--blue-light);
}

.navigation a:hover::after {
  width: 100%;
}

/* Product Detail Section */
.product-detail {
  padding: 60px 0;
  background: #f1f5f9;
}

.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Product Images */
.product-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.main-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  display: none;
}

/* Mostrar la primera imagen por defecto */
#main-img-silver {
  display: block !important;
}

.main-img:hover {
  transform: scale(1.09);
}

/* Ocultar radio buttons */
.product-images input[type="radio"] {
  display: none;
}

/* Mostrar solo la imagen seleccionada */
#thumb-silver:checked ~ .main-image #main-img-silver {
  display: block !important;
}

#thumb-blue:checked ~ .main-image #main-img-blue {
  display: block !important;
}

#thumb-brown:checked ~ .main-image #main-img-brown {
  display: block !important;
}

/* Ocultar las otras imágenes cuando se selecciona una */
#thumb-silver:checked ~ .main-image #main-img-blue,
#thumb-silver:checked ~ .main-image #main-img-brown {
  display: none !important;
}

#thumb-blue:checked ~ .main-image #main-img-silver,
#thumb-blue:checked ~ .main-image #main-img-brown {
  display: none !important;
}

#thumb-brown:checked ~ .main-image #main-img-silver,
#thumb-brown:checked ~ .main-image #main-img-blue {
  display: none !important;
}

.thumbnails {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.thumbnail-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.thumbnail-img:hover,
input[type="radio"]:checked + .thumbnail-img {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Product Information */
.product-info {
  padding: 20px 0;
}

.product-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #fbbf24;
  font-size: 18px;
}

.reviews {
  color: var(--text-light);
  font-size: 14px;
}

.product-price {
  margin-bottom: 30px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: #f59e0b;
}

.product-description {
  margin-bottom: 30px;
}

.product-description h3 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.product-description p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
}

.technical-specs {
  margin-bottom: 30px;
}

.specs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 20px;
}

.specs-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
}

.collapse-checkbox {
  display: none;
}

.collapse-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

/* Funcionalidad de colapso */
.collapse-checkbox:checked ~ .specs-header .collapse-btn {
  transform: rotate(180deg);
}

.collapse-checkbox:checked ~ .specs-content {
  display: none;
}

.specs-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  transition: var(--transition);
}

.specs-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.spec-category {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.spec-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-category h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  gap: 15px;
}

.spec-label {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.spec-label .help-icon {
  color: var(--primary-color);
  font-size: 12px;
  cursor: help;
  opacity: 0.7;
  transition: var(--transition);
}

.spec-label .help-icon:hover {
  opacity: 1;
  transform: scale(1.2);
}

.spec-value {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.spec-details {
  margin-top: 10px;
  padding-left: 15px;
}

.spec-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-details li {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.spec-details li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.personalization {
  margin-bottom: 30px;
}

.personalization h3 {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.engraving-options {
  margin-bottom: 30px;
}

.engraving-options h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

.engraving-radio-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Ocultar los radio buttons de grabado */
.engraving-radio-group input[type="radio"] {
  display: none;
}

.engraving-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  transition: var(--transition);
  background: var(--white);
  position: relative;
  font-size: 14px;
}

.engraving-option:hover {
  border-color: var(--primary-color);
  background: var(--bg-light);
}

/* Estilo cuando el radio button está seleccionado */
.engraving-radio-group input[type="radio"]:checked + .engraving-option {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
}

.radio-custom {
  width: 14px;
  height: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  transition: var(--transition);
}

/* Estilo del radio-custom cuando está seleccionado */
.engraving-radio-group input[type="radio"]:checked + .engraving-option .radio-custom {
  border-color: var(--white);
  background: var(--white);
}

.engraving-radio-group input[type="radio"]:checked + .engraving-option .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
}

.engraving-input {
  position: relative;
  max-width: 300px;
  margin-top: 15px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Mostrar la caja de texto cuando "Personalizado" está seleccionado */
#engraving-custom:checked ~ .engraving-input {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.engraving-input input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
}

.engraving-input input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.char-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-light);
  background: var(--white);
  padding: 0 4px;
}

.strap-colors h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

/* Estilos para la sección de colores debajo de las imágenes */
.product-images .strap-colors {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-light);
  margin-top: 20px;
}

.product-images .strap-colors h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

.color-options {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Ocultar los radio buttons */
.color-options input[type="radio"] {
  display: none;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.color-option:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-color);
}

/* Estilo cuando el radio button está seleccionado */
.color-options input[type="radio"]:checked + .color-option {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.color-options input[type="radio"]:checked + .color-option .color-swatch {
  border: 3px solid var(--white);
  transform: scale(1.1);
}

.color-swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  transition: var(--transition);
  margin-bottom: 6px;
}

.color-swatch.black {
  background: #000000;
}

.color-swatch.brown {
  background: #020554;
}

.color-swatch.blue {
  background: #a8a9ac;
}

.color-option span {
  font-size: 12px;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.add-to-cart-btn {
  flex: 1;
  background: #f59e0b;
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.wishlist-btn {
  flex: 1;
  background: transparent;
  color: var(--text-dark);
  border: 2px solid #e5e7eb;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .product-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .product-images {
    order: 1;
  }
  
  .product-info {
    order: 2;
  }
  
  .main-image {
    padding: 20px;
  }
  
  .thumbnail-images {
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
  }
  
  .thumbnail {
    flex: 0 0 80px;
  }

  .navigation {
    gap: 20px;
  }

  .product-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-info {
    padding: 20px 0;
  }

  .product-title {
    font-size: 28px;
  }

  .price {
    font-size: 28px;
  }

  .specs-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .specs-header {
    padding: 12px 0;
  }

  .specs-header h3 {
    font-size: 16px;
  }

  .product-actions {
    flex-direction: column;
  }

  .thumbnails {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-container {
    padding: 0 15px;
  }

  .main-image {
    padding: 20px;
    min-height: 300px;
  }

  .product-info {
    padding: 20px 0;
  }

  .product-title {
    font-size: 24px;
  }

  .price {
    font-size: 24px;
  }

  .add-to-cart-btn,
  .wishlist-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .thumbnails {
    gap: 10px;
  }

  .thumbnail-img {
    width: 60px;
    height: 60px;
  }

  .specs-content {
    gap: 15px;
  }

  .specs-header {
    padding: 10px 0;
  }

  .specs-header h3 {
    font-size: 14px;
  }

  .spec-category h4 {
    font-size: 14px;
  }

  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .spec-value {
    text-align: left;
  }
  
  .engraving-radio-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .engraving-option {
    padding: 10px 15px;
  }
  
  .you-may-also-like h2 {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .you-may-also-like h2 {
    font-size: 2.5rem;
  }
}

/* You May Also Like Section */
.you-may-also-like {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.you-may-also-like .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.you-may-also-like h2 {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 6px 12px rgba(37, 99, 235, 0.5), 0 2px 4px rgba(37, 99, 235, 0.3);
  letter-spacing: -2px;
}

/* Carrusel con barra de desplazamiento */
.products-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-container {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  padding: 10px 0;
  /* Estilos personalizados para la barra de desplazamiento */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.carousel-track {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  min-width: max-content;
}

.product-card {
  flex: 0 0 280px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition);
  border: 2px solid transparent;
  padding: 20px;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: var(--transition);
}

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

.product-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.product-card .model {
  font-weight: 500;
  margin: 8px 0;
  color: var(--text-light);
  font-size: 14px;
}

.product-card .price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* BOTÓN DE VER DETALLES - Estilo del catálogo */
.ver-detalles {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px 0;
}

.ver-detalles:hover {
  color: var(--blue-light);
  transform: translateX(4px);
}


.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.company-name h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: 1px;
}

.copyright p,
.contact-email p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.developer-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.developer-link a:hover {
  color: var(--white);
  text-decoration: underline;
}