/* ══════════════════════════════════════════════════════════════
   EL OTRO BANDO — Product Page
   Ficha de producto individual
   ══════════════════════════════════════════════════════════════ */

.product-page {
  background-color: var(--color-bg-cream);
}

/* ═══════════════════════════════════
   PRODUCT LAYOUT
   ═══════════════════════════════════ */

.product-section {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ═══════════════════════════════════
   GALLERY
   ═══════════════════════════════════ */

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery__main {
  border: var(--border-base);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--color-white);
  position: relative;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.product-gallery__thumb {
  border: 2px solid var(--color-gray-300);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hard-accent-sm);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════
   PRODUCT INFO
   ═══════════════════════════════════ */

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-info__category {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
}

.product-info__name {
  font-family: var(--font-headline);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: var(--color-text-on-light);
}

.product-info__price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.product-info__price {
  font-family: var(--font-headline);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-accent);
}

.product-info__price-old {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.product-info__personas {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-white);
  border: var(--border-base);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.product-info__personas svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.product-info__description {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
}

/* ═══════════════════════════════════
   VARIANT SELECTOR
   ═══════════════════════════════════ */

.variant-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.variant-selector__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.variant-option {
  position: relative;
}

.variant-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.variant-option__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  border: var(--border-base);
  background-color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  min-width: 120px;
}

.variant-option input:checked + .variant-option__label {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-hard);
}

.variant-option__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.variant-option__price {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  margin-top: 2px;
}

/* ═══════════════════════════════════
   FILLING SELECTOR (product page)
   ═══════════════════════════════════ */

.product-fillings {
  background-color: var(--color-white);
  border: var(--border-base);
  padding: var(--space-lg);
}

.product-fillings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.product-fillings__title {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-fillings__title svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.product-fillings__counter {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  background-color: var(--color-bg-cream);
  border: 2px solid var(--color-accent);
  padding: var(--space-2xs) var(--space-sm);
}

.product-fillings__group-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-gray-500);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-gray-200);
}

/* ═══════════════════════════════════
   PERSONALIZATION
   ═══════════════════════════════════ */

.product-personalization {
  background-color: var(--color-white);
  border: var(--border-base);
  padding: var(--space-lg);
}

.product-personalization__title {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-personalization__title svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

/* ═══════════════════════════════════
   ADD TO CART SECTION
   ═══════════════════════════════════ */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: var(--color-white);
  border: var(--border-base);
  box-shadow: var(--shadow-hard);
  padding: var(--space-lg);
}

.product-actions__row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.product-actions .btn-primary {
  flex-grow: 1;
}

.product-wa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #25D366;
  border: 2px solid #25D366;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  transition: all var(--transition-fast);
}

.product-wa-link:hover {
  background-color: #25D366;
  color: var(--color-white);
}

.product-wa-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ═══════════════════════════════════
   ORDER WINDOW (product page)
   ═══════════════════════════════════ */

.product-order-window {
  background-color: var(--color-bg-cream);
  border: var(--border-base);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.product-order-window svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.product-order-window p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.product-order-window strong {
  color: var(--color-accent);
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */

@media (max-width: 1023px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .product-info__name {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 639px) {
  .product-gallery__thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .variant-options {
    flex-direction: column;
  }

  .variant-option__label {
    min-width: auto;
  }

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

  .product-actions__row .btn {
    width: 100%;
  }
}
