@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-color: #5b5b5b;
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;    
    color: #fff;
    padding: 40px 0;
    text-align: right;
}

.page-banner h1 {
    margin: 0 30px 5px 20px;
    font-size: 26px;
    text-align: center;

}
.page-banner p {
    margin: 0 30px 0 20px;
    text-align: center;

}

.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;
}


.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 */



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



ins {
  text-decoration: none !important;
}



/* محتوای اصلی */ 
.shop-wrapper{
    padding: 10px 40px;
}

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

/* کارت محصول */ .product-card {
    background: #fff;
    border: solid 1px #dcdbdb;
    padding: 15px;
    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:13px;
    margin: 15px 0;
    line-height: 1.5;
    text-align: center;
}
.product-title a {
    color: #000;
    text-decoration: none;
    font-weight: bold;

}

.product-price {
    color: #black;
    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;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

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

/* استایل دکمه‌ها */
.product-hover-buttons button {
    background: white;
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
        font-size: 20px; /* 👈 قلب بزرگتر */
            color: #333 !important;


}

.hover-add-to-cart .button {
    border-radius: 5px;
    padding: 5px 10px;
}
/* دکمه افزودن */
.add-to-cart {
    text-align: center;
    margin-top: 15px;
    min-height: 36px;
    
}

.add-to-cart a {
    display: inline-block;
    background:#d60644 !important;
    color: #fff !important;
    padding: 11px 18px !important;
    border-radius: 8px;
    font-size: 12px !important;
    text-decoration: none;
    transition: 0.25s;
}



/*badge تخفیف */
 .discount-badge {
    position: absolute;
    top: 0px;
    right: 15px;
    background: #d60644;
    color: #fff;
    width: 42px;
    height: 37px;
    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;
}


/********************************** صفحات مقاله ****************************************************/


.entry-title , .entry-meta {
    color: #000 !important;
}
/* ====== Comments Box ====== */

/* ===== Comment Form Style ===== */

#commentform {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* فیلدها */
#commentform input,
#commentform textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    transition: 0.3s;
    font-family: inherit;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

/* دکمه ارسال */
#commentform input[type="submit"] {
    background: #0d6efd;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#commentform input[type="submit"]:hover {
    background: #0b5ed7;
}



/************************** صفحه پرداخت ************************/
/* =========================
   ساختار دو ستونه برابر
========================= */

.woocommerce-checkout form.checkout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 0 30px 0 50px;
}

/* دو باکس برابر */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    width: 50%;
    box-sizing: border-box;
}

/* جابجایی جای باکس‌ها */
.woocommerce-checkout #order_review {
    order: 2;
}

.woocommerce-checkout #customer_details {
    order: 1;
}

/* =========================
   باکس سفارش
========================= */

.woocommerce-checkout #order_review {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* حذف تیتر اصلی */
.woocommerce-checkout #order_review_heading {
    display: none;
}

/* تیتر جعلی داخل باکس */
.woocommerce-checkout #order_review::before {
    content: "سفارش شما";
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* =========================
   باکس اطلاعات صورتحساب
========================= */

.woocommerce-checkout #customer_details > .col2-set {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* حذف float های پیش‌فرض ووکامرس */
.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    width: 100% !important;
    float: none !important;
}
.woocommerce-checkout .col-2{
    margin-bottom: 50px;
}
/* =========================
   دکمه ثبت سفارش
========================= */

.woocommerce-checkout #place_order {
    width: 100%;
    background-color: #0d6efd;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce-checkout #place_order:hover {
    background-color: #0b5ed7;
}

.woocommerce-checkout .place-order {
    margin-top: 25px;
}

/* =========================
   ریسپانسیو
========================= */

@media (max-width: 992px) {

    .woocommerce-checkout form.checkout {
        flex-direction: column;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review {
        width: 100%;
        order: unset;
    }
}

/* ریسپانسیو */
 @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;
    }
} 



select.orderby {
    border: 0px !important;
    padding: 10px;
    border-radius: 10px;
}



/********************** my-account  *************************/

.woocommerce-account .woocommerce {
    margin: 0 auto;
    padding: 20px;
}

/* Sidebar Navigation (My Account Menu) */
.woocommerce-MyAccount-navigation {
    width: 25%;
    float: left;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
}

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

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 12px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #0073aa;
    color: #fff;
}

/* Active Tab */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #0073aa;
    color: #fff;
}

/* Content Area */
.woocommerce-MyAccount-content {
    width: 70%;
    float: right;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Clear Floats */
.woocommerce-account .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

/* Dashboard Welcome Message */
.woocommerce-MyAccount-content p {
    font-size: 15px;
    line-height: 1.8;
}

/* Tables (Order History, Addresses, etc.) */
.woocommerce table.shop_table {
    border-radius: 6px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: #0073aa;
    color: white;
    padding: 12px;
}

.woocommerce table.shop_table td {
    padding: 12px;
    border-bottom: 1px solid #eaeaea;
}

/* Buttons */
.woocommerce-button,
.woocommerce .button {
    background: #0073aa !important;
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    transition: 0.3s !important;
    border: none !important;
}

.woocommerce-button:hover,
.woocommerce .button:hover {
    background: #005f87 !important;
}

/* Forms (Account details, Address editing) */
.woocommerce form .form-row input,
.woocommerce form .form-row textarea {
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #cccccc;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

/* Error / success messages */
.woocommerce-message,
.woocommerce-error {
    border-radius: 6px;
    padding: 14px 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
}


.woocommerce-account .woocommerce-MyAccount-content 
 {
    float: left;
    width: 60% !important;
}

a.woocommerce-button.button.cancel {
    margin-right: 20px;
}

@media (max-width: 768px) {
.woocommerce-account .woocommerce-MyAccount-content 
 {
        float: none;
    width: 90% !important;
}}

input#upload_wmimage_button {
    font-family: 'iranyekan';
}

.woocommerce-button, .woocommerce .button {

    font-family: 'iranyekan';
}
/* 👈 انتهای shop.css */
body.search-open {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.search,
body.post-type-archive-product.search {
    margin-top: 0 !important;
}
/********************** my-account  *************************/
