/* Estilos para sliders de producto NauticHub */
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-item.active {
    opacity: 1;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    pointer-events: auto;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Estilos para la galería en el modal de edición/creación */
.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gallery-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-item .image-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 4px;
}

.gallery-preview-item .remove-image-btn,
.gallery-preview-item .make-primary-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-preview-item.primary-image {
    border-color: #4d6d80;
    border-width: 2px;
    position: relative;
}

.gallery-preview-item.primary-image::before {
    content: "Principal";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(77, 109, 128, 0.7); /* Fondo semitransparente */
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
    z-index: 1;
}

.no-images {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    color: #666;
}