.vd-page {
    padding: 3rem 0 4rem;
    margin-top: 4vh;
}

.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;
}

/* mobile & tablet ajustam layout via grid */
@media (max-width: 1024px) {
    .vd-layout {
        grid-template-columns: 1.8fr 1.2fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .vd-layout {
        grid-template-columns: 1fr;
    }

    .vd-main {
        order: 1;
    }

    .vd-side {
        position: static;
        /* deixa de ser sticky */
        top: auto;
        align-self: stretch;
        order: 2;
        /* vem DEPOIS do conteúdo principal */
        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;
}

/* ===== MODAL BASE ===== */
.vd-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.vd-modal.hidden {
    display: none;
}

.vd-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .75);
}

/* ===== CARD CENTRAL ===== */
.vd-modal-card {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

/* ===== WRAPPER DA IMAGEM ===== */
.vd-modal-img-wrap {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
}

/* ===== IMAGEM ===== */
.vd-modal-img {
    width: auto;
    height: auto;
    width: 120vh;
    height: 86vh;
    object-fit: cover;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    display: block;
}

/* ===== BOTÃO FECHAR ===== */
.vd-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 3;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}

.vd-modal-x:hover {
    background: rgba(0, 0, 0, .65);
    transform: scale(1.08);
}

/* ===== SETAS ===== */
.vd-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, .45);
    color: #fff;

    cursor: pointer;
    z-index: 3;

    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    /* 🔑 ESSENCIAL */
    padding: 0;
    /* 🔑 remove deslocamento */
}

.vd-modal-nav--prev {
    left: 16px;
}

.vd-modal-nav--next {
    right: 16px;
}

.vd-modal-nav:hover {
    background: rgba(0, 0, 0, .65);
    transform: translateY(-50%) scale(1.08);
}

/* MOBILE: diminui botões e ajusta posição */
@media (max-width: 768px) {
    .vd-modal-x {
        width: 36px;
        height: 36px;
        font-size: 22px;
        top: 10px;
        right: 10px;
    }

    .vd-modal-img {
        height: 50vh;
        width: min(95vw, 1200px);
    }

    .vd-modal-nav {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .vd-modal-nav--prev {
        left: 10px;
    }

    .vd-modal-nav--next {
        right: 10px;
    }
}

/* MOBILE menor ainda */
@media (max-width: 420px) {
    .vd-modal-nav {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}


@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cada “bloco” da ficha técnica */
.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;
}

/* já existiam, só aproveitando */
.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;
}

/* OK / NOT */
.vd-spec-ok {
    color: #16a34a;
}

.vd-spec-not {
    color: #a31b16;
}

/* ===== GRID POR TAMANHO DE TELA ===== */

.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;
    }
}

@media (max-width: 480px) {
    .vd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vd-specs-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}