/* ==========================================================================
   WooCommerce (carrito, checkout y mi cuenta) adaptado al diseño oscuro.
   Se carga solo en esas páginas (ver functions.php).
   ========================================================================== */

.lnp-shop,
.woocommerce-account .lnp-page { --lnp-field: #121212; --lnp-line: rgba(255, 255, 255, .14); }
.lnp-shop .lnp-page__title { margin-bottom: clamp(24px, 3vw, 44px); }
.lnp-shop,
.lnp-shop .wc-block-components-product-name,
.lnp-shop .wc-block-components-totals-item__label,
.lnp-shop .wc-block-components-totals-item__value,
.lnp-shop .wc-block-components-title,
.lnp-shop .wc-block-components-checkout-step__title { color: #fff; }
.lnp-shop .wc-block-components-checkout-step__description,
.lnp-shop .wc-block-components-product-metadata,
.lnp-shop .wc-block-components-totals-item__description { color: rgba(255, 255, 255, .6); }

/* Títulos de los pasos y del resumen */
.lnp-shop .wc-block-components-title,
.lnp-shop .wc-block-cart__totals-title,
.lnp-shop .wc-block-components-checkout-step__title {
	font-family: var(--lnp-sans);
	font-weight: 600 !important;
	letter-spacing: -0.05em !important;
	text-transform: none !important;
	font-size: clamp(18px, 16px + .5vw, 24px) !important;
}

/* Líneas y paneles */
.lnp-shop .wc-block-components-totals-wrapper,
.lnp-shop .wc-block-cart-items td,
.lnp-shop .wc-block-cart-items th,
.lnp-shop .wc-block-components-order-summary-item,
.lnp-shop .wc-block-components-panel,
.lnp-shop table.wc-block-cart-items { border-color: var(--lnp-line) !important; }
.lnp-shop .wc-block-components-sidebar .wc-block-components-totals-wrapper:first-child,
.lnp-shop .wc-block-checkout__sidebar,
.lnp-shop .wp-block-woocommerce-cart-totals-block {
	background: var(--lnp-ink-2);
	border-radius: var(--lnp-r-card);
}
.lnp-shop .wp-block-woocommerce-cart-totals-block,
.lnp-shop .wc-block-checkout__sidebar { padding: 20px 24px; border: 1px solid rgba(255, 255, 255, .08); }
.lnp-shop .wc-block-components-product-image img,
.lnp-shop .wc-block-cart-item__image img { border-radius: 10px; }

/* Campos */
.lnp-shop .wc-block-components-text-input input,
.lnp-shop .wc-block-components-text-input textarea,
.lnp-shop .wc-block-components-combobox .wc-block-components-combobox-control input,
.lnp-shop .wc-blocks-components-select .wc-blocks-components-select__select,
.lnp-shop .wc-block-components-textarea,
.woocommerce-account .lnp-page input.input-text,
.woocommerce-account .lnp-page select,
.woocommerce-account .lnp-page textarea {
	background: var(--lnp-field) !important;
	color: #fff !important;
	border: 1px solid var(--lnp-line) !important;
	border-radius: 12px !important;
}
.lnp-shop .wc-block-components-text-input label,
.lnp-shop .wc-block-components-combobox label,
.lnp-shop .wc-blocks-components-select__label { color: rgba(255, 255, 255, .6) !important; }
.lnp-shop .wc-block-components-text-input input:focus,
.lnp-shop .wc-blocks-components-select__select:focus { border-color: var(--lnp-nude-2) !important; box-shadow: 0 0 0 1px var(--lnp-nude-2) !important; }

/* Métodos de pago (radio) */
.lnp-shop .wc-block-components-radio-control--highlight-checked,
.lnp-shop .wc-block-components-radio-control-accordion-option,
.lnp-shop .wc-block-components-radio-control__option { border-color: var(--lnp-line) !important; color: #fff; }
.lnp-shop .wc-block-components-radio-control__input { background: var(--lnp-field); border-color: rgba(255, 255, 255, .4); }
.lnp-shop .wc-block-components-radio-control__input:checked::before { background: #fff; }
.lnp-shop .wc-block-components-checkbox__input[type=checkbox] { background: var(--lnp-field); border-color: rgba(255, 255, 255, .4); }
.lnp-shop .wc-block-components-checkbox__mark { fill: #fff; }

/* Botones principales: pastilla blanca */
.lnp-shop .wc-block-components-button:not(.is-link),
.lnp-shop .wc-block-cart__submit-button,
.lnp-shop .wc-block-components-checkout-place-order-button,
.woocommerce-account .lnp-page .woocommerce-Button,
.woocommerce-account .lnp-page button.button {
	background: #fff !important;
	color: var(--lnp-ink) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--lnp-sans);
	font-weight: 600;
	letter-spacing: -0.02em;
	min-height: 52px;
	padding: 0 26px !important;
}
.lnp-shop .wc-block-components-button:not(.is-link):hover,
.woocommerce-account .lnp-page button.button:hover { background: var(--lnp-nude-2) !important; }
.lnp-shop .wc-block-components-button.is-link,
.lnp-shop a { color: var(--lnp-nude-2); }

/* Carrito vacío */
.lnp-cart-empty__title { font-size: clamp(28px, 22px + 1.5vw, 44px); margin-top: 20px; }
.lnp-cart-empty__text { color: rgba(255, 255, 255, .7); margin: 14px 0 26px; }

/* Avisos */
.lnp-shop .wc-block-components-notice-banner,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
	background: var(--lnp-ink-2);
	color: #fff;
	border: 1px solid var(--lnp-line);
	border-radius: 12px;
}

/* Mi cuenta: navegación lateral en pastillas */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 16px;
	border-radius: 999px;
	color: rgba(255, 255, 255, .78);
	text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--lnp-ink-2); color: #fff; }
.woocommerce-account .lnp-page table.shop_table { border-color: var(--lnp-line); color: #fff; }
.woocommerce-account .lnp-page table.shop_table th,
.woocommerce-account .lnp-page table.shop_table td { border-color: var(--lnp-line); }
