/* Basic product detail layout */
.product-detail-section {
  padding: 2rem 0;
}
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .product-container { grid-template-columns: 1fr; }
}

/* Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.product-main-wrap { position: relative; }
.product-main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.product-main-wrap .image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: none;
  border-radius: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}
.product-main-wrap .image-arrow.left { left: 8px; }
.product-main-wrap .image-arrow.right { right: 8px; }
.product-main-wrap .image-arrow:hover { background: rgba(0,0,0,0.5); }
/* Mostrar flechas sólo al hacer hover (desktop) */
.product-main-wrap:hover .image-arrow { opacity: 1; }
@media (hover: none), (max-width: 768px) {
  .product-main-wrap .image-arrow { display: none; }
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.product-thumb {
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.product-thumb.hidden-back {
  display: none !important;
}

/* Info */
.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.product-description { margin-bottom: 1rem; }

/* Selectors */
.selector-group { margin-bottom: 1rem; }
.selector-label { font-weight: 500; margin-bottom: 0.5rem; }
.color-options, .size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.color-circle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #222; cursor: pointer;
}
.color-circle.selected { outline: 2px solid #ffb703; }
.size-option {
  padding: 0.35rem 0.6rem; border: 1px solid #222; border-radius: 4px;
  cursor: pointer; user-select: none;
}
.size-option.selected { background: #222; color: #fff; }

/* Size guide icon styled like a size bubble */
.size-guide-option {
  display: flex;
  align-items: center;
  justify-content: center;
}
.size-guide-option svg {
  display: block;
}

/* Actions */
.actions {
  display: flex; gap: 1rem; align-items: center; margin-top: 1rem;
}
.add-to-cart-btn {
  background: #ffb703; border: none; padding: 0.6rem 1rem; border-radius: 6px;
  font-weight: 600; cursor: pointer;
}
.add-to-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.size-guide-link { color: #1d3557; text-decoration: underline; cursor: pointer; }

/* Size Guide button placed between sizes and add to cart */
.actions-size-guide { margin-top: 0.5rem; }
.size-guide-btn {
  background: #000000; /* fondo negro */
  color: var(--background-light); /* gris claro igual al fondo de burbujas */
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; padding: 1rem; border-radius: 8px; max-width: 90vw; max-height: 90vh; }
.modal-close { position: absolute; top: 10px; right: 16px; font-size: 1.5rem; background: none; border: none; cursor: pointer; }

/* Size guide responsive fit */
.size-guide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
#sizeGuideImage {
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}