/* Estilos para la galería de martillos */
.martillo-gallery {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.martillo-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4; /* 🔹 altura fija (igual que .gallery-main) */
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa; /* evita parpadeos o espacios en blanco */
    display: flex;
    align-items: center;
    justify-content: center;
}

.martillo-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔹 mantiene el área llena sin deformar */
    object-position: center; /* 🔹 centra la imagen */
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}



.martillo-thumbnails-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px;
}

.martillo-thumbnails {
    flex: 1;
    overflow: hidden;
}

.martillo-thumbs-track {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 10px;
}

.martillo-thumbs-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.martillo-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.martillo-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.martillo-thumb.active {
    opacity: 1;
    transform: scale(1.05);
}

.martillo-thumb-nav {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.martillo-thumb-nav:hover {
    background-color: #f0f0f0;
    color: #B51922;
}

.prev-martillo-thumb {
    left: 0;
}

.next-martillo-thumb {
    right: 0;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .martillo-main-image {
        height: 300px;
    }
    
    .martillo-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .martillo-main-image {
        height: 250px;
    }
    
    .martillo-thumb {
        width: 50px;
        height: 50px;
    }
    
    .martillo-thumbnails-container {
        padding: 0 25px;
    }
}
