/**
 * تنسيقات WooCommerce المخصصة لقالب Nestly — مكمّلة لستايلات الثيم
 * (صفحة المتجر + درج السلة + فلاتر الـ offcanvas + إشعارات ووكومرس).
 */

/* ---------- إشعارات WooCommerce بشكل الثيم ---------- */
.woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    list-style: none;
    margin: 0 0 24px;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--surface, #f5f5f5);
    color: var(--main, #181818);
    border-inline-start: 3px solid var(--main, #181818);
}

.woocommerce-notices-wrapper .woocommerce-error {
    border-inline-start-color: #d23f57;
}

.woocommerce-notices-wrapper a.button,
.woocommerce-notices-wrapper .wc-forward {
    float: inline-end;
    margin-inline-start: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- شريط أدوات المتجر ---------- */
.tf-control-filter .shop-sale-text {
    align-items: center;
    gap: 6px;
    color: inherit;
}

.tf-control-filter .shop-sale-text .icon {
    font-size: 18px;
    color: var(--secondary-2, #545454);
}

.tf-control-filter .shop-sale-text.active .icon,
.tf-control-filter .shop-sale-text.active .text-caption-1 {
    color: var(--main, #181818);
    font-weight: 600;
}

.tf-control-sorting .dropdown-menu a.select-item {
    display: block;
    color: inherit;
}

.meta-filter-shop a.remove-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nestly-no-products {
    padding: 60px 0;
}

.nestly-no-products .tf-btn {
    margin-top: 20px;
    display: inline-flex;
}

/* ---------- offcanvas الفلاتر ---------- */
.canvas-filter .facet-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.canvas-filter .facet-content .link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.canvas-filter .facet-content .link.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.canvas-filter .facet-content .count-cate {
    color: var(--secondary-2, #545454);
    font-size: 14px;
}

.canvas-filter .widget-facet {
    margin-bottom: 28px;
}

.canvas-filter .widget-facet > .facet-title {
    margin-bottom: 16px;
}

.canvas-filter .box-price-product {
    display: flex;
    gap: 12px;
}

.canvas-filter .box-price-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.canvas-filter .box-price-item input.price-val {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line, #e9e9e9);
    border-radius: 8px;
    background: transparent;
    color: var(--main, #181818);
    -moz-appearance: textfield;
}

.canvas-filter .box-price-item input.price-val::-webkit-outer-spin-button,
.canvas-filter .box-price-item input.price-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.canvas-filter .box-price-item input.price-val:focus {
    border-color: var(--main, #181818);
    outline: none;
}

.canvas-filter .nestly-filter-apply {
    width: 100%;
    justify-content: center;
}

.canvas-filter .canvas-bottom .btn-reset {
    width: 100%;
    justify-content: center;
}

/* ---------- offcanvas الأقسام ---------- */
.canvas-categories a.facet-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

/* ---------- درج السلة ---------- */
.tf-mini-cart-item .tf-mini-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-mini-cart-item a.tf-btn-remove {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tf-mini-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 320px;
    padding: 40px 20px;
}

.tf-mini-cart-empty .icon-cart {
    font-size: 42px;
    color: var(--secondary-2, #545454);
}

/* أسعار ووكومرس (del/ins) داخل ماركب الثيم */
.card-product .price del,
.tf-mini-cart-item del,
.tf-cart-totals-discounts del {
    color: var(--secondary-2, #545454);
    margin-inline-end: 6px;
}

.card-product .price ins,
.tf-mini-cart-item ins,
.tf-cart-totals-discounts ins {
    background: none;
    text-decoration: none;
}

/* ---------- توحيد ألوان أزرار ووكومرس مع هوية نستلي (بدل البنفسجي الافتراضي) ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
button.single_add_to_cart_button,
.wc-block-components-button {
  background-color: var(--main);
  color: var(--White);
  border-radius: 99px;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #payment #place_order:hover,
button.single_add_to_cart_button:hover {
  background-color: var(--Onsurface);
  color: var(--White);
}

/* تنبيهات ووكومرس بلون الهوية */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--main);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--main);
}

/* روابط ووكومرس العامة */
.woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-privacy-policy-text a,
.woocommerce form .form-row .required {
  color: var(--main);
}

/* ============================================================
   تحسينات صفحات المتجر — السلة / الدفع / درج السلة
   ============================================================ */

/* ---------- صفحة السلة ---------- */
.woocommerce-cart-form table.shop_table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-cart-form table.shop_table th {
  background: var(--Surface);
  font-weight: 600;
  padding: 16px;
}

.woocommerce-cart-form table.shop_table td {
  padding: 16px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}

.woocommerce-cart-form img {
  border-radius: 10px;
}

.woocommerce-cart-form .coupon input.input-text {
  border-radius: 99px;
  padding: 10px 18px;
  border: 1px solid var(--line);
}

.cart_totals,
.tf-page-cart-footer .tf-cart-footer-inner {
  background: var(--Surface);
  border-radius: 12px;
  padding: 24px;
}

.cart_totals table.shop_table {
  border: 0;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: transparent;
}

.cart_totals .order-total .woocommerce-Price-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--main);
}

.wc-proceed-to-checkout .checkout-button {
  width: 100%;
  text-align: center;
  font-size: 16px;
  padding: 14px 24px;
}

/* كمية بحدود أنعم */
.wg-quantity {
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.wg-quantity .btn-quantity {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wg-quantity .btn-quantity:hover {
  background: var(--main);
  color: var(--White);
}

/* ---------- صفحة الدفع ---------- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--main);
  display: inline-block;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 48px;
  background: var(--White);
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 24px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

.woocommerce-checkout #order_review {
  background: var(--Surface);
  border-radius: 12px;
  padding: 24px;
}

.woocommerce-checkout #payment {
  background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.woocommerce-checkout #payment ul.payment_methods li {
  background: var(--White);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(40, 43, 87, 0.07);
}

.woocommerce-checkout #payment div.payment_box {
  background: var(--Surface);
  border-radius: 8px;
  margin-top: 10px;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--Surface);
}

.woocommerce-checkout #place_order {
  width: 100%;
  font-size: 16px;
  padding: 15px 24px;
  margin-top: 8px;
}

.woocommerce-checkout table.shop_table {
  border: 0;
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: transparent;
}

.woocommerce-checkout table.shop_table tr.order-total td,
.woocommerce-checkout table.shop_table tr.order-total th {
  border-bottom: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--main);
}

/* ---------- درج السلة ---------- */
#shoppingCart .modal-content {
  border: 0;
}

#shoppingCart .header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

#shoppingCart .header .title {
  font-weight: 700;
}

#shoppingCart .tf-mini-cart-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

#shoppingCart .tf-mini-cart-image img {
  border-radius: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

#shoppingCart .tf-mini-cart-item .text-title a {
  font-weight: 600;
}

#shoppingCart .wg-quantity {
  height: 34px;
}

#shoppingCart .tf-btn-remove {
  color: var(--Critical);
  font-size: 13px;
  transition: opacity 0.2s ease;
}

#shoppingCart .tf-btn-remove:hover {
  opacity: 0.7;
}

#shoppingCart .tf-mini-cart-bottom {
  border-top: 2px solid var(--line);
  box-shadow: 0 -6px 16px rgba(24, 24, 24, 0.04);
}

#shoppingCart .tf-cart-totals-discounts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#shoppingCart .tf-totals-total-value {
  color: var(--main);
  font-weight: 700;
}

#shoppingCart .tf-mini-cart-view-checkout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* رسالة السلة الفاضية في الدرج */
#shoppingCart .woocommerce-mini-cart__empty-message {
  text-align: center;
  padding: 48px 16px;
  color: var(--Secondary);
}

/* ============================================================
   ترقية درج السلة — شريط الشحن المجاني + تباعد أنضف + أزرار أوضح
   ============================================================ */

/* شريط تقدم الشحن المجاني */
#shoppingCart .tf-mini-cart-threshold.nestly-free-ship {
  flex-shrink: 0;
  margin: 16px 24px 4px;
  padding: 14px 16px 6px;
  background-color: var(--Surface);
  border-radius: 12px;
}

#shoppingCart .nestly-free-ship .nestly-free-ship_text {
  color: var(--Secondary);
  font-size: 13px;
}

#shoppingCart .nestly-free-ship .nestly-free-ship_text strong {
  color: var(--main);
  font-weight: 700;
}

#shoppingCart .nestly-free-ship .tf-progress-bar {
  margin-top: 12px;
  margin-bottom: 14px;
  height: 8px;
  border-radius: 99px;
  background-color: var(--White);
}

#shoppingCart .nestly-free-ship .tf-progress-bar .value {
  border-radius: 99px;
  background: linear-gradient(90deg, #565b94 0%, var(--main) 100%);
}

#shoppingCart .nestly-free-ship .tf-progress-bar .icon {
  width: 28px;
  height: 28px;
  font-size: 16px;
  border-color: var(--main);
  color: var(--main);
}

/* حالة النجاح: الشحن بقى مجاني */
#shoppingCart .nestly-free-ship.is-free .nestly-free-ship_text {
  color: var(--Success);
  font-weight: 700;
  font-size: 14px;
}

#shoppingCart .nestly-free-ship.is-free .tf-progress-bar .value {
  background: linear-gradient(90deg, #6cc94f 0%, var(--Success) 100%);
}

#shoppingCart .nestly-free-ship.is-free .tf-progress-bar .icon {
  border-color: var(--Success);
  color: var(--Success);
}

/* عناصر الدرج: تباعد أنضف */
#shoppingCart .tf-mini-cart-item {
  gap: 16px;
  padding: 18px 0;
}

#shoppingCart .tf-mini-cart-item .tf-mini-cart-image {
  flex-shrink: 0;
}

#shoppingCart .tf-mini-cart-info .content {
  gap: 10px;
}

#shoppingCart .tf-mini-cart-info .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

/* زرار الحذف في الدرج: pill واضح */
#shoppingCart .tf-mini-cart-item a.tf-btn-remove {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  text-decoration: none;
  color: var(--Critical);
  transition: all 0.25s ease;
}

#shoppingCart .tf-mini-cart-item a.tf-btn-remove:hover {
  background-color: var(--Critical);
  border-color: var(--Critical);
  color: var(--White);
  opacity: 1;
}

/* الإجمالي الفرعي بسطر بارز */
#shoppingCart .tf-cart-totals-discounts {
  padding: 12px 14px;
  background-color: var(--Surface);
  border-radius: 12px;
}

#shoppingCart .tf-cart-totals-discounts h5 {
  font-size: 16px;
}

#shoppingCart .tf-totals-total-value {
  font-size: 20px;
}

/* الزرارين full-width بمحاذاة واضحة */
#shoppingCart .tf-mini-cart-view-checkout .tf-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* حالة الدرج الفاضي */
#shoppingCart .tf-mini-cart-empty {
  gap: 18px;
}

#shoppingCart .tf-mini-cart-empty .icon-cart {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--Surface);
  font-size: 38px;
  color: var(--main);
}

#shoppingCart .tf-mini-cart-empty .text-body-1 {
  color: var(--Secondary);
}

#shoppingCart .tf-mini-cart-empty .tf-btn {
  display: inline-flex;
}

/* ============================================================
   إصلاح جذري لدرج السلة: لوحة جانبية ثابتة متماسكة
   ============================================================ */
.modal.modal-shopping-cart .modal-dialog {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 430px;
  max-width: 92vw;
  height: 100%;
  margin: 0;
  display: block;
}

.modal.modal-shopping-cart.fade .modal-dialog {
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.modal.modal-shopping-cart.show .modal-dialog {
  transform: none;
}

.modal.modal-shopping-cart .modal-content {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: var(--White);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.modal.modal-shopping-cart .header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.modal.modal-shopping-cart .header .title {
  margin: 0;
  font-weight: 700;
}

.modal.modal-shopping-cart .header .icon-close-popup {
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--Surface);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.modal.modal-shopping-cart .header .icon-close-popup:hover {
  background: var(--main);
  color: var(--White);
}

.modal.modal-shopping-cart .wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  padding: 0;
}

#shoppingCart .widget_shopping_cart_content,
#shoppingCart .tf-mini-cart-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

#shoppingCart .tf-mini-cart-threshold {
  flex-shrink: 0;
  padding: 14px 22px;
  background: var(--Surface);
  border-bottom: 1px solid var(--line);
}

#shoppingCart .tf-mini-cart-threshold .nestly-free-ship_text {
  margin-bottom: 10px;
  font-size: 13px;
}

#shoppingCart .tf-mini-cart-threshold.is-free .nestly-free-ship_text {
  color: var(--Success);
  font-weight: 600;
}

#shoppingCart .tf-mini-cart-main {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 22px 12px;
}

#shoppingCart .tf-mini-cart-sroll {
  height: auto;
  overflow: visible;
}

#shoppingCart .tf-mini-cart-bottom {
  flex-shrink: 0;
  padding: 16px 22px 22px;
  background: var(--White);
  border-top: 2px solid var(--line);
  box-shadow: 0 -8px 18px rgba(24, 24, 24, 0.04);
}

@media (max-width: 480px) {
  .modal.modal-shopping-cart .modal-dialog {
    width: 100vw;
    max-width: 100vw;
  }
}

/* ============================================================
   تابات صفحة المنتج: تصميم pills حديث
   ============================================================ */
.widget-tabs.style-1 .widget-menu-tab {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--Surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 30px;
  overflow-x: auto;
}

.widget-tabs.style-1 .widget-menu-tab .item-title {
  padding: 11px 30px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--Secondary);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.widget-tabs.style-1 .widget-menu-tab .item-title::after,
.widget-tabs.style-1 .widget-menu-tab .item-title::before {
  display: none;
}

.widget-tabs.style-1 .widget-menu-tab .item-title.active,
.widget-tabs.style-1 .widget-menu-tab .item-title:hover {
  color: var(--White);
  background: var(--main);
  box-shadow: 0 6px 16px rgba(40, 43, 87, 0.25);
}

.widget-tabs.style-1 .widget-content-tab {
  background: var(--White);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.widget-tabs.style-1 .widget-content-inner > p {
  line-height: 2;
  color: var(--Secondary);
}

/* جدول المواصفات (معلومات إضافية) */
.widget-content-tab table.woocommerce-product-attributes,
.widget-content-tab table.shop_attributes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.widget-content-tab table.woocommerce-product-attributes th,
.widget-content-tab table.shop_attributes th {
  width: 220px;
  background: var(--Surface);
  color: var(--main);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-style: normal;
}

.widget-content-tab table.woocommerce-product-attributes td,
.widget-content-tab table.shop_attributes td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-style: normal;
}

.widget-content-tab table.woocommerce-product-attributes tr:last-child th,
.widget-content-tab table.woocommerce-product-attributes tr:last-child td,
.widget-content-tab table.shop_attributes tr:last-child th,
.widget-content-tab table.shop_attributes tr:last-child td {
  border-bottom: 0;
}

.widget-content-tab table.shop_attributes p {
  margin: 0;
}

/* المراجعات */
.widget-content-tab .woocommerce-Reviews .commentlist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.widget-content-tab .woocommerce-Reviews .commentlist > li {
  background: var(--Surface);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.widget-content-tab .woocommerce-Reviews .comment-form input[type=text],
.widget-content-tab .woocommerce-Reviews .comment-form input[type=email],
.widget-content-tab .woocommerce-Reviews .comment-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
}

.widget-content-tab .woocommerce-Reviews .star-rating,
.widget-content-tab .woocommerce-Reviews .stars a {
  color: var(--Yellow);
}

.widget-content-tab .woocommerce-Reviews .form-submit .submit {
  background: var(--main);
  color: var(--White);
  border-radius: 99px;
  padding: 12px 32px;
  border: 0;
}

/* ============================================================
   خطوات الدفع: دائرة + خط واصل نظيف
   ============================================================ */
.nestly-checkout-steps {
  margin: 8px 0 26px;
}

.nestly-checkout-steps_list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nestly-checkout-steps_list::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-start: calc(50% - 130px);
  inset-inline-end: calc(50% - 130px);
  height: 2px;
  background: var(--line);
}

.nestly-checkout-steps_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 130px;
  position: relative;
}

.nestly-checkout-steps_item::before,
.nestly-checkout-steps_item::after {
  display: none !important;
}

.nestly-checkout-steps_link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.nestly-checkout-steps_num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--White);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--Secondary2);
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
}

.nestly-checkout-steps_item.is-done .nestly-checkout-steps_num {
  background: var(--main);
  border-color: var(--main);
  color: var(--White);
}

.nestly-checkout-steps_item.is-active .nestly-checkout-steps_num {
  background: var(--main);
  border-color: var(--main);
  color: var(--White);
  box-shadow: 0 0 0 5px rgba(40, 43, 87, 0.12);
}

.nestly-checkout-steps_label {
  font-size: 13px;
  font-weight: 600;
  color: var(--Secondary2);
}

.nestly-checkout-steps_item.is-active .nestly-checkout-steps_label,
.nestly-checkout-steps_item.is-done .nestly-checkout-steps_label {
  color: var(--main);
}

/* شريط القسيمة في الدفع */
.woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--Surface);
  border: 1px dashed var(--line);
  border-top-width: 1px;
  border-radius: 12px;
  padding: 15px 52px 15px 20px;
  color: var(--Secondary);
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f02b";
  color: var(--main);
  inset-inline-start: 20px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   صفحة السلة: لمسات إضافية
   ============================================================ */
.woocommerce-cart-form button[name="update_cart"] {
  background: var(--White);
  color: var(--main);
  border: 1.5px solid var(--main);
}

.woocommerce-cart-form button[name="update_cart"]:hover {
  background: var(--main);
  color: var(--White);
}

.woocommerce-cart-form button[name="update_cart"]:disabled {
  background: var(--Surface);
  color: var(--Secondary2);
  border-color: var(--line);
  opacity: 1;
}

/* صندوق أخطاء التحقق في الدفع: أيقونة نظيفة بدون تراكب */
.woocommerce-error {
  list-style: none;
  border-radius: 12px;
  padding: 18px 52px 18px 20px !important;
  position: relative;
}

.woocommerce-error::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f071";
  color: var(--Critical);
  position: absolute;
  inset-inline-start: 20px;
  top: 18px;
  font-size: 18px;
}

.woocommerce-error li {
  margin-bottom: 6px;
  line-height: 1.9;
}

.woocommerce-error li::before {
  display: none;
}

/* خطوات الدفع على الموبايل */
@media (max-width: 575px) {
  .nestly-checkout-steps_item {
    min-width: 92px;
  }

  .nestly-checkout-steps_num {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .nestly-checkout-steps_list::before {
    top: 18px;
    inset-inline-start: calc(50% - 95px);
    inset-inline-end: calc(50% - 95px);
  }

  .nestly-checkout-steps_label {
    font-size: 11px;
  }
}

/* خلفية لمنطقة صور المنتج تمنع الوميض الأبيض أثناء lazyload */
.tf-product-media-main,
.tf-product-media-main .swiper-slide,
.tf-product-media-thumbs .swiper-slide {
  background: var(--Surface);
}

.tf-product-media-main .swiper-slide {
  border-radius: 14px;
  overflow: hidden;
}
