﻿.lt-product-page {
    background: #f0f1f4;
    color: #1a1d2e;
    font-family: var(--font-body);
    min-height: 100svh;
}

.lt-product-page .nav-bar.nav-light .nav-logo-img {
    filter: none;
    width: clamp(100px, 10vw, 140px);
}

.prod-hero-wrap {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-top: calc(var(--navbar-h) + 2rem);
    padding-bottom: 3rem;
}

.prod-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.prod-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #aaa;
    background: none;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 999px;
    padding: .38rem .85rem .38rem .65rem;
    cursor: pointer;
    align-self: flex-start;
    transition: color .2s, border-color .2s;
}
.prod-back-btn i { font-size: .6rem; }
.prod-back-btn:hover { color: var(--color-green); border-color: rgba(var(--bm-green-rgb),.4); }

.prod-hero-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.prod-img-box {
    position: sticky;
    top: calc(var(--navbar-h) + 1.5rem);
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.prod-img-thumbs {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex-shrink: 0;
}

.prod-img-thumb {
    width: 68px;
    border-radius: 10px;
    border: 2px solid rgba(0,0,0,.08);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color .2s, box-shadow .2s;
}
.prod-img-thumb:hover   { border-color: rgba(var(--bm-green-rgb),.5); }
.prod-img-thumb.is-active {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(var(--bm-green-rgb),.15);
}

.prod-img-thumb-inner {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: #eef0f3;
}

.prod-img-main {
    flex: 1;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.07);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    background: #f5f6f8;
}

.prod-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #eef0f3;
    transition: background .3s;
}

.prod-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.prod-info-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.prod-brand {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--color-green);
}

.prod-tipo-tag {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #999;
    background: rgba(0,0,0,.05);
    padding: .28rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.prod-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.5vw, 5.5rem);
    color: #1a1d2e;
    line-height: 1;
    letter-spacing: .02em;
}

.prod-sku-line {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #c0c4cc;
}

.prod-desc {
    font-size: .95rem;
    line-height: 1.75;
    color: #666;
    border-top: 1px solid rgba(0,0,0,.06);
    padding-top: 1rem;
}

.prod-bullets {
    list-style: none;
    padding: 0; margin: 0;
    margin-top: .6rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.prod-bullets li {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    font-size: .88rem;
    color: #444;
    line-height: 1.4;
}

.prod-bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-green);
    margin-top: .35rem;
}

.prod-bullet-row {
    display: grid;
    grid-template-columns: clamp(110px, 16vw, 160px) 1fr;
    column-gap: .6rem;
    flex: 1;
    min-width: 0;
}

.prod-bullet-label {
    font-weight: 600;
    color: #222;
}

.prod-bullet-value {
    color: #444;
}

.prod-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
    padding-top: .5rem;
    border-top: 1px solid rgba(0,0,0,.06);
    margin-top: .4rem;
}

.prod-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .82rem 1.8rem;
    background: var(--color-green);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(var(--bm-green-rgb),.28);
    transition: background .2s, box-shadow .2s, transform .2s;
}
.prod-cta:hover { background: #2ea040; box-shadow: 0 6px 24px rgba(var(--bm-green-rgb),.38); transform: translateY(-1px); }
.prod-cta i { font-size: .78rem; transition: transform .2s; }
.prod-cta:hover i { transform: translateX(3px); }

.prod-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .82rem 1.5rem;
    background: none;
    border: 1.5px solid rgba(0,0,0,.13);
    border-radius: 11px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.prod-pdf-btn i { font-size: .85rem; }
.prod-pdf-btn:hover { border-color: var(--color-navy); color: var(--color-navy); background: rgba(13,30,56,.03); }
.prod-pdf-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.prod-pdf-btn:disabled:hover { border-color: rgba(0,0,0,.13); color: #555; background: none; }

.prod-specs-section {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.05);
}

.prod-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.prod-section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 4rem);
    color: var(--color-navy);
    letter-spacing: .04em;
    line-height: 1.05;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.prod-section-title span {
    color: var(--color-green);
}

.prod-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3rem;
    border-top: 1px solid rgba(0,0,0,.07);
}

.prod-spec-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 1rem;
    align-items: baseline;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.prod-spec-label {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b0b4bc;
}

.prod-spec-value {
    font-size: .9rem;
    font-weight: 500;
    color: #1a1d2e;
    line-height: 1.4;
}

.prod-related-section {
    background: #f0f1f4;
    border-top: 1px solid rgba(0,0,0,.05);
}

.prod-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}

.prod-related-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.055);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
    transition: box-shadow .3s, transform .3s, border-color .3s;
    position: relative;
}

.prod-related-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 2px solid transparent;
    transition: border-color .3s;
    pointer-events: none;
    z-index: 1;
}

.prod-related-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.11), 0 6px 16px rgba(0,0,0,.07);
    transform: translateY(-5px);
}
.prod-related-card:hover::before { border-color: rgba(var(--bm-green-rgb),.35); }

.prod-related-card-img,
.prod-related-card-placeholder {
    width: 100%;
    height: clamp(130px, 14vw, 160px);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,.055);
}
.prod-related-card-img {
    object-fit: contain;
    background: #fff;
}
.prod-related-card-placeholder {
    background: #eef0f3;
    transition: background .3s;
}
.prod-related-card:hover .prod-related-card-placeholder { background: #e8edf1; }

.prod-related-card-body {
    padding: 1.1rem 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
}

.prod-related-card-brand {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #c0c4cc;
}

.prod-related-card-name {
    font-family: var(--font-body);
    font-size: clamp(.9rem, 1.05vw, 1rem);
    font-weight: 700;
    color: #1a1d2e;
    line-height: 1.3;
}

.prod-related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid rgba(0,0,0,.05);
}

.prod-related-card-tipo {
    font-size: .7rem;
    font-weight: 600;
    color: #999;
    background: rgba(0,0,0,.04);
    padding: .22rem .6rem;
    border-radius: 999px;
}

.prod-related-card-arrow {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,.04);
    color: #bbb;
    font-size: .72rem;
    transition: background .2s, color .2s, transform .2s;
}
.prod-related-card:hover .prod-related-card-arrow {
    background: var(--color-green);
    color: #fff;
    transform: translateX(2px);
}

.prod-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 60svh;
    color: #ccc;
    text-align: center;
    padding: 3rem 2rem;
}
.prod-not-found i    { font-size: 2.5rem; }
.prod-not-found p    { font-size: 1rem; color: #aaa; }
.prod-not-found a    { color: var(--color-green); font-weight: 700; text-decoration: none; font-size: .9rem; }
.prod-not-found a:hover { text-decoration: underline; }


@media not ((min-width: 1440px) or ((min-width: 1200px) and (pointer: fine))) {
    .prod-hero-grid {
        grid-template-columns: 1fr;
    }

    .prod-img-box {
        position: static;
        max-width: 520px;
        margin: 0 auto;
        flex-direction: column-reverse;
    }

    .prod-img-thumbs {
        flex-direction: row;
        justify-content: center;
    }

    .prod-img-thumb { width: 58px; }

    .prod-specs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .prod-spec-row {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .prod-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .85rem;
    }
}

@media (not ((min-width: 1440px) or ((min-width: 1200px) and (pointer: fine)))) and (min-width: 900px) and (min-height: 500px) {
    .prod-hero-grid {
        grid-template-columns: 420px 1fr;
    }

    .prod-img-box {
        position: sticky;
        max-width: none;
        flex-direction: row;
    }

    .prod-img-thumbs {
        flex-direction: column;
    }
}

@media (orientation: landscape) and (max-height: 499px) {
    .prod-img-box {
        flex-direction: row;
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .prod-img-thumbs {
        flex-direction: column;
    }
}

@media (orientation: portrait) and (max-width: 767px) {
    .prod-hero-wrap   { padding-bottom: 2rem; }
    .prod-img-box     { max-width: 100%; }
    .prod-related-grid { grid-template-columns: 1fr; }
    .prod-related-card-img,
    .prod-related-card-placeholder { height: clamp(220px, 85vw, 320px); }
    .prod-actions     { flex-direction: column; }
    .prod-cta, .prod-pdf-btn { width: 100%; justify-content: center; }
}

@media print {
    .nav-bar, .menu-overlay, .lt-wa-wrap, .prod-back-btn,
    .prod-actions, .prod-related-section, .lt-footer-outer,
    #frm-modal-overlay { display: none !important; }

    .lt-product-page  { background: #fff; }
    .prod-hero-wrap   { padding-top: 1.5rem; border: none; }
    .prod-hero-grid   { grid-template-columns: 280px 1fr; gap: 2rem; }
    .prod-img-box     { position: static; box-shadow: none; border: 1px solid #ddd; }
    .prod-specs-section { background: #fff; }
    .prod-specs-grid  { grid-template-columns: repeat(2, 1fr); }
    .prod-spec-row    { break-inside: avoid; }
    .prod-section-title { font-size: 1.8rem; }
}
