/**
 * Frontend Styles for Evique Variable Products
 */

/* Product Details Section */
.evique-product-details {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.evique-detail-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.evique-detail-label {
    font-weight: 600;
    min-width: 150px;
    color: #333;
}

.evique-detail-value {
    color: #666;
}

/* Diamond Details */
.evique-diamond-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Diamond Accordion */
.evique-diamond-accordion {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.evique-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.evique-accordion-header:hover {
    background: #f0f0f0;
}

.evique-accordion-header.active {
    background: #e8e8e8;
}

.evique-accordion-icon {
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

.evique-accordion-content {
    display: none;
    padding: 20px;
}

.evique-diamond-item {
    background: #fafafa;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.evique-diamond-item:last-child {
    margin-bottom: 0;
}

.evique-diamond-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.evique-diamond-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* Custom Gallery */
.evique-custom-gallery {
    margin-bottom: 30px;
}

.evique-gallery-main {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.evique-gallery-main img,
.evique-gallery-main video {
    width: 100%;
    height: auto;
    display: block;
}

.evique-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.evique-gallery-thumb {
    cursor: pointer;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
    aspect-ratio: 1;
    background: #f9f9f9;
}

.evique-gallery-thumb:hover {
    border-color: #999;
}

.evique-gallery-thumb.active {
    border-color: #333;
}

.evique-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evique-video-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    font-size: 24px;
}

/* Variation Display Updates */
.single-product .product .price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evique-detail-item {
        flex-direction: column;
    }

    .evique-detail-label {
        min-width: auto;
        margin-bottom: 3px;
    }

    .evique-diamond-info {
        grid-template-columns: 1fr;
    }

    .evique-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
}

/* Animation */
.evique-product-details,
.evique-diamond-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.evique-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Price Display Enhancement */
.woocommerce-variation-price {
    margin-bottom: 15px;
}

.woocommerce-variation-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.woocommerce-variation-price .price del {
    opacity: 0.6;
    font-size: 20px;
}

.woocommerce-variation-price .price ins {
    text-decoration: none;
    color: #27ae60;
}

/* Stock Status */
.woocommerce-variation-availability {
    margin-bottom: 15px;
}

.stock {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

.stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Total Price Breakdown */
.evique-total-price-breakdown {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.evique-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evique-total-price-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #333;
    font-weight: 700;
    font-size: 18px;
}

.evique-total-price-item .evique-detail-label,
.evique-total-price-item .evique-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
