.section-livro-detail {
    padding: 40px 24px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

.livro-detail-titulo{
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
}

.livro-detail-info{
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(2, 5, 6, 0.2);

    align-items: stretch;
    margin-bottom: 15px; 
}

.livro-detail-ficha{
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(2, 5, 6, 0.2);
    padding: 24px;
    margin-top: 15px;
}

.div-livro-detail-imagem{
    width: 50%;
    padding: 8px 24px;
    height: 600px;
}

.div-livro-detail-descricao{
    width: 50%;
    padding: 24px 40px;
}

.livro-detail-preco{
    font-size: 2rem;
    font-weight: 600;
    color: #222;
}


/* tabela info livro */
.livro-detail-table {
    width: 100%;
    max-width: 400px;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 1rem;
}

.livro-detail-table td {
    padding: 4px 8px;
    border: none;
    vertical-align: top;
}
.livro-detail-table td:first-child {
    color: #444;
    font-weight: 400;
    width: 160px;
    white-space: nowrap;
    background-color: rgb(244, 244, 244);
}

/* tabela ficha técnica */
.livro-detail-table.no-max-width {
    max-width: none;
}

/* thumbs gallery  */
.section-livro-detail .swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.section-livro-detail .swiper-slide {
    background-size: cover;
    background-position: center;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-livro-detail .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-livro-detail .mySwiper2 {
    height: 75%;
    width: 100%;
    border-radius: 8px;
}

.section-livro-detail .mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}
.section-livro-detail .mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}
.section-livro-detail .mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

/* btn entrar em contato */
.livro-detail-contact-btn-wrapper {
    margin-top: 24px;
    text-align: center;
}
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    background: #ff9800;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    cursor: pointer;
}
.btn-add-cart:hover {
    background: #ffb74d;
    color: #fff;
    text-decoration: none;
}

/* Modal Imagens */

.modal-imagem-bg {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-imagem-content {
    position: relative;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
}
.modal-close {
    position: absolute;
    top: 8px; right: 16px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
}
.modalSwiper img {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.modalSwiper .swiper-slide img {
    transition: transform 0.2s, transform-origin 0.2s;
    cursor: zoom-in;
}

.modalSwiper .swiper-slide img:hover {
    transform: scale(2);
    cursor: zoom-in;
    z-index: 2;
}

/* breadcrumb */

.breadcrumb-nav {
    margin-bottom: 16px;
}
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 6px;
    color: #888;
}
.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #333;
    font-weight: 600;
}

@media (max-width: 900px) {
    .section-livro-detail {
        padding: 24px 8px;
    }

    .div-livro-detail-imagem{
        padding: 8px 0px;
    }
}

@media (max-width: 600px) {
    .livro-detail-info{
        display: block;
    }

    .div-livro-detail-imagem{
        width: 80%;
        margin: auto;
    }

    .div-livro-detail-descricao{
        width: 100%;
    }
}

@media (max-width: 450px) {
    .modal-close{
        position: static;
    }
}