/* Cart page — Woopy-style classic cart */
.tjs-page-cart .tjs-page-hero {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.25rem) 0 1.25rem;
}
.tjs-page-cart .tjs-page-hero__title {
  margin: 0 0 .45rem;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 600;
}
.tjs-page-cart .tjs-breadcrumbs {
  justify-content: center;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tjs-muted, #777);
}
.tjs-page-cart .tjs-breadcrumbs a { color: inherit; }

.tjs-page-cart .tjs-woo--cart {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Progress steps */
.tjs-page-cart .tjs-steps,
.tjs-page-checkout .tjs-steps {
  margin: 0 auto 2.5rem;
  max-width: 820px;
  padding: 0 0 1.75rem;
  border-bottom: 0;
}
.tjs-page-cart .tjs-steps__list,
.tjs-page-checkout .tjs-steps__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tjs-page-cart .tjs-steps__item,
.tjs-page-checkout .tjs-steps__item {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  color: var(--tjs-muted, #888);
  font-weight: 600;
  font-size: .92rem;
}
.tjs-page-cart .tjs-steps__item:not(:last-child)::after,
.tjs-page-checkout .tjs-steps__item:not(:last-child)::after {
  content: "›";
  display: inline-block;
  margin: 0 1.1rem 0 1.25rem;
  color: #ccc;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}
.tjs-page-cart .tjs-steps__link,
.tjs-page-checkout .tjs-steps__link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}
.tjs-page-cart .tjs-steps__num,
.tjs-page-checkout .tjs-steps__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid #cfcfcf;
  color: #888;
  font-size: .85rem;
  font-weight: 700;
}
.tjs-page-cart .tjs-steps__item.is-active,
.tjs-page-checkout .tjs-steps__item.is-active {
  color: var(--tjs-ink, #1a1a1a);
}
.tjs-page-cart .tjs-steps__item.is-active .tjs-steps__num,
.tjs-page-cart .tjs-steps__item.is-done .tjs-steps__num,
.tjs-page-checkout .tjs-steps__item.is-active .tjs-steps__num,
.tjs-page-checkout .tjs-steps__item.is-done .tjs-steps__num {
  background: var(--tjs-accent, #e8472a);
  border-color: var(--tjs-accent, #e8472a);
  color: #fff;
}

/* Cart table — circular thumbs like Woopy */
.tjs-page-cart .woocommerce-cart .woocommerce {
  display: block !important;
}
.tjs-page-cart table.shop_table {
  border: 0 !important;
  border-collapse: collapse;
  width: 100%;
  background: transparent !important;
}
.tjs-page-cart table.shop_table thead th {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tjs-line, #e8e8e8) !important;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tjs-muted, #777);
  padding: .85rem .75rem !important;
}
.tjs-page-cart table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid var(--tjs-line, #e8e8e8) !important;
  padding: 1.25rem .75rem !important;
  vertical-align: middle;
  background: transparent !important;
}
.tjs-page-cart table.shop_table .product-thumbnail img,
.tjs-page-cart table.shop_table .product-name img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 10px !important;
  object-fit: cover;
  display: block !important;
}
.tjs-page-cart table.shop_table .product-thumbnail,
.tjs-page-cart table.shop_table_responsive .product-thumbnail {
  display: table-cell !important;
}
.tjs-page-cart table.shop_table .product-name a {
  font-weight: 600;
  color: var(--tjs-ink, #1a1a1a);
}
.tjs-page-cart table.shop_table .product-remove {
  width: 44px;
  text-align: center;
}
.tjs-page-cart table.shop_table .product-remove a {
  font-size: 1.25rem;
  color: #aaa;
  text-decoration: none;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.tjs-page-cart table.shop_table .product-remove a:hover {
  color: var(--tjs-accent, #e8472a);
  background: rgba(232, 71, 42, .08);
}
.tjs-page-cart .quantity .qty {
  min-height: 44px;
  width: 72px;
  border: 1px solid var(--tjs-line, #e8e8e8);
  border-radius: 999px;
  text-align: center;
  background: #fff;
  font-weight: 600;
}

/* Actions row — coupon left, buttons right */
.tjs-page-cart td.actions {
  padding-top: 1.5rem !important;
  border-bottom: 0 !important;
}
.tjs-page-cart td.actions::after {
  content: "";
  display: table;
  clear: both;
}
.tjs-page-cart .coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .65rem;
  float: left;
  max-width: 100%;
}
.tjs-page-cart .coupon label {
  flex: 1 1 100%;
  display: block;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tjs-muted, #777);
}
.tjs-page-cart .coupon .input-text {
  min-height: 46px;
  min-width: 200px;
  border: 1px solid var(--tjs-line, #e8e8e8) !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 0 1rem !important;
}
.tjs-page-cart .coupon .button,
.tjs-page-cart button[name="update_cart"],
.tjs-page-cart a.tjs-cart-continue {
  min-height: 46px !important;
  border-radius: 8px !important;
  padding: 0 1.4rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 46px !important;
  box-shadow: none !important;
}
.tjs-page-cart .coupon .button {
  background: #fff !important;
  border: 1.5px solid var(--tjs-ink, #1a1a1a) !important;
  color: var(--tjs-ink, #1a1a1a) !important;
}
.tjs-page-cart .coupon .button:hover {
  background: var(--tjs-ink, #1a1a1a) !important;
  color: #fff !important;
}
.tjs-page-cart a.tjs-cart-continue {
  float: right;
  margin-left: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f2 !important;
  border: 1px solid #ddd !important;
  color: var(--tjs-ink, #1a1a1a) !important;
  text-decoration: none !important;
}
.tjs-page-cart a.tjs-cart-continue:hover {
  background: var(--tjs-ink, #1a1a1a) !important;
  border-color: var(--tjs-ink, #1a1a1a) !important;
  color: #fff !important;
}
.tjs-page-cart button[name="update_cart"] {
  float: right;
  margin-left: .65rem;
  background: #ececeb !important;
  border: 0 !important;
  color: #555 !important;
}

/* Cart totals — right-aligned block under table */
.tjs-page-cart .cart-collaterals {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
}
.tjs-page-cart .cart-collaterals .cart_totals {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--tjs-line, #e8e8e8) !important;
  border-radius: 0 !important;
  padding: 1.5rem 1.6rem !important;
  background: #fff !important;
}
.tjs-page-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 1.15rem;
  font-family: var(--tjs-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.tjs-page-cart .cart_totals table {
  border: 0 !important;
  width: 100%;
}
.tjs-page-cart .cart_totals th,
.tjs-page-cart .cart_totals td {
  border: 0 !important;
  border-bottom: 1px solid var(--tjs-line, #e8e8e8) !important;
  padding: .85rem 0 !important;
  background: transparent !important;
}
.tjs-page-cart .cart_totals .order-total th,
.tjs-page-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
  font-size: 1.15rem;
  font-weight: 800;
}
.tjs-page-cart .wc-proceed-to-checkout {
  padding-top: 1.15rem;
}
.tjs-page-cart .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  min-height: 52px !important;
  border-radius: 999px !important;
  background: var(--tjs-accent, #e8472a) !important;
  color: #fff !important;
  border: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}
.tjs-page-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--tjs-accent-deep, #c93a22) !important;
}

.tjs-page-cart .cart-empty,
.tjs-page-cart .woocommerce-info {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.05rem;
}
.tjs-page-cart .return-to-shop {
  text-align: center;
  margin: 0 0 2rem;
}
.tjs-page-cart .return-to-shop .button {
  min-height: 48px;
  border-radius: 999px !important;
  background: var(--tjs-accent, #e8472a) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0 1.75rem !important;
  font-weight: 700 !important;
}

@media (max-width: 760px) {
  .tjs-page-cart .coupon,
  .tjs-page-cart button[name="update_cart"],
  .tjs-page-cart a.tjs-cart-continue {
    float: none;
    width: 100%;
    justify-content: center;
    margin: .35rem 0 0;
    text-align: center;
  }
  .tjs-page-cart .cart-collaterals {
    justify-content: stretch;
  }
  .tjs-page-cart .cart-collaterals .cart_totals {
    max-width: none;
  }
  .tjs-page-cart .tjs-steps__list {
    gap: .35rem;
    justify-content: space-between;
  }
  .tjs-page-cart .tjs-steps__item:not(:last-child)::after {
    margin: 0 .35rem;
  }
  .tjs-page-cart .tjs-steps__label {
    font-size: .68rem;
  }

  /* Keep product images visible — WC responsive table often hides thumbs */
  .tjs-page-cart table.shop_table_responsive tr {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "thumb qty qty"
      "thumb subtotal subtotal";
    gap: .35rem .75rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--tjs-line, #e8e8e8);
  }
  .tjs-page-cart table.shop_table_responsive thead { display: none !important; }
  .tjs-page-cart table.shop_table_responsive td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .tjs-page-cart table.shop_table_responsive td.product-thumbnail {
    grid-area: thumb;
    display: block !important;
  }
  .tjs-page-cart table.shop_table_responsive td.product-thumbnail::before { display: none !important; }
  .tjs-page-cart table.shop_table_responsive td.product-thumbnail img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px !important;
    display: block !important;
  }
  .tjs-page-cart table.shop_table_responsive td.product-name { grid-area: name; }
  .tjs-page-cart table.shop_table_responsive td.product-price { grid-area: price; font-size: .88rem; color: var(--tjs-muted, #777); }
  .tjs-page-cart table.shop_table_responsive td.product-quantity { grid-area: qty; }
  .tjs-page-cart table.shop_table_responsive td.product-subtotal { grid-area: subtotal; font-weight: 700; }
  .tjs-page-cart table.shop_table_responsive td.product-remove { grid-area: remove; justify-self: end; }
  .tjs-page-cart table.shop_table_responsive td::before {
    content: attr(data-title);
    display: inline;
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tjs-muted, #777);
    margin-right: .4rem;
  }
  .tjs-page-cart table.shop_table_responsive td.product-name::before,
  .tjs-page-cart table.shop_table_responsive td.product-remove::before {
    display: none !important;
  }
  .tjs-page-cart table.shop_table_responsive td.actions {
    grid-column: 1 / -1;
    display: block !important;
    padding-top: 1rem !important;
  }
  .tjs-page-cart table.shop_table_responsive td.actions::before { display: none !important; }
}

