@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 {
    background: linear-gradient(314deg, #111127, transparent);
    color: #fff;
    padding: 50px 0;
    text-align: right;
}

.page-banner h1 {
    margin: 0 30px 0 20px;
    font-size: 26px;
}

.page-banner p {
    margin:13px  35px;
    
}

.banner-categories {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;   /* اگر زیاد بودن برن خط بعد */
     margin: 10px 30px 0 10px;
}

.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;
}
/* main */
.shop-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    padding: 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;


}
/* *********************************************** */

/* 👇 تراز کامل دکمه‌ها - وسط و نزدیک 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:#0d0d5da6;
    padding-bottom:5px;
font-size: 14px;

}


/*badge تخفیف */
 .discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgb(0, 68, 176);;
    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;
    }

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

    .products-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
.page-banner {
   
    text-align: center;
}
} 



