/* ── Model hero: gallery + identification/pricing/CTAs ─────────────── */
.model-hero {
    display: flex;
    gap: 3rem;
    padding: 3rem 5%;
    flex-wrap: wrap;
}

.model-gallery {
    flex: 1 1 420px;
    max-width: 480px;
}

.model-gallery-main {
    display: block;
    width: 100%;
    position: relative;
}

.model-gallery-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f5f6fa;
}

.model-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .85);
    color: var(--primary-Color, #293C95);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.model-gallery-arrow:hover {
    background: #fff;
}

.model-gallery-prev {
    left: 8px;
}

.model-gallery-next {
    right: 8px;
}

.model-thumbstrip-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .8rem;
}

.model-thumbstrip-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 64px;
    background: #f0f1f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.model-thumbstrip-arrow:hover {
    background: #e2e4f0;
}
.model-thumbstrip-arrow:disabled {
    opacity: .3;
    cursor: default;
}

.model-gallery-thumbs {
    display: flex;
    gap: .6rem;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
}

.model-gallery-thumb {
    flex-shrink: 0;
}

.model-gallery-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    background: #f5f6fa;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.model-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-gallery-thumb.is-active {
    border-color: var(--primary-Color, #293C95);
}

.model-info {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
}

.model-info-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-Color, #293C95);
    line-height: 1.3;
    text-transform: none;
}

.model-info-rows {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.model-info-row {
    display: flex;
    gap: .5rem;
    font-size: 15px;
    color: #222;
}

.model-info-label {
    min-width: 140px;
    color: #444;
}

.model-price-block {
    margin-top: .4rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.model-price-label {
    font-size: 14px;
    color: #444;
}

.model-price-value {
    font-size: 30px;
    font-weight: 800;
    color: #000;
}

.model-cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}

.btn-quote {
    background: var(--primary-Color, #293C95);
    color: #fff;
    font-weight: 700;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.btn-quote:hover {
    background: #18235e;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    background: #25D366;
    border-radius: 6px;
    padding: 3px;
}

@media (max-width: 900px) {
    .model-hero {
        flex-direction: column;
        gap: 1.5rem;
    }
    .model-gallery {
        max-width: 100%;
    }
}

/* ── Model tabs: Description / Specs / Downloads / Reviews ──────────── */
.model-tabs {
    width: 70%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.model-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #e0e2ec;
    margin-bottom: 1.5rem;
}

.model-tab-btn {
    background: none;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
}

.model-tab-btn.is-active {
    background: var(--primary-Color, #293C95);
    color: #fff;
}

.model-tab-panel {
    display: none;
}

.model-tab-panel.is-active {
    display: block;
}

.model-desc-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 900px) {
    .model-tabs {
        width: 100%;
        padding: 0 5% 2rem;
    }
}

/* ── Reviews tab ──────────────────────────────────────────────────────── */
.model-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.review-card {
    background: #ECEDF3;
    border-radius: 8px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-stars .star-filled { color: #f5a623; }
.review-stars .star-empty { color: #cfd2de; }

.review-quote {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.review-avatar,
.review-avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    background: var(--primary-Color, #293C95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.review-name {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

.review-meta {
    font-size: 12px;
    color: #666;
}

/* ── Technical Specifications table (specs tab) ──────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.table-section-title {
    background-color: var(--primary-Color);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px;
    text-align: center;
}

tbody {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0;
}

tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ECEDF3;
    padding: 10px;
}

td {
    padding: 10px;
    vertical-align: top;
    line-height: 125%;
}

td.title {
    font-weight: bold;
    text-align: justify;
    width: max-content;
    min-width: fit-content;
}

@media (max-width: 768px) {
    tbody {
        grid-template-columns: repeat(1, 1fr);

    }

    tr {
        padding: 10px 0;
    }

    td.title {
        font-weight: bold;
        text-align: start;
        min-width: 150px;
    }

    td.value {

        text-align: start;
        width: -webkit-fill-available;
    }
}

/* ── Downloads tab ────────────────────────────────────────────────────── */
.download-cards-container {
    display: grid;
    padding: 0 10px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-content: center;
    justify-items: center;
    align-items: center;
    gap: 10px;
}

.download-card {
    background-color: #ECEDF3;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    min-height: 18rem;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6rem;
    width: -webkit-fill-available;
}



.download-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.download-title {
    font-weight: bold;
    color: #000000;
    font-size: 30px;
}

.download-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #333;
}

.download-icon {
    width: 24px;
    height: 24px;
    fill: #1d3b8b;
    transition: fill 0.3s ease;
}

.download-link p {
    font-size: 21px;
}

.download-icon:hover {
    fill: #163073;
}

a.download-link {
    text-decoration: none;
    padding: .7rem 3rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: var(--primary-Color);
    color: #ffff;
}

.download-icon {
    display: none;
}

.download-meta {
    display: none;
}

@media only screen and (min-width:768px) and (max-width: 1000px) {
    .download-cards-container .download-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .download-card {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-card {
        background-color: #eef0f7;
        padding: 15px 20px;
        display: flex;
        min-height: fit-content;
        justify-content: space-between;
        gap: 0;
        width: -webkit-fill-available;
        flex-direction: row;
        align-items: center;
    }

    .download-info {
        text-align: start;
    }

    .download-meta {
        display: flex;
    }

    .download-link p {
        display: none;
    }

    a.download-link {
        background-color: #00000000;
        padding: 0;
    }

    .download-icon {
        display: block;
    }

    .download-cards-container .download-card:last-child {
        grid-column: span 1;
    }

}

/* ── Gallery zoom cursor ──────────────────────────────────────────────── */
.md-gallery-zoomable {
    cursor: zoom-in;
}

/* ── Lightbox overlay ─────────────────────────────────────────────────── */
.md-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-lightbox[hidden] {
    display: none;
}

.md-lb-close {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 9010;
    opacity: .8;
    transition: opacity .15s;
}
.md-lb-close:hover { opacity: 1; }

.md-lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: .3rem .9rem;
    cursor: pointer;
    z-index: 9010;
    border-radius: 4px;
    transition: background .15s;
}
.md-lb-arrow:hover { background: rgba(255,255,255,.3); }
.md-lb-prev { left: 1rem; }
.md-lb-next { right: 1rem; }

.md-lb-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 92vw;
}

.md-lb-img {
    max-height: 70vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.md-lb-thumbs {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90vw;
}

.md-lb-thumb {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    flex-shrink: 0;
    transition: border-color .15s;
}
.md-lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.md-lb-thumb.is-active {
    border-color: #fff;
}
.md-lb-thumb:hover {
    border-color: rgba(255,255,255,.7);
}
