/**
 * Nebumart — WooCommerce styles (Cart/Checkout blocks + classic templates).
 * Loaded after WooCommerce's own stylesheets: restyles only, layouts stay native
 * so every payment / shipping / upsell plugin keeps working.
 */

/* ==========================================================================
   Purchase flow shell (cart, checkout, order received)
   ========================================================================== */
.nm-flow-page { background: var(--nm-surface); }
.nm-flow-hero { padding: 28px 0 8px; }
.nm-section--flow { padding-top: 20px; padding-bottom: 80px; }
.nm-flow-page .entry-content { max-width: none; }

/* Stepper */
.nm-steps { display: flex; align-items: center; justify-content: center; gap: 0; list-style: none; margin: 0 auto; padding: 0; max-width: 620px; counter-reset: none; }
.nm-steps__item { display: flex; align-items: center; flex: 1; color: var(--nm-faint); font-size: 14px; font-weight: 600; }
.nm-steps__item:last-child { flex: none; }
.nm-steps__item::after { content: ""; flex: 1; min-width: 24px; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--nm-line); }
.nm-steps__item:last-child::after { display: none; }
.nm-steps__item.is-done::after { background: var(--nm-success); }
.nm-steps__item a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.nm-steps__item { gap: 10px; min-width: 0; }
.nm-steps__label { white-space: nowrap; }
.nm-steps__dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--nm-line); background: #fff; font-size: 14px; font-weight: 700; }
.nm-steps__dot .nm-icon { width: 16px; height: 16px; stroke-width: 3; }
.nm-steps__item.is-current { color: var(--nm-ink); flex: 1 0 auto; }
.nm-steps__item.is-current .nm-steps__dot { border-color: var(--nm-ink); background: var(--nm-ink); color: #fff; }
.nm-steps__item.is-done { color: var(--nm-success); }
.nm-steps__item.is-done .nm-steps__dot { border-color: var(--nm-success); background: var(--nm-success); color: #fff; }

/* Free-shipping progress */
.nm-freeship { margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--nm-line); border-radius: var(--nm-radius); background: #fff; box-shadow: var(--nm-shadow-sm); }
.nm-freeship__text { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--nm-ink); font-size: 15px; font-weight: 500; }
.nm-freeship__text .nm-icon { color: var(--nm-link); }
.nm-freeship__text .woocommerce-Price-amount, .nm-freeship__text strong { font-weight: 800; }
.nm-freeship__track { height: 8px; border-radius: 99px; background: var(--nm-line-soft); overflow: hidden; }
.nm-freeship__bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nm-accent-light), var(--nm-accent)); transition: width .5s var(--nm-ease); }
.nm-freeship.is-done .nm-freeship__text, .nm-freeship.is-done .nm-freeship__text .nm-icon { color: var(--nm-success); font-weight: 700; }
.nm-freeship.is-done .nm-freeship__bar { background: var(--nm-success); }

/* Trust box under the cart / checkout button */
.nm-checkout-trust { margin-top: 18px; padding: 18px; border-radius: var(--nm-radius); background: #fff; border: 1px dashed #cfd6e2; }
.nm-checkout-trust__secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; color: var(--nm-success); font-size: 14px; font-weight: 700; }
.nm-checkout-trust__secure .nm-icon { width: 19px; height: 19px; }
.nm-checkout-trust .nm-payments { justify-content: center; margin-bottom: 16px; }
.nm-checkout-trust .nm-trust--list { padding-top: 14px; border-top: 1px solid var(--nm-line-soft); }

/* Checkout block on phones: WooCommerce moves the sidebar above the form, so the trust box
   is shown under the Place order button instead (a second copy is injected there by theme.js). */
.nm-checkout-trust--actions { display: none; }
.wc-block-components-sidebar-layout.is-mobile .wc-block-checkout__sidebar .nm-checkout-trust,
.wc-block-components-sidebar-layout.is-small .wc-block-checkout__sidebar .nm-checkout-trust { display: none; }
.wc-block-components-sidebar-layout.is-mobile .nm-checkout-trust--actions,
.wc-block-components-sidebar-layout.is-small .nm-checkout-trust--actions { display: block; }

/* ==========================================================================
   Cart & Checkout BLOCKS
   ========================================================================== */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { margin: 0 auto; }
.wc-block-cart, .wc-block-checkout { font-size: 15.5px; line-height: 1.55; color: var(--nm-text); }
.wc-block-components-sidebar-layout { gap: 0; }

/* Card surfaces */
.wc-block-cart__main,
.wc-block-checkout__main .wc-block-components-checkout-step,
.wc-block-checkout__main .wc-block-checkout__form > .wc-block-components-notices + *,
.wc-block-components-sidebar.wc-block-cart__sidebar,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	background: #fff !important;
	border: 1px solid var(--nm-line) !important;
	border-radius: var(--nm-radius-lg) !important;
	box-shadow: var(--nm-shadow-sm);
}
.wc-block-cart__main { padding: 8px 24px 16px !important; align-self: flex-start; }
.wc-block-components-sidebar.wc-block-cart__sidebar { padding: 22px !important; }
@media (min-width: 700px) {
	.wc-block-components-sidebar.wc-block-cart__sidebar,
	.wc-block-checkout__sidebar { position: sticky; top: calc(var(--nm-header-h) + 20px); align-self: flex-start; }
}

/* Cart items */
.wc-block-cart-items { border: 0 !important; border-collapse: collapse !important; }
.wc-block-cart-items .wc-block-cart-items__row:first-child td { border-top: 0 !important; }
.wc-block-cart-items th { border: 0 !important; padding: 16px 0 12px !important; color: var(--nm-muted); font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wc-block-cart-items__row { background: transparent !important; padding: 0 !important; }
.wc-block-cart-items .wc-block-cart-items__row td { border-top: 1px solid var(--nm-line-soft) !important; padding-top: 20px !important; padding-bottom: 20px !important; }
.wc-block-cart-item__image img { border-radius: 14px; border: 1px solid var(--nm-line); background: var(--nm-surface); }
.wc-block-components-product-name { color: var(--nm-ink) !important; font-family: var(--nm-font-head); font-weight: 700; font-size: 16px; text-decoration: none !important; line-height: 1.35; }
.wc-block-components-product-name:hover { color: var(--nm-link) !important; }
.wc-block-components-product-price, .wc-block-cart-item__total { color: var(--nm-ink); font-weight: 700; }
.wc-block-components-product-price del, .wc-block-components-product-price__regular { color: var(--nm-faint) !important; font-weight: 500; }
.wc-block-components-product-badge, .wc-block-components-sale-badge { border-radius: 999px !important; border: 0 !important; background: var(--nm-success-soft) !important; color: var(--nm-success) !important; font-weight: 700 !important; padding: 3px 9px !important; }
.wc-block-components-quantity-selector { border-radius: 12px !important; border: 1px solid var(--nm-line) !important; overflow: hidden; min-width: 118px; }
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-components-quantity-selector input { font-weight: 700 !important; color: var(--nm-ink) !important; }
.wc-block-components-quantity-selector__button { color: var(--nm-ink) !important; opacity: .75; }
.wc-block-components-quantity-selector__button:hover { opacity: 1; background: var(--nm-surface) !important; }
.wc-block-cart-item__remove-link { color: var(--nm-muted) !important; font-size: 13px !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Totals */
.wc-block-cart__totals-title, .wc-block-components-checkout-order-summary__title-text, .wc-block-components-title.wc-block-components-title {
	font-family: var(--nm-font-head) !important; font-size: 18px !important; font-weight: 800 !important; color: var(--nm-ink) !important; text-transform: none !important; letter-spacing: -.01em;
}
.wc-block-components-totals-wrapper { border-color: var(--nm-line-soft) !important; }
.wc-block-components-totals-item__label { color: var(--nm-text); }
.wc-block-components-totals-item__value { color: var(--nm-ink); font-weight: 600; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--nm-font-head); font-size: 20px !important; font-weight: 800 !important; color: var(--nm-ink) !important; }
.wc-block-components-panel__button { font-weight: 600; color: var(--nm-link) !important; }
.wc-block-components-totals-coupon__button { border-radius: 12px !important; }

/* Primary buttons (proceed / place order) */
.wc-block-cart__submit-container { margin-top: 6px; }
.wc-block-cart__submit-button,
.wc-block-cart__submit-container .wc-block-components-button:not(.is-link),
.wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button {
	width: 100%; min-height: 58px !important;
	border: 0 !important; border-radius: 14px !important;
	background: linear-gradient(180deg, var(--nm-accent-light), var(--nm-accent)) !important;
	color: #fff !important;
	font-family: var(--nm-font-body) !important; font-size: 17px !important; font-weight: 700 !important; letter-spacing: .01em;
	text-transform: none !important;
	box-shadow: var(--nm-cta-shadow) !important;
	transition: transform .15s var(--nm-ease), filter .2s, box-shadow .2s !important;
}
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(255, 106, 0, .8) !important; }
.wc-block-components-button__text { color: inherit !important; }
.wc-block-components-checkout-place-order-button .wc-block-components-button__text { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; }
.wc-block-components-checkout-place-order-button .wc-block-components-button__text::before {
	content: ""; display: inline-block; width: 17px; height: 17px; margin: -3px 8px 0 0; vertical-align: middle; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Checkout form */
.wc-block-checkout__main .wc-block-components-checkout-step { padding: 22px 24px 8px !important; margin: 0 0 16px !important; }
.wc-block-components-checkout-step__heading { margin: 0 0 12px !important; }
.wc-block-components-checkout-step__title { font-family: var(--nm-font-head) !important; font-size: 18px !important; font-weight: 800 !important; color: var(--nm-ink) !important; }
.wc-block-components-checkout-step__description { color: var(--nm-muted) !important; font-size: 14px !important; }
.wc-block-components-checkout-step__container::after { display: none !important; }
.wc-block-checkout__form .wc-block-components-checkout-step::before, .wc-block-checkout__form .wc-block-components-checkout-step::after { display: none !important; }
.wc-block-components-text-input input, .wc-block-components-text-input textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-country-input input, .wc-block-components-state-input input {
	border-radius: 12px !important; border-color: #d5d9e2 !important; min-height: 52px;
}
.wc-block-components-text-input input:focus, .wc-blocks-components-select .wc-blocks-components-select__select:focus, .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
	border-color: var(--nm-link) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--nm-link) 14%, transparent) !important; outline: none !important;
}
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option {
	border-radius: 14px !important;
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--nm-link) !important;
}
.wc-block-components-radio-control__input:checked { border-color: var(--nm-link) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--nm-link) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--nm-link) !important; border-color: var(--nm-link) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff !important; }
.wc-block-components-express-payment { border-radius: var(--nm-radius) !important; }
.wc-block-components-express-payment__title-container::before, .wc-block-components-express-payment__title-container::after { border-color: var(--nm-line) !important; }
.wc-block-components-express-payment-continue-rule { color: var(--nm-muted); }

.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { padding: 6px 4px !important; }
.wc-block-components-order-summary-item__image img { border-radius: 12px; border: 1px solid var(--nm-line); }
.wc-block-components-order-summary-item__quantity { background: var(--nm-ink) !important; color: #fff !important; border: 2px solid #fff !important; box-shadow: none !important; font-weight: 700; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: 14.5px; }

.wc-block-checkout__actions { padding-top: 8px !important; }
.wc-block-checkout__actions_row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wc-block-components-checkout-return-to-cart-button { color: var(--nm-muted) !important; font-weight: 600; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.wc-block-components-checkout-return-to-cart-button:hover { color: var(--nm-ink) !important; }
.wc-block-checkout__terms { font-size: 13px; color: var(--nm-muted); }

.wc-block-components-notice-banner { border-radius: 14px !important; }

/* ==========================================================================
   Classic cart & checkout (shortcode pages)
   ========================================================================== */
@media (min-width: 992px) {
	.woocommerce-cart .entry-content > .woocommerce:has(.woocommerce-cart-form) {
		display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start;
	}
	.woocommerce-cart .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-cart .entry-content > .woocommerce > .cart-collaterals { position: sticky; top: calc(var(--nm-header-h) + 20px); }

	.woocommerce-checkout form.checkout {
		display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto 1fr; column-gap: 28px; align-items: start;
	}
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; }
	.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--nm-header-h) + 20px); }
}
.woocommerce-cart-form, .woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review {
	background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-radius-lg); box-shadow: var(--nm-shadow-sm); padding: 22px;
}
.woocommerce-checkout #order_review_heading { margin: 0 0 12px; font-size: 20px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { float: none; width: 100%; }
.woocommerce .cart-collaterals .cross-sells { float: none; width: 100%; margin-top: 24px; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 20px; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 12px; }

.woocommerce table.shop_table { border: 0; border-radius: 0; margin: 0; }
.woocommerce table.shop_table th { background: transparent; color: var(--nm-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
.woocommerce table.shop_table td { border-top: 1px solid var(--nm-line-soft); padding: 16px 12px; }
.woocommerce-cart table.cart img { width: 76px; border-radius: 12px; border: 1px solid var(--nm-line); }
.woocommerce-cart table.cart td.product-name a { color: var(--nm-ink); font-weight: 700; }
.woocommerce a.remove { width: 28px; height: 28px; line-height: 26px; border-radius: 50%; background: var(--nm-surface); color: var(--nm-muted) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: #fee2e2; color: #b91c1c !important; }
.woocommerce table.cart td.actions .coupon .input-text { width: 180px; min-height: 48px; border-radius: 12px; padding: 10px 14px; }
.woocommerce table.cart td.actions { padding-top: 18px; }
.woocommerce table.cart td.actions button[name="update_cart"] { background: #fff; color: var(--nm-ink); border: 1px solid var(--nm-line); box-shadow: none; }
.woocommerce .cart_totals .order-total th, .woocommerce .cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-family: var(--nm-font-head); font-size: 20px; color: var(--nm-ink); }
.woocommerce .wc-proceed-to-checkout a.checkout-button, .woocommerce #payment #place_order {
	display: flex; width: 100%; min-height: 58px; font-size: 17px; border-radius: 14px;
	background: linear-gradient(180deg, var(--nm-accent-light), var(--nm-accent)); box-shadow: var(--nm-cta-shadow);
}
.woocommerce #payment { background: var(--nm-surface); border-radius: var(--nm-radius); }
.woocommerce #payment ul.payment_methods { border-color: var(--nm-line); }
.woocommerce #payment div.payment_box { background: #fff; border-radius: 12px; }
.woocommerce #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single { min-height: 50px; padding: 12px 14px; border: 1px solid #d5d9e2; border-radius: 12px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 24px; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px; right: 8px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 14px; color: var(--nm-ink); }
.woocommerce-form-coupon-toggle .woocommerce-info { border-radius: 14px; }
.woocommerce .woocommerce-form-login, .woocommerce .woocommerce-form-register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password {
	border: 1px solid var(--nm-line) !important; border-radius: var(--nm-radius-lg) !important; padding: 26px !important; background: #fff; box-shadow: var(--nm-shadow-sm);
}

/* Empty cart */
.cart-empty.woocommerce-info { text-align: center; }
.woocommerce-cart .return-to-shop { text-align: center; }
.nm-empty-offer { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; max-width: 680px; margin: 28px auto 0; padding: 22px; border: 1px solid var(--nm-line); border-radius: var(--nm-radius-lg); background: #fff; box-shadow: var(--nm-shadow); }
.nm-empty-offer__img img { border-radius: var(--nm-radius); }
.nm-empty-offer__eyebrow { margin: 0 0 6px; color: var(--nm-link); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nm-empty-offer h2 { font-size: 20px; margin-bottom: 6px; }
.nm-empty-offer__price { color: var(--nm-price); font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.nm-empty-offer .add_to_cart_inline { align-items: flex-start !important; padding: 0 !important; margin: 0; }
.wp-block-woocommerce-empty-cart-block { text-align: center; padding: 40px 20px; background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-radius-lg); }

/* Order received */
.woocommerce-order { max-width: 860px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-radius-lg); box-shadow: var(--nm-shadow-sm); }
.woocommerce-order .woocommerce-thankyou-order-received,
.woocommerce-order .woocommerce-notice--success {
	display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 24px; padding: 0; border: 0; background: none;
	font-family: var(--nm-font-head); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; color: var(--nm-ink); text-align: center; letter-spacing: -.02em;
}
.woocommerce-order .woocommerce-thankyou-order-received::before,
.woocommerce-order .woocommerce-notice--success::before {
	content: ""; position: static; display: block; width: 64px; height: 64px; border-radius: 50%;
	background: var(--nm-success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.woocommerce ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0; margin: 0 0 28px; }
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none; }
.woocommerce ul.order_details li { float: none; margin: 0; padding: 14px 16px; border: 1px solid var(--nm-line); border-radius: 14px; background: var(--nm-surface); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--nm-muted); }
.woocommerce ul.order_details li strong { margin-top: 4px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--nm-ink); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 24px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 20px; }
.woocommerce-customer-details address { border-radius: 14px !important; border-color: var(--nm-line) !important; padding: 16px !important; }
.nm-thankyou-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; background: var(--nm-surface); text-align: center; }
.nm-thankyou-help p { width: 100%; margin: 0; }

/* ==========================================================================
   Shop & product pages
   ========================================================================== */
.nm-shop-wrap { padding-top: 28px; }
.nm-shop-layout { display: grid; gap: 40px; }
@media (min-width: 992px) { .nm-shop-layout.has-sidebar { grid-template-columns: 260px minmax(0, 1fr); } .nm-shop-layout.has-sidebar .nm-shop-sidebar { order: -1; } }

.woocommerce-breadcrumb { margin: 0 0 22px !important; font-size: 13.5px !important; color: var(--nm-faint) !important; }
.woocommerce-breadcrumb a { color: var(--nm-muted) !important; }
.nm-bc-sep { margin: 0 8px; opacity: .6; }

.woocommerce-products-header { text-align: center; margin-bottom: 28px; }
.woocommerce-products-header__title.page-title { font-size: clamp(28px, 3vw, 38px); }
.woocommerce-result-count { font-size: 14px; color: var(--nm-muted); }
.woocommerce-ordering select { width: auto; min-width: 210px; }

.woocommerce ul.products, .woocommerce-page ul.products { display: grid; gap: 24px; grid-template-columns: repeat(var(--nm-cols, 3), minmax(0, 1fr)); margin: 0 0 32px; padding: 0; }
.woocommerce ul.products.columns-1 { --nm-cols: 1; }
.woocommerce ul.products.columns-2 { --nm-cols: 2; }
.woocommerce ul.products.columns-3 { --nm-cols: 3; }
.woocommerce ul.products.columns-4 { --nm-cols: 4; }
.woocommerce ul.products.columns-5 { --nm-cols: 5; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	float: none !important; width: auto !important; margin: 0 !important;
	display: flex; flex-direction: column;
	padding: 14px 14px 20px;
	border: 1px solid var(--nm-line); border-radius: var(--nm-radius-lg); background: #fff;
	text-align: center; box-shadow: var(--nm-shadow-sm);
	transition: box-shadow .25s, transform .25s var(--nm-ease);
}
.woocommerce ul.products li.product:hover { box-shadow: var(--nm-shadow); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { border-radius: var(--nm-radius); margin-bottom: 14px; background: var(--nm-surface); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--nm-font-head); font-size: 16.5px !important; font-weight: 700; color: var(--nm-ink); padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--nm-price) !important; font-size: 19px !important; font-weight: 800; }
.woocommerce ul.products li.product .price del { color: var(--nm-faint); font-weight: 500; font-size: 14px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 0 auto 8px !important; }
.woocommerce ul.products li.product .button { margin-top: auto !important; width: 100%; font-size: 15.5px; min-height: 48px; padding: 12px 18px; }

.woocommerce span.onsale { min-width: 0; min-height: 0; padding: 5px 12px; line-height: 1.4; border-radius: 999px; background: var(--nm-price); color: #fff; font-weight: 700; font-size: 13px; top: 14px !important; left: 14px !important; right: auto !important; margin: 0 !important; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--nm-star); }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 12px 24px;
	border-radius: 12px;
	background: linear-gradient(180deg, var(--nm-accent-light), var(--nm-accent)); color: #fff;
	font-family: var(--nm-font-body); font-size: 16px; font-weight: 700; text-transform: none;
	box-shadow: var(--nm-cta-shadow);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	background: linear-gradient(180deg, var(--nm-accent-light), var(--nm-accent)); color: #fff; filter: brightness(1.05);
}
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { background: #cbd2de; color: #fff; box-shadow: none; }

.woocommerce div.product .product_title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: var(--nm-ink); line-height: 1.2; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--nm-price); font-family: var(--nm-font-head); font-size: 32px; font-weight: 800; }
.woocommerce div.product p.price del { color: var(--nm-faint); font-size: 20px; font-weight: 500; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; padding: 18px; border-radius: var(--nm-radius); background: var(--nm-surface); }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 84px; min-height: 56px; padding: 6px; text-align: center; font-weight: 700; border-radius: 12px; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; float: none !important; min-height: 56px; font-size: 17px; border-radius: 14px; }
.woocommerce div.product form.cart .variations { margin-bottom: 10px; width: 100%; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { border: 0; padding: 6px 0; }
.woocommerce div.product .product_meta { font-size: 14px; margin-top: 20px; color: var(--nm-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--nm-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 12px 12px 0 0; background: var(--nm-surface); border-color: var(--nm-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 700; color: var(--nm-ink); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 26px 0; }
.woocommerce .related > h2, .woocommerce .upsells > h2 { font-size: 26px; text-align: center; margin-top: 36px; }
.woocommerce div.product div.images img { border-radius: var(--nm-radius-lg); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; flex: 1; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 12px; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--nm-line); border-left: 4px solid var(--nm-success); border-radius: 14px; background: #fff; color: var(--nm-ink); box-shadow: var(--nm-shadow-sm);
}
.woocommerce-info { border-left-color: var(--nm-link); }
.woocommerce-error { border-left-color: #dc2626; }
.woocommerce-message::before { color: var(--nm-success); }
.woocommerce-info::before { color: var(--nm-link); }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 8px; border: 1px solid var(--nm-line); border-radius: var(--nm-radius); background: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--nm-ink); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--nm-surface); color: var(--nm-link); text-decoration: none; }

/* Mini-cart widget */
.widget_shopping_cart .buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.widget_shopping_cart .buttons a { flex: 1; }

/* ==========================================================================
   Add-to-cart button states + "Added to cart" popup
   ========================================================================== */
/* Loading: keep the button solid (WooCommerce fades it to 25%) and swap the arrow for a spinner */
.add_to_cart_button.ajax_add_to_cart.loading { opacity: 1 !important; cursor: progress; pointer-events: none; filter: saturate(.9); }
.woocommerce .add_to_cart_button.ajax_add_to_cart.loading,
.add_to_cart_button.ajax_add_to_cart.loading { padding-right: 34px !important; }
.button.add_to_cart_button.ajax_add_to_cart.loading::after {
	content: "" !important; font-family: inherit !important;
	position: static !important; top: auto !important; right: auto !important;
	width: 18px; height: 18px; margin: 0 !important;
	border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%;
	background: none !important; -webkit-mask: none !important; mask: none !important;
	animation: nm-spin .7s linear infinite !important; transform: none !important;
}
.button.add_to_cart_button.ajax_add_to_cart.added::after { content: "" !important; font-family: inherit !important; margin-left: 0 !important; vertical-align: middle !important; }
/* The popup replaces WooCommerce's inline "View cart" link */
.nm-atc-popup-on #main-content a.added_to_cart,
.nm-atc-popup-on .nm-sticky-atc a.added_to_cart { display: none !important; }

.nm-atc-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; pointer-events: none; }
.nm-atc-modal.is-open { visibility: visible; pointer-events: auto; }
.nm-atc-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.nm-atc-modal.is-open .nm-atc-modal__backdrop { opacity: 1; }
.nm-atc-modal__panel {
	position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow-y: auto;
	padding: 28px 26px 22px; border-radius: var(--nm-radius-lg); background: #fff; box-shadow: var(--nm-shadow-lg);
	opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s var(--nm-ease), transform .3s var(--nm-ease);
}
.nm-atc-modal__panel:focus { outline: none; }
.nm-atc-modal.is-open .nm-atc-modal__panel { opacity: 1; transform: none; }
body.nm-atc-open { overflow: hidden; }

.nm-atc-modal__close { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--nm-surface); color: var(--nm-muted); cursor: pointer; box-shadow: none; }
.nm-atc-modal__close:hover { background: var(--nm-line); color: var(--nm-ink); }
.nm-atc-modal__close .nm-icon { width: 18px; height: 18px; }

.nm-atc-modal__state { display: none; }
.nm-atc-modal[data-state="loading"] .nm-atc-modal__state--loading,
.nm-atc-modal[data-state="done"] .nm-atc-modal__state--done,
.nm-atc-modal[data-state="error"] .nm-atc-modal__state--error { display: block; }

.nm-atc-modal__title { display: flex; align-items: center; gap: 10px; margin: 0 40px 18px 0; font-family: var(--nm-font-head); font-size: 20px; font-weight: 800; color: var(--nm-ink); letter-spacing: -.01em; }
.nm-atc-check { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--nm-success-soft); color: var(--nm-success); animation: nm-pop .35s var(--nm-ease); }
.nm-atc-check .nm-icon { width: 18px; height: 18px; stroke-width: 3; }
@keyframes nm-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Loading state */
.nm-atc-modal__state--loading { text-align: center; padding: 8px 0 6px; }
.nm-atc-modal__state--loading .nm-atc-modal__title { justify-content: center; margin: 14px 0 20px; }
.nm-atc-spinner { display: inline-block; width: 44px; height: 44px; border: 4px solid var(--nm-line); border-top-color: var(--nm-accent); border-radius: 50%; animation: nm-spin .75s linear infinite; }
.nm-atc-skeleton { display: grid; gap: 10px; }
.nm-atc-skeleton span { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--nm-line-soft) 25%, #f8fafc 50%, var(--nm-line-soft) 75%); background-size: 200% 100%; animation: nm-shimmer 1.2s linear infinite; }
.nm-atc-skeleton span:nth-child(1) { width: 80%; margin: 0 auto; } .nm-atc-skeleton span:nth-child(2) { width: 60%; margin: 0 auto; } .nm-atc-skeleton span:nth-child(3) { height: 48px; border-radius: 12px; margin-top: 8px; }
@keyframes nm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Added item */
.nm-atc-modal .nm-atc-item { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--nm-line); border-radius: var(--nm-radius); list-style: none; background: var(--nm-surface); }
.nm-atc-item__img { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--nm-line); }
.nm-atc-item__body { flex: 1; min-width: 0; }
.nm-atc-item__name { margin: 0 0 2px; font-weight: 700; color: var(--nm-ink); font-size: 15px; line-height: 1.35; }
.nm-atc-item__meta { margin: 0; font-size: 13.5px; color: var(--nm-muted); }
.nm-atc-item__total { margin: 0; font-weight: 800; color: var(--nm-ink); white-space: nowrap; }
.nm-atc-modal__freeship .nm-freeship { margin: 0 0 14px; padding: 12px 14px; box-shadow: none; }
.nm-atc-modal__freeship .nm-freeship__text { font-size: 14px; margin-bottom: 8px; }
.nm-atc-modal__subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding-top: 4px; color: var(--nm-text); font-size: 15px; }
.nm-atc-modal__count { color: var(--nm-muted); }
.nm-atc-modal__amount { font-family: var(--nm-font-head); font-size: 20px; color: var(--nm-ink); }
.nm-atc-modal__actions { display: grid; gap: 10px; }
.nm-atc-modal__actions .button { width: 100%; min-height: 54px; font-size: 16.5px; text-decoration: none; }
.nm-atc-modal__checkout .nm-icon { width: 18px; height: 18px; }
.nm-atc-modal .nm-btn-ghost { background: #fff !important; color: var(--nm-ink) !important; border: 1px solid var(--nm-line) !important; box-shadow: none !important; }
.nm-atc-modal .nm-btn-ghost:hover { background: var(--nm-surface) !important; transform: none; }
.nm-atc-modal__continue { display: block; width: 100%; min-height: 0; margin: 12px 0 14px; padding: 6px; border: 0; background: none; box-shadow: none; color: var(--nm-muted); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nm-atc-modal__continue:hover { color: var(--nm-ink); transform: none; filter: none; }
.nm-atc-modal .nm-payments { justify-content: center; opacity: .9; }
.nm-atc-modal__state--error p { color: var(--nm-text); }

@media (max-width: 600px) {
	.nm-atc-modal { align-items: flex-end; padding: 0; }
	.nm-atc-modal__panel { max-width: none; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 26px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); }
	.nm-atc-modal.is-open .nm-atc-modal__panel { transform: none; }
	.nm-atc-modal__panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--nm-line); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	.woocommerce ul.products[class*="columns-"] { --nm-cols: 2; }
	.woocommerce-checkout #order_review_heading { margin-top: 24px; }
}
@media (max-width: 699px) {
	.wc-block-cart__main { padding: 4px 16px 10px !important; }
	.wc-block-components-sidebar.wc-block-cart__sidebar { margin-top: 16px; padding: 18px !important; }
	.wc-block-checkout__main .wc-block-components-checkout-step { padding: 18px 16px 4px !important; }
	.wc-block-checkout__actions_row { flex-direction: column-reverse; align-items: stretch; }
	.wc-block-components-checkout-return-to-cart-button { justify-content: center; }
}
@media (max-width: 640px) {
	.nm-steps__label { display: none; }
	.nm-steps__item.is-current .nm-steps__label { display: inline; }
	.nm-steps__item::after { margin: 0 8px; }
	.nm-steps__item.is-current { flex: 0 0 auto; }
	.woocommerce-cart-form, .woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review { padding: 16px; }
	.woocommerce-message .button, .woocommerce-info .button { float: none; display: flex; margin-top: 10px; }
	.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { text-align: right !important; }
	.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; }
	.woocommerce-cart table.cart td.actions .coupon .input-text { width: 100% !important; }
	.nm-empty-offer { grid-template-columns: 1fr; text-align: center; }
	.nm-empty-offer__img { max-width: 200px; margin: 0 auto; }
	.nm-empty-offer .add_to_cart_inline { align-items: center !important; }
	.woocommerce-order { padding: 20px; }
}
@media (max-width: 480px) {
	.woocommerce ul.products[class*="columns-"] { --nm-cols: 1; }
	.woocommerce div.product form.cart { flex-direction: column; }
	.woocommerce div.product form.cart div.quantity .qty { width: 100%; }
}
