.product-main-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.product-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 0.25rem; 
}

.thumbnail-scroll-container {
    width: 100%; 
    overflow-x: auto; 
    white-space: nowrap;
    gap: 0.5rem; 
    padding-bottom: 0.5rem;
}

.miniatura-product-detail {
    width: 80px;
    height: 80px; 
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out; 
    margin-right: 0.5rem; 
}

@media (min-width: 768px) {
    .thumbnail-scroll-container {
        width: unset; 
        height: auto;
        max-height: 500px; 
        overflow-x: hidden; 
        overflow-y: auto; 
        white-space: normal; 
        margin-right: 1rem;
        padding-right: 0.5rem; 
    }

    .miniatura-product-detail {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

.miniatura-product-detail:hover,
.miniatura-product-detail.active {
    border-color: var(--bs-primary);
    transform: scale(1.05);
    box-shadow: 0 0 0.5rem rgba(0, 123, 255, 0.25); 
}

.color-option-btn {
    width: 40px; 
    height: 40px;
    border-radius: 50%; 
    border: 2px solid #ced4da;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-block; 
    padding: 0;
    flex-shrink: 0; 
}

.color-option-btn:hover {
    border-color: #6c757d; 
    transform: scale(1.08); 
}

.color-option-btn.active {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    transform: scale(1.08);
}

.talla-btn {
    min-width: 60px;
    font-weight: 500;
}

.talla-btn.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.reviews-scroll-container {
    max-height: 400px;
    overflow-y: auto; 
    padding-right: 15px; 
    scrollbar-width: thin; 
    scrollbar-color: #dee2e6 #f8f9fa; 
}

.reviews-scroll-container::-webkit-scrollbar {
    width: 8px; 
}

.reviews-scroll-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.reviews-scroll-container::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

.review-card {
    border-left: 5px solid var(--bs-light);
    transition: border-color 0.3s ease;
}

.review-card:hover {
    border-left-color: var(--bs-primary);
}

.review-card .card-title {
    font-size: 1.1rem;
}

.tab-pane p {
    text-align: justify; 
}