/* ASIGNATURE commerce: only styles WooCommerce shells. Payment-provider fields keep their native layout. */
.asu-commerce-hero { position: relative; padding: 38px clamp(20px, 5vw, 72px) 34px; overflow: hidden; border-bottom: 1px solid var(--avd-line); background: #fff; color: #111; }
.asu-commerce-hero::after { display: none; }
.asu-commerce-hero-inner { position: relative; z-index: 1; width: min(1220px, 100%); margin: 0 auto; }
.asu-commerce-hero-inner > p { margin: 0 0 11px; color: #666 !important; font: 800 9px/1 var(--avd-mono); letter-spacing: .07em; }
.asu-commerce-hero h1 { max-width: 1000px; margin: 0; color: #111 !important; font: 800 clamp(31px, 4vw, 50px)/1 var(--avd-display); letter-spacing: -.04em; text-transform: uppercase; }
.asu-commerce-hero-inner > span { display: block; max-width: 670px; margin-top: 13px; color: #747472 !important; font-size: 13px; line-height: 1.55; }
.asu-checkout-steps { display: flex; flex-wrap: wrap; gap: 7px; margin: 23px 0 0; padding: 0; list-style: none; }
.asu-checkout-steps li { min-height: 33px; padding: 0 11px 0 7px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--avd-line); border-radius: 999px; color: #111; font: 800 8px/1 var(--avd-mono); }
.asu-checkout-steps b { width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 7px; }

.asu-commerce-content { min-height: 460px; padding: 34px clamp(20px, 5vw, 72px) 78px; background: #fff; color: #121212; }
.asu-commerce-content .woocommerce,
.asu-commerce-trust { width: min(1220px, 100%); margin-inline: auto; }
.asu-commerce-content .woocommerce { color: #121212; font-family: var(--avd-sans); }
.asu-commerce-content .woocommerce * { box-sizing: border-box; }
.asu-commerce-content .woocommerce a { color: #121212; text-decoration: underline; text-underline-offset: 3px; }
.asu-commerce-content .woocommerce a:focus-visible,
.asu-commerce-content .woocommerce button:focus-visible,
.asu-commerce-content .woocommerce input:focus-visible,
.asu-commerce-content .woocommerce select:focus-visible,
.asu-commerce-content .woocommerce textarea:focus-visible { outline: 2px solid #111 !important; outline-offset: 2px; }
.asu-commerce-content .woocommerce h2,
.asu-commerce-content .woocommerce h3 { color: #121212 !important; font-family: var(--avd-sans) !important; text-transform: uppercase; }

.asu-commerce-trust { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; overflow: hidden; border: 1px solid var(--avd-line); border-radius: 9px; background: #f7f7f5; }
.asu-commerce-trust > span { position: relative; min-height: 68px; padding: 14px 15px 14px 43px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.asu-commerce-trust > span + span { border-left: 1px solid rgba(18,18,18,.12); }
.asu-commerce-trust > span::before { content: "✓"; position: absolute; left: 15px; top: 16px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #111; color: #fff; font: 900 9px/1 var(--avd-mono); }
.asu-commerce-trust b { color: #121212 !important; font: 900 9px/1 var(--avd-mono); letter-spacing: .05em; }
.asu-commerce-trust small { color: rgba(18,18,18,.58) !important; font-size: 11px; line-height: 1.35; }

.asu-commerce-content .woocommerce button.button,
.asu-commerce-content .woocommerce a.button,
.asu-commerce-content .woocommerce input.button,
.asu-commerce-content #place_order { min-height: 49px !important; padding: 0 18px !important; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid #121212 !important; border-radius: 999px !important; background: #121212 !important; color: #fff !important; box-shadow: none !important; cursor: pointer; font: 800 9px/1 var(--avd-mono) !important; letter-spacing: .03em !important; text-decoration: none !important; text-transform: uppercase !important; }
.asu-commerce-content .woocommerce button.button:hover,
.asu-commerce-content .woocommerce a.button:hover,
.asu-commerce-content .woocommerce input.button:hover { border-color: #333 !important; background: #333 !important; color: #fff !important; }
.asu-commerce-content #place_order { width: 100%; min-height: 57px !important; background: #111 !important; color: #fff !important; }
.asu-commerce-content .woocommerce button:disabled { opacity: .5; cursor: not-allowed; }

.asu-commerce-content table.shop_table { width: 100% !important; margin: 0 !important; border: 1px solid var(--avd-line) !important; border-collapse: separate !important; border-spacing: 0 !important; border-radius: 9px !important; background: #fff; overflow: hidden; }
.asu-commerce-content table.shop_table th,
.asu-commerce-content table.shop_table td { padding: 14px !important; border-color: rgba(18,18,18,.11) !important; color: #121212 !important; vertical-align: middle; }
.asu-commerce-content table.shop_table th { font-size: 11px; font-weight: 900; }
.asu-commerce-content .woocommerce-info,
.asu-commerce-content .woocommerce-message,
.asu-commerce-content .woocommerce-error { width: 100%; margin: 0 0 17px !important; padding: 15px 17px 15px 45px !important; border: 1px solid var(--avd-line) !important; border-left: 3px solid #111 !important; border-radius: 8px !important; background: #fff !important; color: #121212 !important; box-shadow: none !important; font-size: 12px; line-height: 1.45; }
.asu-commerce-content .woocommerce-info::before,
.asu-commerce-content .woocommerce-message::before,
.asu-commerce-content .woocommerce-error::before { top: 15px; left: 16px; }
.asu-commerce-content .woocommerce-error { border-top-color: #b52020 !important; }

/* Checkout: identity/delivery fields. Mercado Pago descendants are deliberately not resized. */
.asu-commerce-checkout .woocommerce form.checkout.woocommerce-checkout { width: 100% !important; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(370px, .72fr); gap: 0 25px; align-items: start; }
.asu-commerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; min-width: 0; width: 100% !important; margin: 0 !important; }
.asu-commerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; float: none !important; width: 100% !important; margin: 0 !important; padding: 19px 20px !important; border: 1px solid var(--avd-line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f7f7f5; color: #111 !important; font: 800 18px/1 var(--avd-sans) !important; }
.asu-commerce-checkout #order_review { grid-column: 2; grid-row: 2; float: none !important; position: static !important; min-width: 0; width: 100% !important; max-width: none !important; margin: 0 !important; overflow: hidden; border: 1px solid var(--avd-line); border-radius: 0 0 10px 10px; background: #fff; }
.asu-commerce-checkout .col2-set { float: none !important; width: 100% !important; margin: 0 !important; }
.asu-commerce-checkout .col2-set .col-1,
.asu-commerce-checkout .col2-set .col-2 { float: none !important; width: 100% !important; padding: 22px; border: 1px solid var(--avd-line); border-radius: 10px; background: #fff; }
.asu-commerce-checkout .col2-set .col-2 { margin-top: 14px; }
.asu-commerce-checkout .woocommerce-billing-fields > h3,
.asu-commerce-checkout .woocommerce-additional-fields > h3,
.asu-commerce-checkout .woocommerce-shipping-fields > h3 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(18,18,18,.13); font-size: 19px !important; }
.asu-commerce-checkout #customer_details .form-row { margin: 0 0 14px; }
.asu-commerce-checkout #customer_details .form-row label { display: block; margin-bottom: 6px; color: #121212 !important; font: 800 8px/1.3 var(--avd-mono); letter-spacing: .05em; text-transform: uppercase; }
.asu-commerce-checkout #customer_details input.input-text,
.asu-commerce-checkout #customer_details input[type="email"],
.asu-commerce-checkout #customer_details input[type="tel"],
.asu-commerce-checkout #customer_details textarea,
.asu-commerce-checkout #customer_details select,
.asu-commerce-checkout #customer_details .select2-container .select2-selection { width: 100% !important; min-height: 49px; padding: 11px 13px !important; border: 1px solid #c8c8c4 !important; border-radius: 8px !important; background: #fff !important; color: #121212 !important; box-shadow: none !important; font-size: 14px; }
.asu-commerce-checkout #customer_details .select2-container { width: 100% !important; }
.asu-commerce-checkout #customer_details .select2-selection__rendered { padding: 0 !important; line-height: 25px !important; color: #121212 !important; }
.asu-commerce-checkout #customer_details .select2-selection__arrow { height: 47px !important; }
.asu-commerce-checkout #customer_details input:focus,
.asu-commerce-checkout #customer_details textarea:focus,
.asu-commerce-checkout #customer_details select:focus { border-color: #121212 !important; box-shadow: 0 0 0 2px rgba(17,17,17,.13) !important; }
.asu-commerce-checkout #order_review table.shop_table { border: 0 !important; border-bottom: 1px solid rgba(18,18,18,.12) !important; table-layout: fixed; }
.asu-commerce-checkout #order_review table.shop_table th:first-child,
.asu-commerce-checkout #order_review table.shop_table td:first-child { width: 66%; }
.asu-commerce-checkout #order_review table.shop_table th:last-child,
.asu-commerce-checkout #order_review table.shop_table td:last-child { width: 34%; text-align: right; }
.asu-commerce-checkout #order_review .product-name { overflow-wrap: anywhere; line-height: 1.4; }

/* Only the payment shell is themed. Inputs, selects, flex rows and Mercado Pago containers keep provider CSS. */
.asu-commerce-checkout #payment { margin: 0 !important; border-radius: 0 0 9px 9px !important; background: #f7f7f5 !important; }
.asu-commerce-checkout #payment ul.payment_methods { margin: 0; padding: 17px !important; border-bottom: 1px solid rgba(18,18,18,.12); list-style: none; }
.asu-commerce-checkout #payment ul.payment_methods > li { margin: 0; line-height: 1.45; }
.asu-commerce-checkout #payment ul.payment_methods > li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(18,18,18,.12); }
.asu-commerce-checkout #payment div.payment_box { margin: 13px 0 0 !important; padding: 15px !important; border: 1px solid var(--avd-line) !important; border-radius: 8px !important; background: #fff !important; color: #121212 !important; font-size: 12px; line-height: 1.5; overflow: visible !important; }
.asu-commerce-checkout #payment div.payment_box::before { border-bottom-color: #fff !important; }
.asu-commerce-checkout #payment img { width: auto !important; max-width: 100% !important; height: auto !important; }
.asu-commerce-checkout #payment .place-order { margin: 0 !important; padding: 17px !important; }
.asu-commerce-checkout #payment .woocommerce-privacy-policy-text,
.asu-commerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { font-size: 11px; line-height: 1.5; }
.asu-commerce-checkout #payment input[type="radio"],
.asu-commerce-checkout #payment input[type="checkbox"] { width: 16px !important; height: 16px !important; min-height: 0 !important; margin-right: 7px !important; }

/* Cart */
.asu-commerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); align-items: start; gap: 24px; }
.asu-commerce-cart .woocommerce > * { grid-column: 1 / -1; }
.asu-commerce-cart .woocommerce > .woocommerce-cart-form { grid-column: 1; min-width: 0; margin: 0; }
.asu-commerce-cart .woocommerce > .cart-collaterals { grid-column: 2; min-width: 0; width: 100% !important; margin: 0; }
.asu-commerce-cart .woocommerce-cart-form thead th { background: #f7f7f5; color: #111 !important; font: 800 9px/1 var(--avd-mono); letter-spacing: .03em; }
.asu-commerce-cart .product-thumbnail img { display: block; width: 68px !important; height: 68px !important; object-fit: contain; background: #f3f1ed; }
.asu-commerce-cart a.remove { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(18,18,18,.2); border-radius: 50%; color: #121212 !important; text-decoration: none; }
.asu-commerce-cart .quantity .qty { width: 70px !important; min-height: 43px; padding: 7px !important; text-align: center; }
.asu-commerce-cart td.actions { padding: 13px !important; background: #efebe5; }
.asu-commerce-cart td.actions .coupon { display: flex; gap: 7px; }
.asu-commerce-cart td.actions .coupon .input-text { width: min(205px, 100%) !important; min-height: 49px; margin: 0 !important; padding: 10px 12px; border: 1px solid rgba(18,18,18,.3); border-radius: 999px; }
.asu-commerce-cart .cart-collaterals .cart_totals { float: none !important; position: sticky; top: 118px; width: 100% !important; margin: 0 !important; overflow: hidden; border: 1px solid var(--avd-line); border-radius: 10px; background: #fff; }
.asu-commerce-cart .cart_totals > h2 { margin: 0 !important; padding: 19px; background: #f7f7f5; color: #111 !important; font-size: 19px !important; }
.asu-commerce-cart .cart_totals table.shop_table { border: 0 !important; }
.asu-commerce-cart .wc-proceed-to-checkout { margin: 0; padding: 15px; border-top: 1px solid rgba(18,18,18,.12); }
.asu-commerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 57px !important; margin: 0 !important; border-radius: 999px !important; background: #111 !important; color: #fff !important; }

/* Account */
.asu-commerce-account .woocommerce { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 24px; }
.asu-commerce-account .woocommerce:has(> #customer_login),
.asu-commerce-account .woocommerce:has(> form.woocommerce-form-login),
.asu-commerce-account .woocommerce:has(> form.woocommerce-ResetPassword),
.asu-commerce-account .woocommerce:has(> form.lost_reset_password) { display: block !important; width: 100%; max-width: 980px; margin-inline: auto; }
.asu-commerce-account .woocommerce > #customer_login,
.asu-commerce-account .woocommerce > .u-columns { grid-column: 1 / -1; width: 100% !important; max-width: none !important; margin: 0 !important; }
.asu-commerce-account #customer_login,
.asu-commerce-account .woocommerce > .u-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; }
.asu-commerce-account #customer_login .u-column1,
.asu-commerce-account #customer_login .col-1 { grid-column: 1; grid-row: 1; }
.asu-commerce-account #customer_login .u-column2,
.asu-commerce-account #customer_login .col-2 { grid-column: 2; grid-row: 1; }
.asu-commerce-account #customer_login .u-column1,
.asu-commerce-account #customer_login .u-column2,
.asu-commerce-account .woocommerce > .u-columns > .col-1,
.asu-commerce-account .woocommerce > .u-columns > .col-2 { float: none !important; clear: none !important; min-width: 0; width: 100% !important; margin: 0 !important; padding: 27px; border: 1px solid var(--avd-line); border-radius: 10px; background: #fff; }
.asu-commerce-account #customer_login h2 { margin: 0 0 19px; color: #111 !important; font-size: clamp(21px, 2.2vw, 27px) !important; }
.asu-commerce-account #customer_login form.woocommerce-form-login,
.asu-commerce-account #customer_login form.woocommerce-form-register { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.asu-commerce-account .woocommerce > form.woocommerce-form-login,
.asu-commerce-account .woocommerce > form.woocommerce-ResetPassword,
.asu-commerce-account .woocommerce > form.lost_reset_password { grid-column: 1 / -1; justify-self: center; width: min(560px, 100%) !important; margin: 0 auto !important; padding: 28px !important; border: 1px solid var(--avd-line) !important; border-radius: 10px; background: #fff; }
.asu-commerce-account .woocommerce > form.woocommerce-form-login h2,
.asu-commerce-account .woocommerce > form.woocommerce-ResetPassword h2,
.asu-commerce-account .woocommerce > form.lost_reset_password h2 { margin-top: 0; }
.asu-commerce-account form.woocommerce-ResetPassword .form-row,
.asu-commerce-account form.lost_reset_password .form-row { float: none !important; clear: both !important; width: 100% !important; }
.asu-commerce-account .woocommerce form .password-input { position: relative; display: block; width: 100%; }
.asu-commerce-account .woocommerce form .form-row { margin: 0 0 13px; }
.asu-commerce-account .woocommerce form .form-row label { display: block; margin-bottom: 6px; font: 800 8px/1.3 var(--avd-mono); text-transform: uppercase; }
.asu-commerce-account .woocommerce form input.input-text,
.asu-commerce-account .woocommerce form input[type="email"],
.asu-commerce-account .woocommerce form input[type="password"],
.asu-commerce-account .woocommerce form select,
.asu-commerce-account .woocommerce form textarea { width: 100%; min-height: 49px; padding: 11px 13px; border: 1px solid rgba(18,18,18,.3); border-radius: 8px; background: #fff; color: #121212; }
.asu-commerce-account .woocommerce form button.button { min-height: 47px; padding-inline: 22px !important; border-radius: 999px !important; background: #111 !important; color: #fff !important; }
.asu-commerce-account .woocommerce > .woocommerce-notices-wrapper,
.asu-commerce-account .woocommerce > .woocommerce-message,
.asu-commerce-account .woocommerce > .woocommerce-info,
.asu-commerce-account .woocommerce > .woocommerce-error { grid-column: 1 / -1; }
.asu-commerce-account .woocommerce-MyAccount-navigation { grid-column: 1; float: none !important; width: auto !important; }
.asu-commerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--avd-line); border-radius: 9px; list-style: none; background: #fff; }
.asu-commerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--avd-line); color: #555 !important; font: 700 9px/1.25 var(--avd-mono); text-decoration: none; text-transform: uppercase; }
.asu-commerce-account .woocommerce-MyAccount-navigation .is-active a { background: #f1f1ef; color: #111 !important; font-weight: 800; }
.asu-commerce-account .woocommerce-MyAccount-content { grid-column: 2; float: none !important; min-width: 0; width: auto !important; padding: 27px; border: 1px solid var(--avd-line); border-radius: 10px; background: #fff; }
.asu-commerce-dropcase { padding: 0; background: #fff; }
.asu-commerce-dropcase > .adc-drop { margin: 0; }

@media (max-width: 940px) {
  .asu-commerce-checkout .woocommerce form.checkout.woocommerce-checkout { display: block !important; }
  .asu-commerce-checkout #customer_details { margin-bottom: 22px !important; }
  .asu-commerce-cart .woocommerce { grid-template-columns: 1fr; }
  .asu-commerce-cart .woocommerce > .woocommerce-cart-form,
  .asu-commerce-cart .woocommerce > .cart-collaterals { grid-column: 1; }
  .asu-commerce-cart .cart-collaterals .cart_totals { position: static; }
  .asu-commerce-account .woocommerce { grid-template-columns: 1fr; }
  .asu-commerce-account .woocommerce-MyAccount-navigation,
  .asu-commerce-account .woocommerce-MyAccount-content { grid-column: 1; }
  .asu-commerce-account .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .asu-commerce-hero { padding: 36px 16px 33px; }
  .asu-commerce-hero h1 { font-size: 38px; }
  .asu-checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
  .asu-checkout-steps li { justify-content: center; padding-inline: 5px; }
  .asu-commerce-content { padding: 22px 11px 58px; }
  .asu-commerce-trust { grid-template-columns: 1fr; }
  .asu-commerce-trust > span + span { border-top: 1px solid rgba(18,18,18,.12); border-left: 0; }
  .asu-commerce-checkout .col2-set .col-1,
  .asu-commerce-checkout .col2-set .col-2 { padding: 15px; }
  .asu-commerce-checkout #order_review_heading { padding: 16px !important; }
  .asu-commerce-checkout #order_review table.shop_table th,
  .asu-commerce-checkout #order_review table.shop_table td { padding: 10px 8px !important; font-size: 11px; }
  .asu-commerce-checkout #payment ul.payment_methods,
  .asu-commerce-checkout #payment .place-order { padding: 12px !important; }
  .asu-commerce-checkout #payment div.payment_box { padding: 11px !important; }
  .asu-commerce-checkout .woocommerce form .form-row-first,
  .asu-commerce-checkout .woocommerce form .form-row-last { float: none !important; width: 100% !important; }
  .asu-commerce-cart .woocommerce-cart-form table.shop_table_responsive,
  .asu-commerce-cart .woocommerce-cart-form table.shop_table_responsive tbody { display: block; }
  .asu-commerce-cart .woocommerce-cart-form table.shop_table_responsive thead { display: none; }
  .asu-commerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item { display: grid; grid-template-columns: 32px 70px minmax(0, 1fr); gap: 5px 9px; margin-bottom: 9px; padding: 12px; border: 1px solid rgba(18,18,18,.14); background: #fff; }
  .asu-commerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td { display: block !important; width: auto !important; padding: 2px 0 !important; border: 0 !important; background: transparent !important; text-align: left !important; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item td::before { display: none !important; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item .product-remove { grid-column: 1; grid-row: 1; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item .product-thumbnail { display: block !important; grid-column: 2; grid-row: 1 / span 5; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item .product-name { grid-column: 3; grid-row: 1; font-weight: 800; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item .product-price { grid-column: 3; grid-row: 2; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item .product-quantity { grid-column: 3; grid-row: 3; }
  .asu-commerce-cart .woocommerce-cart-form tr.cart_item .product-subtotal { grid-column: 3; grid-row: 4; font-weight: 900; }
  .asu-commerce-cart td.actions { display: flex !important; flex-direction: column; gap: 8px; width: 100% !important; }
  .asu-commerce-cart td.actions .coupon { width: 100%; }
  .asu-commerce-cart td.actions .coupon .input-text { flex: 1; width: 1px !important; }
  .asu-commerce-cart td.actions > button { width: 100%; }
  .asu-commerce-account .woocommerce-MyAccount-navigation ul,
  .asu-commerce-account #customer_login,
  .asu-commerce-account .woocommerce > .u-columns { grid-template-columns: 1fr; }
  .asu-commerce-account #customer_login .u-column1,
  .asu-commerce-account #customer_login .col-1 { grid-column: 1; grid-row: 1; }
  .asu-commerce-account #customer_login .u-column2,
  .asu-commerce-account #customer_login .col-2 { grid-column: 1; grid-row: 2; }
  .asu-commerce-account #customer_login .u-column1,
  .asu-commerce-account #customer_login .u-column2,
  .asu-commerce-account .woocommerce > .u-columns > .col-1,
  .asu-commerce-account .woocommerce > .u-columns > .col-2,
  .asu-commerce-account .woocommerce > form.woocommerce-form-login,
  .asu-commerce-account .woocommerce > form.woocommerce-ResetPassword,
  .asu-commerce-account .woocommerce > form.lost_reset_password { padding: 19px !important; }
  .asu-commerce-account .woocommerce-MyAccount-content { padding: 15px; }
}
