/* =========================================================
   MODAL OVERLAY
========================================================= */
#vsf-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.78);
    z-index: 999999;
}
#vsf-modal.vsf-open { display: flex; }

/* =========================================================
   MODAL STRUCTURE
========================================================= */
.vsf-modal-inner {
    position: relative;
    width: 420px;
    max-width: 95%;
    height: 90vh;
}
.vsf-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* =========================================================
   VIDEO AREA
========================================================= */
.vsf-player-stage {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.vsf-player-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   PROGRESS BAR
========================================================= */
.vsf-progress {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    height: 6px;
    background: rgba(255,255,255,0.20);
    border-radius: 6px;
    z-index: 10100;
}
.vsf-progress-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 6px;
}

/* =========================================================
   TOP BUTTONS
========================================================= */
.vsf-top-buttons {
    position: absolute;
    top: 18px;
    right: 82px;
    display: flex;
    gap: 12px;
    z-index: 10110;
}
.vsf-top-buttons button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.vsf-top-buttons button img { width: 22px; height: 22px; }

/* =========================================================
   CLOSE BUTTON
========================================================= */
.vsf-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    border: none;
    padding: 0;
    z-index: 10120;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vsf-modal-close img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================================================
   SIDE ICONS – alinhados ao topo e ao fechar
========================================================= */
.vsf-side-icons {
    position: absolute;
    top: 90px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10130;
}
.vsf-side-icons .vsf-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(90,60,10,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.vsf-side-icons .vsf-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* =========================================================
   PRODUCT CARD
========================================================= */
.vsf-product-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 88%;
    background: rgba(0,0,0,0.55);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    z-index: 10140;
}
.vsf-product-thumb img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}
.vsf-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.vsf-product-price {
    font-size: 14px;
    color: #ffd400;
}
/* Botão COMPRAR AGORA — fino e retangular */
.vsf-product-buy {
    background: #A67C00 !important;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600;
    border: none !important;
    white-space: nowrap; /* impede quebrar linha */
    min-width: 150px;    /* garante largura suficiente */
    text-align: center;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: 0.2s;
}

.vsf-product-buy:hover {
    background: #c28f00 !important;
    transform: scale(1.02);
}

.vsf-product-buy:hover {
    background: #c28f00 !important;
    transform: scale(1.02);
}



/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 760px) {
    .vsf-modal-inner { width: 92%; height: 86vh; }

    .vsf-top-buttons { right: 70px; top: 16px; }
    .vsf-modal-close { top: 16px; right: 16px; }

    .vsf-side-icons { right: 20px; top: 90px; }

    .vsf-icon,
    .vsf-side-icons .vsf-icon { width: 46px; height: 46px; }

    .vsf-product-card { width: 94%; }
}
.vsf-side-icons {
    position: absolute;
    top: 140px !important;   /* ↓ desce mais */
    right: 40px !important;  /* → afasta mais da borda */
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10130;
}
/* Alinhamento lateral definitivo */
.vsf-side-icons {
    position: absolute;
    top: 120px !important; /* controla a altura */
    right: 28px !important; /* controla a distância da borda */
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 99999;
}

.vsf-side-icons .vsf-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.25);
}

.vsf-side-icons img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
/* ====== ALINHAMENTO FINAL DOS ÍCONES LATERAIS ====== */
.vsf-side-icons {
    position: absolute !important;
    top: 120px !important;
    right: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    z-index: 999999 !important;
}

.vsf-side-icons .vsf-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(90, 60, 10, 0.75) !important;
    border: 1px solid rgba(255, 215, 150, 0.30) !important;
}

.vsf-side-icons img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
}
/* Ajusta o alinhamento dos ícones laterais */
.vsf-side-icons {
    position: absolute !important;
    top: 90px !important; /* distância do topo – ajuste fino */
    right: 22px !important; /* encosta na borda direita do vídeo */
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    z-index: 99999 !important;
}

/* Garantir que os ícones fiquem centralizados e bonitos */
.vsf-side-icons .vsf-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

/* Ajustar posição do botão fechar para servir de referência */
.vsf-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
}
/* Ajuste do layout do card do produto */
.vsf-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.vsf-product-info {
    flex: 1;
}
/* Evitar que o texto empurre o botão */
.vsf-product-info {
    flex: 1;
    min-width: 0;
}
/* Normaliza o conteúdo interno dos ícones laterais */
.vsf-side-icons .vsf-icon img {
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
/* Ajuste fino: ícone do WhatsApp subir alguns pixels */
.vsf-side-icons .vsf-icon:nth-child(4) {
    margin-top: -4px !important;
}
/* === Alinhamento uniforme entre TODOS os ícones === */
.vsf-side-icons .vsf-icon {
    margin: 0 !important;            /* remove qualquer margem herdada */
}

.vsf-side-icons .vsf-icon + .vsf-icon {
    margin-top: 16px !important;     /* define espaçamento igual entre todos */
}
