/* Presentación de WooCommerce; no modifica plantillas ni comportamiento. */
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.wp-site-blocks > .wp-block-post-content, .wp-site-blocks > main) {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.wp-block-post-content, main) :is(h1, h2, h3) {
  color: var(--yk-dark);
  font-weight: 400;
  line-height: 1.2;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.wp-block-post-content, main) h1 { font-size: clamp(32px, 4vw, 48px); }
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.wp-block-post-content, main) h2 { font-size: clamp(26px, 3vw, 34px); }
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.wp-block-post-content, main) h3 { font-size: 22px; }

:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.woocommerce, .woocommerce-page) :is(a.button, button.button, input.button, :where(#respond input#submit)),
body.woocommerce :is(a.button, button.button, input.button, :where(#respond input#submit)) {
  background: #703680;
  color: #fff;
  border: 1px solid #703680;
  border-radius: 6px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.woocommerce, .woocommerce-page) :is(a.button, button.button, input.button, :where(#respond input#submit)):hover,
body.woocommerce :is(a.button, button.button, input.button, :where(#respond input#submit)):hover {
  background: #57265f;
  border-color: #57265f;
  color: #fff;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid #a46ab2;
  outline-offset: 3px;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.woocommerce, .woocommerce-page) :is(input.input-text, select, textarea) {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b7a8ba;
  border-radius: 6px;
  background: #fff;
  color: #3e3444;
  font: inherit;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) .woocommerce table.shop_table {
  width: 100%;
  border: 1px solid #e3d8e6;
  border-radius: 10px;
  border-collapse: separate;
  overflow: hidden;
}
:is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) .woocommerce table.shop_table :is(th, td) {
  padding: 12px;
  overflow-wrap: anywhere;
}
body.woocommerce div.product :is(.woocommerce-product-gallery, .summary) { min-width: 0; }
body.woocommerce div.product .woocommerce-product-gallery img { border-radius: 10px; }
body.woocommerce :is(ul.products, .related ul.products) { max-width: 100%; }
body.woocommerce ul.products li.product { min-width: 0; overflow-wrap: anywhere; }
body.woocommerce ul.products li.product img { border-radius: 10px; }
body.woocommerce .woocommerce-ordering select { max-width: 100%; }
:is(body.woocommerce-checkout, body.woocommerce-cart) .woocommerce :is(.col2-set, .cart-collaterals, .checkout) { min-width: 0; }
body.woocommerce-checkout .woocommerce #payment { background: #f4eef6; border-radius: 10px; }
body.woocommerce-checkout .woocommerce #payment div.payment_box { overflow-wrap: anywhere; }

@media (max-width: 767px) {
  :is(body.woocommerce, body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) :is(.wp-site-blocks > .wp-block-post-content, .wp-site-blocks > main) { padding-top: 32px; padding-bottom: 48px; }
  body.woocommerce div.product :is(.woocommerce-product-gallery, .summary) { float: none; width: 100%; }
  body.woocommerce ul.products li.product { width: 48%; }
  :is(body.woocommerce-cart, body.woocommerce-checkout, body.woocommerce-account) .woocommerce table.shop_table { font-size: 14px; }
  body.woocommerce-cart .woocommerce table.cart td.actions :is(.coupon, input, button) { max-width: 100%; }
  body.woocommerce-checkout .woocommerce :is(.col2-set .col-1, .col2-set .col-2) { float: none; width: 100%; }
}
@media (max-width: 380px) {
  body.woocommerce ul.products li.product { float: none; width: 100%; margin-right: 0; }
}
