/* Written and developed by Naeime abbasi - WPHelper */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= font - start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 100;
	src: url('fonts/iranyekanwebthinfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 300;
	src: url('fonts/iranyekanweblightfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: normal;
	src: url('fonts/iranyekanwebregularfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 500;
	src: url('fonts/iranyekanwebmediumfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 600;
	src: url('fonts/iranyekanwebboldfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 700;
	src: url('fonts/iranyekanwebextraboldfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 800;
	src: url('fonts/iranyekanwebblackfanum.woff') format('woff');  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 900;
	src: url('fonts/iranyekanwebextrablackfanum.woff') format('woff'); /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
}


 body {
    font-family: 'iranyekan';
	font-weight: normal;   
}
h1,h2,h3,h4,h5,h6, p, ul, li, a, span, div, figcaption, input, textarea{
	font-family: 'iranyekan' !important;
}
p{
    margin-bottom:0px;
}

/* empety mini cart */
.woocommerce-mini-cart__empty-message {
    background-image: url(https://kharidche.com/wp-content/uploads/2025/10/emp-Cart.jpg);
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    border-radius: 8px !important;
}

/* new & out of stack badge & onsale precent for product loop item */
.custom-badge {
        display: inline-block;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        line-height: 1;
        margin: 5px;
    }

    .custom-badge.new-product {
        background-color: #60cecf;
        color: #204068;
    }

    .custom-badge.out-of-stock {
        background: #e3e3e3 !important;
        border: 1px solid #a7a7a7 !important;
        color: #242424 !important;
    }
    .custom-badge.sale-badge {
    background-color: #e53945;
    color: #fff;
    }

span.onsale {
    display: none;
}
 /*scroll woocommerce breadcrumbs */
 .woocommerce-breadcrumb{
     white-space: nowrap !important;
     overflow-x: auto;
     overflow-y: hidden;
     display: block;
     -webkit-overflow-scrolling: touch;
 }
 .woocommerce-breadcrumb::-webkit-scrollbar{
    display:none;     
}


/* shop pagination */
.wph-product-loop-grid .elementor-pagination a,
.wph-product-loop-grid .elementor-pagination span {
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    line-height: 1;
}
.wph-product-loop-grid .elementor-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: inherit;
    width: auto;
    height: auto;
    padding: 0;
}
.wph-product-loop-grid .elementor-pagination a.page-numbers {
    background-color: #fbfbfb;
    color: #222; 
}
.wph-product-loop-grid .elementor-pagination a.page-numbers:hover {
    background-color: #e5e5e5;
    color: #222 !important;
}
.wph-product-loop-grid .elementor-pagination .page-numbers.current {
    background-color: #204068;
    color: #FFF;
}

/* Filters */
.jet-filter-label, .jet-filter-label {
    background-color: #f9f8f7 !important;
    padding: 7px !important;
    border-radius: 7px !important;
}

/* show more or less button on product page */
.wph-short-description-container {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

.wph-short-description-container.expanded {
    max-height: 1000px; /* می‌تواند بزرگ‌تر یا دینامیک شود */
}

.wph-read-more {
    display: inline-block;
    cursor: pointer;
    font-weight: 600;
    margin-top: 5px;
    color: #E53945;
}

/*product page */
.woocommerce div.product.elementor .woocommerce-tabs .panel {
    border-radius: 0;
    border-width: 0;
    border: 1px solid #d3ced2;
    box-shadow: none;
    margin: 0px 0 0;
    padding: 20px;
}
/* 🩶 استایل مینیمال برای جدول توضیحات تکمیلی ووکامرس */
.woocommerce-product-attributes {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 3px; /* فاصله بین ردیف‌ها */
  margin-top: 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: normal;
  color: #333;
  border: none !important;
  box-shadow: none !important;
}

.woocommerce-product-attributes tr {
  background: #ffef; /* پس‌زمینه‌ی ملایم برای هر ردیف */
  border: none !important;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  text-align: right;
  padding: 10px 15px; /* فاصله افقی و عمودی */
  vertical-align: middle;
  border: none !important;
  background: none;
}

.woocommerce-product-attributes th {
  font-weight: 600;
  color: #444;
  width: 35%;
}

.woocommerce-product-attributes td {
  color: #555;
}

/* گوشه‌های گرد برای ردیف‌ها */
.woocommerce-product-attributes tr {
  border-radius: 8px;
  overflow: hidden;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0px 0.5em 0 0;
}

/* 🌿 بهینه‌سازی تب‌های توضیحات محصول برای موبایل */
.woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  list-style: none;
  padding: 0;
}

.woocommerce-tabs ul.tabs li {
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 15px;
  color: #444;
  cursor: pointer;
  transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* 🧩 محتوای تب‌ها */
.woocommerce-tabs .panel {
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
}

/* 📱 واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
  .woocommerce-tabs ul.tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-tabs ul.tabs li {
    width: 100%;
    text-align: center;
    font-size: 14px;
  }

  .woocommerce-tabs .panel {
    padding: 12px;
    font-size: 14px;
  }
}

/*my-account */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
}

.woocommerce-MyAccount-navigation ul li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.8;
}

/* 🧩 آیکن‌های هر آیتم — آدرس‌ها رو خودت با SVG جایگزین کن */
.woocommerce-MyAccount-navigation-link--dashboard::before {
  background-image: url("https://kharidche.com/wp-content/uploads/2025/10/Category2-Bulk-32px.svg");
}

.woocommerce-MyAccount-navigation-link--orders::before {
  background-image: url("https://kharidche.com/wp-content/uploads/2025/10/ShoppingCart-Bulk-32px.svg");
}

.woocommerce-MyAccount-navigation-link--downloads::before {
  background-image: url("path/to/downloads.svg");
}

.woocommerce-MyAccount-navigation-link--edit-address::before {
  background-image: url("https://kharidche.com/wp-content/uploads/2025/10/LocationAdd-Bulk-32px.svg");
}

.woocommerce-MyAccount-navigation-link--payment-methods::before {
  background-image: url("https://kharidche.com/wp-content/uploads/2025/10/CardPos-Bulk-32px.svg") !important;
}

.woocommerce-MyAccount-navigation-link--edit-account::before {
  background-image: url("https://kharidche.com/wp-content/uploads/2025/10/ReceiptText-Bulk-32px.svg");
}

.woocommerce-MyAccount-navigation-link--customer-logout::before {
  background-image: url("https://kharidche.com/wp-content/uploads/2025/10/LogoutCurve-Bulk-32px.svg");
}

/* blog page comments */

#wph-comments.comments-head {
    background-color: #F1F1F1;
    padding: 20px;
    border-radius: 12px;
    list-style: none;
    margin: 0;
}
#wph-comments.comments-head section .comment-respond form p textarea#comment {
    border: 1px solid #ddd !important;
    border-radius: 12px;
    padding: 20px;
}
#wph-comments.comments-head li.comment {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
#wph-comments.comments-head .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
#wph-comments.comments-head .comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
#wph-comments.comments-head .comment-author .fn {
    font-weight: 600;
}

#wph-comments.comments-head .comment-author .comment-date {
    font-size: 0.85rem;
    color: #888;
}
#wph-comments.comments-head .comment-content p {
    margin: 0;
    line-height: 1.6;
}
#wph-comments.comments-head .children {
    margin-top: 15px;
    padding-left: 30px;
}
#wph-comments.comments-head .children li.comment {
    background: #f9f9f9;
    border-color: #ddd;
}
#wph-comments.comments-head .reply a {
    display: inline-block;
    margin-top: 10px;
    color: #0073e6 !important;
    font-weight: 500;
    text-decoration: none;
}
#wph-comments.comments-head .reply a:hover {
    text-decoration: underline;
}
#wph-comments.comments-head input#submit {
    background-color: #204068;
    border: #204068;
    color: #fff;
    border-radius: 8px;
}
#wph-comments.comments-head .comment-metadata a {
    color: #9c9c9c !important;
}
/* واکنش‌گرایی موبایل */
@media (max-width: 768px) {
    #wph-comments.comments-head li.comment {
        padding: 15px;
    }
    #wph-comments.comments-head .comment-author {
        flex-direction: column;
        align-items: flex-start;
    }
}





