/* گرد کردن دکمه‌های سبد خرید */
.woocommerce-cart .button,
.woocommerce-cart button,
.woocommerce-cart input[type="submit"],
.woocommerce-cart a.checkout-button {
  border-radius: 14px !important;
}

/* گرد کردن فیلدهای سبد خرید */
.woocommerce-cart input[type="text"],
.woocommerce-cart input[type="number"],
.woocommerce-cart input[type="email"],
.woocommerce-cart input[type="tel"],
.woocommerce-cart input[type="password"],
.woocommerce-cart textarea,
.woocommerce-cart select {
  border-radius: 14px !important;
}

/* گرد کردن فیلد کد تخفیف */
.woocommerce-cart .coupon input.input-text {
  border-radius: 14px !important;
}

/* گرد کردن باکس‌های اصلی سبد خرید */
.woocommerce-cart table.shop_table,
.woocommerce-cart .cart_totals,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-cart .cart-collaterals {
  border-radius: 16px !important;
}

/* اگر جدول یا باکس‌ها گوشه گرد را نشان ندادند */
.woocommerce-cart table.shop_table {
  overflow: hidden !important;
  border-collapse: separate !important;
}

/* گرد شدن فقط عکس محصول در سبد خرید */
.woocommerce-cart table.shop_table td.product-thumbnail,
.woocommerce-cart table.shop_table th.product-thumbnail,
.woocommerce-cart .product-thumbnail,
.woocommerce-cart .product-thumbnail a {
  border-radius: 0 !important;
  overflow: visible !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
  border-radius: 14px !important;
  display: block !important;
}

/* صفحه سبد خرید: محصولات سمت راست، جمع کل و ارسال سمت چپ */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 24px !important;
  align-items: start !important;
}

/* ستون چپ: انتخاب ارسال + جمع کل */
body.woocommerce-cart:not(.nb-cart-is-empty) .cart-collaterals {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  margin: 0 !important;

  position: sticky !important;
  top: 140px !important;

  align-self: start !important;
  z-index: 10 !important;
}

/* ستون راست: محصولات سبد خرید */
body.woocommerce-cart:not(.nb-cart-is-empty) .woocommerce-cart-form {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* حذف float پیش‌فرض ووکامرس */
.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* انتخاب شرکت ارسال بالای جمع کل بماند */
.woocommerce-cart .cart-collaterals .rmcc-box {
  width: 100% !important;
  margin: 0 0 18px 0 !important;
  box-sizing: border-box !important;
}

/* پاکسازی floatهای ووکامرس */
.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after {
  display: none !important;
}

/* در تبلت و موبایل دوباره عمودی شود */
@media (max-width: 921px) {
  .woocommerce-cart .woocommerce {
    display: block !important;
  }

  .woocommerce-cart .cart-collaterals {
    position: static !important;
    width: 100% !important;
    margin-top: 20px !important;
  }

  .woocommerce-cart .woocommerce-cart-form {
    width: 100% !important;
  }
}

/* گزینه‌های شرکت ارسال در ستون کناری: دو ستونه */
.woocommerce-cart .cart-collaterals .rmcc-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

/* جلوگیری از شکستن چیدمان داخل هر کارت */
.woocommerce-cart .cart-collaterals .rmcc-card {
  width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

/* متن داخل کارت جمع نشود و در صورت طولانی بودن سه‌نقطه شود */
.woocommerce-cart .cart-collaterals .rmcc-meta {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.woocommerce-cart .cart-collaterals .rmcc-name,
.woocommerce-cart .cart-collaterals .rmcc-cost {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* حذف ردیف جمع جزء در سبد خرید */
.woocommerce-cart .cart_totals .cart-subtotal,
.woocommerce-cart .cart_totals tr.cart-subtotal {
  display: none !important;
}

/* حذف تیتر جمع کل سبد خرید */
.woocommerce-cart .cart_totals > h2,
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart_totals .cart_totals_title {
  display: none !important;
}



/* NBX - Cart undo stacked notices */
.nb-cart-undo-stack{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 0 16px 0 !important;

  float:none !important;
  clear:both !important;
  box-sizing:border-box !important;
}


body.woocommerce-cart:not(.nb-cart-is-empty) .woocommerce-cart-form{
  grid-column:1 !important;
  grid-row:2 !important;
}

body.woocommerce-cart:not(.nb-cart-is-empty) .cart-collaterals{
  grid-column:2 !important;
  grid-row:2 !important;
}


.nb-cart-undo-stack .nb-cart-undo-notice{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;

  width:100% !important;
  box-sizing:border-box !important;

  margin:0 0 10px 0 !important;
  padding:12px 14px !important;

  border-radius:14px !important;
  background:#ecfdf3 !important;
  border:1px solid #b7ebc6 !important;
  color:#0f7b3a !important;

  font-size:14px !important;
  line-height:1.9 !important;
  font-weight:600 !important;
  box-shadow:none !important;
  list-style:none !important;
}

.nb-cart-undo-stack .nb-cart-undo-notice::before{
  display:none !important;
  content:none !important;
}

.nb-cart-undo-stack .nb-cart-undo-notice a{
  font-weight:900 !important;
  color:#0f7b3a !important;
  text-decoration:none !important;
}

.nb-cart-undo-countdown{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;

  flex:0 0 auto !important;

  padding:3px 8px !important;
  border-radius:999px !important;

  background:rgba(15,123,58,.10) !important;
  color:#0f7b3a !important;

  font-size:12px !important;
  line-height:1.5 !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

.nb-cart-undo-countdown-number{
  min-width:14px !important;
  text-align:center !important;
  direction:ltr !important;
}

@media (max-width:600px){
  .nb-cart-undo-stack .nb-cart-undo-notice{
    align-items:flex-start !important;
    flex-direction:column !important;
    font-size:13px !important;
    gap:6px !important;
  }

  .nb-cart-undo-countdown{
    align-self:flex-start !important;
  }
}

/* نمایش بهتر و تفکیک شده تر داخل سبد خرید برای موبایل */
/* ==================================================
   NBX - Mobile cart product list as separated cards
   ================================================== */
@media (max-width: 768px){

  /* خود جدول سبد خرید در موبایل کارت‌محور شود */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td{
    display:block !important;
    width:100% !important;
    box-sizing:border-box !important;
  }

  /* هدر جدول در موبایل لازم نیست */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead{
    display:none !important;
  }

  /* هر محصول یک کارت جدا */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item{
    position:relative !important;

    margin:0 0 14px 0 !important;
    padding:12px !important;

    background:#fff !important;
    border:1px solid rgba(0,0,0,.08) !important;
    border-radius:16px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.045) !important;

    overflow:hidden !important;
  }



  /* تصویر محصول */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail{
    padding:0 !important;
    margin:0 0 10px 0 !important;
    text-align:right !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail a{
    display:block !important;
    width:100% !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail img{
    width:100% !important;
    height:auto !important;
    max-height:210px !important;
    object-fit:cover !important;

    display:block !important;
    border-radius:14px !important;
  }

  /* نام محصول */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name{
    padding:0 !important;
    margin:0 0 10px 0 !important;

    font-size:14px !important;
    line-height:1.9 !important;
    font-weight:900 !important;
    color:#111 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a{
    color:#111 !important;
    text-decoration:none !important;
  }

  /* قیمت، تعداد، جمع جزء مثل ردیف‌های جدا داخل کارت */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;

    padding:9px 0 !important;
    margin:0 !important;

    border-top:1px solid rgba(0,0,0,.06) !important;

    font-size:13px !important;
    line-height:1.8 !important;
    color:#333 !important;
  }

  /* لیبل فارسی برای هر بخش */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price::before{
    content:"قیمت:" !important;
    font-weight:800 !important;
    color:#666 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity::before{
    content:"تعداد:" !important;
    font-weight:800 !important;
    color:#666 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal::before{
    content:"جمع:" !important;
    font-weight:800 !important;
    color:#666 !important;
  }

  /* قیمت‌ها پررنگ‌تر */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price .amount,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .amount{
    font-weight:900 !important;
    color:#111 !important;
  }

  /* تعداد محصول مرتب‌تر */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .quantity{
    margin:0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity input.qty{
    width:76px !important;
    max-width:76px !important;
    height:38px !important;

    border-radius:12px !important;
    text-align:center !important;
    margin:0 !important;
  }

  /* ردیف اکشن‌های پایین جدول مثل کوپن و بروزرسانی */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr:not(.cart_item){
    margin-top:14px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions{
    padding:12px !important;

    background:#fff !important;
    border:1px solid rgba(0,0,0,.08) !important;
    border-radius:16px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.045) !important;
  }

  /* کوپن در موبایل عمودی و مرتب */
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    width:100% !important;
    margin:0 0 10px 0 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon input.input-text,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon button,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions button[name="update_cart"]{
    width:100% !important;
    min-height:42px !important;
    border-radius:14px !important;
    margin:0 !important;
  }
}


.nb-cart-undo-notice {
  position: relative !important;
}

.nb-cart-undo-countdown {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-inline-start: 8px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.08) !important;
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  vertical-align: middle !important;
}

.nb-cart-undo-countdown-number {
  margin-inline-end: 3px !important;
  font-weight: 900 !important;
}

/* فاصله بین پیام بازگردانی و پیام سبد خالی */
body.woocommerce-cart .nb-cart-undo-notice {
  margin-bottom: 14px !important;
  position: relative !important;
  z-index: 2 !important;
}

body.woocommerce-cart .nb-cart-empty-after-undo,
body.woocommerce-cart .cart-empty {
  margin-top: 14px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* استایل دهی به باکس های برگه سبد خرید */
/* ================================
   NBX - WooCommerce Cart Page
   Modern Glass Lightweight Style
================================ */

/* باکس کلی صفحه سبد خرید */
.woocommerce-cart .entry-content .woocommerce {
  background:
    linear-gradient(
      135deg,
      rgba(225, 209, 210, 0.84),
      rgba(255, 255, 255, 0.50)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.58) !important;
  border-radius: 28px !important;

  padding: 20px !important;

  box-shadow:
    0 18px 45px rgba(55, 42, 45, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;

  overflow: hidden !important;
}

/* جدول سبد خرید */
.woocommerce-cart table.shop_table.cart {
  width: 100% !important;

  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;

  background: transparent !important;
}

/* هدر جدول */
.woocommerce-cart table.shop_table.cart thead th {
  background: transparent !important;
  border: 0 !important;

  color: #4a393d !important;
  font-size: 13px !important;
  font-weight: 900 !important;

  padding: 8px 12px !important;
  white-space: nowrap !important;
}

/* ردیف محصول */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.32)
    ) !important;

  border-radius: 20px !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 8px 18px rgba(70, 50, 55, 0.08) !important;

  overflow: hidden !important;
}

/* سلول‌ها */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
  background: transparent !important;
  border: 0 !important;

  padding: 14px 12px !important;

  color: #342b2d !important;
  font-size: 14px !important;
  font-weight: 700 !important;

  vertical-align: middle !important;
}

/* گردی گوشه‌های ردیف */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item td:first-child {
  border-start-start-radius: 20px !important;
  border-end-start-radius: 20px !important;
}

.woocommerce-cart table.shop_table.cart tbody tr.cart_item td:last-child {
  border-start-end-radius: 20px !important;
  border-end-end-radius: 20px !important;
}

/* عکس محصول */
.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  width: 64px !important;
  height: 64px !important;

  object-fit: cover !important;
  border-radius: 16px !important;

  box-shadow: 0 7px 16px rgba(70, 50, 55, 0.12) !important;
}

/* نام محصول */
.woocommerce-cart table.shop_table.cart .product-name a {
  color: #342b2d !important;
  text-decoration: none !important;

  font-weight: 900 !important;
  line-height: 1.7 !important;
}

/* متغیرهای محصول */
.woocommerce-cart table.shop_table.cart .variation {
  margin-top: 6px !important;

  color: #6b5a5d !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

/* قیمت‌ها */
.woocommerce-cart table.shop_table.cart .product-price,
.woocommerce-cart table.shop_table.cart .product-subtotal {
  color: #4a393d !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* فیلد تعداد */
.woocommerce-cart table.shop_table.cart .quantity input.qty {
  width: 64px !important;
  height: 38px !important;

  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.6) !important;

  background: rgba(255,255,255,0.58) !important;
  color: #342b2d !important;

  font-size: 14px !important;
  font-weight: 900 !important;
  text-align: center !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 5px 12px rgba(70, 50, 55, 0.08) !important;
}

/* دکمه حذف محصول */
.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  width: 30px !important;
  height: 30px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 12px !important;

  background:
    linear-gradient(
      135deg,
      rgba(255, 230, 232, 1),
      rgba(255, 185, 195, 0.90)
    ) !important;

  color: #b4232b !important;
  border: 1px solid rgba(190, 35, 45, 0.34) !important;

  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 7px 16px rgba(160, 35, 45, 0.18) !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
  background:
    linear-gradient(
      135deg,
      rgba(255, 214, 219, 1),
      rgba(255, 160, 172, 0.95)
    ) !important;

  color: #87151d !important;
}

/* بخش کوپن و بروزرسانی */
.woocommerce-cart table.shop_table.cart td.actions {
  background: transparent !important;
  border: 0 !important;
  padding: 16px 0 0 !important;
}

/* فیلد کوپن */
.woocommerce-cart .coupon input.input-text {
  min-height: 42px !important;

  border-radius: 15px !important;
  border: 1px solid rgba(255,255,255,0.6) !important;

  background: rgba(255,255,255,0.58) !important;
  color: #342b2d !important;

  padding: 9px 14px !important;

  font-weight: 700 !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 5px 12px rgba(70, 50, 55, 0.08) !important;
}

/* دکمه‌های صفحه سبد خرید */
.woocommerce-cart .coupon button.button,
.woocommerce-cart table.shop_table.cart button.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  min-height: 42px !important;

  border-radius: 15px !important;

  background: #3197d6 !important;
  color: white !important;

  border: 1px solid rgba(255, 255, 255, 0.55) !important;

  padding: 10px 18px !important;

  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 8px 18px rgba(70, 50, 55, 0.12) !important;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.woocommerce-cart .coupon button.button:hover,
.woocommerce-cart table.shop_table.cart button.button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-1px) !important;

  background: #41a5e2 !important;
  color: white !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 11px 22px rgba(70, 50, 55, 0.16) !important;
}

/* باکس جمع کل سبد خرید */
.woocommerce-cart .cart-collaterals .cart_totals {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.32)
    ) !important;

  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 24px !important;

  padding: 18px !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 12px 26px rgba(70, 50, 55, 0.10) !important;
}

/* عنوان جمع کل */
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  color: #342b2d !important;

  font-size: 18px !important;
  font-weight: 900 !important;

  margin: 0 0 14px !important;
}

/* جدول جمع کل */
.woocommerce-cart .cart_totals table.shop_table {
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  border: 0 !important;
  background: transparent !important;

  color: #342b2d !important;
  font-weight: 800 !important;

  padding: 10px 0 !important;
}

/* دکمه تسویه حساب اصلی */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  min-height: 48px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 18px !important;

  background:
    #3197d6 !important;

  font-size: 15px !important;
}

/* موبایل */
@media (max-width: 768px) {
  .woocommerce-cart .entry-content .woocommerce {
    padding: 14px !important;
    border-radius: 22px !important;
  }

  .woocommerce-cart table.shop_table.cart {
    border-spacing: 0 12px !important;
  }

  .woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    display: block !important;
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;

    padding: 8px 0 !important;
    border-radius: 0 !important;
  }

  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td::before {
    color: #6b5a5d !important;
    font-weight: 900 !important;
  }

  .woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 58px !important;
    height: 58px !important;
  }

  .woocommerce-cart .coupon {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .woocommerce-cart .coupon input.input-text,
  .woocommerce-cart .coupon button.button,
  .woocommerce-cart table.shop_table.cart button.button {
    width: 100% !important;
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    padding: 14px !important;
    border-radius: 20px !important;
  }
}

/* ================================
   NBX - Cart Table Header + Remove Button Refinement
================================ */

/* هدر جدول سبد خرید به شکل کارت نرم */
.woocommerce-cart table.shop_table.cart thead tr {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.68),
      rgba(225, 209, 210, 0.46)
    ) !important;

  border-radius: 20px !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.70),
    0 8px 18px rgba(70, 50, 55, 0.07) !important;
}

/* سلول‌های هدر */
.woocommerce-cart table.shop_table.cart thead th {
  background: transparent !important;
  border: 0 !important;

  color: #4a393d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;

  padding: 13px 12px !important;
  white-space: nowrap !important;
}

/* گردی گوشه‌های هدر */
.woocommerce-cart table.shop_table.cart thead th:first-child {
  border-start-start-radius: 20px !important;
  border-end-start-radius: 20px !important;
}

.woocommerce-cart table.shop_table.cart thead th:last-child {
  border-start-end-radius: 20px !important;
  border-end-end-radius: 20px !important;
}

/* نرم‌تر شدن سایه ردیف‌های جدول */
.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 10px 24px rgba(70, 50, 55, 0.06) !important;
}

/* نرم‌تر شدن کارت جمع کل */
.woocommerce-cart .cart-collaterals .cart_totals {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.62),
    0 14px 30px rgba(70, 50, 55, 0.08) !important;
}

/* حذف SVG آسترا داخل دکمه حذف */
.woocommerce-cart table.shop_table.cart .product-remove a.remove .ahfb-svg-iconset,
.woocommerce-cart table.shop_table.cart .product-remove a.remove svg {
  display: none !important;
}

/* دکمه حذف مثل مینی‌کارت */
.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  position: relative !important;

  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 12px !important;

  background:
    linear-gradient(
      135deg,
      rgba(255, 230, 232, 1),
      rgba(255, 185, 195, 0.9)
    ) !important;

  border: 1px solid rgba(190, 35, 45, 0.34) !important;
  color: #b4232b !important;

  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 7px 16px rgba(160, 35, 45, 0.16) !important;

  overflow: hidden !important;

  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

/* ضربدر اختصاصی با دو خط */
.woocommerce-cart table.shop_table.cart .product-remove a.remove::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  content: "" !important;

  position: absolute !important;
  top: 50% !important;
  left: 50% !important;

  width: 14px !important;
  height: 2px !important;

  border-radius: 999px !important;
  background: #b4232b !important;

  transform-origin: center !important;
}

/* خط اول ضربدر */
.woocommerce-cart table.shop_table.cart .product-remove a.remove::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* خط دوم ضربدر */
.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* هاور دکمه حذف */
.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
  transform: scale(1.06) !important;

  background:
    linear-gradient(
      135deg,
      rgba(255, 214, 219, 1),
      rgba(255, 160, 172, 0.95)
    ) !important;

  border-color: rgba(170, 25, 35, 0.42) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.82),
    0 10px 20px rgba(160, 35, 45, 0.22) !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::after {
  background: #87151d !important;
}

.woocommerce-cart td.actions .coupon button[name="apply_coupon"] {
  background: green !important;
  color: #ffffff !important;
}

.woocommerce-cart td.actions .coupon button[name="apply_coupon"]:hover {
  background: #1b961b !important;
  color: #ffffff !important;
}

/* ================================
   NBX - Cart Remove Button Final
   بدون تداخل SVG / بدون ضربدر دوگانه
================================ */

/* حذف SVG آسترا داخل دکمه حذف */
.woocommerce-cart table.shop_table.cart .product-remove a.remove .ahfb-svg-iconset,
.woocommerce-cart table.shop_table.cart .product-remove a.remove svg {
  display: none !important;
}

/* دکمه حذف محصول */
.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  position: relative !important;

  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  border-radius: 999px !important;

  background: rgba(217, 54, 62, .09) !important;
  border: 1px solid rgba(217, 54, 62, .22) !important;
  color: transparent !important;

  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;

  overflow: hidden !important;
  text-decoration: none !important;

  box-shadow: 0 6px 14px rgba(217, 54, 62, .10) !important;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease !important;
}

/* هر محتوای داخلی دکمه مخفی شود */
.woocommerce-cart table.shop_table.cart .product-remove a.remove > * {
  display: none !important;
}

/* ضربدر فقط از خود لینک ساخته شود */
.woocommerce-cart table.shop_table.cart .product-remove a.remove::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  content: "" !important;
  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 15px !important;
  height: 2px !important;

  background: #b4232b !important;
  border-radius: 999px !important;

  transform-origin: center center !important;
  display: block !important;
  pointer-events: none !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus {
  background: #d9363e !important;
  border-color: #d9363e !important;
  transform: scale(1.04) !important;
  box-shadow: 0 8px 18px rgba(217, 54, 62, .22) !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::after,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus::after {
  background: #fff !important;
}

/* جایگاه دکمه حذف در کارت موبایل */
@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;

    width: 34px !important;
    height: 34px !important;

    padding: 0 !important;
    margin: 0 !important;
    z-index: 20 !important;
  }

  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove::before,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove::after {
    content: none !important;
    display: none !important;
  }
}

/* NBX - Cart remove X equal lines final override */
.woocommerce-cart table.shop_table.cart .product-remove a.remove::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  content: "" !important;
  position: absolute !important;

  top: 50% !important;
  left: 50% !important;

  width: 15px !important;
  height: 2px !important;

  background-color: #b4232b !important;
  background-image: none !important;
  opacity: 1 !important;

  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  filter: none !important;

  transform-origin: center center !important;
  display: block !important;
  pointer-events: none !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Hover/focus: هر دو خط دقیقاً سفید شوند */
.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::after,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus::after {
  background-color: #ffffff !important;
  background-image: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* NBX - Cart remove X no delayed transition */
.woocommerce-cart table.shop_table.cart .product-remove a.remove,
.woocommerce-cart table.shop_table.cart .product-remove a.remove::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  transition: none !important;
  animation: none !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove::after {
  background: #b4232b !important;
  background-color: #b4232b !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover::after,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus::before,
.woocommerce-cart table.shop_table.cart .product-remove a.remove:focus::after {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
}