/*
Theme Name: Hello Child
Theme URI: https://example.com/
Description: چایلد تم برای Hello Elementor
Author: Your Name
Author URI: https://example.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-child
*/
/* .hafanwp img {
    -webkit-mask: linear-gradient(-60deg,#000 30%,#0005,#000 50%) right / 300% 100%;
    mask: linear-gradient(-60deg,#000 30%,#0005,#000 50%) right / 300% 100%;
    animation: nsshine 3s infinite
} */

@keyframes nsshine {
    0% {
        -webkit-mask-position: 140% 140%;
        mask-position: 140% 140%
    }

    100% {
        -webkit-mask-position: -20% -20%;
        mask-position: -20% -20%
    }
}
/* استایل‌های اختصاصی اینجا */
.psi-specs {
    margin-top: 30px;
    direction: rtl;
    font-family: 'Tahoma', sans-serif;
}

.psi-specs h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 3px solid #ff6b6b;
    display: inline-block;
    padding-bottom: 5px;
    color: #333;
}

.psi-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.psi-specs li {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.psi-specs li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.psi-specs .ttl {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #555;
    font-size: 16px;
}

.psi-specs .ttl i {
    font-size: 18px;
    color: #0055FF; /* رنگ آیکن‌ها */
    width: 25px;
    text-align: center;
}

.psi-specs .val {
    margin-top: 5px;
    font-size: 15px;
    color: #777;
}
/* قیمت محصول تک صفحه */

.custom-price-line {
    display: flex;
    flex-wrap: wrap; /* اجازه بده محتوا در موبایل به خط بعد بره */
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 40px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 500;
    font-family: inherit;
    direction: rtl;
    overflow: hidden; /* جلوگیری از بیرون‌زدگی */
}

/* آیکون */
.custom-price-line .chat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,#f0f7ff,#e6f3ff);
    box-shadow: inset 0 -4px 8px rgba(0,0,0,0.03);
    font-size: 18px;
    flex-shrink: 0; /* نذاره آیکون له بشه */
}

/* متون */
.custom-price-line .label {
    font-weight: 600;
    color: #333;
}

.custom-price-line .price {
    font-weight: 800;
    color: #0b8043;
    margin-inline-start: 8px;
    white-space: nowrap; /* فقط برای عدد قیمت */
}

.custom-price-line .old-price {
    text-decoration: line-through;
    color: #0055FFC7;
    font-size: 0.95em;
    white-space: nowrap;
}

.custom-price-line .discount {
    background: #ff4d4d;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85em;
    margin-inline-start: 6px;
    white-space: nowrap;
}

.custom-price-line .new-price {
    font-weight: 900;
    color: #0b8043;
    margin-inline-start: 8px;
    font-size: 1.05em;
    white-space: nowrap;
}

/* ریسپانسیو */
@media (max-width: 420px) {
    .custom-price-line {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 20px;
    }
    .custom-price-line .chat-icon {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
}

/* دکمه خرید */
/* دکمه افزودن به سبد خرید - ووکامرس */
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.single_add_to_cart_button,
.woocommerce .single_add_to_cart_button {
    background: linear-gradient(135deg, #2e8b57, #1d6f45);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* هاور */
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.button.single_add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #1d6f45, #145a35);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* آیکون داخل دکمه (مثلاً سبد خرید) */
.woocommerce button.button.single_add_to_cart_button::before {
    content: "🛒";
    margin-left: 6px;
    font-size: 18px;
    
}

.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff4d4d, #ff7b7b);
    color: #fff;
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
    animation: pulse 1.5s infinite;
     max-width: 30%;
    min-height: auto;
}



@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}


/* ====== استایل کارت محصول ====== */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ====== تصویر محصول ====== */
.woocommerce ul.products li.product img {
    border-radius: 12px;
    transition: all 0.4s ease;
    max-height: 280px;
    object-fit: cover;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* ====== عنوان محصول ====== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 10px 0;
    color: #333;
    transition: color 0.3s;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #0073e6;
}

/* ====== قیمت ====== */
.woocommerce ul.products li.product .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 12px;
}

/* ====== دکمه افزودن به سبد خرید ====== */
.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, #0073e6, #00c6ff);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.woocommerce ul.products li.product .button:hover {
    background: linear-gradient(135deg, #005bb5, #0095cc);
    transform: translateY(-2px);
}

/* ====== ریسپانسیو ====== */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        padding: 10px;
    }

    .woocommerce ul.products li.product img {
        max-height: 220px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem;
    }

    .woocommerce ul.products li.product .button {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}


/* 🎨 استایل بخش مرتب‌سازی و نمایش نتایج ووکامرس */
.woocommerce .woocommerce-result-count {
    font-size: 14px;
    color: #444;
    background: #f8f8f8;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

.woocommerce .woocommerce-result-count:hover {
    background: #0073e6;
    color: #fff;
    transform: translateY(-2px);
}

/* استایل کشویی مرتب‌سازی */
.woocommerce .woocommerce-ordering select {
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    outline: none;
}

.woocommerce .woocommerce-ordering select:hover {
    border-color: #0073e6;
    box-shadow: 0 2px 8px rgba(0,115,230,0.2);
}

/* برای ریسپانسیو - وسط‌چین شدن در موبایل */
@media (max-width: 768px) {
    .woocommerce .woocommerce-result-count, 
    .woocommerce .woocommerce-ordering {
        display: block;
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    .woocommerce .woocommerce-ordering select {
        width: 100%;
    }
}



/*----------------------------*/
.woocommerce-mini-cart__empty-message{
	
	height:100%;
	width:100%; 
	background-image:url('https://keshtaval.ir/wp-content/uploads/2025/09/empty-cart.webp'); 
	background-repeat:no-repeat;
	background-position:center;
	background-size:contain; }