/*
 Theme Name:   parskala Child
 Template:     parskala
 Theme URI: #
 Author: Hosein esmaliyan
 Author URI: https://masirwp.com
 Version:      1.0.0
*/

/*  عکس دسته بندی محصولات */
li.product .thumb-pro img {
    max-width: 100% !important;
}


/*  عکس بلاگ */
.prk-main-post-item .prk-post-item .post-item-image img {
    height: 329px;
}


/*  عنوان اچ1 مقالات */
.single-page .title-cont {
    font-size: 24px;
}

/*  عنوان اچ2 مقالات */
body.product-single h1, h2, h3, h4, h5, h6 {
    line-height: 56px;
}

/*  تیتر متن محصولات */
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 20px;
}

body.product-single h3 {
    font-size: 18px !important;
    font-weight: 700;
}

.term-description h4, .main-cont .conts h4, .content-product.single h4 {
    font-size: 16px;
	font-weight: 700;
}

.dn-box .dn-link span {
    font-size: 14px;
}

/*  تنظیم دایره رنگ محصول در دسته بندی */
.prk-archive-swatches {
    top: 10px;
    right: 5px;
	}


.prk-play:before{
  animation: blinkRed 0.6s infinite alternate;
}
@keyframes blinkRed{
  from{ text-shadow:0 0 1px red; }
  to{ text-shadow:0 0 20px red; }
}


/* فونت دسته بندی در صفحه محصول */
.col-single1 .breadcrumb a {
    font-size: 12px;
}

/* فونت عنوان دسته بندی محصول */
.footer-description-shop .title-category {
    font-size: 22px;
    font-weight: 600;
}

/*  ت پیشنهاد ویژه دسته بندی محصول */
.prs {
    right: 20px !important;
}

/* ناموجود انبار موبایل دسته بندی محصول */
@media (max-width: 990px) {
li.product .flexed.stock_box {
display: block !important;
}
}


/* تصویر توضیحات دسته بندی */
.image-row2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 auto;
  line-height: 0; /* حذف فضای سفید اضافی */
  font-size: 0;   /* برای حذف فاصله بین تصاویر */
}
.image-row2 a {
  display: block;
  transition: box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  margin: 0;
  padding: 0;
}
.image-row2 a:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.image-row2 img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: middle; /* کلیدی برای حذف فاصله */
}



/* موبایل */
@media (max-width: 768px) {
  .image-row2 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}


/* عکس دسته بندی موبایل */
.prk-grad-category .prk-mobile-categories>div span img {
    max-width: 90px;
}
/* عکس دسته بندی دسکتاپ */
.category-grid-item .category-image-wrapp img {
    width: 150px !important;
    max-width: 150px;
}



/* لوگوهای فوتر */
.foot-box.enmads .codes {
    margin: 0 2px;
    padding: 2px;
}
.social-foot .icon-social i {
    font-size: 36px;
    color: #852e3a;
}


/* ناموجود موبایل */
.single-stock span {
    color: #cd213a;
    font-weight: 900;
}


/* متن در انبار موجود نیست */
.stock-archive .in-stock {
    color: #b5001a;
    font-weight: 600;
}
body.product-single .woocommerce div.product .woocommerce-variation-availability p.stock {
    font-size: 14px;
    color: #cd0000;
}

/* رنگ زیر منو */
.prk_mega_menu>li.mega_menu_tree_level.prk-side-tab>.prk-tab-menu-items>ul>li>ul>li>ul li a {
    color: #656565;
}

/* عکس مقالات */
.humbnail-single img {
    height: 100%;
}






#woocommerce-order-items .woocommerce_order_items_wrapper table.woocommerce_order_items td.thumb .wc-order-item-thumbnail
Specificity: (1,4,2)
 {
    width: 110px !important;
    height: 110px !important;
}	 





/* ردیف عکس‌ها */
.image-row3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
/* دسکتاپ: دو ستونه */
.image-row3 a {
  width: 48%;
}
/* تنظیم عکس */
.image-row3 a img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
/* موبایل: یک ستونه */
@media (max-width: 600px) {
  .image-row3 a {
    width: 100%;
    max-width: 400px;
  }
}









/* ===============================
   محصولات جایگزین (Delro Modern)
   =============================== */
/* ظرف اصلی */
.delro-modern-wrapper {
    padding: 20px 0;
    direction: rtl;
}
.delro-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* دسکتاپ عریض → 5 ستونه */
    gap: 20px;
}
/* کارت محصول */
.delro-card {
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.delro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

/* تصویر */
.delro-image img {
    border-radius: 12px;
    transition: 0.3s;
}

.delro-card:hover .delro-image img {
    transform: scale(1.04);
}

/* حذف درصد تخفیف قالب */
.delro-card .onsale,
.delro-card .percentage,
.delro-card [class*="discount"] {
    display: none !important;
}

/* عنوان */
.delro-title {
    line-height: 1.5 !important;
    margin-top: 8px;
}

.delro-title a {
    color: #333;
    text-decoration: none;
}

/* قیمت */
.delro-price-box {
    margin-top: 10px;
	    font-size: 12px;
}
.delro-price-box ins {
    text-decoration: none;
}
.delro-price-box del {
    color: #bbb;
    font-size: 11px;
    margin-left: 5px;
}




/* ===============================
   ریسپانسیو
   =============================== */
/* تبلت → 3 ستونه */
@media (max-width: 992px) {
    .delro-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* موبایل → 2 ستونه */
@media (max-width: 768px) {
    .delro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .delro-title {
        font-size: 13px !important;
    }
}






.footer-description-shop h1 {
    font-size: 26px;
}
.footer-description-shop h2 {
    font-size: 22px;
}
.footer-description-shop h3 {
    font-size: 20px;
}
.footer-description-shop h4 h5 h6 {
    font-size: 18px;
}
.pk-short-description  h1 {
    font-size: 20px;
}
.footer-description-shop {
color: #2d2d2d;
}













/* تنظیمات پایه */
.menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    z-index: 9998; transition: 0.3s;
}
.menu-overlay.is-active { opacity: 1; visibility: visible; }
.mobile-handle { display: none; } /* مخفی در دسکتاپ */

/* -------------------------------------------
   حالت دسکتاپ (فیکس شده)
---------------------------------------------- */
@media (min-width: 769px) {
    .mini-sticky-nav {
        position: fixed !important;
        right: 0 !important; top: 50% !important;
        transform: translateY(-50%) !important;
        width: 50px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(6px) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 20px 0 0 20px !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1) !important;
        z-index: 9999 !important;
        transition: width 0.3s ease !important;
        overflow: hidden !important;
    }
    .mini-sticky-nav:hover { width: 240px !important; background: rgba(255, 255, 255, 0.9) !important; }
    
    .mini-sticky-nav ul { list-style: none; padding: 10px 0; margin: 0; }
    .mini-sticky-nav ul li a { display: flex; align-items: center; padding: 12px 10px; text-decoration: none; }
    
    /* فیکس کردن سایز عکس در دسکتاپ */
    .mini-sticky-nav ul li a img {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        margin-left: 15px !important;
        object-fit: contain;
    }
    
    .mini-sticky-nav .nav-text {
        opacity: 0; visibility: hidden; white-space: nowrap;
        color: #333; font-weight: bold; font-size: 14px;
        transition: 0.2s;
    }
    .mini-sticky-nav:hover .nav-text { opacity: 1; visibility: visible; }
}

/* -------------------------------------------
   حالت موبایل (بازشوی عمودی)
---------------------------------------------- */
@media (max-width: 768px) {
    .mini-sticky-nav {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        width: 100% !important;
        background: #fff !important;
        z-index: 10000 !important;
        max-height: 50px; /* در حالت بسته */
        transition: max-height 0.4s ease-in-out;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        direction: rtl;
    }
    /* وقتی روی موبایل باز می‌شود */
    .mini-sticky-nav.is-open { max-height: 500px; } 

    .mobile-handle {
        display: block;
        padding: 15px;
        text-align: center;
        font-weight: bold;
        background: #f8f8f8;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }
    
    .mini-sticky-nav ul { list-style: none; padding: 0; margin: 0; }
    .mini-sticky-nav ul li { border-bottom: 1px solid #f9f9f9; }
    .mini-sticky-nav ul li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        text-decoration: none;
        color: #333;
    }
    .mini-sticky-nav ul li a img { width: 25px; height: 25px; margin-left: 15px; }
    .mini-sticky-nav .nav-text { font-size: 14px; font-weight: bold; }
}



.vi-wpvs-label-selected {
    padding: 5px;
    font-size: 17px;
}






body .lds-ring div {
    border-color: #a7c5ff54 #c652e540 #f5a4a454 #bdffc169 !important;
	padding: 30px !important;
}
body .lds-ring::after {
content: "در حال بارگذاری محصولات بیشتر ..." !important;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
margin: 10px;
white-space: nowrap;
}










