.te-page--commerce {
  padding: 40px 0 56px;
}

.te-page--commerce .te-container {
  width: min(1760px, calc(100vw - 28px));
}

body.woocommerce-cart .wp-block-woocommerce-coming-soon,
body.woocommerce-checkout .wp-block-woocommerce-coming-soon,
body.woocommerce-account .wp-block-woocommerce-coming-soon {
  display: none !important;
}

body.woocommerce-cart .wp-site-blocks,
body.woocommerce-checkout .wp-site-blocks,
body.woocommerce-account .wp-site-blocks {
  background: var(--te-bg);
}

.te-commerce-page {
  width: min(1520px, 100%);
  padding: 30px;
  border: 1px solid var(--te-border);
  border-radius: var(--te-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(216, 137, 27, 0.08), transparent 20%),
    linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
  box-shadow: var(--te-shadow-lg);
}

.te-commerce-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(223, 207, 181, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(216, 137, 27, 0.12), rgba(255, 255, 255, 0.94) 48%),
    #fffdf8;
}

.te-commerce-hero__copy {
  max-width: 760px;
}

.te-commerce-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--te-accent-soft);
  color: var(--te-accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.te-commerce-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.te-commerce-hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--te-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.te-commerce-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.te-commerce-page .te-content-page__body {
  display: grid;
  gap: 24px;
  font-size: 1rem;
}

.te-commerce-page .te-content-page__body > :first-child {
  margin-top: 0;
}

.te-commerce-empty-state {
  display: grid;
  gap: 22px;
  padding: 34px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(226, 138, 29, 0.1), transparent 24%),
    #fff;
  box-shadow: var(--te-shadow);
}

.te-commerce-empty-state__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--te-accent-soft);
  color: var(--te-accent-strong);
  font-size: 1.5rem;
  font-weight: 900;
}

.te-commerce-empty-state__copy {
  display: grid;
  gap: 10px;
}

.te-commerce-empty-state__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.te-commerce-empty-state__copy p {
  margin: 0;
  max-width: 64ch;
  color: var(--te-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.te-commerce-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.te-commerce-page .te-content-page__body > p {
  margin: 0;
  color: var(--te-text);
  font-size: 1.08rem;
  line-height: 1.72;
}

.te-commerce-finance-note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--te-border);
  border-radius: 18px;
  background: #f9fbfd;
}

.te-commerce-finance-note strong {
  display: block;
  margin: 0;
  color: var(--te-text);
  font-size: 1rem;
  font-weight: 800;
}

.te-commerce-finance-note p {
  margin: 0;
  color: var(--te-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.woocommerce-cart .te-content-page__body > h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"],
.woocommerce-cart .te-content-page__body > form[action*="/cart"] {
  display: block;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] > table,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] > table,
.woocommerce-cart .te-content-page__body > table {
  width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--te-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] th,
.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] th,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td,
.woocommerce-cart .te-content-page__body > table th,
.woocommerce-cart .te-content-page__body > table td {
  padding: 20px 22px;
  border-color: rgba(223, 207, 181, 0.7);
  vertical-align: middle;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] thead th,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] thead th {
  background: var(--te-surface-alt);
  color: var(--te-muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td:first-child,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td:first-child {
  width: 56px;
  text-align: center;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td:nth-child(2),
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td:nth-child(2) {
  width: 156px;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] img,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] img {
  width: 132px;
  border-radius: 18px;
  border: 1px solid var(--te-border);
  background: #fff;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[data-title="Producto"] a,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[data-title="Producto"] a {
  color: var(--te-text);
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[data-title="Precio"],
.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[data-title="Subtotal"],
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[data-title="Precio"],
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[data-title="Subtotal"],
.woocommerce-cart .te-content-page__body > table td[data-title="Subtotal"] {
  color: var(--te-accent-strong);
  font-size: 1.08rem;
  font-weight: 800;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] label,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] label {
  display: block;
  margin-bottom: 10px;
  color: var(--te-text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[colspan],
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[colspan] {
  padding: 22px;
  background: #fffdf8;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[colspan] br,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[colspan] br {
  display: none;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[colspan] > button,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[colspan] > button,
.woocommerce-cart .te-content-page__body > a[href*="/checkout/"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: var(--te-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(216, 137, 27, 0.18);
}

.woocommerce-cart .te-content-page__body > a[href*="/checkout/"] {
  width: 100%;
  margin-top: 18px;
}

.woocommerce-cart .te-content-page__body > form[action*="/carrito/"] td[colspan] > button:hover,
.woocommerce-cart .te-content-page__body > form[action*="/cart"] td[colspan] > button:hover,
.woocommerce-cart .te-content-page__body > a[href*="/checkout/"]:hover {
  background: var(--te-accent-strong);
  color: #fff;
}

.woocommerce-cart .te-content-page__body > table {
  max-width: 520px;
}

.woocommerce-cart .te-content-page__body > table th,
.woocommerce-cart .te-content-page__body > table td {
  padding: 16px 0;
  font-size: 1.04rem;
}

.woocommerce-cart .te-content-page__body > table th {
  color: var(--te-text);
  font-weight: 700;
  text-align: left;
}

.woocommerce-cart .te-content-page__body > h2:first-child {
  display: none;
}

.woocommerce-account .woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper {
  margin-bottom: 18px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce .select2-container--default .select2-selection--single {
  min-height: 50px;
  border: 1px solid var(--te-border);
  border-radius: 16px;
  background: #fff;
  color: var(--te-text);
  font: inherit;
  padding: 0 14px;
  box-shadow: none;
}

.te-page--commerce form.checkout,
.te-page--commerce .woocommerce-checkout,
.te-page--commerce .woocommerce form.checkout {
  display: grid;
  gap: 28px;
}

.te-page--commerce #customer_details,
.te-page--commerce .col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.te-page--commerce .col2-set .col-1,
.te-page--commerce .col2-set .col-2,
.te-page--commerce .woocommerce-checkout-review-order,
.te-page--commerce #payment,
.te-page--commerce .woocommerce-additional-fields,
.te-page--commerce .woocommerce-billing-fields {
  min-width: 0;
}

.te-page--commerce .woocommerce-billing-fields,
.te-page--commerce .woocommerce-additional-fields,
.te-page--commerce .woocommerce-checkout-review-order {
  padding: 28px 28px;
  border: 1px solid var(--te-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.te-page--commerce .woocommerce-billing-fields h3,
.te-page--commerce .woocommerce-additional-fields h3,
.te-page--commerce #order_review_heading {
  margin: 0 0 18px;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.te-page--commerce form .form-row,
.te-page--commerce .woocommerce-billing-fields__field-wrapper,
.te-page--commerce .woocommerce-additional-fields__field-wrapper {
  display: grid;
  gap: 12px;
}

.te-page--commerce .form-row-first,
.te-page--commerce .form-row-last,
.te-page--commerce .form-row-wide,
.te-page--commerce .woocommerce form .form-row-first,
.te-page--commerce .woocommerce form .form-row-last,
.te-page--commerce .woocommerce form .form-row-wide {
  float: none !important;
  width: 100% !important;
  clear: both !important;
}

.te-page--commerce form .form-row input.input-text,
.te-page--commerce form .form-row textarea,
.te-page--commerce form .form-row select,
.te-page--commerce .select2-container--default .select2-selection--single {
  min-height: 54px;
  border: 1px solid var(--te-border);
  border-radius: 14px;
  background: #fff;
  color: var(--te-text);
  font-size: 1rem;
  padding: 0 14px;
}

.te-page--commerce form .form-row textarea {
  min-height: 130px;
  padding: 14px;
}

.te-page--commerce form .form-row label {
  margin-bottom: 8px;
  color: var(--te-text);
  font-size: 0.98rem;
  font-weight: 700;
}

.te-page--commerce .woocommerce-checkout-review-order-table,
.te-page--commerce .woocommerce-checkout-review-order-table th,
.te-page--commerce .woocommerce-checkout-review-order-table td {
  border-color: rgba(223, 207, 181, 0.7);
}

.te-page--commerce .woocommerce-checkout-review-order-table td,
.te-page--commerce .woocommerce-checkout-review-order-table th {
  padding: 16px 0;
  font-size: 0.98rem;
}

.te-page--commerce #payment [class*="benefit"],
.te-page--commerce #payment [class*="security"],
.te-page--commerce #payment [class*="wallet"],
.te-page--commerce #payment [class*="mercado"],
.te-page--commerce #payment [class*="payment-method-icon"] {
  max-width: 100%;
}

.te-page--commerce #payment [class*="benefit"] svg,
.te-page--commerce #payment [class*="security"] svg,
.te-page--commerce #payment [class*="wallet"] svg,
.te-page--commerce #payment [class*="mercado"] svg,
.te-page--commerce #payment [class*="benefit"] img,
.te-page--commerce #payment [class*="security"] img,
.te-page--commerce #payment [class*="wallet"] img,
.te-page--commerce #payment [class*="mercado"] img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  object-fit: contain !important;
}

.te-page--commerce #payment .mp-checkout-benefits,
.te-page--commerce #payment [class*="mp-checkout-benefits"],
.te-page--commerce #payment [class*="benefits-list"],
.te-page--commerce #payment [class*="benefit-item"] {
  display: none !important;
}

.woocommerce form .form-row textarea {
  min-height: 140px;
  padding: 14px;
}

.woocommerce form .form-row label {
  margin-bottom: 8px;
  color: var(--te-text);
  font-size: 0.94rem;
  font-weight: 700;
}

.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
  top: 14px;
  right: 14px;
}

.woocommerce .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--te-text);
  line-height: 1.4;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.checkout-button,
.woocommerce a.wc-forward,
.woocommerce button[name="update_cart"],
.woocommerce button[name="apply_coupon"],
.woocommerce input[name="update_cart"],
.woocommerce input[name="apply_coupon"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--te-accent);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(216, 137, 27, 0.18);
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce a.wc-forward:hover,
.woocommerce button[name="update_cart"]:hover,
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce input[name="update_cart"]:hover,
.woocommerce input[name="apply_coupon"]:hover {
  background: var(--te-accent-strong);
  color: #fff;
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
  background: var(--te-accent);
}

.woocommerce .button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce .button[disabled],
.woocommerce button.button[disabled],
.woocommerce input.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  margin: 0 0 24px;
  padding: 18px 20px 18px 48px;
  border: 1px solid var(--te-border);
  border-radius: 20px;
  background: #fff7ea;
  color: var(--te-text);
}

.woocommerce-error {
  background: #fff0ee;
  border-color: #e7b3aa;
}

.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
  grid-column: 1 / -1;
}

.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
  margin: 0 0 6px;
}

.woocommerce-checkout .woocommerce-error {
  list-style: none;
  display: grid;
  gap: 8px;
}

.woocommerce-checkout .woocommerce-error li {
  margin: 0;
  color: #8f2f20;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  top: 18px;
  left: 18px;
}

.woocommerce-cart-form,
.woocommerce-checkout-review-order,
.woocommerce-checkout .col2-set,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  margin-top: 12px;
}

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94) 0%, #ffffff 100%);
  box-shadow: var(--te-shadow);
}

.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  margin: 0;
}

.woocommerce-cart .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0;
  align-self: start;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  align-self: start;
}

.woocommerce-cart-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

.woocommerce-account .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  min-width: 0;
}

.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce .lost_reset_password,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account .woocommerce-ResetPassword {
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.woocommerce-account form.login > h2,
.woocommerce-account form.register > h2,
.woocommerce .lost_reset_password > h2,
.woocommerce-account .woocommerce-ResetPassword > h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.woocommerce-account .woocommerce-form-login p,
.woocommerce-account .woocommerce-form-register p,
.woocommerce .lost_reset_password p,
.woocommerce-account .woocommerce-address-fields p {
  color: var(--te-muted);
  line-height: 1.7;
}

.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row,
.woocommerce .lost_reset_password .form-row {
  margin-bottom: 14px;
}

.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
  min-width: 180px;
}

.woocommerce-account .lost_password,
.woocommerce-account .woocommerce-LostPassword {
  margin: 10px 0 0;
}

.woocommerce-account .lost_password a,
.woocommerce-account .woocommerce-LostPassword a {
  color: var(--te-accent-strong);
  font-weight: 700;
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
  width: 100%;
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--te-shadow);
}

.woocommerce-cart table.cart {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--te-shadow);
}

.woocommerce-cart-form table.cart,
.woocommerce-checkout-review-order table.shop_table {
  box-shadow: none;
  border: 1px solid var(--te-border);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td {
  padding: 20px 22px;
  border-color: rgba(223, 207, 181, 0.7);
}

.woocommerce table.shop_table thead th,
.woocommerce-cart table.cart thead th {
  background: var(--te-surface-alt);
  color: var(--te-muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.woocommerce-cart table.cart td.product-remove {
  width: 52px;
}

.woocommerce-cart table.cart td.product-thumbnail {
  width: 96px;
}

.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart td.product-subtotal {
  width: 1%;
  white-space: nowrap;
}

.woocommerce a.remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--te-accent-soft);
  color: var(--te-accent-strong) !important;
  font-size: 1.5rem;
  font-weight: 400;
}

.woocommerce a.remove:hover {
  background: #f2d0c8;
  color: #9f3924 !important;
}

.woocommerce-cart table.cart img,
.woocommerce table.shop_table .product-thumbnail img {
  width: 72px;
  border-radius: 18px;
  border: 1px solid var(--te-border);
  background: #fff;
}

.woocommerce table.shop_table td.product-name a,
.woocommerce-cart table.cart td.product-name a {
  color: var(--te-text);
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.45;
}

.woocommerce-cart table.cart td.product-name,
.woocommerce-checkout-review-order-table td.product-name {
  min-width: 0;
  width: auto;
  color: var(--te-text);
  font-size: 1rem;
  line-height: 1.6;
  white-space: normal;
}

.woocommerce-cart table.cart th.product-name {
  width: auto;
  min-width: 280px;
}

.woocommerce-cart table.cart td.product-name {
  min-width: 280px;
}

.woocommerce-cart table.cart td.product-name a {
  word-break: normal;
  overflow-wrap: anywhere;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal,
.woocommerce-cart .cart_totals .amount,
.woocommerce-checkout-review-order-table .amount {
  color: var(--te-accent-strong);
  font-weight: 800;
}

.woocommerce .quantity .qty {
  width: 104px;
  min-height: 50px;
  border: 1px solid var(--te-border);
  border-radius: 14px;
  font-size: 1rem;
  text-align: center;
}

.woocommerce-cart table.cart td.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 20px;
  background: #fffdf8;
}

.woocommerce-cart table.cart td.actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.woocommerce-cart table.cart td.actions > .button,
.woocommerce-cart table.cart button[name="update_cart"] {
  margin-left: auto;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: min(280px, 100%);
}

.woocommerce-cart .cart-empty {
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--te-border);
  border-radius: 24px;
  background: #fff;
  color: var(--te-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.woocommerce-cart .return-to-shop {
  margin: 22px 0 0;
}

.woocommerce-cart .return-to-shop .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart a.checkout-button,
.woocommerce-cart a.wc-forward {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}

.woocommerce-cart .return-to-shop .button {
  min-width: 220px;
  background: var(--te-dark);
  box-shadow: 0 14px 26px rgba(30, 41, 59, 0.14);
}

.woocommerce-cart .return-to-shop .button:hover {
  background: #111827;
}

.cart_totals,
.woocommerce-checkout-review-order {
  padding: 26px 28px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.cart_totals h2,
.woocommerce-checkout-review-order h3,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
.woocommerce-account .addresses .title h3 {
  margin: 0 0 18px;
  font-size: 2.15rem;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: none;
}

.woocommerce-cart .cart-collaterals {
  display: block;
  grid-column: auto;
  align-self: start;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  position: static;
  top: auto;
  width: 100%;
  max-width: none;
  margin-left: 0;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 14px 0;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  font-size: 1.02rem;
}

.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--te-border);
}

.woocommerce-checkout .woocommerce {
  display: grid;
  gap: 24px;
}

.woocommerce-checkout .col2-set {
  margin: 0;
  align-self: stretch;
}

.woocommerce-checkout #customer_details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: auto;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-checkout-review-order {
  padding: 26px 28px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-checkout-review-order {
  grid-column: auto;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  gap: 14px;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  margin: 0;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce form .form-row,
.woocommerce-checkout .woocommerce-page form .form-row {
  margin: 0;
}

.woocommerce-checkout .woocommerce form .form-row-first,
.woocommerce-checkout .woocommerce form .form-row-last,
.woocommerce-checkout .woocommerce-page form .form-row-first,
.woocommerce-checkout .woocommerce-page form .form-row-last,
.woocommerce-checkout .woocommerce form .form-row-wide,
.woocommerce-checkout .woocommerce-page form .form-row-wide {
  float: none !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce-checkout #payment {
  border: 1px solid var(--te-border);
  border-radius: 24px;
  background: #fffdf8;
}

.woocommerce-checkout #payment div.payment_box {
  margin: 12px 0 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  color: var(--te-muted);
}

.te-page--commerce [class*="mp-checkout-benefits"],
.te-page--commerce [class*="mercadopago-benefits"],
.te-page--commerce [class*="payment-benefits"],
.te-page--commerce [class*="benefits-list"] {
  display: none !important;
}

.woocommerce-checkout #payment svg,
.woocommerce-checkout #payment .mp-checkout-benefits svg,
.woocommerce-checkout .wc-block-components-payment-method-icons svg,
.te-page--commerce [class*="payment-method"] svg,
.te-page--commerce [class*="mercado"] svg,
.te-page--commerce [class*="wallet"] svg,
.te-page--commerce [class*="shield"] svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
}

.woocommerce-checkout #payment img,
.woocommerce-checkout .wc-block-components-payment-method-icons img,
.te-page--commerce [class*="payment-method"] img,
.te-page--commerce [class*="mercado"] img {
  max-width: 84px !important;
  max-height: 28px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
}

.te-page--commerce .wc-block-components-payment-method-icons,
.te-page--commerce [class*="payment-method-icons"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(223, 207, 181, 0.7);
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
  padding: 18px 20px;
  margin: 0;
  border-bottom: 1px solid rgba(223, 207, 181, 0.45);
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  color: var(--te-text);
  font-weight: 700;
}

.wc-block-checkout,
.wc-block-components-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 26px;
  align-items: start;
}

.wc-block-components-main,
.wc-block-components-sidebar {
  min-width: 0;
}

.wc-block-checkout__form,
.wc-block-components-sidebar,
.wc-block-components-order-summary,
.wc-block-checkout__totals {
  padding: 26px 28px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.wc-block-components-title,
.wc-block-checkout__totals-title {
  font-size: 2rem;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.wc-block-components-button {
  min-height: 56px !important;
  border-radius: 14px !important;
  background: var(--te-accent) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 30px rgba(216, 137, 27, 0.18) !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-button:hover {
  background: var(--te-accent-strong) !important;
}

.wc-block-components-checkout-step__description,
.wc-block-components-order-summary-item__description,
.wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  font-size: 1rem;
}

.wc-block-components-payment-method-icons,
.wc-block-components-payment-method-label {
  align-items: center;
}

.wc-block-components-payment-method-icons img,
.wc-block-components-payment-method-icons svg {
  width: auto !important;
  max-width: 72px !important;
  max-height: 28px !important;
  height: auto !important;
}

#add_payment_method #payment ul.payment_methods li img,
.woocommerce-cart #payment ul.payment_methods li img,
.woocommerce-checkout #payment ul.payment_methods li img {
  width: auto;
  max-width: 110px;
  max-height: 28px;
  height: auto;
  margin: 0 0 0 10px;
  float: none;
  vertical-align: middle;
}

.woocommerce-checkout #payment .payment_method_woo-mercado-pago-basic-checkout img,
.woocommerce-checkout #payment .payment_method_woo-mercado-pago-custom img,
.woocommerce-checkout #payment .payment_method_woo-mercado-pago-ticket img {
  max-height: 24px;
}

.woocommerce-checkout #payment div.form-row.place-order {
  margin: 0;
  padding: 22px 20px 20px;
}

.woocommerce-checkout #payment div.form-row.place-order .button,
.woocommerce-checkout #payment div.form-row.place-order .button.alt {
  width: 100%;
  min-height: 56px;
}

.woocommerce-checkout #payment div.payment_box::before {
  top: -0.6em;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  vertical-align: middle;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .place-order p {
  color: var(--te-muted);
  line-height: 1.7;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 12px;
}

.woocommerce-checkout #order_review_heading {
  display: none;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  align-self: stretch;
}

.woocommerce-checkout .woocommerce-checkout-review-order::before {
  content: "Tu pedido";
  display: block;
  margin: 0 0 2px;
  color: var(--te-text);
  font-size: 1.7rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.woocommerce-checkout-review-order-table td.product-name {
  font-size: 0.96rem;
  line-height: 1.55;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  font-size: 1.04rem;
}

.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
  padding-top: 18px;
  border-top: 1px solid var(--te-border);
  font-size: 1.12rem;
  font-weight: 800;
}

.woocommerce-checkout #payment {
  margin-top: 4px;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--te-border);
  border-radius: 16px;
  background: #fff;
  color: var(--te-text);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--te-accent-soft);
  color: var(--te-accent-strong);
  border-color: rgba(216, 137, 27, 0.35);
}

.woocommerce-account .woocommerce-MyAccount-content {
  padding: 26px 28px;
  border: 1px solid var(--te-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--te-shadow);
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-table--order-downloads,
.woocommerce-account .woocommerce-EditAccountForm fieldset {
  margin-top: 22px;
}

.woocommerce-account .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-customer-details address {
  padding: 20px 22px;
  border: 1px solid var(--te-border);
  border-radius: 22px;
  background: var(--te-surface-alt);
}

.woocommerce-account .woocommerce-Address .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.woocommerce-account .woocommerce-Address .title .edit {
  color: var(--te-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-pagination {
  margin-top: 22px;
}

.woocommerce-account .woocommerce-pagination .button {
  min-width: 150px;
}

.woocommerce-account .addresses .title h3 {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .te-page--commerce .te-container {
    width: min(100vw - 20px, 100%);
  }

  .te-commerce-hero,
  .woocommerce-cart .woocommerce,
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout form.checkout,
  .woocommerce-checkout #customer_details,
  .woocommerce-account .woocommerce,
  .wc-block-checkout,
  .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .u-columns,
  .woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }

  .te-page--commerce #customer_details,
  .te-page--commerce .col2-set {
    grid-template-columns: 1fr;
  }

  .te-commerce-hero {
    align-items: flex-start;
  }

  .te-commerce-hero__actions {
    justify-content: flex-start;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout .woocommerce-checkout-review-order {
    grid-area: auto;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order {
    position: static;
  }
}

@media (max-width: 768px) {
  .te-commerce-page {
    padding: 18px;
    border-radius: 24px;
  }

  .te-commerce-hero {
    padding: 22px 20px;
  }

  .te-commerce-hero__actions {
    width: 100%;
  }

  .te-commerce-hero__actions .te-button {
    width: 100%;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td,
  .woocommerce-cart table.cart th,
  .woocommerce-cart table.cart td {
    padding: 14px 12px;
  }

  .woocommerce-cart .te-content-page__body > form[action*="/carrito/"] > table th,
  .woocommerce-cart .te-content-page__body > form[action*="/carrito/"] > table td,
  .woocommerce-cart .te-content-page__body > form[action*="/cart"] > table th,
  .woocommerce-cart .te-content-page__body > form[action*="/cart"] > table td {
    padding: 14px 12px;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-cart table.cart td.actions .coupon .input-text {
    width: 100%;
  }

  .woocommerce-cart-form {
    padding: 18px;
  }

  .woocommerce-cart table.cart td.actions > .button,
  .woocommerce-cart table.cart button[name="update_cart"],
  .woocommerce-cart .return-to-shop .button,
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
  .woocommerce-cart a.checkout-button,
  .woocommerce-cart a.wc-forward {
    width: 100%;
    margin-left: 0;
  }

  .wc-block-checkout__form,
  .wc-block-components-sidebar,
  .wc-block-components-order-summary,
  .wc-block-checkout__totals {
    padding: 20px;
  }

  .te-commerce-empty-state {
    padding: 24px 20px;
  }

  .te-commerce-empty-state__actions .te-button {
    width: 100%;
  }
}
