/* Product Variants Styling */

.product-variants {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.variant-section {
    margin-bottom: 25px;
}

.variant-section:last-child {
    margin-bottom: 0;
}

.variant-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: #333;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Color Options - Thumbnail Style */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 0 0 auto;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
    transition: all 0.2s ease;
    position: relative;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.color-option:hover .color-swatch {
    border-color: #999;
}

.color-option.active .color-swatch {
    border-color: #000;
    border-width: 2px;
}

.color-name {
    display: none;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 80px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.size-option:hover {
    border-color: #999;
    background: #f9f9f9;
}

.size-option.active {
    border-color: #000;
    background: #000;
    color: white;
}

.size-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.size-detail {
    display: block;
    font-size: 11px;
    color: #999;
}

.size-option.active .size-detail {
    color: rgba(255, 255, 255, 0.8);
}

/* Out of Stock */
.color-option.out-of-stock,
.size-option.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.color-option.out-of-stock::after,
.size-option.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #999;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-variants {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .variant-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
    }

    .color-options {
        gap: 10px;
    }

    .size-option {
        min-width: 70px;
        padding: 10px 16px;
        font-size: 13px;
    }
}