/* Oeltek cart page custom CSS */

/* Desktop + tablet only */
@media (min-width: 769px) {

  /* =========================
     PAGE RESET
  ========================= */
  html body.woocommerce-cart {
    background: #ffffff !important;
  }

  html body.woocommerce-cart .entry-header,
  html body.woocommerce-cart .entry-header h1,
  html body.woocommerce-cart h1.entry-title {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body.woocommerce-cart .page,
  html body.woocommerce-cart article#post-11 {
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.woocommerce-cart main#primary {
    padding-top: 100px !important;
  }

  html body.woocommerce-cart .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* =========================
     TOP CART TABS
  ========================= */
  html body.woocommerce-cart .oeltek-cart-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 32px !important;
    direction: rtl !important;
    position: relative !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 0 26px 0 !important;
    padding: 0 0 16px 0 !important;
  }

  html body.woocommerce-cart .oeltek-cart-tabs::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    background: #cc5f5a !important;
    border-radius: 999px !important;
  }

  html body.woocommerce-cart .oeltek-cart-tab,
  html body.woocommerce-cart .oeltek-cart-tab:visited,
  html body.woocommerce-cart .oeltek-cart-tab:hover {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #8b8f97 !important;
    font-size: 17.6px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.woocommerce-cart .oeltek-cart-tab-active,
  html body.woocommerce-cart .oeltek-cart-tab-active:visited,
  html body.woocommerce-cart .oeltek-cart-tab-active:hover {
    color: #cc5f5a !important;
    font-weight: 700 !important;
    gap: 3px !important;
  }

  html body.woocommerce-cart .oeltek-cart-tab-text {
    order: 1 !important;
  }

  html body.woocommerce-cart .oeltek-cart-tab-count {
    order: 2 !important;
    display: inline-flex !important;
    width: 30px !important;
    height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 3px 0 0 !important;
    border-radius: 8px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  html body.woocommerce-cart a.oeltek-cart-tab.oeltek-cart-tab-next,
  html body.woocommerce-cart a.oeltek-cart-tab.oeltek-cart-tab-next:visited,
  html body.woocommerce-cart a.oeltek-cart-tab.oeltek-cart-tab-next:hover {
    font-size: 17.6px !important;
    font-weight: 400 !important;
    color: #8b8f97 !important;
  }

  /* =========================
     CART PRODUCT LIST
  ========================= */
  body.woocommerce-cart table.shop_table.cart {
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
  }

  body.woocommerce-cart table.shop_table.cart thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table.cart tbody,
  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    display: block !important;
    position: relative !important;
    height: auto !important;
    min-height: 245px !important;
    padding: 24px 165px 54px 260px !important;
    direction: rtl !important;
    border: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 1px !important;
    background: #eeeeee !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: right !important;
  }

  /* =========================
     PRODUCT IMAGE
  ========================= */
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    position: absolute !important;
    right: 28px !important;
    top: 8px !important;
    width: 123px !important;
    height: 172px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    display: block !important;
    width: 123px !important;
    height: 172px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    max-width: none !important;
    object-fit: contain !important;
    border: 0 !important;
  }

  /* =========================
     PRODUCT TITLE + VARIANTS
  ========================= */
  body.woocommerce-cart table.shop_table.cart td.product-name {
    width: 100% !important;
    max-width: none !important;
    padding-top: 0 !important;
    text-align: right !important;
    overflow: visible !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name > a {
    display: block !important;
    max-width: 100% !important;
    color: #111111 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
    align-items: start !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    overflow: visible !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation p {
    font-size: 11.3px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #777777 !important;
    vertical-align: baseline !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* Variant icons */
  body.woocommerce-cart .oeltek-cart-var-icon {
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin-left: 9px !important;
    vertical-align: middle !important;
    font-size: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-var-label {
    display: inline !important;
    margin: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-var-icon-guarantee::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: no-repeat center / contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939aa3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M12 3l7 3v5c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6l7-3z'/>\
<path d='M9.2 12.2l1.8 1.8 3.8-4'/>\
</svg>") !important;
  }

  body.woocommerce-cart .oeltek-cart-var-icon-color::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: no-repeat center / contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a7b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M19 11.5a7 7 0 10-7 7h1.2a2.3 2.3 0 012.3 2.3c0 .66.54 1.2 1.2 1.2A6.3 6.3 0 0019 11.5z'/>\
<circle cx='8.5' cy='10' r='1'/>\
<circle cx='11.5' cy='7.5' r='1'/>\
<circle cx='15' cy='9' r='1'/>\
</svg>") !important;
  }

  /* =========================
     UNIT PRICE
  ========================= */
  body.woocommerce-cart table.shop_table.cart td.product-price {
    position: static !important;
    width: auto !important;
    margin: 10px 0 0 0 !important;
    text-align: right !important;
    direction: rtl !important;
    color: #111111 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price::before {
    content: "قیمت واحد: " !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #777777 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price .amount,
  body.woocommerce-cart table.shop_table.cart td.product-price bdi,
  body.woocommerce-cart table.shop_table.cart td.product-price .woocommerce-Price-currencySymbol {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #111111 !important;
  }

  /* =========================
     QTY
  ========================= */
  body.woocommerce-cart table.shop_table.cart td.product-quantity {
    position: absolute !important;
    right: 28px !important;
    top: 156px !important;
    left: auto !important;
    bottom: auto !important;
    width: 98px !important;
    text-align: center !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .qib-container {
    width: 98px !important;
    height: 31px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    margin: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .qib-button {
    width: 29px !important;
    height: 31px !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #cc5f5a !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 31px !important;
    padding: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity,
  body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty {
    width: 40px !important;
    height: 31px !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #cc5f5a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 31px !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* =========================
     TOTAL + REMOVE
  ========================= */
  body.woocommerce-cart table.shop_table.cart td.product-subtotal {
    display: block !important;
    position: absolute !important;
    right: 140px !important;
    top: 160px !important;
    width: 230px !important;
    text-align: right !important;
    direction: rtl !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

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

  body.woocommerce-cart table.shop_table.cart td.product-subtotal .amount,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal bdi,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #111111 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove {
    display: block !important;
    position: absolute !important;
    right: 390px !important;
    top: 160px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    z-index: 5 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    font-size: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.8 !important;
    color: #9ca3af !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove::after {
    content: "حذف کالا" !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover::after {
    color: #cc5f5a !important;
  }

  /* =========================
     CART ACTIONS
  ========================= */
  body.woocommerce-cart table.shop_table.cart td.actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 18px 0 0 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
}
/* Oeltek cart: make unit price same style as variant rows */
@media (min-width: 769px) {

  body.woocommerce-cart table.shop_table.cart td.product-price {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    direction: rtl !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    text-align: right !important;
    color: #777777 !important;
    font-size: 11.3px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price::before {
    content: "قیمت واحد:" !important;
    display: inline-block !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding-right: 25px !important;
    font-size: 11.3px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #777777 !important;
    background: no-repeat right center / 16px 16px url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939aa3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M20 12l-8 8-8-8V4h8l8 8z'/>\
<circle cx='9' cy='9' r='1'/>\
</svg>") !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price .amount,
  body.woocommerce-cart table.shop_table.cart td.product-price bdi,
  body.woocommerce-cart table.shop_table.cart td.product-price .woocommerce-Price-currencySymbol {
    font-size: 11.3px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #777777 !important;
  }
}
/* Oeltek cart: empty cart page */
@media (min-width: 769px) {
  body.woocommerce-cart .cart-empty,
  body.woocommerce-cart .return-to-shop,
  body.woocommerce-cart .wc-empty-cart-message {
    display: none !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box {
    width: 100% !important;
    min-height: 58vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
    padding: 30px 15px 70px 15px !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-img {
    width: 300px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 18px auto !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box h2 {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    color: #222222 !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box p {
    margin: 0 0 22px 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 2 !important;
    color: #777777 !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 190px !important;
    min-height: 46px !important;
    padding: 0 26px !important;
    border-radius: 12px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-btn:hover {
    background: #b94f4a !important;
    color: #ffffff !important;
  }
}
/* Oeltek cart: empty cart 30% smaller */
@media (min-width: 769px) {
  body.woocommerce-cart .oeltek-empty-cart-box {
    min-height: 50vh !important;
    padding: 20px 15px 50px 15px !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-img {
    width: 210px !important; /* 30% smaller than 300px */
    margin-bottom: 13px !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box h2 {
    font-size: 17px !important; /* 30% smaller than 24px */
    line-height: 1.7 !important;
    margin-bottom: 7px !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box p {
    font-size: 10.5px !important; /* 30% smaller than 15px */
    line-height: 1.9 !important;
    margin-bottom: 15px !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-btn {
    min-width: 133px !important;
    min-height: 32px !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
  }
}
/* Oeltek cart: style WooCommerce AJAX empty cart state */
@media (min-width: 769px) {

  body.woocommerce-cart .woocommerce:has(.cart-empty),
  body.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) {
    min-height: 50vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .cart-empty,
  body.woocommerce-cart .wc-empty-cart-message {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-cart .cart-empty::before,
  body.woocommerce-cart .wc-empty-cart-message::before {
    content: "" !important;
    display: block !important;
    width: 210px !important;
    height: 210px !important;
    margin: 0 auto 13px auto !important;
    background: url("https://oeltek.com/wp-content/uploads/2026/05/empty-cart.png") no-repeat center / contain !important;
  }

  body.woocommerce-cart .cart-empty::after,
  body.woocommerce-cart .wc-empty-cart-message::after {
    content: "سبد خرید شما خالی است!\A\Aمی‌توانید برای مشاهده محصولات بیشتر به صفحه اصلی فروشگاه بروید" !important;
    white-space: pre-line !important;
    display: block !important;
    color: #222222 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 2 !important;
    text-align: center !important;
  }

  body.woocommerce-cart .return-to-shop {
    display: block !important;
    text-align: center !important;
    margin-top: 15px !important;
  }

  body.woocommerce-cart .return-to-shop a,
  body.woocommerce-cart .return-to-shop .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 133px !important;
    min-height: 32px !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 0 !important;
  }

  body.woocommerce-cart .return-to-shop a::before,
  body.woocommerce-cart .return-to-shop .button::before {
    content: "بازگشت به فروشگاه" !important;
  }

  body.woocommerce-cart .return-to-shop a,
  body.woocommerce-cart .return-to-shop .button {
    font-size: 0 !important;
  }

  body.woocommerce-cart .return-to-shop a::before,
  body.woocommerce-cart .return-to-shop .button::before {
    font-size: 10.5px !important;
  }
}
/* Oeltek cart: hide remove notice + prevent duplicate shop button */
@media (min-width: 769px) {

  /* Hide WooCommerce "item removed / undo" message */
  body.woocommerce-cart .woocommerce-message {
    display: none !important;
  }



  /* If our custom empty cart exists, keep only our custom button */
  body.woocommerce-cart .woocommerce:has(.oeltek-empty-cart-box) .return-to-shop {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce:has(.oeltek-empty-cart-box) .oeltek-empty-cart-box {
    display: flex !important;
  }
}
/* Oeltek cart: move cart totals to left side - desktop/tablet */
@media (min-width: 769px) {

  body.woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    column-gap: 28px !important;
    align-items: start !important;
    direction: rtl !important;
  }

  body.woocommerce-cart form.woocommerce-cart-form {
    grid-column: 1 !important;
    width: 100% !important;
  }

  body.woocommerce-cart .cart-collaterals {
    grid-column: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 18px 18px 20px 18px !important;
    border: 1px solid #111111 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
    color: #111111 !important;
    text-align: right !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals table,
  body.woocommerce-cart .cart-collaterals .cart_totals table th,
  body.woocommerce-cart .cart-collaterals .cart_totals table td {
    font-size: 12px !important;
    line-height: 1.8 !important;
    color: #333333 !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals table th,
  body.woocommerce-cart .cart-collaterals .cart_totals table td {
    padding: 8px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: transparent !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals .amount,
  body.woocommerce-cart .cart-collaterals .cart_totals bdi,
  body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-Price-currencySymbol {
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    padding: 14px 0 0 0 !important;
    margin: 0 !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals .checkout-button {
    width: 100% !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    padding: 0 14px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    text-align: center !important;
  }
}

/* Oeltek cart: coupon inside cart totals box */
@media (min-width: 769px) {

  /* Hide original coupon under product list */
  body.woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: none !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-row td {
    padding: 12px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    direction: rtl !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form input[name="coupon_code"] {
    flex: 1 !important;
    height: 34px !important;
    padding: 0 10px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #555555 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    text-align: right !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form button {
    height: 34px !important;
    min-width: 86px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #e9e6ee !important;
    color: #444444 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 34px !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form button:hover {
    background: #ded9e6 !important;
    color: #222222 !important;
  }
}
	/* Oeltek cart: remove update cart button/actions under product list */
@media (min-width: 769px) {
  body.woocommerce-cart table.shop_table.cart td.actions {
    display: none !important;
  }
}
	/* Oeltek cart: hide shipment section from cart totals box */
@media (min-width: 769px) {
  body.woocommerce-cart .cart_totals tr.shipping,
  body.woocommerce-cart .cart_totals .woocommerce-shipping-totals {
    display: none !important;
  }
}
	/* Oeltek cart: totals typography refinement */
@media (min-width: 769px) {

  /* قیمت کالاها row */
  body.woocommerce-cart .cart_totals tr.cart-subtotal th,
  body.woocommerce-cart .cart_totals tr.cart-subtotal td,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .amount,
  body.woocommerce-cart .cart_totals tr.cart-subtotal bdi,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .woocommerce-Price-currencySymbol {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #666666 !important;
  }

  /* مجموع row */
  body.woocommerce-cart .cart_totals tr.order-total th,
  body.woocommerce-cart .cart_totals tr.order-total td,
  body.woocommerce-cart .cart_totals tr.order-total .amount,
  body.woocommerce-cart .cart_totals tr.order-total bdi,
  body.woocommerce-cart .cart_totals tr.order-total .woocommerce-Price-currencySymbol {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #111111 !important;
  }

  body.woocommerce-cart .cart_totals .checkout-button {
    font-size: 14px !important;
    font-weight: 800 !important;
  }
}
	/* Oeltek cart: totals final text changes */
@media (min-width: 769px) {

  /* Remove "مجموع کل سبد خرید" title */
  body.woocommerce-cart .cart_totals h2 {
    display: none !important;
  }

  /* قیمت کالاها row: normal, not bold */
  body.woocommerce-cart .cart_totals tr.cart-subtotal th,
  body.woocommerce-cart .cart_totals tr.cart-subtotal td,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .amount,
  body.woocommerce-cart .cart_totals tr.cart-subtotal bdi,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666666 !important;
  }

  /* مجموع row a little larger */
  body.woocommerce-cart .cart_totals tr.order-total th,
  body.woocommerce-cart .cart_totals tr.order-total td,
  body.woocommerce-cart .cart_totals tr.order-total .amount,
  body.woocommerce-cart .cart_totals tr.order-total bdi,
  body.woocommerce-cart .cart_totals tr.order-total .woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 800 !important;
  }
}
	/* Oeltek cart: totals box gray border + unpaid notice */
@media (min-width: 769px) {

  body.woocommerce-cart .cart-collaterals .cart_totals {
    border-color: #d1d5db !important;
  }

  body.woocommerce-cart .cart-collaterals::after {
    content: "هزینه این سفارش هنوز پرداخت نشده‌ و در صورت اتمام موجودی، کالاها از سبد حذف می‌شوند" !important;
    display: block !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    text-align: right !important;
    direction: rtl !important;
  }
}
	/* Oeltek cart: discount row red + rename remove coupon */
@media (min-width: 769px) {

  /* Discount coupon row text and amount */
  body.woocommerce-cart .cart_totals tr.cart-discount th,
  body.woocommerce-cart .cart_totals tr.cart-discount td,
  body.woocommerce-cart .cart_totals tr.cart-discount .amount,
  body.woocommerce-cart .cart_totals tr.cart-discount bdi,
  body.woocommerce-cart .cart_totals tr.cart-discount .woocommerce-Price-currencySymbol {
    color: #cc5f5a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* Hide original "پاک" text */
  body.woocommerce-cart .cart_totals tr.cart-discount a.woocommerce-remove-coupon {
    font-size: 0 !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    margin-right: 6px !important;
  }

  /* Replace with "حذف کد" */
  body.woocommerce-cart .cart_totals tr.cart-discount a.woocommerce-remove-coupon::after {
    content: "حذف کد" !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
  }

  body.woocommerce-cart .cart_totals tr.cart-discount a.woocommerce-remove-coupon:hover::after {
    color: #cc5f5a !important;
  }
}
/* Oeltek cart: invalid coupon text inside input */
@media (min-width: 769px) {
  body.woocommerce-cart input.oeltek-coupon-invalid-input {
    color: #cc1f1a !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    transition: opacity .6s ease !important;
  }

  body.woocommerce-cart input.oeltek-coupon-invalid-fade {
    opacity: 0 !important;
  }
}
	/* Oeltek cart: fully hide WooCommerce coupon error flash */
@media (min-width: 769px) {
  body.woocommerce-cart .woocommerce-error {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
	/* Oeltek cart: invalid coupon message under coupon box */
@media (min-width: 769px) {
  body.woocommerce-cart .oeltek-invalid-coupon-row td {
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  body.woocommerce-cart .oeltek-invalid-coupon-message {
    width: 100% !important;
    margin: -4px 0 0 0 !important;
    padding: 0 4px !important;
    color: #cc1f1a !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    text-align: right !important;
    direction: rtl !important;
    opacity: 1 !important;
    transition: opacity .5s ease !important;
  }

  body.woocommerce-cart .oeltek-invalid-coupon-message.oeltek-fade-out {
    opacity: 0 !important;
  }
}
	/* Oeltek cart: tablet - move totals box under product list, aligned left */
@media (min-width: 769px) and (max-width: 1024px) {

  body.woocommerce-cart .woocommerce {
    display: block !important;
  }

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

  body.woocommerce-cart .cart-collaterals {
    width: 330px !important;
    max-width: 100% !important;
    margin: 28px 0 0 auto !important; /* left side in RTL layout */
    padding: 0 !important;
    clear: both !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
  }
}
	/* Oeltek cart: tablet - force totals box to left side on RTL page */
@media (min-width: 769px) and (max-width: 1024px) {

  body.woocommerce-cart .cart-collaterals {
    width: 330px !important;
    max-width: 100% !important;
    margin: 28px auto 0 0 !important; /* left side in RTL */
    padding: 0 !important;
    clear: both !important;
  }
}
	/* Oeltek cart: phone layout - full width product list + totals under everything */
@media (max-width: 768px) {

  /* Page reset */
  html body.woocommerce-cart {
    background: #ffffff !important;
    overflow-x: hidden !important;
  }

  html body.woocommerce-cart .entry-header,
  html body.woocommerce-cart .entry-header h1,
  html body.woocommerce-cart h1.entry-title {
    display: none !important;
  }

  html body.woocommerce-cart main#primary {
    padding-top: 72px !important;
  }

  html body.woocommerce-cart .entry-content,
  html body.woocommerce-cart article#post-11,
  html body.woocommerce-cart .page {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-cart .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    direction: rtl !important;
  }

  /* Top title/tabs */
  body.woocommerce-cart .oeltek-cart-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 2px solid #cc5f5a !important;
    background: transparent !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .oeltek-cart-tab,
  body.woocommerce-cart .oeltek-cart-tab:visited,
  body.woocommerce-cart .oeltek-cart-tab:hover {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #8b8f97 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-tab-active {
    color: #cc5f5a !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart .oeltek-cart-tab-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* Product list full mobile width */
  body.woocommerce-cart form.woocommerce-cart-form,
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table.cart tbody,
  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-cart table.shop_table.cart {
    border: 0 !important;
    background: transparent !important;
  }

  body.woocommerce-cart table.shop_table.cart thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    position: relative !important;
    min-height: 190px !important;
    padding: 14px 96px 44px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    direction: rtl !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: right !important;
  }

  /* Product image */
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    position: absolute !important;
    right: 0 !important;
    top: 14px !important;
    width: 82px !important;
    height: 115px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    display: block !important;
    width: 82px !important;
    height: 115px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    object-fit: contain !important;
    max-width: none !important;
  }

  /* Product name and details */
  body.woocommerce-cart table.shop_table.cart td.product-name {
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name > a {
    display: block !important;
    color: #111111 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 6px !important;
    row-gap: 2px !important;
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    direction: rtl !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation p {
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: #777777 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation p {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-var-icon {
    width: 13px !important;
    height: 13px !important;
    margin-left: 6px !important;
  }

  /* Unit price */
  body.woocommerce-cart table.shop_table.cart td.product-price {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 5px 0 0 0 !important;
    font-size: 10px !important;
    color: #777777 !important;
    line-height: 1.5 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price::before {
    content: "قیمت واحد:" !important;
    padding-right: 20px !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #777777 !important;
    background: no-repeat right center / 13px 13px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939aa3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12l-8 8-8-8V4h8l8 8z'/><circle cx='9' cy='9' r='1'/></svg>") !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price .amount,
  body.woocommerce-cart table.shop_table.cart td.product-price bdi,
  body.woocommerce-cart table.shop_table.cart td.product-price .woocommerce-Price-currencySymbol {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #777777 !important;
  }

  /* Qty under image */
  body.woocommerce-cart table.shop_table.cart td.product-quantity {
    position: absolute !important;
    right: 0 !important;
    top: 134px !important;
    width: 82px !important;
    text-align: center !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .qib-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 82px !important;
    height: 28px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .qib-button {
    width: 25px !important;
    height: 28px !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #cc5f5a !important;
    font-size: 18px !important;
    line-height: 28px !important;
    padding: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity,
  body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty {
    width: 32px !important;
    height: 28px !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #cc5f5a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    text-align: center !important;
    padding: 0 !important;
  }

  /* Final price + remove */
  body.woocommerce-cart table.shop_table.cart td.product-subtotal {
    position: absolute !important;
    right: 94px !important;
    bottom: 14px !important;
    width: auto !important;
    text-align: right !important;
    direction: rtl !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-subtotal::before {
    content: "جمع: " !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #555555 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-subtotal .amount,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal bdi,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #111111 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove {
    position: absolute !important;
    left: 0 !important;
    bottom: 15px !important;
    width: auto !important;
    height: auto !important;
    z-index: 5 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
    font-size: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #9ca3af !important;
    text-decoration: none !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove::after {
    content: "حذف کالا" !important;
    font-size: 10px !important;
    color: #9ca3af !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    white-space: nowrap !important;
  }

  /* Remove actions under product list */
  body.woocommerce-cart table.shop_table.cart td.actions {
    display: none !important;
  }

  /* Totals block under all products */
  body.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    max-width: 100% !important;
    margin: 22px 0 0 0 !important;
    padding: 0 !important;
    clear: both !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .cart_totals h2 {
    display: none !important;
  }

  body.woocommerce-cart .cart_totals tr.shipping,
  body.woocommerce-cart .cart_totals .woocommerce-shipping-totals {
    display: none !important;
  }

  body.woocommerce-cart .cart_totals table,
  body.woocommerce-cart .cart_totals table th,
  body.woocommerce-cart .cart_totals table td {
    font-size: 12px !important;
    line-height: 1.8 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.woocommerce-cart .cart_totals table th,
  body.woocommerce-cart .cart_totals table td {
    padding: 7px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  body.woocommerce-cart .cart_totals tr.cart-subtotal th,
  body.woocommerce-cart .cart_totals tr.cart-subtotal td,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .amount,
  body.woocommerce-cart .cart_totals tr.cart-subtotal bdi,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .woocommerce-Price-currencySymbol {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #666666 !important;
  }

  body.woocommerce-cart .cart_totals tr.order-total th,
  body.woocommerce-cart .cart_totals tr.order-total td,
  body.woocommerce-cart .cart_totals tr.order-total .amount,
  body.woocommerce-cart .cart_totals tr.order-total bdi,
  body.woocommerce-cart .cart_totals tr.order-total .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #111111 !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form input[name="coupon_code"] {
    flex: 1 !important;
    height: 34px !important;
    padding: 0 10px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
  }

  body.woocommerce-cart .oeltek-cart-totals-coupon-form button {
    height: 34px !important;
    min-width: 82px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #e9e6ee !important;
    color: #444444 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart .cart_totals .checkout-button {
    width: 100% !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    text-align: center !important;
  }

  body.woocommerce-cart .cart-collaterals::after {
    content: "هزینه این سفارش هنوز پرداخت نشده‌ و در صورت اتمام موجودی، کالاها از سبد حذف می‌شوند" !important;
    display: block !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    color: #9ca3af !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    text-align: right !important;
    direction: rtl !important;
  }
}
/* Oeltek cart: phone product-row fix */
@media (max-width: 768px) {

  /* Make row taller for bigger image + one horizontal action line */
  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    min-height: 250px !important;
    padding: 14px 126px 56px 0 !important;
  }

  /* Bigger product image */
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail {
    right: 0 !important;
    top: 12px !important;
    width: 110px !important;
    height: 154px !important;
    overflow: hidden !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
    width: 110px !important;
    height: 154px !important;
  }

  /* Hide the 2 extra dots/circles and any pseudo items around image */
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail::before,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail::after,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail a::before,
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail a::after {
    display: none !important;
    content: none !important;
  }

  /* Remove WooCommerce mobile label "محصول" */
  body.woocommerce-cart table.shop_table.cart td.product-name::before {
    display: none !important;
    content: none !important;
  }

  /* Smaller title, allow 2 lines */
  body.woocommerce-cart table.shop_table.cart td.product-name > a {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: unset !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    max-height: 3.3em !important;
  }

  /* Keep variants readable under title */
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation {
    margin-top: 5px !important;
  }

  /* Put qty + total + remove on same line */
  body.woocommerce-cart table.shop_table.cart td.product-quantity {
    top: 176px !important;
    right: 0 !important;
    width: 82px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-subtotal {
    top: 178px !important;
    bottom: auto !important;
    right: 96px !important;
    width: 120px !important;
    text-align: right !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-subtotal::before {
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-subtotal .amount,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal bdi,
  body.woocommerce-cart table.shop_table.cart td.product-subtotal .woocommerce-Price-currencySymbol {
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  /* Move remove link near total price and keep inside screen */
  body.woocommerce-cart table.shop_table.cart td.product-remove {
    top: 180px !important;
    bottom: auto !important;
    left: auto !important;
    right: 220px !important;
    width: auto !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove::after {
    font-size: 10px !important;
    white-space: nowrap !important;
  }
}
/* Oeltek cart: phone - align guarantee/color/unit price from left side cleanly */
@media (max-width: 768px) {

  /* Make detail area use full row space */
  body.woocommerce-cart table.shop_table.cart td.product-name {
    direction: rtl !important;
    text-align: right !important;
  }

  /* Guarantee + color rows: label/value in one clean line, aligned from left edge */
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd {
    display: inline !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: baseline !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt {
    margin-left: 4px !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd {
    white-space: normal !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd::after {
    content: "" !important;
    display: block !important;
    height: 2px !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* same font for guarantee/color/price */
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd,
  body.woocommerce-cart table.shop_table.cart td.product-name dl.variation p,
  body.woocommerce-cart table.shop_table.cart td.product-price,
  body.woocommerce-cart table.shop_table.cart td.product-price::before,
  body.woocommerce-cart table.shop_table.cart td.product-price .amount,
  body.woocommerce-cart table.shop_table.cart td.product-price bdi,
  body.woocommerce-cart table.shop_table.cart td.product-price .woocommerce-Price-currencySymbol {
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    color: #777777 !important;
  }

  /* icons for guarantee/color */
  body.woocommerce-cart .oeltek-cart-var-icon {
    position: relative !important;
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    margin-left: 7px !important;
    vertical-align: -2px !important;
    font-size: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-var-icon-guarantee::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: no-repeat center / contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939aa3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M12 3l7 3v5c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6l7-3z'/>\
<path d='M9.2 12.2l1.8 1.8 3.8-4'/>\
</svg>") !important;
  }

  body.woocommerce-cart .oeltek-cart-var-icon-color::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: no-repeat center / contain url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a7b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M19 11.5a7 7 0 10-7 7h1.2a2.3 2.3 0 012.3 2.3c0 .66.54 1.2 1.2 1.2A6.3 6.3 0 0019 11.5z'/>\
<circle cx='8.5' cy='10' r='1'/>\
<circle cx='11.5' cy='7.5' r='1'/>\
<circle cx='15' cy='9' r='1'/>\
</svg>") !important;
  }

  /* Unit price: align exactly with guarantee/color rows */
  body.woocommerce-cart table.shop_table.cart td.product-price {
    display: block !important;
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    white-space: normal !important;
  }

  body.woocommerce-cart table.shop_table.cart td.product-price::before {
    content: "قیمت واحد:" !important;
    display: inline-block !important;
    padding-right: 20px !important;
    margin-left: 4px !important;
    white-space: nowrap !important;
    background: no-repeat right center / 13px 13px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939aa3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 12l-8 8-8-8V4h8l8 8z'/><circle cx='9' cy='9' r='1'/></svg>") !important;
  }
}
/* Oeltek cart: phone - move quantity label/box closer to image */
@media (max-width: 768px) {

  body.woocommerce-cart table.shop_table.cart td.product-quantity {
    top: 148px !important; /* was around 134px */
    bottom: auto !important;
  }
}
/* Oeltek cart: phone - move only remove text slightly lower */
@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table.cart td.product-remove a.remove::after {
    position: relative !important;
    top: 4px !important;
  }
}
/* Oeltek cart: phone - make price items row same as desktop/tablet */
@media (max-width: 768px) {

  body.woocommerce-cart .cart_totals tr.cart-subtotal th,
  body.woocommerce-cart .cart_totals tr.cart-subtotal td {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    line-height: 1.8 !important;
    vertical-align: middle !important;
  }

  body.woocommerce-cart .cart_totals tr.cart-subtotal .amount,
  body.woocommerce-cart .cart_totals tr.cart-subtotal bdi,
  body.woocommerce-cart .cart_totals tr.cart-subtotal .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666666 !important;
    line-height: 1.8 !important;
  }

  body.woocommerce-cart .cart_totals tr.cart-subtotal th {
    white-space: nowrap !important;
  }
}
/* Oeltek cart: phone invalid coupon message */
@media (max-width: 768px) {
  body.woocommerce-cart .oeltek-invalid-coupon-row td {
    padding: 0 0 8px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  body.woocommerce-cart .oeltek-invalid-coupon-message {
    width: 100% !important;
    margin: -2px 0 0 0 !important;
    padding: 0 4px !important;
    color: #cc1f1a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    text-align: right !important;
    direction: rtl !important;
    opacity: 1 !important;
    transition: opacity .5s ease !important;
  }

  body.woocommerce-cart .oeltek-invalid-coupon-message.oeltek-fade-out {
    opacity: 0 !important;
  }
}
/* Oeltek cart: phone - remove all ":" marks inside totals/coupon block */
@media (max-width: 768px) {

  /* Remove WooCommerce mobile colon after data-title labels */
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr td::before,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr td:before,
  body.woocommerce-cart .cart_totals tr td::before,
  body.woocommerce-cart .cart_totals tr td:before {
    content: attr(data-title) !important;
  }

  /* If browser/theme adds colon as separate pseudo */
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr td::after,
  body.woocommerce-cart .cart_totals table.shop_table_responsive tr td:after {
    content: none !important;
    display: none !important;
  }

  /* Coupon row should not create any mobile label/colon */
  body.woocommerce-cart .cart_totals tr.oeltek-cart-totals-coupon-row td::before,
  body.woocommerce-cart .cart_totals tr.oeltek-cart-totals-coupon-row td:before,
  body.woocommerce-cart .cart_totals tr.oeltek-invalid-coupon-row td::before,
  body.woocommerce-cart .cart_totals tr.oeltek-invalid-coupon-row td:before {
    content: none !important;
    display: none !important;
  }
}
/* Oeltek cart: mobile sticky gray navigation bar */
@media (max-width: 768px) {

  body.woocommerce-cart .oeltek-cart-mobile-sticky-nav {
    position: fixed !important;
    top: var(--oeltek-cart-mobile-nav-top, 64px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    gap: 0 !important;
   background: rgba(218, 221, 225, 0.90) !important;
    border: 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.08) !important;
    z-index: 999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease !important;
    pointer-events: none !important;
    direction: rtl !important;
  }

  body.woocommerce-cart.oeltek-cart-mobile-nav-active .oeltek-cart-mobile-sticky-nav {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  body.woocommerce-cart .oeltek-cart-mobile-sticky-nav button,
  body.woocommerce-cart .oeltek-cart-mobile-sticky-nav a {
    flex: 1 1 33.333% !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
   border-left: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  body.woocommerce-cart .oeltek-cart-mobile-sticky-nav button:last-child,
  body.woocommerce-cart .oeltek-cart-mobile-sticky-nav a:last-child {
    border-left: 0 !important;
  }

  /* Remove red/colored line under cart tabs on phone only */
  body.woocommerce-cart .oeltek-cart-tabs {
    border-bottom: 0 !important;
  }

  body.woocommerce-cart .oeltek-cart-tabs::after {
    display: none !important;
    content: none !important;
  }

  /* When gray bar appears, hide common mobile colored menu/toggler only on cart */
  body.woocommerce-cart.oeltek-cart-mobile-nav-active #mega-menu-wrap-menu-1 .mega-menu-toggle,
  body.woocommerce-cart.oeltek-cart-mobile-nav-active .mega-menu-wrap .mega-menu-toggle,
  body.woocommerce-cart.oeltek-cart-mobile-nav-active .mega-toggle-blocks-center {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Oeltek cart: remove sticky header red line + attach gray bar to header */
@media (max-width: 768px) {

  /* Remove colored line under sticky header on cart page only */
  body.woocommerce-cart header#masthead.site-header .top-brand.oeltek-sticky-active::after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    background: transparent !important;
  }

  /* Remove any bottom spacing/shadow line from sticky header */
  body.woocommerce-cart header#masthead.site-header .top-brand.oeltek-sticky-active {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  /* Stick gray cart nav directly to bottom of header */
  body.woocommerce-cart .oeltek-cart-mobile-sticky-nav {
    top: calc(var(--oeltek-cart-mobile-nav-top, 92px) - 3px) !important;
    margin-top: 0 !important;
    border-top: 0 !important;
    background: rgba(218, 221, 225, 0.85) !important;
  }
}
/* Oeltek cart: force empty cart center after grid rules */
@media (min-width: 769px) {

  body.woocommerce-cart .woocommerce:has(.oeltek-empty-cart-box),
  body.woocommerce-cart .woocommerce:has(.cart-empty),
  body.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 58vh !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Oeltek cart: phone empty cart design */
@media (max-width: 768px) {

  body.woocommerce-cart .cart-empty,
  body.woocommerce-cart .return-to-shop,
  body.woocommerce-cart .wc-empty-cart-message {
    display: none !important;
  }

  body.woocommerce-cart .woocommerce:has(.oeltek-empty-cart-box),
  body.woocommerce-cart .woocommerce:has(.cart-empty),
  body.woocommerce-cart .woocommerce:has(.wc-empty-cart-message) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 62vh !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box {
    width: 100% !important;
    max-width: 320px !important;
    min-height: 58vh !important;
    margin: 0 auto !important;
    padding: 18px 10px 34px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
    box-sizing: border-box !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-img {
    width: 145px !important;
    max-width: 70% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 12px auto !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box h2 {
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    color: #222222 !important;
    text-align: center !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-box p {
    max-width: 260px !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
    line-height: 1.9 !important;
    color: #777777 !important;
    text-align: center !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 132px !important;
    min-height: 34px !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    background: #cc5f5a !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 34px !important;
    text-decoration: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart .oeltek-empty-cart-btn:hover {
    background: #b94f4a !important;
    color: #ffffff !important;
  }
}
/* Phone cart: hide WooCommerce add/remove cart messages */
@media (max-width: 767px) {
  body.woocommerce-cart .woocommerce-notices-wrapper,
  body.woocommerce-cart .woocommerce-message,
  body.woocommerce-cart .woocommerce-info,
  body.woocommerce-cart .woocommerce-error,
  body.woocommerce-cart .wc-block-components-notice-banner {
    display: none !important;
  }
}
