.ps-color-swatches {
    padding: 60px 0;
    font-family: inherit;
}

.ps-color-swatches .swatch-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 20px;
}

/* Individual Item Styling */
.ps-color-swatches .swatch-item {
    width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ps-color-swatches .swatch-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 12px;
}

.ps-color-swatches .swatch-name {
    font-size: 13px;
    color: #111;
    line-height: 1.3;
}

.ps-color-swatches .swatch-footer {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ps-color-swatches .footer-text {
    font-size: 16px;
    color: #000;
}

.ps-color-swatches .swatch-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.ps-color-swatches .swatch-btn:hover {
    background-color: var(--primary-color-hover, transparent);
    color: var(--primary-color-hover, #fff);
    text-decoration: none;
    filter: brightness(0.85); /* Darkens dynamically */
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ps-color-swatches .swatch-item {
        width: 28%; /* Show 3 items per row on mobile */
    }
    .ps-color-swatches .swatch-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}