.product-overlay .modal-dialog.product-overlay-dialog {
    max-width: 1120px;
    width: calc(100% - 32px);
    margin: 1rem auto;
}

.product-overlay-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    background: #ffffff;
}

.product-overlay-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
}

.product-overlay-header-left {
    min-width: 0;
    padding-right: 16px;
}

.product-overlay-eyebrow {
    display: inline-block;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 8px;
}

.product-overlay-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f1f1f;
    word-break: break-word;
}

.product-overlay-close {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-size: 32px;
    line-height: 1;
    color: #666666;
    padding: 0;
    margin: 0;
    opacity: 1;
    cursor: pointer;
}

.product-overlay-close:hover {
    color: #111111;
}

.product-overlay-body {
    padding: 24px;
    background: #f8f9fb;
}

.product-overlay-layout {
    align-items: stretch;
}

.product-overlay-media-column,
.product-overlay-info-column {
    display: flex;
}

.product-media-card,
.product-info-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
}

.product-media-card {
    padding: 18px;
    height: 100%;
}

.product-main-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.modern-thumbs-list {
    display: flex;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.modern-thumbs-list img {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #ffffff;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.modern-thumbs-list img:hover {
    transform: translateY(-1px);
    border-color: #cfd4da;
}

.modern-thumbs-list img.active {
    border-color: #2f80ed;
}

.product-info-card {
    padding: 24px;
    height: 100%;
}

.product-detail-name {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    color: #1c1c1c;
    word-break: break-word;
}

.product-detail-price {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f3f8f4;
    color: #198754;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.product-model-list-wrap,
.product-text-block,
.product-video-block {
    margin-top: 22px;
}

.product-model-list-wrap:first-child,
.product-text-block:first-child,
.product-video-block:first-child {
    margin-top: 0;
}

.product-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lista-modelos-produto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lista-modelos-produto li {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #dcdfe3;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lista-modelos-produto li:hover {
    border-color: #b8c0cc;
    background: #f8f9fa;
}

.lista-modelos-produto li.selected {
    border-color: #2f80ed;
    background: #eef5ff;
    color: #1f5fbf;
}

.product-detail-text {
    margin: 0;
    color: #333333;
    font-size: 16px;
    line-height: 1.75;
    word-break: break-word;
}

.product-detail-text p:last-child {
    margin-bottom: 0;
}

#product-video-content iframe,
#product-video-content video {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .product-overlay .modal-dialog.product-overlay-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .product-overlay-header {
        padding: 18px 18px 14px;
    }

    .product-overlay-title {
        font-size: 24px;
    }

    .product-overlay-body {
        padding: 16px;
    }

    .product-overlay-media-column {
        margin-bottom: 16px;
    }

    .product-info-card {
        padding: 20px;
    }

    .product-detail-name {
        font-size: 26px;
    }

    .product-detail-price {
        font-size: 22px;
    }
}

@media (max-width: 575.98px) {
    .product-overlay-header {
        padding: 16px 16px 12px;
    }

    .product-overlay-title {
        font-size: 20px;
    }

    .product-overlay-body {
        padding: 12px;
    }

    .product-media-card,
    .product-info-card {
        border-radius: 16px;
    }

    .product-media-card {
        padding: 12px;
    }

    .product-info-card {
        padding: 16px;
    }

    .product-detail-name {
        font-size: 22px;
        line-height: 1.2;
    }

    .product-detail-price {
        font-size: 20px;
        padding: 9px 12px;
        margin-bottom: 18px;
    }

    .modern-thumbs-list {
        gap: 10px;
        margin-top: 12px;
    }

    .modern-thumbs-list img {
        width: 72px;
        height: 72px;
        border-radius: 10px;
    }

    .product-section-title {
        font-size: 13px;
    }

    .product-detail-text {
        font-size: 15px;
        line-height: 1.65;
    }

    .lista-modelos-produto {
        gap: 8px;
    }

    .lista-modelos-produto li {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 13px;
    }
}