/* Nory Fit — estilo de la marca para el carrito, el pago, Mi Cuenta y las páginas de membresías.
   Se aplica solo cuando el body tiene la clase ndf-skin (la pone el plugin). */
body.ndf-skin {
  --bg: #fff9fa; --surface: #ffffff; --soft: #f8e1e7; --fg: #1c1316; --muted: #7b6a70; --line: #ecdadf;
  --accent: #6b1a33; --accent-text: #6b1a33; --on-accent: #ffffff;
  --font: "NDF Aileron", "Aileron", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "NDF Catchye", "Catchye", Georgia, serif;
  background: var(--bg) !important; color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: .01em;
}
/* margen general de toda la página: nada queda pegado a los bordes */
body.ndf-skin { max-width: 1100px; margin: 0 auto !important; padding: 8px clamp(16px, 4vw, 32px) 56px !important; box-sizing: border-box; }
body.ndf-skin *, body.ndf-skin *::before, body.ndf-skin *::after { box-sizing: border-box; }
body.ndf-skin p, body.ndf-skin td, body.ndf-skin th, body.ndf-skin li, body.ndf-skin a, body.ndf-skin label { overflow-wrap: anywhere; }
html.ndf-dark body.ndf-skin {
  --bg: #130e10; --surface: #1e1518; --soft: #2d1d24; --fg: #f7eceF; --muted: #aa989e; --line: #36262c;
  --accent: #7a1c36; --accent-text: #efaabd; color-scheme: dark;
}
body.ndf-skin #page, body.ndf-skin .site, body.ndf-skin .site-content, body.ndf-skin #content, body.ndf-skin main, body.ndf-skin .site-main, body.ndf-skin article,
body.ndf-skin .entry-content, body.ndf-skin .page-content { background: transparent !important; color: var(--fg); }
body.ndf-skin h1, body.ndf-skin h2, body.ndf-skin h3, body.ndf-skin h4, body.ndf-skin .entry-title { font-family: var(--font); font-weight: 600; color: var(--fg); letter-spacing: .005em; }
body.ndf-skin h1, body.ndf-skin .entry-title { font-size: clamp(28px, 5vw, 38px); line-height: 1.1; color: var(--accent-text); }
body.ndf-skin a { color: var(--accent-text); }
body.ndf-skin p, body.ndf-skin li, body.ndf-skin label, body.ndf-skin td, body.ndf-skin th, body.ndf-skin span { font-family: var(--font); }

/* barra superior con el regreso a la aplicación */
.ndf-topbar { display: none; }
body.ndf-skin .ndf-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0 0 14px; padding: 14px 0 6px; }
body.ndf-skin .ndf-topbar a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--accent-text); }
body.ndf-skin .ndf-topbar img { width: 40px; height: 40px; border-radius: 12px; background: #fff9fa; padding: 6px; object-fit: contain; border: 1px solid var(--line); }
body.ndf-skin .ndf-topbar .ndf-back { background: var(--soft); border-radius: 999px; padding: 10px 16px; font-size: 14px; }

/* contenedor de la página */
body.ndf-skin .woocommerce, body.ndf-skin .wc-block-cart, body.ndf-skin .wc-block-checkout, body.ndf-skin .pmpro, body.ndf-skin .pmpro_card, body.ndf-skin #pmpro_form {
  font-family: var(--font); color: var(--fg);
}
/* botones */
body.ndf-skin .button, body.ndf-skin button.button, body.ndf-skin a.button, body.ndf-skin input[type="submit"], body.ndf-skin input[type="button"],
body.ndf-skin .wc-block-components-button, body.ndf-skin .wp-element-button, body.ndf-skin .pmpro_btn, body.ndf-skin a.pmpro_btn, body.ndf-skin .woocommerce #respond input#submit,
body.ndf-skin .woocommerce a.button, body.ndf-skin .woocommerce button.button, body.ndf-skin .woocommerce input.button {
  background: var(--accent) !important; color: var(--on-accent) !important; border: 0 !important; border-radius: 16px !important; min-height: 52px; padding: 0 22px !important;
  font-family: var(--font) !important; font-weight: 600 !important; font-size: 16px !important; letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: none !important; text-transform: none !important; cursor: pointer; line-height: 1.2;
}
body.ndf-skin .button:hover, body.ndf-skin .wc-block-components-button:hover, body.ndf-skin .pmpro_btn:hover, body.ndf-skin input[type="submit"]:hover { filter: brightness(1.08); }
body.ndf-skin .button.alt, body.ndf-skin .checkout-button { width: 100%; }
body.ndf-skin .button:disabled, body.ndf-skin .button.disabled { opacity: .5; }

/* campos */
body.ndf-skin input[type="text"]:not(.wc-block-components-text-input input), body.ndf-skin input[type="email"]:not(.wc-block-components-text-input input), body.ndf-skin input[type="password"]:not(.wc-block-components-text-input input), body.ndf-skin input[type="tel"]:not(.wc-block-components-text-input input), body.ndf-skin input[type="number"]:not(.wc-block-components-text-input input),
body.ndf-skin input[type="url"], body.ndf-skin input[type="search"], body.ndf-skin select:not(.wc-blocks-components-select__select), body.ndf-skin textarea, body.ndf-skin .select2-container--default .select2-selection--single {
  background: var(--surface) !important; color: var(--fg) !important; border: 1.5px solid var(--line) !important; border-radius: 14px !important; min-height: 48px; padding: 8px 14px !important;
  font-family: var(--font) !important; font-size: 16px !important; box-shadow: none !important; width: 100%; max-width: 100%;
}
body.ndf-skin textarea { min-height: 110px; }
body.ndf-skin input:focus, body.ndf-skin select:focus, body.ndf-skin textarea:focus { outline: 3px solid var(--accent-text); outline-offset: 1px; }
body.ndf-skin label, body.ndf-skin .wc-block-components-text-input label { color: var(--muted); font-weight: 500; font-size: 14px; }
body.ndf-skin input[type="checkbox"], body.ndf-skin input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
body.ndf-skin .quantity input.qty { width: 76px; text-align: center; }

/* tablas y tarjetas */
body.ndf-skin table.shop_table, body.ndf-skin table.cart, body.ndf-skin .wc-block-cart__main, body.ndf-skin .wc-block-cart__sidebar, body.ndf-skin .wc-block-checkout__main, body.ndf-skin .wc-block-checkout__sidebar,
body.ndf-skin .cart_totals, body.ndf-skin #order_review, body.ndf-skin #payment, body.ndf-skin .woocommerce-checkout-review-order, body.ndf-skin .woocommerce form.login, body.ndf-skin .woocommerce form.register,
body.ndf-skin .woocommerce-MyAccount-content, body.ndf-skin .pmpro_card, body.ndf-skin .pmpro_form, body.ndf-skin #pmpro_form, body.ndf-skin .pmpro_checkout, body.ndf-skin .pmpro_level {
  background: var(--surface) !important; color: var(--fg) !important; border: 1px solid var(--line) !important; border-radius: 22px !important; box-shadow: none !important;
}
body.ndf-skin table.shop_table { border-collapse: separate; border-spacing: 0; overflow: hidden; }
body.ndf-skin table.shop_table th, body.ndf-skin table.shop_table td { border-color: var(--line) !important; background: transparent !important; color: var(--fg) !important; padding: 14px 16px; }
body.ndf-skin table.shop_table th { font-weight: 600; text-transform: none; }
body.ndf-skin .cart_totals, body.ndf-skin #order_review, body.ndf-skin .woocommerce form.login, body.ndf-skin .woocommerce form.register, body.ndf-skin .woocommerce-MyAccount-content, body.ndf-skin .pmpro_card, body.ndf-skin .pmpro_form { padding: 20px; }
body.ndf-skin #payment { padding: 16px; }
body.ndf-skin #payment div.payment_box { background: var(--soft) !important; color: var(--fg) !important; border-radius: 14px; }
body.ndf-skin #payment div.payment_box::before { display: none; }
body.ndf-skin #payment ul.payment_methods { border-color: var(--line) !important; }
body.ndf-skin .product-name a, body.ndf-skin .wc-block-components-product-name { color: var(--accent-text); font-weight: 600; text-decoration: none; }
body.ndf-skin .product-price, body.ndf-skin .amount, body.ndf-skin .wc-block-components-formatted-money-amount { color: var(--fg); font-weight: 600; }
body.ndf-skin img { border-radius: 14px; }

/* avisos */
body.ndf-skin .woocommerce-message, body.ndf-skin .woocommerce-info, body.ndf-skin .woocommerce-error, body.ndf-skin .wc-block-components-notice-banner, body.ndf-skin .pmpro_message {
  background: var(--soft) !important; color: var(--fg) !important; border: 0 !important; border-radius: 16px !important; padding: 14px 18px !important; list-style: none; font-family: var(--font);
}
body.ndf-skin .woocommerce-message::before, body.ndf-skin .woocommerce-info::before, body.ndf-skin .woocommerce-error::before { color: var(--accent-text) !important; }
body.ndf-skin .woocommerce-error { background: #fbe4e4 !important; color: #5a1a1a !important; }
html.ndf-dark body.ndf-skin .woocommerce-error { background: #3a1d22 !important; color: #f7d6d9 !important; }

/* Mi Cuenta: menú lateral */
body.ndf-skin .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
body.ndf-skin .woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; border-radius: 14px; background: var(--soft); color: var(--accent-text); font-weight: 600; text-decoration: none; }
body.ndf-skin .woocommerce-MyAccount-navigation .is-active a { background: var(--accent); color: var(--on-accent); }
@media (min-width: 800px) {
  body.ndf-skin .woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
  body.ndf-skin .woocommerce-MyAccount-navigation, body.ndf-skin .woocommerce-MyAccount-content { float: none; width: auto; }
}

/* membresías (Paid Memberships Pro) */
body.ndf-skin .pmpro_level, body.ndf-skin .pmpro_card { padding: 20px; margin-bottom: 16px; }
body.ndf-skin .pmpro_level h2, body.ndf-skin .pmpro_card_title { margin-top: 0; color: var(--accent-text); }
body.ndf-skin .pmpro_level_cost_text, body.ndf-skin .pmpro_level_price { color: var(--muted); }
body.ndf-skin hr { border-color: var(--line); }

/* tienda y productos */
body.ndf-skin ul.products { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
body.ndf-skin ul.products::before, body.ndf-skin ul.products::after { display: none !important; }
body.ndf-skin ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
body.ndf-skin ul.products li.product a { text-decoration: none; }
body.ndf-skin ul.products li.product img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin: 0 0 4px; }
body.ndf-skin ul.products li.product .woocommerce-loop-product__title, body.ndf-skin ul.products li.product h2 { font-size: 19px; font-weight: 600; color: var(--fg); padding: 0; margin: 4px 0 0; }
body.ndf-skin ul.products li.product .price, body.ndf-skin .summary .price, body.ndf-skin .price { color: var(--accent-text) !important; font-weight: 600; font-size: 18px; }
body.ndf-skin .price del { opacity: .55; font-weight: 400; }
body.ndf-skin .price ins { background: transparent; text-decoration: none; }
body.ndf-skin ul.products li.product .button { margin-top: auto; width: 100%; }
body.ndf-skin span.onsale, body.ndf-skin .wc-block-components-product-sale-badge { background: var(--accent) !important; color: var(--on-accent) !important; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 8px 12px !important; font-weight: 600; font-size: 13px; top: 14px !important; left: 14px !important; right: auto !important; }
body.ndf-skin .woocommerce-ordering select { min-height: 44px; }
body.ndf-skin .woocommerce-result-count { color: var(--muted); }
body.ndf-skin nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: 8px; justify-content: center; }
body.ndf-skin nav.woocommerce-pagination ul li { border: 0 !important; }
body.ndf-skin nav.woocommerce-pagination ul li a, body.ndf-skin nav.woocommerce-pagination ul li span { border-radius: 12px; background: var(--soft); color: var(--accent-text); padding: 10px 14px; min-width: 42px; }
body.ndf-skin nav.woocommerce-pagination ul li span.current { background: var(--accent); color: var(--on-accent); }
body.ndf-skin .woocommerce-breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
body.ndf-skin .woocommerce-breadcrumb a { color: var(--accent-text); }
body.ndf-skin .single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 800px) { body.ndf-skin .single-product div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } body.ndf-skin .single-product div.product .woocommerce-tabs, body.ndf-skin .single-product div.product .related, body.ndf-skin .single-product div.product .upsells { grid-column: 1 / -1; } }
body.ndf-skin .single-product div.product div.images, body.ndf-skin .single-product div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
body.ndf-skin .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
body.ndf-skin .woocommerce-tabs ul.tabs::before, body.ndf-skin .woocommerce-tabs ul.tabs li::before, body.ndf-skin .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.ndf-skin .woocommerce-tabs ul.tabs li { background: var(--soft) !important; border: 0 !important; border-radius: 999px !important; margin: 0; padding: 0; }
body.ndf-skin .woocommerce-tabs ul.tabs li a { padding: 10px 18px !important; color: var(--accent-text) !important; font-weight: 600; display: block; }
body.ndf-skin .woocommerce-tabs ul.tabs li.active { background: var(--accent) !important; }
body.ndf-skin .woocommerce-tabs ul.tabs li.active a { color: var(--on-accent) !important; }
body.ndf-skin .woocommerce-tabs .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }

/* espacio interno en todos los recuadros redondeados */
body.ndf-skin .cart_totals, body.ndf-skin #order_review, body.ndf-skin .woocommerce form.login, body.ndf-skin .woocommerce form.register,
body.ndf-skin .woocommerce form.lost_reset_password, body.ndf-skin .woocommerce-ResetPassword, body.ndf-skin .woocommerce-MyAccount-content,
body.ndf-skin .woocommerce-form-login, body.ndf-skin .woocommerce-form-register, body.ndf-skin .woocommerce-form-coupon, body.ndf-skin .checkout_coupon,
body.ndf-skin .pmpro_card, body.ndf-skin .pmpro_form, body.ndf-skin #pmpro_form, body.ndf-skin .pmpro_checkout, body.ndf-skin .pmpro_level,
body.ndf-skin .wc-block-cart__main, body.ndf-skin .wc-block-cart__sidebar, body.ndf-skin .wc-block-checkout__main, body.ndf-skin .wc-block-checkout__sidebar,
body.ndf-skin .woocommerce-tabs .panel, body.ndf-skin .woocommerce-checkout-review-order {
  padding: 22px !important; margin-bottom: 18px; background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 22px !important; color: var(--fg) !important;
}
body.ndf-skin .woocommerce form.lost_reset_password, body.ndf-skin .woocommerce-ResetPassword { max-width: 560px; }
body.ndf-skin #payment { padding: 18px !important; margin-top: 12px; }
body.ndf-skin .cart_totals table.shop_table, body.ndf-skin #order_review table.shop_table, body.ndf-skin .woocommerce-checkout-review-order table.shop_table {
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
}
body.ndf-skin .woocommerce-form-login .form-row, body.ndf-skin form.login .form-row, body.ndf-skin form.lost_reset_password .form-row { float: none !important; width: 100% !important; margin: 0 0 14px !important; padding: 0 !important; }
body.ndf-skin .woocommerce-form-login p, body.ndf-skin form.lost_reset_password p { margin-top: 0; }
/* carrito y pago por bloques: columnas alineadas, con espacio interno parejo */
body.ndf-skin .wp-block-woocommerce-cart, body.ndf-skin .wp-block-woocommerce-checkout, body.ndf-skin .wc-block-cart, body.ndf-skin .wc-block-checkout { width: 100%; max-width: 100%; margin: 0 !important; }
body.ndf-skin .wc-block-components-sidebar-layout { display: flex; flex-wrap: wrap; gap: 22px; width: 100%; margin: 0; }
body.ndf-skin .wc-block-components-sidebar-layout .wc-block-components-main { flex: 1 1 520px; width: auto !important; min-width: 0; }
body.ndf-skin .wc-block-components-sidebar-layout .wc-block-components-sidebar { flex: 0 1 360px; width: auto !important; min-width: 280px; }
body.ndf-skin .wc-block-cart__main, body.ndf-skin .wc-block-cart__sidebar, body.ndf-skin .wc-block-checkout__main, body.ndf-skin .wc-block-checkout__sidebar { padding: 22px !important; }
body.ndf-skin .wc-block-cart-items, body.ndf-skin .wc-block-cart-items th, body.ndf-skin .wc-block-cart-items td { background: transparent !important; border-color: var(--line) !important; }
body.ndf-skin .wc-block-cart-items th { padding: 0 0 12px !important; }
body.ndf-skin .wc-block-cart-items td { padding: 16px 0 !important; }
body.ndf-skin .wc-block-cart-items__row .wc-block-cart-item__image { padding-right: 16px !important; }
body.ndf-skin .wc-block-cart-item__total, body.ndf-skin .wc-block-cart-items__row .wc-block-cart-item__total { padding-left: 16px !important; }
body.ndf-skin .wc-block-components-totals-wrapper { padding-left: 0 !important; padding-right: 0 !important; border-color: var(--line) !important; }
body.ndf-skin .wc-block-components-totals-item, body.ndf-skin .wc-block-components-panel__button, body.ndf-skin .wc-block-components-order-summary { padding-left: 0 !important; padding-right: 0 !important; }
body.ndf-skin .wc-block-components-quantity-selector { border-radius: 14px; overflow: hidden; border-color: var(--line) !important; background: var(--surface) !important; }
body.ndf-skin .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { min-height: 40px; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
body.ndf-skin .wc-block-components-quantity-selector__button { background: transparent !important; color: var(--accent-text) !important; min-height: 40px; padding: 0 12px !important; border-radius: 0 !important; width: auto !important; }
body.ndf-skin .wc-block-cart__submit-button, body.ndf-skin .wc-block-components-checkout-place-order-button { width: 100%; }
body.ndf-skin .woocommerce-notices-wrapper { margin-bottom: 12px; }

/* esconder el encabezado y el pie del tema (la barra de Nory Fit los reemplaza) */
body.ndf-skin.ndf-hide #masthead, body.ndf-skin.ndf-hide .site-header, body.ndf-skin.ndf-hide #site-header, body.ndf-skin.ndf-hide header.header,
body.ndf-skin.ndf-hide .elementor-location-header, body.ndf-skin.ndf-hide [data-elementor-type="header"], body.ndf-skin.ndf-hide .main-header-bar, body.ndf-skin.ndf-hide #main-header,
body.ndf-skin.ndf-hide .site-footer, body.ndf-skin.ndf-hide #colophon, body.ndf-skin.ndf-hide #site-footer, body.ndf-skin.ndf-hide .elementor-location-footer, body.ndf-skin.ndf-hide [data-elementor-type="footer"],
body.ndf-skin.ndf-hide .woocommerce-products-header__title.page-title + .term-description { display: none !important; }
body.ndf-skin.ndf-hide { padding-top: 8px !important; }

/* campos del pago por bloques (la etiqueta flota dentro del campo: no tocar su relleno) */
body.ndf-skin .wc-block-components-text-input input, body.ndf-skin .wc-block-components-textarea, body.ndf-skin .wc-blocks-components-select__select, body.ndf-skin .wc-block-components-combobox .components-combobox-control__input {
  background: var(--surface) !important; color: var(--fg) !important; border: 1.5px solid var(--line) !important; border-radius: 14px !important; box-shadow: none !important; font-family: var(--font) !important; font-size: 16px !important;
}
body.ndf-skin .wc-block-components-text-input label, body.ndf-skin .wc-blocks-components-select__label { color: var(--muted) !important; }
body.ndf-skin .wc-blocks-components-select .wc-blocks-components-select__container { border-radius: 14px; background: var(--surface); }
body.ndf-skin .wc-block-components-text-input.is-active input, body.ndf-skin .wc-block-components-text-input input:focus { outline: 3px solid var(--accent-text); outline-offset: 1px; }

/* resumen del pedido: sin segunda caja, el recuadro de la columna ya lo encierra */
body.ndf-skin .wp-block-woocommerce-checkout-order-summary-block, body.ndf-skin .wp-block-woocommerce-cart-order-summary-block, body.ndf-skin .wc-block-components-order-summary,
body.ndf-skin .wp-block-woocommerce-checkout-order-summary-cart-items-block { border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
body.ndf-skin .wc-block-components-order-summary-item { padding: 12px 0 !important; }
body.ndf-skin .wc-block-components-totals-wrapper { padding: 14px 0 !important; }

/* enlace para editar el carrito desde el pago */
body.ndf-skin .ndf-edit-cart { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-weight: 600; font-size: 14px; background: var(--soft); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--accent-text); }

/* tipografías de Nory en carrito, pago y tienda */
body.ndf-skin { font-weight: 300; font-size: 17px; font-synthesis: none; }
body.ndf-skin h1, body.ndf-skin h2, body.ndf-skin h3, body.ndf-skin h4, body.ndf-skin .entry-title, body.ndf-skin .product-name a, body.ndf-skin ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-title) !important; font-weight: 400 !important; }
body.ndf-skin .button, body.ndf-skin .wc-block-components-button, body.ndf-skin .pmpro_btn, body.ndf-skin input[type="submit"], body.ndf-skin .ndf-topbar a { font-family: "Instrument Sans", var(--font) !important; font-weight: 500 !important; }

body.ndf-skin h1, body.ndf-skin h2, body.ndf-skin h3, body.ndf-skin h4, body.ndf-skin .entry-title { -webkit-text-stroke: .024em currentColor; }
