.vit-product-detail-wrapper {
    width: 100%;
    max-width: 1360px;
    margin: 40px auto 80px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;

    .vit-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: fit-content;
        padding: 8px 16px;
        background-color: var(--bg-base-grey);
        border: 1px solid var(--bg-base-grey-dark);
        border-radius: 6px;
        color: var(--text-grey);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 600;
        transition: var(--transition-all);

        span {
            font-size: 1.1rem;
            line-height: 1;
        }

        &:hover {
            background-color: var(--color-bg-btn-dark);
            color: var(--text-light);
            border-color: var(--color-bg-btn-dark);
            transform: translateX(-3px);

            span {
                color: var(--text-light);
            }
        }
    }

    .vit-product-hero {
        display: grid;
        grid-template-columns: 5fr 5fr;
        gap: 40px;
        align-items: start;

        @media (max-width: 1024px) {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    .vit-gallery-card,
    .vit-info-card,
    .vit-extra-card,
    .vit-company-card {
        background-color: var(--bg-base-light, #ffffff);
        border: 1px solid var(--bg-base-grey-dark);
        border-radius: 12px;
        box-shadow: var(--box-shadow);
        padding: 30px;
    }

    .vit-gallery-card {
        padding: 20px;
    }

    .vit-gallery-stage {
        position: relative;
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 8px;
        overflow: hidden;
        background-color: var(--bg-base-grey);
        border: 1px solid var(--bg-base-grey-dark);
    }

    .vit-gallery-track {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .vit-gallery-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;

        &.is-active {
            opacity: 1;
            pointer-events: auto;
        }

        img,
        video,
        iframe {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            border: none;
        }
    }

    .vit-main-media-placeholder {
        color: var(--text-grey);
        font-size: 1rem;
        font-weight: 500;
        text-align: center;
    }

    .vit-gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background-color: var(--bg-base-grey);
        color: var(--text-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 4;
        transition: var(--transition-all);

        &:hover {
            background-color: var(--bg-base-grey-dark);
            transform: translateY(-50%) scale(1.1);
        }

        &.prev {
            left: 10px;
        }

        &.next {
            right: 10px;
        }
    }

    .vit-gallery-counter {
        position: absolute;
        left: 10px;
        bottom: 10px;
        z-index: 4;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        background-color: var(--bg-base-grey-dark);
        color: var(--text-light);
        font-size: 0.85rem;
        font-weight: 600;
    }

    .vit-thumb-row {
        display: flex;
        gap: 12px;
        margin-top: 15px;
        overflow-x: auto;
        padding-bottom: 5px;

        &::-webkit-scrollbar {
            height: 6px;
        }

        &::-webkit-scrollbar-thumb {
            background-color: var(--bg-base-grey-dark);
            border-radius: 10px;
        }
    }

    .vit-thumb {
        position: relative;
        flex-shrink: 0;
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid transparent;
        background-color: var(--bg-base-grey);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition-all);
        padding: 0;

        &.is-active {
            border-color: var(--text-yellow);
        }

        img,
        video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        &:hover {
            border-color: var(--text-dark);
        }
    }

    .vit-product-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .vit-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid var(--bg-base-grey-dark);
        background-color: var(--bg-base-grey);
        color: var(--text-grey);
        text-transform: uppercase;

        &--accent {
            background-color: rgba(255, 199, 87, 0.15);
            border-color: var(--text-yellow);
            color: #b8860b;
        }

        &--ok {
            background-color: var(--color-bg-seller) !important;
            border-color: var(--color-bg-seller) !important;
            color: var(--text-light) !important;
        }

        &--danger {
            background-color: var(--text-danger) !important;
            border-color: var(--text-danger) !important;
            color: var(--text-light) !important;
        }
    }

    .vit-product-title {
        margin: 0 0 10px;
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.2;
    }

    .vit-product-code {
        margin: 0 0 20px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-grey);
    }

    .vit-price-box {
        padding: 20px;
        border-radius: 8px;
        background-color: var(--bg-base-grey);
        border: 1px dashed var(--bg-base-grey-dark);
        margin-bottom: 20px;

        .vit-price-label {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            color: var(--text-grey);
            margin-bottom: 5px;
        }

        .vit-price-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-yellow);
            line-height: 1;
            display: block;
        }

        .vit-region-note {
            margin-top: 10px;
            font-size: 0.9rem;
            color: var(--text-dark);
            font-weight: 500;
        }
    }

    .vit-description {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.6;
        color: var(--text-dark);
        max-height: 150px;
        overflow: auto;
        padding-right: 10px;
    }

    .vit-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 12px 20px !important;
        height: 48px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        transition: var(--transition-all) !important;
        border: 1px solid var(--bg-base-grey-dark) !important;
        background-color: var(--bg-base-light) !important;
        color: var(--text-dark) !important;
        text-transform: uppercase !important;
        cursor: pointer !important;

        &:hover {
            background-color: var(--bg-base-grey-dark) !important;
        }

        &--accent {
            background-color: var(--text-yellow) !important;
            border-color: var(--text-yellow) !important;
            color: var(--text-dark) !important;

            &:hover {
                background-color: var(--color-bg-btn-yellow-hover) !important;
                border-color: var(--color-bg-btn-yellow-hover) !important;
            }
        }
    }

    .vit-actions-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 20px !important;

        .vit-add-cart-form {
            display: flex !important;
            flex-direction: row !important;
            align-items: flex-end !important;
            flex-wrap: wrap !important;
            gap: 15px !important;
            width: 100% !important;

            .vit-quantity-group {
                display: flex !important;
                flex-direction: column !important;
                gap: 8px !important;
                flex-shrink: 0 !important;

                .vit-quantity-label {
                    font-size: 0.9rem !important;
                    font-weight: 600 !important;
                    color: var(--text-grey) !important;
                    text-transform: uppercase !important;
                }

                .vit-quantity-control {
                    display: inline-flex !important;
                    align-items: stretch !important;
                    background-color: var(--bg-base-light) !important;
                    border: 1px solid var(--bg-base-grey-dark) !important;
                    border-radius: 8px !important;
                    height: 48px !important;
                    width: fit-content !important;
                    overflow: hidden !important;

                    .vit-qtd-btn {
                        background: var(--bg-base-grey) !important;
                        border: none !important;
                        color: var(--text-dark) !important;
                        width: 45px !important;
                        display: flex !important;
                        align-items: center !important;
                        justify-content: center !important;
                        cursor: pointer !important;
                        transition: var(--transition-all) !important;
                        font-size: 1rem !important;

                        &:hover {
                            background-color: var(--text-yellow) !important;
                        }
                    }

                    .vit-qtd-input {
                        width: 60px !important;
                        border: none !important;
                        border-left: 1px solid var(--bg-base-grey-dark) !important;
                        border-right: 1px solid var(--bg-base-grey-dark) !important;
                        text-align: center !important;
                        font-weight: 700 !important;
                        font-size: 1.2rem !important;
                        color: var(--text-dark) !important;
                        background-color: transparent !important;
                        outline: none !important;
                        border-radius: 0 !important;
                        padding: 0 !important;
                        -moz-appearance: textfield !important;

                        &::-webkit-outer-spin-button,
                        &::-webkit-inner-spin-button {
                            -webkit-appearance: none !important;
                            margin: 0 !important;
                        }
                    }
                }
            }

            .vit-btn-add-cart {
                flex: 1 !important;
                min-width: 200px !important;
            }
        }

        .vit-actions-secondary {
            display: flex !important;
            width: 100% !important;

            .vit-btn-share {
                flex: 1 !important;
            }
        }
    }

    .vit-section-title {
        margin: 0 0 20px;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
        padding-bottom: 10px;
        border-bottom: 2px solid var(--text-yellow);
        width: fit-content;
    }

    .vit-company-header-wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        flex-wrap: wrap;
        gap: 15px;

        .vit-section-title {
            margin-bottom: 0;
        }

        .vit-btn-view-store {
            padding: 8px 16px !important;
            font-size: 0.9rem !important;
            height: auto !important;
        }
    }

    .vit-company-head {
        display: flex;
        gap: 20px;
        align-items: center;
        margin-bottom: 25px;

        .vit-company-logo {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--bg-base-grey-dark);
            background-color: var(--bg-base-grey);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;

            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
            }
        }

        .vit-company-title {
            margin: 0 0 10px;
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .vit-company-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
    }

    .vit-company-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;

        @media (max-width: 600px) {
            grid-template-columns: 1fr;
        }

        .vit-company-box {
            padding: 15px;
            border-radius: 8px;
            background-color: var(--bg-base-grey);
            border: 1px solid var(--bg-base-grey-dark);

            .vit-company-box-label {
                display: block;
                font-size: 0.85rem;
                font-weight: 600;
                text-transform: uppercase;
                color: var(--text-grey);
                margin-bottom: 5px;
            }

            .vit-company-box-value {
                font-size: 1rem;
                font-weight: 500;
                color: var(--text-dark);
                word-break: break-word;
            }

            .vit-company-regions {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }
        }
    }

    .vit-extra-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }
    }

    .vit-spec-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;

        .vit-spec-row {
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 15px;
            padding: 12px 15px;
            border-radius: 8px;
            border: 1px solid var(--bg-base-grey-dark);
            background-color: var(--bg-base-grey);
            align-items: center;

            .vit-spec-label {
                font-size: 0.9rem;
                font-weight: 600;
                text-transform: uppercase;
                color: var(--text-grey);
            }

            .vit-spec-value {
                font-size: 1rem;
                font-weight: 500;
                color: var(--text-dark);
                word-break: break-word;
            }
        }
    }

    .vit-region-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .vit-region-chip {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        border-radius: 4px;
        border: 1px solid var(--bg-base-grey-dark);
        background-color: var(--bg-base-light);
        color: var(--text-dark);
        font-size: 0.85rem;
        font-weight: 500;
    }
}

.vit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;

    &.show {
        display: flex;
        opacity: 1;

        .vit-modal-content {
            transform: translateY(0);
        }
    }

    .vit-modal-content {
        background-color: var(--bg-base);
        padding: 30px;
        border-radius: 12px;
        max-width: 400px;
        width: 90%;
        text-align: center;
        position: relative;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        transform: translateY(-20px);
        transition: transform 0.3s ease;

        .vit-modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-grey);
            transition: color 0.2s;

            &:hover {
                color: var(--text-dark);
            }
        }

        .vit-modal-icon {
            font-size: 3rem;
            color: var(--color-bg-seller, #28a745);
            margin-bottom: 15px;
        }

        .vit-modal-details {
            margin: 20px 0;
            padding: 15px;
            background-color: var(--bg-base-grey);
            border-radius: 8px;
            border: 1px solid var(--bg-base-grey-dark);
            font-size: 1.1rem;
            color: var(--text-dark);
        }

        .vit-modal-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;

            .vit-btn-go-cart {
                background-color: var(--bg-base-yellow);
                color: var(--text-dark);
                padding: 12px;
                border-radius: 8px;
                text-decoration: none;
                font-weight: bold;
                transition: filter 0.2s;

                &:hover {
                    filter: brightness(0.95);
                }
            }

            .vit-btn-continue {
                background-color: transparent;
                color: var(--text-grey);
                border: 1px solid var(--bg-base-grey-dark);
                padding: 12px;
                border-radius: 8px;
                cursor: pointer;
                font-weight: 600;
                transition: background 0.2s, color 0.2s;

                &:hover {
                    background-color: var(--bg-base-grey-dark);
                    color: var(--text-dark);
                }
            }
        }
    }
}