@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {

    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
}
/********************************** banner ****************************************/
.page-banner {
    background-image: url(https://www.armandidehpardaz.ir/wp-content/uploads/2023/11/page-title-1.png);
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;    
    color: #fff;
    padding: 50px 0;
    text-align: right;
}

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


.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 */
.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: #0d6efd;
    color: #fff;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

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

.widget_price_filter .price_slider_wrapper {
    margin-top: 10px;
}

.widget_price_filter .ui-slider {
    height: 4px;
    background: #e5e5e5;
    border-radius: 4px;
}

.widget_price_filter .ui-slider-range {
    background: #0d6efd;
}

.widget_price_filter .ui-slider-handle {
    width: 16px;
    height: 16px;
    top: -6px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #0d6efd;
    cursor: pointer;
}

.widget_price_filter .price_slider_amount {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

.widget_price_filter .button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.widget_price_filter .button:hover {
    background: #0b5ed7;
}



/* پیشنهاد ما */
.woocommerce ul.product_list_widget li {
    display: flex;
    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;
}

/* --------------------------------------- */














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




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

/* کارت محصول */ .product-card {
    background: #fff;
    padding: 10px;
    
    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;
}

.product-price del {
    color: #999;
    margin-right: 5px;
}

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

.add-to-cart a {
    display: inline-block;
    background:rgb(0, 68, 176) !important;
    color: #fff !important;
    padding: 7px 18px !important;
    border-radius: 8px;
    font-size: 12px !important;
    text-decoration: none;
    transition: 0.25s;
}

.add-to-cart a:hover {
    background: rgb(33, 93, 191);;
}

/*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;
}

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


/* صفحه خرید  **************************************************/


/* =========================
   RESET هرگونه تداخل قبلی
========================= */

/* چیدمان دو ستونه سبد خرید */
/* ریست کامل تنظیمات پیشفرض ووکامرس */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* چیدمان دو ستونه */
.woocommerce-cart .woocommerce {
    display: flex;
    gap: 30px;
    align-items: flex-start;
        margin-top: 40px;

}

/* ستون جدول */
.woocommerce-cart .woocommerce-cart-form {
    flex: 2;
    min-width: 0;
}

/* ستون جمع کل */
.woocommerce-cart .cart-collaterals {
    flex: 1;
    min-width: 280px; /* حداقل عرض */
}

/* باکس جمع کل */
.woocommerce-cart .cart_totals {
    width: 100% !important;
}


/* جلوگیری از اسکرول افقی */
body.woocommerce-cart {
    overflow-x: hidden;
}


/* =========================
   اصلاح فاصله بین دو ستون
========================= */

/* کم کردن فاصله داخلی ستون سبد */
.woocommerce-cart .woocommerce-cart-form {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* کم کردن فاصله داخلی ستون تسویه */
.woocommerce-cart .cart-collaterals {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* حذف margin اضافی باکس تسویه */
.woocommerce-cart .cart_totals {
    margin: 0 !important;
    box-sizing: border-box;
}


/* =========================
   تنظیم تصویر محصول
========================= */

.woocommerce-cart .product-thumbnail {
    width: 130px;
}

.woocommerce-cart .product-thumbnail img {
    width: 110px !important;
    max-width: 110px;
}


/* =========================
   تنظیم ستون نام محصول
========================= */

.woocommerce-cart th.product-name,
.woocommerce-cart td.product-name {
    width: 35%;
    text-align: right;
}

.woocommerce-cart .product-name a {
    text-decoration: none !important;
    line-height: 1.9;
    display: block;
}


/* =========================
   تنظیم جدول
========================= */

.woocommerce-cart table.shop_table {
    width: 100%;
}


/* دکمه‌های اصلی ووکامرس */


.checkout-button.button.alt.wc-forward ,
.woocommerce-cart .button,
.woocommerce-cart input[type="submit"]{
   background-color: #0e538f !important;
    border-color: #144c7d !important;
    color: #ffffff !important;
    border-radius: 6px;
    transition: 0.3s ease;
}

/* هاور */
.woocommerce-cart .button:hover,
.woocommerce-cart input[type="submit"]:hover {
     background-color: #2d93ed !important;
    border-color: #1e73be !important;
    color: #ffffff !important;
}
/************************** صفحه پرداخت ************************/
/* =========================
   ساختار دو ستونه برابر
========================= */

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


