/* ==============================================================================
   COLOR SELECTION STYLES
   ============================================================================== */

.color-selection {
    margin: 1.5rem 0;
}

.color-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.color-options {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding: 0.5rem;
    width: 100%;
}



.color-option {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: inline-block;
    margin: 0 !important;    
    border:2px solid rgba(255, 255, 255, 0.3);
}

.color-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
    transform: scale(1.05);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Dark theme adjustments */
.dark-theme .color-option.active::after {
    color: var(--accent-color);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .color-options {
        gap: 0.5rem;
    }
    
    .color-option {
        width: 24px;
        height: 24px;
        border: 1px solid transparent;
    }
}

/* Product Reference and Rating */
.product-info .product-reference {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left !important;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-info .product-reference .reference-code {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left !important;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.product-info .product-reference .reference-code strong {
    color: var(--text-primary);
    font-weight: 600;
}

.reference-code strong {
    color: var(--text-primary);
    font-weight: 600;
}

.product-info .product-reference .product-rating {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    text-align: right !important;
    flex-shrink: 0;
}

.product-info .product-reference .product-rating .rating-star,
.rating-star {
    color: #ffd700 !important;
    font-size: 16px;
    display: inline-block !important;
}

.rating-text {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Price Card Styles */
.price-card {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-card i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Show All Options Button */
.show-all-options {
    margin-top: 0.75rem;
    text-align: center;
}

.btn-show-all {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-show-all:hover {
    background: var(--accent-color);
    color: white;
}

/* Clear Selection Option */
.color-clear {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px dashed var(--text-secondary) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem !important;
}

.color-clear:hover {
    border-color: var(--accent-color) !important;
    background: rgba(199, 234, 52, 0.1) !important;
}

/* Hide extra color options initially */
.color-options .color-option:nth-child(n+8):not(.color-clear) {
    display: none;
}

.color-options.show-all .color-option {
    display: inline-block !important;
}

/* Color Dot Styles */
.color-dot {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    flex-shrink: 0;
    margin-right: 6px !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}


