/* Frontend Styles für WooCommerce Elementor Fields Plugin */
/* Datei: assets/css/frontend.css */

/* Product Logo Widget */
.wef-product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wef-product-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Info Box Widget */
.wef-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

.wef-info-box .wef-info-icon {
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 2px;
    color: #6c757d;
}

.wef-info-box .wef-info-text {
    flex: 1;
}

/* Payment Methods Widget */
.wef-payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wef-payment-methods img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Additional Gallery Widget */
.wef-additional-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wef-additional-gallery .wef-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.wef-additional-gallery .wef-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wef-additional-gallery .wef-gallery-item:hover img {
    transform: scale(1.05);
}

/* Custom Rating Widget */
.wef-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.wef-rating .star-rating {
    position: relative;
    line-height: 1;
    font-size: 18px;
    color: #ffc107;
}

.wef-rating .wef-rating-text {
    font-size: 14px;
    color: #666;
}

.wef-rating .wef-rating-text strong {
    font-size: 16px;
    color: #333;
}

/* Enhanced Price Widget */
.wef-price {
    margin: 15px 0;
}

.wef-price .price-main {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.wef-price .price-main .woocommerce-Price-amount {
    font-size: inherit;
}

.wef-price .price-tax-info {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Product Variants Widget */
.wef-product-variants {
    margin: 20px 0;
}

.wef-variants-vertical .wef-variant-group {
    margin-bottom: 20px;
}

.wef-variants-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wef-variants-horizontal .wef-variant-group {
    min-width: 150px;
}

.wef-variant-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.wef-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wef-variant-option {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: center;
    min-width: 40px;
}

.wef-variant-option:hover {
    border-color: #999;
    background-color: #f8f9fa;
}

.wef-variant-option.selected {
    border-color: #007cba;
    background-color: #007cba;
    color: #fff;
}

.wef-variant-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wef-variant-option.disabled:hover {
    border-color: #ddd;
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wef-additional-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .wef-payment-methods {
        justify-content: center;
        gap: 5px;
    }
    
    .wef-payment-methods img {
        height: 24px;
    }
    
    .wef-variants-horizontal {
        flex-direction: column;
        gap: 15px;
    }
    
    .wef-variant-options {
        gap: 5px;
    }
    
    .wef-variant-option {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .wef-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .wef-additional-gallery {
        grid-template-columns: 1fr;
    }
    
    .wef-info-box {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .wef-price .price-main {
        font-size: 20px;
    }
}

/* Custom Scrollbar for Gallery */
.wef-additional-gallery::-webkit-scrollbar {
    width: 6px;
}

.wef-additional-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wef-additional-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.wef-additional-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation for smooth transitions */
.wef-variant-option,
.wef-gallery-item img,
.wef-payment-methods img {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.wef-variant-option:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wef-info-box:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}