.vd-page {
    padding: 3rem 0 4rem;
    margin-top: 4vh;
}

.alert-top {
    width: 100%;
    background: var(--cd-primary);
    color: var(--cd-white);
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 16px;
}

.alert-body {
    text-align: center;
    padding: 20px 0;
    color: var(--cd-muted);
    font-size: 14px;
}

.alert-divider {
    width: 200px;
    height: 1px;
    background: color-mix(in srgb, var(--cd-muted) 40%, transparent);
    margin: 15px auto 0;
}

.vd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.vd-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--cd-dark);
}

.vd-subtitle {
    font-size: 0.95rem;
    color: var(--cd-muted);
}

.vd-chip {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #fee2e2;
    color: var(--cd-primary);
}

.vd-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
}

.vd-card {
    background: var(--cd-white);
    border-radius: var(--cd-radius-md);
    box-shadow: var(--cd-shadow-soft);
    padding: 1.6rem 1.8rem;
}

.vd-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cd-dark);
}

.vd-gallery {
    margin-bottom: 1.6rem;
}

.vd-gallery-main {
    border-radius: var(--cd-radius-lg);
    overflow: hidden;
    background: #000;
}

.vd-gallery-main img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}

.vd-gallery-thumbs {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
}

.vd-thumb {
    border: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 90px;
    height: 60px;
    opacity: 0.55;
    transition: opacity .15s ease, transform .15s ease;
    background: transparent;
}

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

.vd-thumb.is-active,
.vd-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.vd-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem 1.8rem;
}

.vd-spec {
    color: var(--cd-dark);
}

.vd-spec-label {
    display: block;
    font-size: 0.8rem;
    color: var(--cd-muted);
    margin-bottom: 0.2rem;
}

.vd-spec-value {
    font-weight: 600;
}

.vd-spec-ok {
    color: #16a34a;
}

.vd-spec-not {
    color: #a31b16;
}

.vd-diferenciais {
    display: grid;
    grid-template-columns: auto minmax(0, 1.6fr) auto;
    align-items: center;
    gap: 1.2rem;
}

.vd-dif-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.vd-dif-content h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.vd-dif-content p {
    font-size: 0.9rem;
    color: var(--cd-muted);
}

.vd-btn-inline {
    padding-inline: 1.4rem;
}


.vd-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #111827;
}

.vd-side {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

@media (max-width: 1024px) {
    .vd-layout {
        grid-template-columns: 1.8fr 1.2fr;
    }
}

@media (max-width: 768px) {
    .vd-layout {
        grid-template-columns: 1fr;
    }

    .vd-main {
        order: 1;
    }

    .vd-side {
        position: static;
        top: auto;
        align-self: stretch;
        order: 2;
        margin-top: 1.5rem;
    }

    .vd-specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vd-side-card {
    padding: 1.8rem 1.8rem 1.9rem;
}

.vd-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.vd-price-label {
    font-size: 0.85rem;
    color: var(--cd-muted);
}

.vd-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cd-dark);
}

.vd-installments-btn {
    border: none;
    border-radius: 999px;
    background: var(--cd-primary);
    color: #fff;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.vd-installments-btn:hover {
    color: var(--cd-white);
    box-shadow: 0 12px 25px color-mix(in srgb, var(--cd-primary) 35%, transparent);
}

.vd-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.25);
    margin: 1.3rem 0 1.1rem;
}

.vd-contact-title {
    font-size: 0.9rem;
    color: var(--cd-muted);
    margin-bottom: 0.9rem;
}

.vd-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.vd-field span {
    color: var(--cd-muted);
}

.vd-field input,
.vd-field textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
}

.vd-field textarea {
    resize: vertical;
}

.vd-field input:focus,
.vd-field textarea:focus {
    border-color: var(--cd-primary);
}

.vd-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--cd-muted);
    margin: 0.6rem 0 1.1rem;
}

.vd-checkbox input {
    margin-top: 0.15rem;
}

.vd-send-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    background: var(--cd-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}



@media (max-width: 480px) {
    .vd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vd-specs-grid {
        grid-template-columns: 1fr;
    }
}

.vd-gallery-main {
    position: relative;
}

.vd-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .45);
    color: var(--cd-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.vd-gallery-arrow--prev {
    left: 0.9rem;
}

.vd-gallery-arrow--next {
    right: 0.9rem;
}

.vd-gallery-arrow:hover {
    background: rgba(0, 0, 0, .65);
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
}

.vd-thumb.is-active {
    opacity: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.20);
    outline: 2px solid var(--cd-primary);
    outline-offset: 0;
}

.vd-installments-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: var(--cd-white);
    animation: btn-spin 0.6s linear infinite;
    display: inline-block;
}

.vd-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vd-modal.hidden {
    display: none;
}

.vd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.vd-modal-card {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.vd-modal-img-wrap {
    position: relative;
    width: min(92vw, 1200px);
    height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.vd-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vd-modal-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}

.vd-modal-x:hover {
    background: rgba(17, 24, 39, 0.92);
    transform: scale(1.06);
}

.vd-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    cursor: pointer;
    z-index: 4;
    font-size: 28px;
    line-height: 1;
    padding: 0;
}

.vd-modal-nav--prev {
    left: 16px;
}

.vd-modal-nav--next {
    right: 16px;
}

.vd-modal-nav:hover {
    background: rgba(17, 24, 39, 0.92);
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
    .vd-modal {
        padding: 10px;
    }

    .vd-modal-card {
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .vd-modal-img-wrap {
        width: 100%;
        max-width: 100%;
        height: 48vh;
        max-height: 420px;
        min-height: 320px;
        border-radius: 14px;
        overflow: hidden;
        background: #111;
    }

    .vd-modal-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .vd-modal-x {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 18px;
        z-index: 5;
    }

    .vd-modal-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
        z-index: 5;
    }

    .vd-modal-nav--prev {
        left: 8px;
    }

    .vd-modal-nav--next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .vd-modal {
        padding: 8px;
    }

    .vd-modal-img-wrap {
        height: 36vh;
        min-height: 280px;
        border-radius: 12px;
    }

    .vd-modal-x {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .vd-modal-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .vd-modal-nav--prev {
        left: 6px;
    }

    .vd-modal-nav--next {
        right: 6px;
    }
}


@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.vd-specs-grid .vd-spec {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
}

.vd-spec-label {
    display: block;
    font-size: 0.8rem;
    color: var(--cd-muted);
    margin-bottom: 0.2rem;
}

.vd-spec-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.vd-spec-ok {
    color: #16a34a;
}

.vd-spec-not {
    color: #a31b16;
}

.vd-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem 1.8rem;
}

@media (max-width: 1024px) {
    .vd-layout {
        grid-template-columns: 1.8fr 1.2fr;
    }

    .vd-specs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .vd-layout {
        grid-template-columns: 1fr;
    }

    .vd-specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem 0.9rem;
    }

    .vd-specs-grid .vd-spec {
        padding: 0.65rem 0.75rem;
    }


    .vd-gallery-thumbs {
        margin-top: 0.8rem;
        display: flex;
        gap: 0.55rem;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 4px;
    }

    .vd-gallery-thumbs::-webkit-scrollbar {
        height: 6px;
    }

    .vd-gallery-thumbs::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.18);
        border-radius: 999px;
    }

    .vd-thumb {
        flex: 0 0 80px;
        min-width: 80px;
        width: 80px;
        height: 60px;
        border-radius: 12px;
        overflow: hidden;
    }

    .vd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .vd-layout>*,
    .vd-main,
    .vd-gallery {
        min-width: 0;
    }

    .vd-page,
    .vd-layout,
    .vd-main {
        overflow-x: hidden;
        max-width: 100%;
    }

    .vd-gallery {
        width: 100%;
        max-width: 100%;
    }

    .vd-gallery-main {
        position: relative;
        width: 100%;
        height: 260px;
        border-radius: 16px;
        overflow: hidden;
        background: #000;
    }

    .vd-gallery-main img {
        width: 100%;
        height: 100%;
        max-height: none;
        display: block;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .vd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vd-specs-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}