/* ═══════════════════════════════════════════════
   MESAS HORECA — Ficha de producto
   Imagen única + selector acabados + variaciones
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.3px;
}
.breadcrumb a {
  color: var(--color-text);
  transition: color 0.3s var(--ease-premium);
}
.breadcrumb a:hover { color: var(--color-heading); }
.breadcrumb__sep {
  margin: 0 8px;
  color: #ccc;
}

.product-page__breadcrumb {
  background: var(--color-bg);
  padding: 18px 32px 0;
  margin-top: 64px;
}
.product-page__breadcrumb-inner {
  max-width: var(--container);
  margin: 0 auto;
}

/* ── Layout principal ── */
.product-page {
  background: var(--color-bg);
  padding: 28px 32px 100px;
}
.product-page__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* ═══════════════ GALERÍA — IMAGEN ÚNICA ═══════════════ */
.product-gallery {
  position: static;
  align-self: start;
  padding: 0;
  margin: 0;
}

.product-gallery__main {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
  transition: opacity 0.3s var(--ease-premium);
}

/* Variante redonda */
.product-gallery--round .product-gallery__main {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

/* Variante ovalada (medidas especiales) */
.product-gallery--oval .product-gallery__main {
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 50%;
}

/* ═══════════════ SELECTOR DE ACABADOS (columna derecha) ═══════════════ */
.acabados-picker {
  margin-bottom: 14px;
}
.acabados-picker__list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.acabados-picker__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  background: none;
  transition: border-color 0.3s var(--ease-premium), opacity 0.3s var(--ease-premium);
  opacity: 0.55;
  flex-shrink: 0;
}
.acabados-picker__thumb:hover {
  opacity: 0.85;
}
.acabados-picker__thumb--active {
  border-color: var(--color-accent);
  opacity: 1;
}
.acabados-picker__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.acabados-picker__name {
  display: block;
  font-size: 13px;
  color: var(--color-text);
  font-weight: 400;
}

/* ── Grupos de acabados (acordeón) ── */
.acabados-group {
  margin-bottom: 6px;
}
.acabados-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-heading);
  cursor: pointer;
  transition: color 0.2s;
}
.acabados-group__header:hover {
  color: var(--color-accent);
}
.acabados-group__icon {
  font-size: 14px;
  color: var(--color-muted);
  transition: transform 0.3s var(--ease-premium);
}
.acabados-group--open .acabados-group__icon {
  transform: rotate(45deg);
}
.acabados-group__body {
  display: none;
  padding: 10px 0 4px;
}
.acabados-group--open .acabados-group__body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Variante redonda */
.acabados-picker--round .acabados-picker__thumb {
  border-radius: 50%;
}

/* ═══════════════ INFO + VARIACIONES (columna derecha) ═══════════════ */
.product-info {
  padding-top: 0;
}

.product-info__badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.product-info__title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.product-info__price-range {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: 300;
}
.product-info__price-range strong {
  color: var(--color-heading);
  font-weight: 500;
}
.product-info__excerpt {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

/* Precio actual seleccionado */
.product-info__current-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.product-info__price-amount {
  font-size: 30px;
  font-weight: 500;
  color: var(--color-heading);
}
.product-info__price-iva {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 300;
}

/* ═══════════════ SELECTOR DE VARIACIONES ═══════════════ */
.variations {
  margin-bottom: 16px;
}
.variations__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-heading);
  margin-bottom: 12px;
}
.variations__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.variation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background: var(--color-white);
  border: none;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  transition: background 0.2s var(--ease-premium);
}
.variation:last-child {
  border-bottom: none;
}
.variation:hover {
  background: var(--color-surface);
}
.variation__name {
  font-size: 14px;
  color: var(--color-dark);
}
.variation__price {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* Fila seleccionada */
.variation--selected {
  background: var(--color-bg);
}
.variation--selected .variation__name {
  font-weight: 500;
  color: var(--color-heading);
}
.variation--selected .variation__price {
  color: var(--color-accent);
  font-weight: 500;
}

/* ── Cantidad ── */
.product-info__qty-row {
  margin-bottom: 16px;
}
.product-info__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-info__qty button {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--color-white);
  font-size: 16px;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.product-info__qty button:hover {
  background: var(--color-bg);
}
.product-info__qty span {
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* ── Botón añadir al carrito ── */
.product-info__add-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
  margin-bottom: 16px;
}
.product-info__add-btn:hover {
  background: #1a1a1a;
}
.product-info__add-btn--added {
  background: var(--color-accent);
}

/* ── Nota de pago ── */
.product-info__payment-note {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
  font-weight: 300;
}

/* ── Ficha técnica (acordeón) ── */
.product-details {
  border-top: 1px solid var(--color-border);
}
.details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  cursor: pointer;
  transition: color 0.2s;
}
.details-toggle:hover {
  color: var(--color-accent);
}
.details-toggle__icon {
  font-size: 18px;
  color: var(--color-muted);
  transition: transform 0.3s var(--ease-premium);
}
.details-toggle--open .details-toggle__icon {
  transform: rotate(45deg);
}

.details-body {
  display: none;
  padding-bottom: 18px;
}
.details-body--open {
  display: block;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}
.details-table td {
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--color-bg);
  vertical-align: top;
}
.details-table td:first-child {
  color: var(--color-muted);
  width: 140px;
  padding-right: 16px;
  font-weight: 300;
}
.details-table td:last-child {
  color: var(--color-dark);
}

/* ═══════════════ MEDIDAS ESPECIALES ═══════════════ */
.especial-fields {
  margin-bottom: 24px;
}
.especial-fields__field {
  margin-bottom: 16px;
}
.especial-fields__input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color 0.3s var(--ease-premium);
  box-sizing: border-box;
}
.especial-fields__input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.especial-fields__input::placeholder {
  color: #bbb;
}
textarea.especial-fields__input {
  height: 120px;
  resize: none;
  line-height: 1.6;
}
.especial-fields__note {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 4px;
  font-weight: 300;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 768px) {
  .product-page__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-gallery {
    position: static;
  }
}
