@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;

}



body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
}

/********************************** banner ****************************************/

.page-banner {
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    margin: 0 30px 0 20px;
    font-size: 26px;
 position:relative;
 padding-bottom: 10px;

}

.page-banner-titl::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, #d8b08c, #8b5e3c);
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}
.banner-categories {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;   /* اگر زیاد بودن برن خط بعد */
     margin: 10px  0 10px;
justify-content: center;
}

.banner-categories a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    font-weight: 500;
}

.banner-categories a:hover {
    color: #ff9900;
font-weight:600;
}


.cat-item {
    display: flex;
    flex-direction: column;
}

.cat-item a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 5px;
}

.cat-count {
    font-size: 13px;
    color: #bbb;
}


/**************** زیر دسته های دایره ای ****************/

.subcategory-banner{
    max-width:1200px;
    margin:10px auto;
    display:flex;
    justify-content:center;
    gap:7px;
    flex-wrap:wrap;
}

.subcategory-item{
    text-decoration:none;
    text-align:center;
    width:123px;
    transition:.3s;
}

.subcategory-item:hover{
    transform:translateY(-5px);
}

.subcategory-image{
    width:90px;
    height:90px;
    border-radius:50%;
    overflow:hidden;
    margin:0 auto 10px;
    background:#fff;
    border:2px solid #ab0000;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.subcategory-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.subcategory-item span{
    display:block;
    color:#222;
    font-size:12px;
    font-weight:600;
    line-height:1.6;
}

.subcategory-item:hover span{
    color:#ab0000;
}
/***************************** سایدبار ********************************/
/* main */
.shop-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    padding: 10px 40px 40px;
    background: #ffffff;
    direction: rtl;
} 

 .shop-sidebar {
    width: 25%;
}

.sidebar-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.sidebar-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
} 
.woocommerce-product-search {
    position: relative;
}

.woocommerce-product-search input[type="search"] {
    width: 100%;
    padding: 10px 10px 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s;
}

.woocommerce-product-search input[type="search"]:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.08);
}

.woocommerce-product-search button {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    border: none;
    background: #ab0000;
    color: #fff;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.woocommerce-product-search button:hover {
    background: #0b5ed7;
}


/* پیشنهاد ما */
.woocommerce ul.product_list_widget li {
    display: blcok;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce ul.product_list_widget li:last-child {
    border-bottom: none;
}

/* تصویر کوچک */
.woocommerce ul.product_list_widget img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    
    padding: 2px;
    flex-shrink: 0;
}

/* لینک عنوان */
.woocommerce ul.product_list_widget a {
    font-size: 13px;
    color: #000;
    text-decoration: none;
    line-height: 1.7;
    display: block;
}

.woocommerce ul.product_list_widget a:hover {
    color: #0d6efd;
}

/* قیمت */
.woocommerce ul.product_list_widget .amount {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #0d6efd;
}

.woocommerce ul.product_list_widget del {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* --------------------------------------- */
.woocommerce-Price-amount.amount {
  font-size: 20px;
}

.price {
  color: #b80303 !important;
}

ins {
  text-decoration: none !important;
}



/* محتوای اصلی */ 
.shop-main {
    width: 75%;
}

/* گرید محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30;
}

.product-card {
    background: #fff;
    padding: 10px;
    border: 1px solid #1111270f;
    position: relative;
    transition: 0.3s;
}
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.product-image img {
    width: 100% ;
    height: auto;
}

.product-title {
 font-size:14px;
    margin: 15px 0;
    line-height: 1.5;
    text-align: center;
}
.product-title a {
    color: #000;
    text-decoration: none;
    font-weight: bold;

}
.product-title a:hover {
    color:rgb(0, 68, 176);
}
.product-price {
    color: rgb(0, 68, 176);
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.product-price del {
    color: #999;
    margin-right: 5px;
}
.product-card {
    position: relative;
}
/* ایکونهای های علاقه مندیو مقایسه در هاور محصول تکی */
.product-hover-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
   opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.product-card:hover .product-hover-buttons {
    opacity: 1;
}

/* استایل دکمه‌ها */
.product-hover-buttons button {
    background: white;
    border: 1px solid  #D7D7D7;
    padding: 7px;
    cursor: pointer;
    font-size: 16px;
     font-size: 20px; /* 👈 قلب بزرگتر */
      color: #333 !important;
}
/* افکت هاور روی هر دکمه */
.hover-action-btn:hover .action-icon {
    stroke: #3f51b5; /* تغییر رنگ آیکون به سرمه‌ای در هاور */
    transform: scale(1.1);
}

/* استایل دکمه علاقه‌مندی زمانی که فعال (Active) است */
.hover-action-btn.my-wishlist-btn.active .action-icon {
    stroke: #f35252;
    fill: #f35252; /* قرمز پر شده برای محصولاتی که در لایست لایک هستند */
}

/* استایل دکمه مقایسه زمانی که فعال است */
.hover-action-btn.my-compare-btn.active .action-icon {
    stroke: #2ecc71;
}

/* *********************************************** */

/* 👇 تراز کامل دکمه‌ها - وسط و نزدیک border پایین */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* 👈 ارتفاع یکسان همه کارت‌ها */
    min-height: 420px; /* 👈 حداقل ارتفاع ثابت */
}

.product-image,
.product-hover-buttons,
.product-title,
.product-price {
    flex-shrink: 0; /* 👈 این‌ها کوچک نشن */
}

.add-to-cart {
    margin-top: auto !important; /* 👈 👈 دکمه بره پایین کارت */
    padding: 0px 10px 25px 10px !important; /* 👈 فاصله از border پایین */
    align-items: center;
    justify-content: center;
}
.add-to-cart a.added_to_cart  ,.added_to_cart.wc-forward{
    display: block !important;
    width: 100% !important;
    margin-top: 10px !important;
    order: 2 !important; /* 👈 بیار پایین */
}

.add-to-cart .single_add_to_cart_button {
    order: 1 !important; /* 👈 دکمه اول */
}
.add-to-cart .button,
.add-to-cart .single_add_to_cart_button {
    height: 20px !important;
    line-height: 1.4 !important;
    padding: 8px 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
/* دکمه مشاهده سبد خرید */
.woocommerce a.added_to_cart,.added_to_cart.wc-forward {
    display: block !important; 
    clear: both !important; 
    float: none !important; 
    color: #fff !important;
    margin-top: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
   background-color:#626655;
    padding-bottom:5px;
font-size: 14px;

}


/*badge تخفیف */
 .discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ab0000;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
} 

/* pagination */
 .pagination {
    margin-top: 40px;
    text-align: center;
} 


 .shop-sidebar{
    width: 280px;
    flex-shrink: 0;
} 



.wc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  margin-bottom: 20px;
}

@media (max-width: 600px) { 
.wc-topbar {
	display:block;
}}

@media (max-width: 600px) {  
 .wc-topbar-right {
  margin-bottom: 20px;
}}

.wc-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wc-view-icons {
  display: flex;
  gap: 6px;
}

.wc-view-icons a {
  width: 14px;
  height: 14px;
  border: 1px solid #bbb;
  display: inline-block;
}

/* آیکن‌ها شبیه نمونه */
.view-4 {
  background: repeating-linear-gradient(
    90deg,#555 0 2px,transparent 2px 4px
  );
}

.view-3 {
  background: repeating-linear-gradient(
    90deg,#555 0 3px,transparent 3px 6px
  );
}

.view-2 {
  background: repeating-linear-gradient(
    90deg,#555 0 5px,transparent 5px 10px
  );
}

.wc-per-page a {
  text-decoration: none;
  color: #333;
  margin: 0 2px;
}

.wc-per-page a:hover {
  color: #0073aa;
}







/* ریسپانسیو */
 @media(max-width: 992px) {
    .shop-wrapper {
        flex-direction: column;
padding:20px;
    }

    .shop-sidebar,
    .shop-main {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2,1fr);
    }
    /* دو ستونه کردن گرید اصلی محصولات */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* کاهش فاصله بین کارت‌ها برای جا شدن بهتر در صفحه موبایل */
    }

    /* بهینه‌سازی ابعاد کارت محصول برای صفحات کوچک */
    .product-card {
        padding: 8px !important;
        min-height: auto !important; /* حذف ارتفاع ثابت دسکتاپ برای جلوگیری از دفرمه شدن */
    }

    /* کوچک‌تر کردن فونت‌ها تا در دو ستون به خوبی جا شوند */
    .product-title {
        font-size: 12px !important;
        margin: 8px 0 !important;
    }

    .product-price .woocommerce-Price-amount.amount {
        font-size: 14px !important; /* متناسب‌سازی سایز قیمت */
    }

    
    .add-to-cart {
        padding: 0 5px 15px 5px !important;
    }

    .add-to-cart .button, 
    .add-to-cart .single_add_to_cart_button {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }


.wc-topbar-left{
justify-content: space-between;
}
.discount-badge {
        width: 35px;
        height: 35px;
        font-size: 11px;
        top: 8px;
        right: 8px;
    }
}

.swatch-item-wrapper {
    margin: 0px 10px;
}

@media(max-width:992px){

.mobile-filter-btn{
    display:block;
    width:100%;
    padding:12px;
    background:#fff;
    border:1px solid #ddd;
    font-weight:700;
    margin-bottom:15px;
    cursor:pointer;
}

.shop-sidebar{
    position:fixed;
    top:0;
    right:-390px;
    width:320px;
    max-width:85%;
    height:100vh;
    background:#fff;
    z-index:99999;
    overflow-y:auto;
    transition:.35s;
    padding:20px;
    box-shadow:-5px 0 25px rgba(0,0,0,.15);
}

.shop-sidebar.active{
    right:0;
}

.close-sidebar{
    display:block;
    border:none;
    background:none;
    font-size:20px;
    margin-bottom:20px;
    cursor:pointer;
}

.sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:99998;
}

.sidebar-overlay.active{
    opacity:1;
    visibility:visible;
}

}

@media(min-width:993px){

.mobile-filter-btn,
.close-sidebar,
.sidebar-overlay{
    display:none;
}

}
/* توضیحات دسته بندی و برچسب */
.archive-taxonomy-description{
    width:100%;
    overflow:hidden;
}

.archive-taxonomy-description *{
    max-width:100%;
    box-sizing:border-box;
}

/* تصاویر */
.archive-taxonomy-description img{
    max-width:100% !important;
    height:auto !important;
    display:block;
    margin:auto;
}



.archive-taxonomy-description{
    overflow:hidden;
}

.archive-taxonomy-description .table-responsive{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
/* iframe و ویدئو */
.archive-taxonomy-description iframe,
.archive-taxonomy-description video,
.archive-taxonomy-description embed{
    max-width:100% !important;
}

/* جلوگیری از بیرون زدن متن */
.archive-taxonomy-description p,
.archive-taxonomy-description div,
.archive-taxonomy-description span,
.archive-taxonomy-description td,
.archive-taxonomy-description th{
    overflow-wrap:break-word;
    word-break:break-word;
}
.archive-taxonomy-description{
    overflow-x:auto;
}
/* جدول های توضیحات دسته بندی */
.archive-taxonomy-description table{
    display:block;
    width:max-content !important;
    min-width:900px !important;
    max-width:none !important;

    border-collapse:collapse !important;
    margin:15px 0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.archive-taxonomy-description th,
.archive-taxonomy-description td{
    border:1px solid #ddd !important;
    padding:10px 14px !important;
    text-align:center;
    white-space:nowrap;
}

.archive-taxonomy-description th{
    background:#f5f5f5;
    font-weight:700;
}
