/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Prevent anchor links from being hidden behind fixed header */
html {
  scroll-padding-top: 140px; /* Match header height */
}

.comment-form-rating p.stars a {
    color: #cbd5e1 !important;
    transition: color 0.2s ease-in-out;
}

.comment-form-rating p.stars a:hover,
.comment-form-rating p.stars a.active,
.comment-form-rating p.stars.selected a.active,
.comment-form-rating p.stars.selected a:not(.active) {
    color: #FFB800 !important;
}

.comment-form-rating p.stars.selected a.active ~ a {
    color: #cbd5e1 !important;
}

.star-rating span::before {
    color: #FFB800 !important;
}

.e-rating-wrapper .e-icon-marked svg {
    fill: #FFB800 !important;
}


.elementor-element-f1a5f94 .price > span.woocommerce-Price-amount.amount:nth-child(3) {
    color: var(--e-global-color-primary) !important;
}

/* قیمت قبلی: رنگ خنثی */
.woocommerce-variation-price del {
    color: #777777 !important;
    opacity: 1 !important;
}

/* قیمت جدید: رنگ اصلی قالب */
.woocommerce-variation-price ins,
.woocommerce-variation-price ins .woocommerce-Price-amount,
.woocommerce-variation-price ins .woocommerce-Price-currencySymbol {
    color: var(--e-global-color-primary) !important;
    text-decoration: none !important;
}

/* تعداد موجودی: نارنجی، بدون پس‌زمینه و کادر */
.woocommerce-variation-availability .stock.in-stock {
    color: #FE9508 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
    box-shadow: none !important;
}

.onsale{
width: 10%;
height: 10%;
background-color: var(--e-global-color-primary);
}

.woocommerce-product-rating{
    display: flex;
  flex-direction: column;
}

.woocommerce div.product form.cart .variations {
    background-color: #f8fafc !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    vertical-align: middle !important;
    padding: 6px 0 !important;
    border: none !important;
}

.woocommerce div.product form.cart .variations label {
    font-weight: 700 !important;
    color: #334155 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    padding: 0 16px 0 40px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce div.product form.cart .variations select:hover {
    border-color: #e09f70 !important;
}

.woocommerce div.product form.cart .variations select:focus {
    outline: none !important;
    border-color: #c84b11 !important;
    box-shadow: 0 0 0 3px rgba(200, 75, 17, 0.12) !important;
}

.woocommerce div.product form.cart .variations select option {
    font-size: 14px !important;
    padding: 12px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

.woocommerce div.product form.cart .reset_variations {
    display: inline-block !important;
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #ef4444 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}