/* Paradox cart + checkout — classic WooCommerce, Persian/RTL */

.px-shop-shell .px-shop-card-wrap {
  padding: 1.5rem 1.35rem 1.75rem;
}

.px-shop-body {
  margin-top: 1.1rem;
  color: var(--px-ink, #1c2414);
}

.px-shop-body .woocommerce,
.px-shop-body .woocommerce-notices-wrapper,
.px-shop-body .cart-empty,
.px-shop-body .woocommerce-info,
.px-shop-body .woocommerce-message,
.px-shop-body .woocommerce-error {
  font-family: inherit;
}

.px-shop-body .woocommerce-info,
.px-shop-body .woocommerce-message,
.px-shop-body .woocommerce-error,
.px-shop-body .woocommerce-noreviews {
  border-radius: 14px !important;
  border: 1px solid var(--px-line, rgba(92, 107, 58, 0.18)) !important;
  background: rgba(92, 107, 58, 0.08) !important;
  color: var(--px-ink, #1c2414) !important;
  padding: 0.9rem 1rem !important;
  list-style: none;
}

.px-shop-body .woocommerce-error {
  background: rgba(138, 58, 50, 0.08) !important;
  border-color: rgba(138, 58, 50, 0.25) !important;
}

.px-shop-body .woocommerce-info::before,
.px-shop-body .woocommerce-message::before,
.px-shop-body .woocommerce-error::before {
  display: none !important;
}

/* Empty cart */
.px-shop-body .cart-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 18px;
  background: rgba(92, 107, 58, 0.06);
  border: 1px dashed var(--px-line, rgba(92, 107, 58, 0.22));
  font-size: 1.05rem;
  font-weight: 700;
}

.px-shop-body .return-to-shop {
  text-align: center;
  margin: 1.1rem 0 0;
}

.px-shop-body .return-to-shop .button,
.px-shop-body a.button,
.px-shop-body button.button,
.px-shop-body input.button,
.px-shop-body #place_order,
.px-shop-body .checkout-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem !important;
  border-radius: 999px !important;
  border: 1.5px solid transparent !important;
  background: linear-gradient(135deg, var(--px-olive, #5c6b3a), var(--px-olive-deep, #3f4a28)) !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 0 0 3px rgba(92, 107, 58, 0.1), 0 8px 22px rgba(47, 58, 47, 0.16);
  cursor: pointer;
  line-height: 1.3;
}

.px-shop-body a.button.alt,
.px-shop-body button.button.alt,
.px-shop-body input.button.alt {
  background: linear-gradient(135deg, var(--px-olive, #5c6b3a), var(--px-olive-deep, #3f4a28)) !important;
  color: #fff !important;
}

.px-shop-body .button:hover,
.px-shop-body .checkout-button:hover,
.px-shop-body #place_order:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

/* Cart table */
.px-shop-body table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--px-line, rgba(92, 107, 58, 0.18));
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin: 0 0 1.25rem;
}

.px-shop-body table.shop_table th,
.px-shop-body table.shop_table td {
  border: 0;
  border-bottom: 1px solid var(--px-line, rgba(92, 107, 58, 0.12));
  padding: 0.95rem 0.85rem;
  text-align: right;
  vertical-align: middle;
  background: transparent;
}

.px-shop-body table.shop_table thead th {
  background: rgba(92, 107, 58, 0.1);
  color: var(--px-olive-deep, #3f4a28);
  font-weight: 800;
  font-size: 0.92rem;
}

.px-shop-body table.shop_table tr:last-child td {
  border-bottom: 0;
}

.px-shop-body .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--px-line, rgba(92, 107, 58, 0.15));
}

.px-shop-body .product-name a {
  color: var(--px-ink, #1c2414);
  font-weight: 700;
  text-decoration: none;
}

.px-shop-body .product-price,
.px-shop-body .product-subtotal,
.px-shop-body .order-total,
.px-shop-body .cart-subtotal {
  font-weight: 700;
  white-space: nowrap;
}

/* Remove button — visible Persian pill */
.px-shop-body .product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 4.5rem;
  height: auto !important;
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem !important;
  margin: 0;
  border-radius: 999px !important;
  border: 1.5px solid rgba(138, 58, 50, 0.28) !important;
  background: #fff !important;
  color: #8a3a32 !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 0 0 3px rgba(138, 58, 50, 0.08);
}

.px-shop-body .product-remove a.remove:hover {
  background: rgba(138, 58, 50, 0.1) !important;
  color: #6e2c26 !important;
}

/* Quantity */
.px-shop-body .quantity .qty {
  width: 4.2rem;
  min-height: 2.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--px-line, rgba(92, 107, 58, 0.22));
  text-align: center;
  font: inherit;
  background: #fff;
}

.px-shop-body .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
}

.px-shop-body .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.px-shop-body .coupon label {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.px-shop-body .coupon input {
  min-height: 2.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--px-line, rgba(92, 107, 58, 0.22));
  padding: 0.45rem 0.8rem;
  font: inherit;
  background: #fff;
}

.px-shop-body button[name="update_cart"] {
  background: #fff !important;
  color: var(--px-olive-deep, #3f4a28) !important;
  border: 1.5px solid rgba(92, 107, 58, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(92, 107, 58, 0.07) !important;
}

/* Totals */
.px-shop-body .cart-collaterals,
.px-shop-body .cart_totals {
  width: 100%;
  max-width: 420px;
  margin-right: auto;
  margin-left: 0;
}

.px-shop-body .cart_totals h2,
.px-shop-body .woocommerce-billing-fields > h3,
.px-shop-body .woocommerce-additional-fields > h3,
.px-shop-body #order_review_heading {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--px-olive-deep, #3f4a28);
}

.px-shop-body .cart_totals table,
.px-shop-body .woocommerce-checkout-review-order-table {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--px-line, rgba(92, 107, 58, 0.18));
  background: #fff;
}

.px-shop-body .wc-proceed-to-checkout {
  padding-top: 0.85rem;
}

.px-shop-body .wc-proceed-to-checkout .checkout-button {
  width: 100%;
}

/* Checkout form — single column, no empty side card */
.px-shop-body form.checkout {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.px-shop-body .col2-set,
.px-shop-body .col-1,
.px-shop-body .col-2 {
  width: 100% !important;
  float: none !important;
}

.px-shop-body .woocommerce-billing-fields,
.px-shop-body #order_review {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--px-line, rgba(92, 107, 58, 0.18));
  background: rgba(255, 252, 246, 0.9);
}

.px-shop-body .woocommerce-additional-fields,
.px-shop-body .woocommerce-shipping-fields,
.px-shop-body .woocommerce-account-fields {
  display: none !important;
}

.px-shop-body .woocommerce-privacy-policy-text,
.px-shop-body .woocommerce-terms-and-conditions-wrapper,
.px-shop-body .woocommerce-form__label-for-checkbox {
  display: none !important;
}

.px-shop-body .form-row {
  margin: 0 0 0.85rem;
}

.px-shop-body .form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.px-shop-body .form-row input.input-text,
.px-shop-body .form-row textarea,
.px-shop-body .form-row select,
.px-shop-body .select2-container .select2-selection--single {
  width: 100%;
  min-height: 2.7rem;
  border-radius: 12px !important;
  border: 1.5px solid var(--px-line, rgba(92, 107, 58, 0.22)) !important;
  padding: 0.55rem 0.85rem !important;
  font: inherit !important;
  background: #fff !important;
  box-shadow: none !important;
}

.px-shop-body .form-row textarea {
  min-height: 6rem;
}

.px-shop-body #place_order {
  width: 100%;
  margin-top: 0.75rem;
}

.px-shop-body .woocommerce-privacy-policy-text,
.px-shop-body .woocommerce-terms-and-conditions-wrapper {
  font-size: 0.86rem;
  color: var(--px-muted, rgba(28, 36, 20, 0.62));
  line-height: 1.7;
}

/* Hide shipping UI for virtual course checkout noise when empty */
.px-shop-body .woocommerce-shipping-fields,
.px-shop-body .woocommerce-shipping-totals {
  display: none !important;
}

@media (max-width: 700px) {
  .px-shop-body table.shop_table thead {
    display: none;
  }
  .px-shop-body table.shop_table,
  .px-shop-body table.shop_table tbody,
  .px-shop-body table.shop_table tr,
  .px-shop-body table.shop_table td {
    display: block;
    width: 100%;
  }
  .px-shop-body table.shop_table tr {
    padding: 0.85rem;
    border-bottom: 1px solid var(--px-line, rgba(92, 107, 58, 0.12));
  }
  .px-shop-body table.shop_table td {
    border: 0;
    padding: 0.35rem 0;
    text-align: right;
  }
  .px-shop-body table.shop_table td::before {
    content: attr(data-title);
    display: block;
    font-size: 0.78rem;
    color: var(--px-muted, rgba(28, 36, 20, 0.62));
    margin-bottom: 0.15rem;
  }
  .px-shop-body .product-remove td::before,
  .px-shop-body td.product-remove::before,
  .px-shop-body td.product-thumbnail::before {
    display: none;
  }
  .px-shop-body .cart-collaterals,
  .px-shop-body .cart_totals {
    max-width: none;
  }
}

/* Remove empty right/shipping column card on checkout */
.px-shop-body--checkout .col2-set .col-2 {
  display: none !important;
}
.px-shop-body--checkout .col2-set .col-1 {
  width: 100% !important;
  float: none !important;
  max-width: 100%;
}
.px-shop-body--checkout #order_review_heading,
.px-shop-body--checkout #order_review {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.px-hidden-field,
.form-row.px-hidden-field {
  display: none !important;
}

/* Dual price in cart / checkout totals */
.px-shop-body .px-price-dual,
.woocommerce .px-price-dual {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  font-weight: 800;
}
.px-shop-body .product-price .px-price-dual,
.px-shop-body .product-subtotal .px-price-dual,
.px-shop-body .order-total .px-price-dual,
.px-shop-body .cart-subtotal .px-price-dual {
  justify-content: flex-start;
}
.px-shop-body .px-price--eur,
.woocommerce .px-price--eur {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

/* Logo fallback when product has no featured image */
.px-shop-card__ph--logo,
.px-shop-card__ph.px-shop-card__ph--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7f4ec 0%, #eef2e4 100%);
  padding: 1.25rem;
  min-height: 11rem;
}
.px-shop-card__ph--logo img,
.px-product-thumb--logo {
  width: auto !important;
  max-width: 62%;
  max-height: 7.5rem;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}
.px-shop-card__ph--lg.px-shop-card__ph--logo {
  min-height: 16rem;
  padding: 2rem;
}
.px-shop-card__ph--lg.px-shop-card__ph--logo img {
  max-width: 55%;
  max-height: 10rem;
}
.px-shop-body .product-thumbnail img.px-product-thumb--logo,
.woocommerce img.px-product-thumb--logo {
  object-fit: contain !important;
  background: #f7f4ec;
  padding: 0.45rem;
  border-radius: 10px;
}
