.phoimau {
    padding: 30px 0;
    margin-bottom: 40px;
}

.bathroom-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: background-image 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    align-items: flex-start;
}

.color-item {
    cursor: pointer;
    width: 100px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    padding: 5px;
}

.color-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-item.is-selected {
    box-shadow: 0 0 0 1px #198754;
    transform: scale(1.02);
}

.color-preview {
    width: 100%;
    height: 100px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.color-item:hover .color-preview {
    border-color: #007bff;
}

.color-info {
    margin-top: 8px;
}

.color-name {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.color-code {
    display: block;
    font-size: 12px;
    color: #666;
    font-family: monospace;
}


@media (max-width: 768px) {
    .phoimau .row {
        flex-direction: column;
    }
    
    .phoimau .col {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .bathroom-image {
        height: 300px;
    }
}

@media (max-width: 549px) {
    .color-options {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .color-item {
        width: 100%;
        max-width: 150px;
        display: flex;
        align-items: center;
        text-align: left;
        padding: 10px;
    }
    
    .color-preview {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .color-info {
        margin-top: 0;
        flex: 1;
    }
}


.bathroom-image {
    position: relative;
    overflow: hidden;
}

.bathroom-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transition: opacity 0.3s ease;
    z-index: 1;
}


.color-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.color-item.loading .color-preview {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
