
/* Contenedor principal de atributos con logos */
#imgattr-product-attributes {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.imgattr-attributes-container {
    width: 100%;
}

.imgattr-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.imgattr-attributes-list {
    width: 100%;
}

.imgattr-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.imgattr-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.imgattr-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.imgattr-logo-container {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.imgattr-logo {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.imgattr-content {
    display: flex;
    flex-direction: column;
}

.imgattr-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.imgattr-group {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Estilo para logos inline en selectores de atributos */
.attribute-logo-inline {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.attribute-logo-inline img {
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
}

/* Integración con selectores de atributos estándar de PrestaShop */
.product-variants .form-control option[data-logo]:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Estilo para grupos de atributos */
.product-variants .form-group {
    position: relative;
}

.attribute-group-with-logos .form-control {
    padding-left: 35px;
}

.attribute-group-with-logos .attribute-logo-indicator {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .imgattr-list {
        flex-direction: column;
    }
    
    .imgattr-item {
        width: 100%;
    }
    
    #imgattr-product-attributes {
        margin: 15px 0;
        padding: 10px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.imgattr-item {
    animation: fadeIn 0.3s ease-out;
}

.imgattr-item:nth-child(1) { animation-delay: 0.1s; }
.imgattr-item:nth-child(2) { animation-delay: 0.2s; }
.imgattr-item:nth-child(3) { animation-delay: 0.3s; }
.imgattr-item:nth-child(4) { animation-delay: 0.4s; }
.imgattr-item:nth-child(5) { animation-delay: 0.5s; }
