/**
 * Product Gallery & Reviews Styling
 * Gallery thumbnail centering + Minimal single-color star ratings
 */

/* ========================================
   GALLERY THUMBNAILS - Centered
   ======================================== */

/* Main gallery container */
.woocommerce-product-gallery {
    position: relative !important;
}

/* Center the thumbnail list */
.flex-control-thumbs,
.flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 15px 10px !important;
    margin: 15px auto !important;
    width: 100% !important;
    max-width: 500px !important;
}

/* Individual thumbnail items */
.flex-control-thumbs li {
    flex: 0 0 auto !important;
    width: 70px !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
}

/* Active thumbnail */
.flex-control-thumbs li.flex-active,
.flex-control-thumbs li.flex-active-slide {
    border-color: #E5A93C !important;
    box-shadow: 0 0 12px rgba(229, 169, 60, 0.5) !important;
}

/* Thumbnail images */
.flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Hover effect */
.flex-control-thumbs li:hover {
    border-color: rgba(229, 169, 60, 0.5) !important;
    transform: scale(1.05) !important;
}

/* ========================================
   STAR RATINGS - Minimal Single Color
   ======================================== */

/* WooCommerce star rating (product page under title) */
.woocommerce-product-rating {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 10px 0 !important;
}

/* Star container */
.woocommerce-product-rating .star-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    position: relative !important;
    width: auto !important;
    height: 20px !important;
    font-size: 16px !important;
    overflow: visible !important;
}

/* Individual stars */
.woocommerce-product-rating .star-rating::before,
.woocommerce-product-rating .star-rating span::before {
    display: none !important;
}

/* Use Unicode stars with gold color */
.woocommerce-product-rating .star-rating span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    color: #E5A93C !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Alternative: CSS-generated stars */
.woocommerce-product-rating .star-rating {
    display: inline-flex !important;
    gap: 2px !important;
}

.woocommerce-product-rating .star-rating::before {
    content: '' !important;
    display: none !important;
}

.woocommerce-product-rating .star-rating span::before {
    content: '' !important;
    display: none !important;
}

/* Manual star generation using CSS */
.star-rating {
    font-family: system-ui, -apple-system, sans-serif !important;
    letter-spacing: 2px !important;
}

/* Override any existing star content */
.star-rating span::before,
.star-rating::before {
    content: '' !important;
}

/* Use data attributes or CSS to show filled stars */
.woocommerce ul.products li.product .star-rating {
    font-size: 12px !important;
    color: #E5A93C !important;
}

/* ========================================
   LOOX REVIEWS - Minimal Stars
   ======================================== */

/* Loox reviews widget stars */
.loox-reviews-list .loox-review .loox-rating,
.loox-reviews-list .loox-rating,
.loox-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    color: #E5A93C !important;
}

/* Replace Loox star characters */
.loox-rating::before,
.loox-rating span::before {
    display: none !important;
}

/* Loox review rating display */
.loox-review-rating {
    display: inline-flex !important;
    align-items: center !important;
    color: #E5A93C !important;
}

/* ========================================
   BOTTOM REVIEWS WIDGET - Minimal Stars
   ======================================== */

/* Reviews section overall */
.woocommerce-tabs #reviews .star-rating,
.woocommerce-Reviews .star-rating {
    color: #E5A93C !important;
}

/* Review list stars */
.commentlist .star-rating {
    color: #E5A93C !important;
    font-size: 14px !important;
}

/* Individual star rating in comments */
.commentlist .comment-text .star-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
}

/* Hide default WooCommerce star sprites */
.star-rating::before {
    display: none !important;
}

/* Use text/emoji stars - replace with CSS */
.star-rating span::before {
    content: '★' !important;
    color: #E5A93C !important;
}

/* For filled portion */
.star-rating span {
    color: #E5A93C !important;
}

/* Empty stars */
.star-rating::before {
    content: '☆' !important;
    color: rgba(229, 169, 60, 0.3) !important;
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Center thumbnails on mobile too */
    .flex-control-thumbs {
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 5px !important;
    }

    .flex-control-thumbs li {
        width: 55px !important;
        height: 55px !important;
    }

    /* Smaller stars on mobile */
    .woocommerce-product-rating .star-rating,
    .star-rating {
        font-size: 14px !important;
    }
}
