/* ========== Layout da Imagem e Galeria ========== */
.image-gallery {
    text-align: center;
}

.image-gallery .main-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    border: 3px solid #ddd;
    margin: auto;
    display: block;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-wrapper:hover,
.thumbnail-wrapper.active {
    border-color: #007bff;
}

.thumbnail {
    width: 115px;
    height: 115px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    display: block;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #fff;
}

/* ========== Título do Produto ========== */
.detalhes-produto-titulo h1 {
    color: #00166B;
    margin: 25px 0 20px;
}

/* ========== Preço e Parcelamento ========== */
.detalhe-produto-preco p {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.detalhe-produto-preco .preco-individual p {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

.detalhe-produto-preco .preco-individual-parcelado {
    color: #444;
    margin-top: 8px;
    line-height: 1.4;
}

.detalhe-produto-preco .text-success {
    font-weight: 600;
}

/* ========== Botão de Compra ========== */
input.btn-danger.btn-lg {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    background-color: #dc3545;
    border: none;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

input.btn-danger.btn-lg:hover {
    background-color: #dc3545;
}

.btn-ze,
.btn-ze:hover {
    text-decoration: none;
}

/* ========== Accordion (Parcelamento, Frete) ========== */
.accordion-button {
    background-color: #f8f9fa;
    color: #00166B;
    font-size: 15px;
    font-weight: 600;
}

.accordion-body {
    color: #333;
}

.accordion-body li {
    margin-bottom: 6px;
}

/* ========== Tabs: Descrição e Vídeos ========== */
.nav-tabs .nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    margin-right: 4px;
}

.nav-tabs .nav-link.active {
    background: #ffffff;
    color: #dc3545;
    border-bottom: none;
    font-size: 16px;
}

/* Conteúdo das abas */
.tab-content p {
    line-height: 1.6;
    color: #333;
}

.custom-tab {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #FFFFFF;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

/* Altura do body do componente */
#sp-main-body {
    padding: 5px 0;
}

/* Lista na página interna dos produtos */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.btn-principal.active {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000;
}

.btn-principal.active i {
    color: black;
}

/* ========== Responsividade ========== */
@media screen and (max-width: 600px) {
    .image-gallery .main-image {
        max-width: 100%;
    }

    input.btn-danger.btn-lg {
        width: 100%;
    }

    .accordion-button {
        font-size: 14px;
    }

    .nav-tabs .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .detalhes-produto-titulo h1 {
        font-size: 20px;
    }

    .custom-tab iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
    }

    .custom-tab .tab-pane {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
        overflow: hidden;
    }

    .custom-tab .tab-pane iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}