/* ================================
   Nuts Equipment – line_detail.css
   ================================ */

.ld-hero {
    background: #fff;
    border-bottom: 1px solid var(--gray-20);
    padding: var(--space-6) 0 var(--space-7);
}
.ld-breadcrumbs { margin-bottom: var(--space-3); font-size: .95rem; color: var(--text-muted); }
.ld-breadcrumbs__list { display: flex; gap: 8px; padding:0; margin:0; list-style:none; flex-wrap: wrap; }
.ld-breadcrumbs__item:not(:last-child)::after { content:"›"; margin-left: 8px; color: var(--gray-40); }
.ld-breadcrumbs__link { color: var(--brand-primary); font-weight: 600; }
.ld-breadcrumbs__link:hover { color: var(--brand-secondary); text-decoration: underline; }
.ld-breadcrumbs__current { color: var(--gray-90); font-weight: 700; }

.ld-hero__header { text-align: center; display: grid; gap: var(--space-4); }
.ld-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(26px, 4.6vw, 40px);
    letter-spacing: -.02em;
    color: var(--brand-primary);
    margin: 0;
}
.ld-hero__subtitle { margin: 0; color: var(--text); font-size: 1.05rem; }
.ld-dot { margin: 0 .5ch; opacity: .6; }

.ld-hero__actions { display: inline-flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Grid principal */
.ld-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-7);
}
@media (max-width: 1024px) {
    .ld-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Galería */
.ld-gallery {
    display: grid;
    gap: var(--space-4);
    background: #fff;
    border: 1px solid var(--gray-20);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    padding-bottom: var(--space-4);
}
.ld-gallery__main {
    position: relative;
    width: 100%;
    height: clamp(320px, 54vh, 560px);
    background: #fff;
}
.ld-gallery__main img,
.ld-gallery__main iframe {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #fff;
    display: block; border: 0;
}
.ld-gallery__empty {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: var(--text-muted);
    background: var(--gray-10);
}

.ld-thumbs {
    display: flex; flex-wrap: wrap;
    gap: 8px;
    padding: 0 var(--space-4);
}
.ld-thumb {
    width: 78px; height: 78px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--gray-10);
    overflow: hidden; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ld-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--brand-primary); }
.ld-thumb.is-active { border-color: var(--brand-secondary); box-shadow: 0 0 0 2px var(--brand-secondary); }
.ld-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-thumb--video { position: relative; display: grid; place-items: center; background: var(--gray-20); }
.ld-thumb__video {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
    background: rgba(0,0,0,.65); color: #fff; font-size: 13px;
}

/* Especificaciones */
.ld-specs {
    position: sticky;
    top: 88px;
    align-self: start;
    background: #fff;
    border: 1px solid var(--gray-20);
    border-radius: var(--radius-3);
    box-shadow: var(--shadow-1);
    padding: var(--space-5);
}
.ld-specs__title {
    margin: 0 0 var(--space-4);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    font-family: var(--font-display);
}
.ld-specs__table { width: 100%; border-collapse: collapse; }
.ld-specs__table tr { border-bottom: 1px solid var(--gray-10); }
.ld-specs__table tr:last-child { border-bottom: 0; }
.ld-specs__label { width: 42%; padding: 10px 0; font-weight: 700; color: var(--brand-primary); vertical-align: top; }
.ld-specs__value { padding: 10px 0; color: var(--text); vertical-align: top; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 6px; padding:0; margin: 0; list-style: none; }
.ld-chip {
    padding: 4px 8px; font-size: .82rem; font-weight: 700;
    border-radius: 999px; background: var(--bg-accent);
    border: 1px solid var(--gray-20); color: var(--brand-primary);
}

.ld-specs__cta { display: grid; gap: 10px; margin-top: var(--space-4); }
.ld-back { display: inline-block; margin-top: var(--space-3); color: var(--text-muted); text-decoration: none; }
.ld-back:hover { color: var(--gray-90); text-decoration: underline; }

/* Descripción */
.ld-description { padding: var(--space-8) 0; background: #fff; border-top: 1px solid var(--gray-20); }
.ld-prose { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.ld-prose h2, .ld-prose h3 { color: var(--brand-primary); margin: var(--space-5) 0 var(--space-3); }
.ld-prose h2 { font-size: 1.35rem; font-weight: 700; }
.ld-prose h3 { font-size: 1.18rem; font-weight: 600; }
.ld-prose p { margin: 0 0 var(--space-4); }
.ld-prose ul, .ld-prose ol { padding-left: 1.2rem; margin: 0 0 var(--space-4); }

/* Relacionadas */
.ld-related { background: var(--bg); padding: var(--space-8) 0; border-top: 1px solid var(--gray-20); }
.ld-related__title {
    text-align: center; margin: 0 0 var(--space-6);
    font-size: clamp(20px, 3.6vw, 28px); font-weight: 700; color: var(--brand-primary);
    font-family: var(--font-display);
}
.ld-related__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ld-card {
    background: #fff; border: 1px solid var(--gray-20); border-radius: var(--radius-3);
    overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ld-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ld-card__img { width: 100%; height: 200px; object-fit: cover; background: var(--gray-10); display: block; }
.ld-card__body { padding: var(--space-4); }
.ld-card__title { margin: 0 0 6px; font-weight: 700; color: var(--brand-primary); }
.ld-card__meta { margin: 0; color: var(--text-muted); }

/* CTA móvil */
.ld-mobile-cta {
    position: sticky; bottom: 0;
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--gray-20);
    padding: 10px 16px; display: none;
}
@media (max-width: 720px) {
    .ld-mobile-cta { display: block; }
}
@media (max-width: 768px) {
    .ld-hero { padding: var(--space-6) 0; }
    .ld-specs { top: 70px; }
    .ld-gallery__main { height: clamp(260px, 48vh, 460px); }
}
