/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* Color Grid Styles */
.product-colors-grid {
    margin: 2em 0;
}

.product-colors-grid h3 {
    margin-bottom: 1.5em;
    font-size: 1.2em;
    font-weight: 600;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}

.color-item {
    text-align: center;
    position: relative;
}

.color-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
    object-fit: cover;
}

.color-item img:hover {
    transform: scale(1.05);
}

.color-title {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9em;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .colors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .colors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .colors-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    .color-item img {
        max-width: 300px;
        margin: 0 auto;
    }
}