 .titlepa {
      display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
 .wtitlep {
      display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

/* === استایل کلی فرم‌ها (ورودی‌ها و لیبل‌ها) === */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #471396;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
    color: #090040;
    transition: all 0.3s ease;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: #B13BFF;
    box-shadow: 0 0 10px rgba(177, 59, 255, 0.3);
    outline: none;
}

/* === استایل جدول سبد خرید === */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table th {
    background: #471396;
    color: #fff;
    font-weight: 600;
    padding: 15px;
    text-align: center;
}

.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 15px;
}

/* === دکمه‌ها (سبد خرید و پرداخت) === */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, #471396, #B13BFF);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(71,19,150,0.3);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, #090040, #471396);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(9,0,64,0.4);
}

/* === بخش کد تخفیف === */
.woocommerce form.checkout_coupon input.input-text {
    border: 2px dashed #FFCC00;
}

.woocommerce form.checkout_coupon button.button {
    background: #FFCC00;
    color: #090040 !important;
    font-weight: 700;
}
.woocommerce form.checkout_coupon button.button:hover {
    background: #090040;
    color: #FFCC00 !important;
}

/* === هشدارها و پیام‌ها === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 14px;
    border: none;
    color: #090040;
}

.woocommerce-message { background: #E6FFEA; border-right: 6px solid #471396; }
.woocommerce-info    { background: #EAF3FF; border-right: 6px solid #FFCC00; }
.woocommerce-error   { background: #FFEAEA; border-right: 6px solid #B13BFF; }

/* === ریسپانسیو موبایل === */
@media (max-width: 768px) {
    .woocommerce-cart table.shop_table th,
    .woocommerce-cart table.shop_table td {
        font-size: 13px;
        padding: 10px;
    }
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* ===========================
   استایل سبد خرید منو المنتور
   =========================== */
.elementor-menu-cart__main {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  width: 350px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  direction: rtl;
  font-family: inherit;
}

/* بخش محصولات اسکرولی */
.bdt-mini-cart-products {
  flex: 1;
  overflow-y: auto;
  max-height: 50vh;
  padding-right: 5px;
}

/* اسکرول بار زیبا */
.bdt-mini-cart-products::-webkit-scrollbar {
  width: 6px;
}
.bdt-mini-cart-products::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}
.bdt-mini-cart-products::-webkit-scrollbar-track {
  background: transparent;
}

/* آیتم محصول */
.bdt-mini-cart-product-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  gap: 10px;
}

/* تصویر محصول */
.bdt-mini-cart-product-thumbnail img {
  width: 60px;
  height: 90px; /* حفظ نسبت حدودی 2:3 */
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #ddd;
  display: block;
}

/* اسم محصول */
.bdt-mini-cart-product-name a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color .2s;
  line-height: 1.4;
}
.bdt-mini-cart-product-name a:hover {
  color: #0073e6;
}

/* قیمت */
.bdt-mini-cart-product-price {
  font-size: 13px;
  color: #555;
}

.bdt-mini-cart-product-price ins {
  color: #e63946;
  text-decoration: none;
  font-weight: bold;
  margin-right: 5px;
}

.bdt-mini-cart-product-price del {
  color: #aaa;
  margin-right: 5px;
  font-size: 12px;
}

/* دکمه حذف */
.bdt-mini-cart-product-remove a svg {
  stroke: #e63946;
  transition: stroke .2s;
}
.bdt-mini-cart-product-remove a:hover svg {
  stroke: #000;
}

/* جمع جزء */
.bdt-mini-cart-subtotal {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  border-top: 2px solid #eee;
  padding: 12px 0;
  margin-top: auto;
}

/* دکمه‌ها */
.bdt-mini-cart-footer-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.bdt-mini-cart-footer-buttons a {
  flex: 1;
  text-align: center;
  background: #471396;
  color: #fff !important;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background .3s;
}

.bdt-mini-cart-footer-buttons a:hover {
  background: #B13BFF;
}

.bdt-button-checkout {
  background: #fc0 !important;
}
.bdt-button-checkout:hover {
  background: #B13BFF !important;
}
.bdt-button-text {
	color:#fff;
}
.bdt-button-text:hover {
		color:#fff;
}

/* ===========================
   استایل سبد خرید خالی
   =========================== */
.wc-empty-mini-cart {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.wc-empty-mini-cart svg {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  opacity: 0.6;
}

.wc-empty-mini-cart .wc-empty-message {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #444;
}

.wc-empty-mini-cart .bdt-button {
  background: #0073e6;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background .3s;
}

.wc-empty-mini-cart .bdt-button:hover {
  background: #005bb5;
}

.woocommerce .quantity {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.quantity button {
    background: linear-gradient(135deg, #471396, #B13BFF);
    border: 1px solid #ccc;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    text-align: center;
}

.quantity input.qty {
    text-align: center;
    height: 30px;
    margin: 0 5px;
}

/* حذف فلش‌های بالابر و پایین‌بر در همه مرورگرها */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield; /* برای فایرفاکس */
}

/* ===========================
  استایل به دیجیتس
   =========================== */
/* === کانتینر کلی === */
.digits-form_container.digits {
    max-width: 100%;
	  padding: 10px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
		border-style: solid;
 	 	border-width: 1px;
  	color: #3c1087;
    overflow: hidden;
    font-family:IRANSansWeb_FaNum;
    direction: rtl;
    animation: fadeInUp 0.6s ease;
}

/* === انیمیشن ورود فرم === */
@keyframes fadeInUp {
    from {opacity: 0; transform: translateY(30px);}
    to   {opacity: 1; transform: translateY(0);}
}

.digits-form_heading {
	text-align: center;
	font-size: 21px;
}
.digits-form_tab-bar .digits-form_tab-item {
  font-size: 14px;
}
.digits_secure_modal_box, .digits_ui, .digits_secure_modal_box *, .digits_ui *, .digits_font, .dig_ma-box, .dig_ma-box input, .dig_ma-box input::placeholder, .dig_ma-box ::placeholder, .dig_ma-box label, .dig_ma-box button, .dig_ma-box select, .dig_ma-box * {
  font-family: IRANSansWeb_FaNum;
}
.digits-form_button, .digits-form_button[type="submit"] {
	background: linear-gradient(135deg, #090040, #471396);
}