/*
 * producto.css — Detalle de producto · Nexora Luxury
 */

/* ─── Layout ─── */
.producto-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

/* ─── Galería ─── */
.producto-gallery {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}
.producto-main-img {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 12px;
    cursor: zoom-in;
}
.producto-main-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .4s ease;
}
.producto-main-img:hover img { transform: scale(1.03); }
.producto-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.producto-thumb {
    width: 72px; height: 72px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .3s;
}
.producto-thumb:hover,
.producto-thumb.active { border-color: var(--gold); }
.producto-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Info ─── */
.producto-info { padding-top: 8px; }
.producto-categoria {
    font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px; display: block;
}
.producto-nombre {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 48px); font-weight: 300; line-height: 1.1;
    color: var(--text); margin-bottom: 16px; letter-spacing: -1px;
}
.producto-precio {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.producto-precio del {
    font-family: var(--font-serif);
    font-size: 18px; font-weight: 300;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.55;
}
.producto-precio ins {
    font-family: var(--font-serif);
    font-size: 38px; font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    line-height: 1;
}
/* Precio sin oferta */
.producto-precio .woocommerce-Price-amount {
    font-family: var(--font-serif);
    font-size: 38px; font-weight: 600;
    color: var(--gold);
    line-height: 1;
}
/* Lightbox */
.prod-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.prod-lightbox-inner { position: relative; }
.prod-lightbox-inner img {
    max-width: 90vw; max-height: 88vh;
    object-fit: contain;
    border-radius: var(--r);
    display: block;
}
.prod-lightbox-close {
    position: absolute; top: -14px; right: -14px;
    width: 30px; height: 30px;
    background: var(--gold); color: #000;
    border: none; border-radius: 50%;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.producto-desc {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.9; margin-bottom: 28px;
}
.producto-actions { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.producto-actions .btn { flex: 1; min-width: 160px; }

/* ─── Specs tabla ─── */
.producto-specs-title {
    font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px;
}
.producto-specs-table { border-collapse: collapse; width: 100%; }
.producto-specs-table tr { border-bottom: 1px solid var(--border); }
.producto-specs-table td {
    padding: 8px 4px; font-size: 13px; line-height: 1.5;
}
.producto-specs-table td:first-child { color: var(--text-muted); width: 40%; }
.producto-specs-table td:last-child  { color: var(--text); font-weight: 500; }

/* ─── Features tags ─── */
.producto-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.producto-feature {
    font-size: 11px; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px;
}

/* ─── Video ─── */
.producto-video-wrap {
    position: relative; padding-top: 56.25%;
    border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--border);
}
.producto-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── Breadcrumb ─── */
.producto-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: var(--text-muted);
    margin-bottom: 32px;
}
.producto-breadcrumb a { color: var(--text-muted); }
.producto-breadcrumb a:hover { color: var(--gold); }
.producto-breadcrumb span { color: var(--text-subtle); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .producto-wrap { grid-template-columns: 1fr; gap: 32px; }
    .producto-gallery { position: static; }
}
