    .product-gallery {
        display: flex;
        flex-direction: column;
        position: relative;
    }
.main-image-wrapper {
    width: 100%;
    height: 400px;
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
    margin-top: 3em;
}

.card-img-top-wrapper {
    width: 100%;
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

/* Botão Curtir ====================================================*/
.btn-like {
    background: #f8f9fa;                  /* mesma base dos inputs/quantity */
    border: 1px solid #dee2e6;
    color: #0d6efd;                       /* azul do preço */
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-like:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-like.liked {
    background-color: #ff9800;            /* usa mesma cor dos badges locais */
    border-color: #ff9800;
    color: #fff;
}

.btn-like .bi-heart-fill {
    color: #ff9800;                       /* coração laranja */
    transition: transform 0.2s ease;
}

.btn-like.liked .bi-heart-fill {
    transform: scale(1.2);
}




    .thumbnail-container {
        display: flex;
        gap: 10px;
    }

    .thumbnail-wrapper {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-wrapper:hover,
.thumbnail-wrapper.active {
    border-color: #0d6efd;
}

    .thumbnail {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        border: 2px solid transparent;
    }
    .thumbnail:hover, .thumbnail.active {
        border-color: #0d6efd;
    }
    .product-info {
        background: #f8f9fa;
        padding: 30px;
        border-radius: 8px;
    }
    .product-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .product-price {
        font-size: 1.8rem;
        font-weight: bold;
        color: #0d6efd;
    }
    .product-meta {
        margin: 20px 0;
    }
    .product-meta span {
        display: block;
        margin-bottom: 5px;
        color: #6c757d;
    }
    .quantity-selector {
        display: flex;
        align-items: center;
        margin: 20px 0;
    }
    .quantity-btn {
        width: 40px;
        height: 40px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        font-size: 1.2rem;
        cursor: pointer;
    }
    .quantity-input {
        width: 60px;
        height: 40px;
        text-align: center;
        border: 1px solid #dee2e6;
        margin: 0 5px;
    }
    .related-products {
        margin-top: 50px;
    }
    .related-product {
        transition: transform 0.3s;
    }
    .related-product:hover {
        transform: translateY(-5px);
    }
    .badge-local {
        background: #28a745;
    }
        .pix-badge {
            background-color: #32bbad;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            display: inline-block;
            margin-left: 5px;
        }
    .section-title {
        position: relative;
        display: inline-block;
        padding-bottom: 5px;
    }

    .section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 60px;   /* comprimento do tracinho */
        height: 2px;   /* espessura */
        background-color: #0d3b66; /* cor do tracinho */
    }


    /* Estilos para produtos esgotados */
    .card-out-of-stock {
        opacity: 0.7;
        position: relative;
    }
    
    .out-of-stock-overlay {
        position: absolute;
        top: 3em;
        left: 0;
        right: 0;
        background: rgba(220, 53, 69, 0.95);
        color: white;
        padding: 12px;
        text-align: center;
        z-index: 10;
        font-weight: bold;
        font-size: 1.1rem;
    }
    
    .img-out-of-stock {
        filter: grayscale(40%);
        opacity: 0.8;
    }
    
    .link-out-of-stock {
        opacity: 0.7;
    }
    
    .product-out-of-stock {
        opacity: 0.8;
    }
    
    .quantity-selector {
        display: flex;
        align-items: center;
        margin: 20px 0;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .quantity-selector small {
        flex-basis: 100%;
        margin-top: 5px;
    }
    
    /* Efeito hover para produtos disponíveis */
    .card-product:not(.card-out-of-stock):hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }
    
    .btn:disabled {
        cursor: not-allowed;
        background-color: #6c757d;
        border-color: #6c757d;
        color: white;
    }

    .cart-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        font-size: 1.5rem;
        text-decoration: none;
    }

    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: var(--secondary);
        color: white;
        width: 27px;
        height: 27px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
    }

    @media (max-width: 768px) {
        .cart-btn {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
            bottom: 20px;
            right: 20px;
        }
    }