/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.wd-product {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.price .wrap-price .product-rating-pric{
margin-bottom:10px;
}

.wd-product:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
@media (min-width: 992px) {
  .widget-area .wd-widget {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
  }

  /* 🔹 عنوان فیلتر با پس‌زمینه طوسی کم‌رنگ */
  .widget-area .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    background-color: #f9fafb;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
  }

  /* آیتم‌های لیست فیلتر */
  .wd-filter-list li,
  .widget ul li {
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
  }

  .wd-filter-list li a,
  .widget ul li a {
    color: #374151 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
  }

  .wd-filter-list li a:hover,
  .widget ul li a:hover {
    color: #2563eb !important;
  }

  /* 🎯 استایل اسلایدر قیمت شیک‌تر */
  .widget_price_filter .price_slider {
    background: #e5e7eb;
    height: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    position: relative;
  }

  .widget_price_filter .ui-slider-range {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    height: 100%;
    border-radius: 6px;
  }

  .widget_price_filter .ui-slider-handle {
    background: #2563eb;
    border: 2px solid #fff;
    width: 20px;
    height: 20px;
    top: -6px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    cursor: grab;
    transition: background 0.2s ease;
  }

  .widget_price_filter .ui-slider-handle:hover {
    background: #1d4ed8;
  }

  .widget_price_filter .price_label {
    font-size: 14px;
    color: #4b5563;
    margin-top: 10px;
  }

  .widget_price_filter button.button {
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
  }

  .widget_price_filter button.button:hover {
    background-color: #1d4ed8;
  }

  /* حذف اسکرول غیرضروری */
  .wd-scroll {
    max-height: unset !important;
    overflow: visible !important;
  }

  .wd-scroll-content {
    max-height: unset !important;
  }
}
@media (min-width: 992px) {
  .widget-area .wd-widget ul.wd-filter-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
  }

  /* متن و چک‌باکس چپ */
  .widget-area .wd-widget ul.wd-filter-list li a,
  .widget-area .wd-widget ul.wd-filter-list li label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-grow: 1;
    justify-content: flex-start;
    color: #374151;
  }

  /* چک‌باکس */
  .widget-area .wd-widget ul.wd-filter-list li input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
  }

  /* عدد تعداد سمت راست */
  .widget-area .wd-widget ul.wd-filter-list li .count {
    font-size: 12px;
    background: #f3f4f6;
    color: #444;
    border-radius: 999px;
    padding: 0 6px;
    direction: ltr;
    margin-left: 8px;
    white-space: nowrap;
  }
}
/* فرم پرداخت ووکامرس - ظاهر نرم و شیک */
.woocommerce form.checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce form.checkout input.input-text,
.woocommerce form.checkout select,
.woocommerce form.checkout textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.3s ease-in-out;
    background-color: #f9f9f9;
}

.woocommerce form.checkout input.input-text:focus,
.woocommerce form.checkout select:focus,
.woocommerce form.checkout textarea:focus {
    border-color: #161b89;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
    outline: none;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* دکمه ثبت سفارش */
.woocommerce #payment #place_order {
    background-color: #4caf50;
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce #payment #place_order:hover {
    background-color: #43a047;
}

/* حذف حاشیه‌ها از بالا/پایین */
.woocommerce form.checkout {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* لیبل‌های فرم */
.woocommerce form.checkout .form-row label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #555;
}
