﻿.product-modal .modal-content {
    background-color: #1b1c1d;
    color: #f1f1f1;
    border: 1px solid var(--gold);
    border-radius: 12px;
}

/* Cabeçalho e rodapé */
.product-modal .modal-header,
.product-modal .modal-footer {
    background-color: #1b1c1d;
    border-color: rgba(255, 215, 0, 0.2);
}

.product-modal .modal-title {
    color: var(--gold);
}

.product-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Imagem principal fixa */
.product-modal .img-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--night-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .product-modal .img-wrapper img {
        width: 100%;
        height: 100%;
        /* 👉 não corta e preenche tudo, mesmo que distorça */
        object-fit: fill;
        object-position: center;
        display: block;
    }

/* Container das miniaturas: sempre horizontal */
.thumbs-container {
    display: flex;
    flex-direction: row !important; /* garante horizontal */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: nowrap !important; /* impede quebrar para baixo */
    overflow-x: auto; /* rolagem caso tenham muitas */
}

/* Miniaturas */
.product-modal .thumb-mini {
    width: 70px !important;
    height: 70px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover; /* mantém miniatura bonitinha; mude p/ fill se quiser distorção aqui também */
    border-radius: 6px;
    cursor: pointer;
    display: inline-block !important; /* força ficar em linha */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-modal .thumb-mini.active {
        border: 2px solid var(--gold);
    }

/* Responsivo */
@media (max-width: 768px) {
    .product-modal .img-wrapper {
        width: 100%;
        height: 300px;
    }

    .product-modal .thumb-mini {
        width: 55px !important;
        height: 55px !important;
    }
}

/* Carrossel */
.carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

.carousel-item {
    opacity: 0;
    transition: opacity .4s ease;
}

    .carousel-item.active {
        opacity: 1;
    }

.carousel-control-prev,
.carousel-control-next {
    width: 32px;
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
    filter: invert(90%) sepia(80%) saturate(400%) hue-rotate(345deg) brightness(105%) contrast(90%);
}

.carousel-indicators {
    display: none;
}
