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

:root { --line-row-h: 200px; }

.lines-hero {
    background: #fff;
    border-bottom: 1px solid var(--gray-20);
}
.lines-hero__inner {
    display: grid; gap: var(--space-4); padding: var(--space-6) 0;
}
.lines-hero__identity {
    display: flex; align-items: center; gap: var(--space-4);
}
.lines-hero__thumb {
    width: 24px; height: 24px; border-radius: 6px; overflow: hidden;
    background: var(--gray-10); border: 1px solid var(--gray-20);
    box-shadow: var(--shadow-1); flex-shrink: 0; display: grid; place-items: center;
}
.lines-hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lines-hero__placeholder { width: 14px; height: 14px; border-radius: 4px; background: var(--gray-20); }
.lines-hero__title {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
    color: var(--brand-primary); font-size: clamp(22px, 4.2vw, 34px); margin: 0;
}

.functions-nav { overflow: visible; position: relative; z-index: 10; }
.functions-nav__list {
    display: flex; flex-wrap: wrap; gap: 10px; padding: 2px; margin: 0; list-style: none;
}
.pill {
    display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
    background: var(--bg-accent); border: 1px solid var(--gray-20);
    color: var(--brand-primary); font-weight: 700; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); background: #fff; }

.lines-identity {
    position: fixed; top: 73px; left: 0; right: 0;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-20);
    transform: translateY(-120%); transition: transform .28s ease;
    z-index: 950; pointer-events: none;
}
@media (max-width: 1024px) { .lines-identity { top: 64px; } }
.lines-identity.is-visible { transform: translateY(0); pointer-events: auto; }
.lines-identity__inner { display: flex; align-items: center; min-height: 56px; }
.lines-identity__brand { display: inline-flex; align-items: center; gap: 10px; }
.lines-identity__thumb {
    width: 36px; height: 36px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--gray-20); background: var(--gray-10); flex-shrink: 0;
}
.lines-identity__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lines-identity__title { font-weight: 700; color: var(--brand-primary); font-size: 0.98rem; }

.section--lines { padding-top: var(--space-7); }
.lines-group { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
.lines-group__title {
    font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 26px);
    font-weight: 700; color: var(--brand-primary); margin: 0; padding-top: 6px;
}
.lines-group__title::before {
    content: ""; display: block; width: 56px; height: 4px;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
    border-radius: 2px; margin: 0 0 10px 0;
}

.lines-table { display: grid; gap: var(--space-4); }

.line-row {
    position: relative; display: grid; grid-template-columns: 340px 1fr;
    gap: var(--space-4); background: #fff; border: 1px solid var(--gray-20);
    border-radius: var(--radius-3); box-shadow: var(--shadow-1);
    overflow: hidden; min-height: var(--line-row-h);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.line-row:hover { border-color: var(--brand-secondary); box-shadow: var(--shadow-2); }
@media (max-width: 1000px) { .line-row { grid-template-columns: 1fr; } }

.line-row__media { display: block; background: #fff; height: var(--line-row-h); overflow: hidden; }
.media-gallery { position: relative; width: 100%; height: 100%; overflow: hidden; }
.media-gallery__frames { position: relative; width: 100%; height: 100%; }
.media-frame {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; opacity: 0; transition: opacity .3s ease; background: #fff;
}
.media-frame.is-active { opacity: 1; }
.media-dots {
    position: absolute; left: 0; right: 0; bottom: 6px;
    display: flex; justify-content: center; gap: 6px;
}
.media-dots .dot {
    width: 8px; height: 8px; border-radius: 999px;
    border: 1px solid rgba(0,0,0,.2); background: rgba(255,255,255,.9);
    cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.media-dots .dot.is-active {
    background: var(--brand-secondary); border-color: var(--brand-secondary); transform: scale(1.05);
}
.line-row__media--ph { width: 100%; height: 100%; background: var(--gray-10); }

.media-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: rgba(255,255,255,.8); border: 1px solid var(--gray-20);
    border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--gray-90); opacity: 0; transition: opacity .2s ease;
}
.media-gallery:hover .media-gallery__nav { opacity: 1; }
.media-gallery__nav--prev { left: 8px; }
.media-gallery__nav--next { right: 8px; }

.line-row__body {
    padding: 14px 16px; display: grid; gap: 6px;
    align-content: center; min-height: var(--line-row-h);
}
.line-row__headline { margin: 0 0 2px 0; font-size: 1.02rem; font-weight: 700; color: var(--gray-90); }
.line-row__headline-link { text-decoration: none; color: inherit; }
.line-row__headline-link:hover .line-row__headline { color: var(--brand-primary); text-decoration: underline; }
.line-row__title { margin: 0; font-size: 0.98rem; font-weight: 700; color: var(--gray-90); }
.line-row__label { font-weight: 700; color: var(--brand-primary); margin-right: 6px; }
.line-row__model { color: var(--gray-90); }
.line-row__production { margin: 0; color: var(--text); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0 0; padding: 0; list-style: none; position: relative; z-index: 5; }
.chip {
    display: inline-flex; align-items: center; 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);
}
.chip--more { background: #fff; border-style: dashed; }

.line-row__actions { display: inline-flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; position: relative; z-index: 5; }
.btn--xs { padding: 6px 10px !important; font-size: 0.9rem !important; border-width: 2px !important; }
.btn--ghost--dark { background: transparent; color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.btn--ghost--dark:hover { background: var(--brand-primary-light); }

.lines-group, .lines-group__title { scroll-margin-top: var(--anchor-offset, 140px); }

@media (max-width: 640px) { :root { --line-row-h: 190px; } }
