/* WooCommerce block template enhancements */

:root {
  --nmd-card-radius: var(--nmd-shell-radius, 8px);
}

.nmd-shop-shell .wc-block-breadcrumbs,
.nmd-single-product-page .wc-block-breadcrumbs {
  margin-bottom: 0.9rem;
}

.nmd-shop-shell,
.nmd-single-product-page,
.nmd-cart-shell,
.nmd-checkout-shell,
.nmd-account-shell {
  max-width: 100%;
  width: 100%;
}

.nmd-shop-shell > *,
.nmd-single-product-page > *,
.nmd-cart-shell > *,
.nmd-checkout-shell > *,
.nmd-account-shell > * {
  max-width: 100%;
}

.nmd-shop-shell .nmd-shop-categories {
  margin-top: 0.6rem;
  margin-bottom: 0.75rem;
}

.nmd-shop-shell .nmd-shop-category-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  align-items: stretch;
  overflow-x: auto;
  padding: 0 0 0.35rem;
  scrollbar-width: thin;
}

.nmd-shop-shell .nmd-shop-category-all {
  margin: 0;
  min-width: 210px;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
}

.nmd-shop-shell .nmd-shop-category-all a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  padding: 0.7rem;
  font-weight: 700;
  color: var(--nmd-shell-text);
  text-decoration: none;
}

.nmd-shop-shell .nmd-shop-category-all a:hover,
.nmd-shop-shell .nmd-shop-category-all a:focus-visible {
  background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 75%, var(--nmd-shell-bg));
}

.nmd-shop-shell .nmd-shop-toolbar {
  padding: 0.45rem 0.15rem;
  border: 0;
  margin-bottom: 0.65rem;
  align-items: center;
}

.nmd-shop-shell .nmd-shop-toolbar .wp-block-woocommerce-product-results-count,
.nmd-shop-shell .nmd-shop-toolbar .wp-block-woocommerce-catalog-sorting {
  margin: 0;
}

.nmd-shop-shell .wc-block-product-categories-list,
.nmd-shop-shell .wc-block-product-categories {
  display: flex;
  gap: 0.85rem;
  overflow: visible;
  padding-bottom: 0.35rem;
  margin: 0;
}

.nmd-shop-shell .wc-block-product-categories-list-item,
.nmd-shop-shell .wc-block-product-categories-list .wc-block-product-categories-list-item {
  min-width: 210px;
  min-height: 100%;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: 0.7rem;
  margin: 0;
}

.nmd-shop-shell .wc-block-product-categories-list-item__name,
.nmd-shop-shell .wc-block-product-categories-list-item a {
  color: var(--nmd-shell-text);
  font-weight: 700;
  text-decoration: none;
}

.nmd-shop-shell .wc-block-product-template,
.nmd-single-related-card .wc-block-product-template,
.nmd-home-carousel-collection .wc-block-product-template {
  gap: 1rem;
}

.nmd-shop-shell .wc-block-product,
.nmd-single-related-card .wc-block-product,
.nmd-home-carousel-collection .wc-block-product {
  display: flex;
  flex-direction: column;
  height: auto;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: clamp(0.7rem, 1.1vw, 0.9rem);
}

.nmd-shop-shell .wc-block-components-product-image {
  margin-bottom: 0.7rem;
}

.nmd-shop-shell .wc-block-components-product-image img,
.nmd-single-related-card .wc-block-components-product-image img,
.nmd-home-carousel-collection .wc-block-components-product-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.nmd-shop-shell .wc-block-components-product-name,
.nmd-single-related-card .wc-block-components-product-name,
.nmd-home-carousel-collection .wc-block-components-product-name {
  color: var(--nmd-shell-text);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  text-decoration: none;
}

.nmd-shop-shell .nmd-shop-card-body,
.nmd-single-related-card .nmd-shop-card-body,
.nmd-home-carousel-collection .nmd-shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nmd-shop-shell .wc-block-components-product-button .wp-element-button,
.nmd-single-related-card .wc-block-components-product-button .wp-element-button,
.nmd-home-carousel-collection .wc-block-components-product-button .wp-element-button {
  min-height: 44px;
  width: 100%;
  font-weight: 700;
}

.nmd-shop-shell .wp-block-post-title,
.nmd-single-related-card .wp-block-post-title,
.nmd-home-carousel-collection .wp-block-post-title {
  margin-top: 0;
  margin-bottom: 0.2rem;
  min-height: 0;
  line-height: 1.35;
}

.nmd-shop-shell .wp-block-post-title a,
.nmd-single-related-card .wp-block-post-title a,
.nmd-home-carousel-collection .wp-block-post-title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--nmd-shell-text);
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nmd-shop-shell .wc-block-components-product-price,
.nmd-single-related-card .wc-block-components-product-price,
.nmd-home-carousel-collection .wc-block-components-product-price {
  margin-bottom: 0.7rem;
  min-height: 1.4rem;
}

.nmd-shop-shell .nmd-shop-card-actions,
.nmd-single-related-card .nmd-shop-card-actions,
.nmd-home-carousel-collection .nmd-shop-card-actions {
  display: flex;
  align-items: flex-end;
  margin-top: 0.25rem;
  min-height: 2.55rem;
}

.nmd-home-carousel-collection .wc-block-product-template {
  margin-top: 0.65rem;
}

.nmd-shop-shell .nmd-card-actions-legacy,
.nmd-single-related-card .nmd-card-actions-legacy {
  display: none !important;
}

.nmd-shop-shell .nmd-card-icon-actions,
.nmd-single-related-card .nmd-card-icon-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.15rem;
  min-height: 2.55rem;
  padding-top: 0.35rem;
}

.nmd-shop-shell .wc-block-grid__products {
  margin-bottom: 0.35rem;
}

.nmd-shop-shell .wc-block-grid__product {
  border: 1px solid var(--nmd-shell-border);
  border-radius: var(--nmd-card-radius);
  display: flex;
  flex-direction: column;
  height: auto !important;
  padding: 0.7rem;
}

.nmd-shop-shell .wc-block-grid__product-title {
  margin-bottom: 0.35rem;
  min-height: 0;
}

.nmd-shop-shell .wc-block-grid__product-add-to-cart {
  margin-top: 0.35rem;
}

.nmd-shop-shell .wc-block-grid__product-add-to-cart .wp-block-button__link,
.nmd-shop-shell .wc-block-grid__product-add-to-cart a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  width: 100%;
}

.nmd-shop-shell .nmd-icon-action,
.nmd-single-related-card .nmd-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  color: var(--nmd-shell-text);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.nmd-shop-shell .nmd-icon-action:hover,
.nmd-shop-shell .nmd-icon-action:focus-visible,
.nmd-single-related-card .nmd-icon-action:hover,
.nmd-single-related-card .nmd-icon-action:focus-visible {
  background: var(--nmd-shell-text);
  color: var(--wp--preset--color--paper, #f6f8fc);
  outline: 2px solid var(--nmd-shell-accent);
  outline-offset: 2px;
}

.nmd-shop-shell .nmd-icon-action .nmd-icon-svg,
.nmd-single-related-card .nmd-icon-action .nmd-icon-svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.nmd-visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.nmd-quick-view-modal[hidden] {
  display: none !important;
}

.nmd-quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.nmd-quick-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 28, 0.64);
}

.nmd-quick-view-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 1rem;
  width: min(980px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: calc(var(--nmd-card-radius) + 2px);
  box-shadow: 0 24px 46px rgba(10, 24, 39, 0.28);
  padding: 1rem;
  padding-top: 2.2rem;
}

.nmd-quick-view-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  color: var(--nmd-shell-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.nmd-quick-view-close:hover,
.nmd-quick-view-close:focus-visible {
  background: var(--nmd-shell-text);
  color: var(--wp--preset--color--paper, #f6f8fc);
  outline: 2px solid var(--nmd-shell-accent);
  outline-offset: 2px;
}

.nmd-quick-view-media {
  border: 1px solid var(--nmd-shell-border);
  background: var(--nmd-shell-bg);
  border-radius: var(--nmd-card-radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.nmd-quick-view-media img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.nmd-quick-view-content {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.nmd-quick-view-title {
  margin: 0;
}

.nmd-quick-view-title a {
  color: var(--nmd-shell-text);
  text-decoration: none;
}

.nmd-quick-view-price {
  font-weight: 700;
}

.nmd-quick-view-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.nmd-quick-view-actions .button,
.nmd-quick-view-actions a,
.nmd-quick-view-actions button {
  min-height: 44px;
}

.nmd-quick-view-actions .nmd-quick-view-add {
  flex: 1 1 220px;
}

.nmd-quick-view-actions .nmd-quick-view-details {
  flex: 0 0 auto;
}

.nmd-modal-open {
  overflow: hidden;
}

.nmd-single-product-page .nmd-single-product-shell {
  gap: clamp(1rem, 2.2vw, 2.2rem);
  align-items: flex-start;
}

.nmd-single-product-page .nmd-single-media-col {
  min-width: 0;
}

.nmd-single-product-page .nmd-single-media-col,
.nmd-single-product-page .nmd-single-media-col .wp-block-woocommerce-product-image-gallery,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery .flex-viewport,
.nmd-single-product-page .nmd-single-media-col .wc-block-components-product-image,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__wrapper,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__image,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__image a {
  height: 100%;
}

.nmd-single-product-page .nmd-single-media-col .wp-block-woocommerce-product-image-gallery,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery .flex-viewport,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__wrapper,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__image,
.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__image a {
  display: block;
}

.nmd-single-product-page .nmd-single-media-col .woocommerce-product-gallery__image img,
.nmd-single-product-page .nmd-single-media-col .wc-block-components-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nmd-single-product-page .nmd-single-summary-col {
  min-width: 0;
}

.nmd-single-product-page .nmd-single-summary-card {
  height: 100%;
  display: grid;
  gap: 0.85rem;
  position: sticky;
  top: 1.1rem;
  border: 1px solid var(--nmd-shell-border);
  border-radius: var(--nmd-card-radius);
  background: var(--wp--preset--color--white, #fff);
  padding: clamp(0.8rem, 1.2vw, 1rem);
}

.nmd-single-product-page .nmd-single-summary-card .wp-block-post-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.nmd-single-product-page .nmd-single-summary-card .wc-block-components-product-rating {
  margin: 0;
}

.nmd-single-product-page .nmd-single-summary-card .wp-block-post-excerpt {
  margin: 0.2rem 0 0;
}

.nmd-single-product-page .nmd-single-summary-card .wp-block-post-excerpt p {
  margin: 0;
}

.nmd-single-product-page .nmd-single-purchase-panel {
  margin-top: 0.3rem;
  padding-top: 0.15rem;
  border-top: 0;
}

.nmd-single-product-page .wp-block-woocommerce-product-image-gallery,
.nmd-single-product-page .wc-block-components-product-image {
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: 0.75rem;
}

.nmd-single-product-page .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
  margin-bottom: 0;
}

.nmd-single-product-page .woocommerce-product-gallery__image img,
.nmd-single-product-page .wc-block-components-product-image img {
  border-radius: var(--nmd-card-radius);
}

.nmd-single-product-page .wc-block-components-product-price {
  font-weight: 700;
  margin: 0.1rem 0 0.2rem;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
}

.nmd-single-product-page .wp-block-woocommerce-product-meta {
  margin-top: 0.3rem;
  border-top: 0;
  padding-top: 0.3rem;
  font-size: 0.95rem;
}

.nmd-single-product-page .wp-block-woocommerce-product-meta .wp-block-post-terms,
.nmd-single-product-page .wp-block-woocommerce-product-meta .wc-block-components-product-sku {
  margin: 0;
}

.nmd-single-product-page .wp-block-woocommerce-product-meta .wp-block-group {
  gap: 0.45rem;
}

.nmd-single-product-page .wp-block-woocommerce-product-meta a {
  color: var(--nmd-shell-accent);
}

.nmd-single-product-page .nmd-single-meta-clean .wp-block-post-terms,
.nmd-single-product-page .nmd-single-meta-clean .wc-block-components-product-sku {
  display: block;
  line-height: 1.45;
  margin: 0.1rem 0;
}

.nmd-single-product-page .nmd-single-meta-clean .wp-block-post-terms a {
  display: inline-flex;
  align-items: center;
  margin: 0.3rem 0.35rem 0 0;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--nmd-shell-border);
  border-radius: 999px;
  color: var(--nmd-shell-text);
  text-decoration: none;
  background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 88%, var(--nmd-shell-bg));
}

.nmd-single-product-page .nmd-single-meta-clean .wp-block-post-terms a:hover,
.nmd-single-product-page .nmd-single-meta-clean .wp-block-post-terms a:focus-visible {
  background: var(--wp--preset--color--white, #fff);
  border-color: var(--nmd-shell-accent);
}

.nmd-single-product-page .nmd-single-cta-row {
  margin: 0.25rem 0 0.05rem;
}

.nmd-single-product-page .nmd-single-cta-row .wp-block-button__link {
  min-height: 44px;
  font-weight: 700;
  background: var(--nmd-shell-accent);
  color: var(--wp--preset--color--white, #fff);
}

.nmd-single-product-page .nmd-single-cta-row .wp-block-button__link:hover,
.nmd-single-product-page .nmd-single-cta-row .wp-block-button__link:focus-visible {
  background: color-mix(in srgb, var(--nmd-shell-accent) 85%, black);
}

.nmd-single-product-page .nmd-single-summary-card .stock,
.nmd-single-product-page .nmd-single-summary-card .woocommerce-variation-availability {
  background: transparent;
  border: 0;
  margin: 0.35rem 0 0.2rem;
  padding: 0;
}

.nmd-single-product-page .nmd-single-summary-card .wp-block-woocommerce-product-meta {
  border-top: 1px solid var(--nmd-shell-border);
  margin-top: 0.4rem;
  padding-top: 0.75rem;
}

.nmd-single-product-page .wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button,
.nmd-single-product-page .wp-block-woocommerce-add-to-cart-form .wp-block-button__link {
  width: 100%;
  min-height: 48px;
  font-weight: 700;
}

.nmd-single-product-page .nmd-single-details-card .wc-block-components-tabs {
  margin-top: 0.1rem;
}

.nmd-single-product-page .nmd-single-details-card .wc-block-components-tabs__list {
  border-bottom: 1px solid var(--nmd-shell-border);
  padding-bottom: 0.15rem;
}

.nmd-single-product-page .nmd-single-details-card .wc-block-components-tabs__item {
  border: 1px solid var(--nmd-shell-border);
  border-bottom: 0;
  background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 88%, var(--nmd-shell-bg));
  min-height: 2.5rem;
  padding: 0.35rem 0.7rem;
}

.nmd-single-product-page .nmd-single-details-card .wc-block-components-tabs__item--active {
  background: var(--wp--preset--color--white, #fff);
}

.nmd-single-product-page .nmd-single-details-card .wc-block-components-tab-panel {
  padding-top: 1rem;
}

.nmd-single-product-page .nmd-single-preview-card {
  padding: clamp(0.85rem, 1.6vw, 1.2rem);
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
}

.nmd-single-product-page .nmd-single-preview-card:empty {
  display: none;
}

.nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-shell {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.nmd-single-product-page .nmd-single-preview-card .wp-block-neuronomad-art-placer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100%;
}

.nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-wrap {
  width: 100%;
}

.nmd-single-product-page .nmd-single-preview-card.alignfull,
.nmd-single-product-page .nmd-single-preview-card.alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-stage-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-controls {
  grid-template-columns: 1fr;
}

.nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-block {
  width: 100%;
  max-width: none;
}

.nmd-single-related-card,
.nmd-single-details-card,
.nmd-single-preview-card,
.nmd-cart-shell,
.nmd-checkout-shell,
.nmd-account-shell {
  margin-top: 1rem;
}

.nmd-single-related-card .wp-block-heading {
  margin: 0 0 0.9rem;
}

.nmd-single-related-card {
  display: none !important;
}

.nmd-single-related-card .wc-block-grid__products,
.nmd-single-related-card .wc-block-product-template {
  margin-top: 0;
}

.nmd-single-related-card .wc-block-grid__product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nmd-single-related-card .wc-block-grid__product-title {
  min-height: 2.7em;
  line-height: 1.35;
}

.nmd-single-related-card .wc-block-grid__product-add-to-cart {
  margin-top: auto;
}

.nmd-cart-shell .wp-block-woocommerce-cart,
.nmd-checkout-shell .wp-block-woocommerce-checkout {
  margin-top: clamp(0.85rem, 1.5vw, 1.2rem);
}

.nmd-checkout-shell .wp-block-woocommerce-checkout {
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
}

.nmd-checkout-shell .wc-block-checkout,
.nmd-cart-shell .wc-block-cart {
  background: transparent;
}

.nmd-checkout-shell .wc-block-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
  align-items: start;
}

.nmd-checkout-shell .wc-block-components-main,
.nmd-checkout-shell .wc-block-components-sidebar,
.nmd-cart-shell .wc-block-components-sidebar {
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: clamp(0.9rem, 1.6vw, 1.2rem);
}

.nmd-checkout-shell .wc-block-checkout__main,
.nmd-checkout-shell .wc-block-checkout__sidebar {
  float: none;
  width: auto;
}

.nmd-checkout-shell .wc-block-checkout__main {
  display: grid;
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.nmd-checkout-shell .wc-block-checkout__sidebar {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: 1rem;
}

.nmd-checkout-shell .wc-block-checkout__main .wc-block-components-checkout-step,
.nmd-checkout-shell .wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
.nmd-checkout-shell .wc-block-checkout__sidebar .wc-block-checkout__actions {
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: clamp(0.8rem, 1.3vw, 1rem);
}

.nmd-checkout-shell .wc-block-components-express-payment,
.nmd-checkout-shell .wc-block-checkout__express-payment {
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: 0.75rem;
}

.nmd-checkout-shell .wc-block-components-express-payment__event-buttons,
.nmd-checkout-shell .wc-block-components-express-payment__content {
  width: min(100%, 520px);
  margin-inline: auto;
}

.nmd-checkout-shell .wc-block-components-express-payment__separator {
  width: min(100%, 520px);
  margin: 0.7rem auto 0;
  color: color-mix(in srgb, var(--nmd-shell-text) 82%, white);
}

.nmd-checkout-shell .wc-block-components-express-payment .wc-block-components-button,
.nmd-checkout-shell .wc-block-checkout__express-payment .wc-block-components-button,
.nmd-checkout-shell .wc-block-components-express-payment button,
.nmd-checkout-shell .wc-block-checkout__express-payment button {
  width: min(100%, 520px);
  max-width: none;
  min-height: 46px;
  margin-inline: auto;
}

.nmd-checkout-shell .wc-block-checkout__actions_row,
.nmd-cart-shell .wc-block-cart__submit-container {
  margin-top: 0.9rem;
}

.nmd-checkout-shell .wc-block-components-checkout-place-order-button,
.nmd-cart-shell .wc-block-cart__submit-button {
  min-height: 50px;
  font-weight: 700;
}

.nmd-checkout-shell .wc-block-components-totals-wrapper,
.nmd-cart-shell .wc-block-components-totals-wrapper {
  border-top: 1px solid var(--nmd-shell-border);
  padding-top: 0.75rem;
}

.nmd-checkout-shell .wc-block-components-checkout-step__heading,
.nmd-checkout-shell .wc-block-components-totals-footer-item,
.nmd-checkout-shell .wc-block-components-totals-item {
  font-size: 0.98rem;
}

.nmd-checkout-shell .wc-block-components-checkout-step__description,
.nmd-checkout-shell .wc-block-components-form .wc-block-components-text-input,
.nmd-checkout-shell .wc-block-components-form .wc-block-components-combobox,
.nmd-checkout-shell .wc-block-components-form .wc-block-components-select {
  margin-bottom: 0.65rem;
}

.nmd-checkout-shell .wc-block-components-address-form__address_2-toggle {
  margin-top: 0.15rem;
}

.nmd-cart-shell .wc-block-cart {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
  align-items: start;
}

.nmd-cart-shell .wc-block-cart .wc-block-cart__main,
.nmd-cart-shell .wc-block-cart .wc-block-cart__sidebar {
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: clamp(0.9rem, 1.5vw, 1.2rem);
}

.nmd-cart-shell .wc-block-cart .wc-block-cart__sidebar {
  position: sticky;
  top: 1rem;
}

.nmd-cart-shell .wc-block-cart-items td,
.nmd-cart-shell .wc-block-cart-items th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nmd-cart-shell .wc-block-cart-item__prices,
.nmd-cart-shell .wc-block-components-product-name {
  color: var(--nmd-shell-text);
}

/* Checkout + cart hardening pass: balanced columns, clear hierarchy, stable express payment area. */
.nmd-checkout-shell {
  --nmd-checkout-card-pad: clamp(0.95rem, 1.4vw, 1.2rem);
}

.nmd-checkout-shell .wc-block-checkout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.nmd-checkout-shell .wc-block-checkout__main,
.nmd-checkout-shell .wc-block-checkout__sidebar {
  align-self: start;
  min-width: 0;
}

.nmd-checkout-shell .wc-block-checkout__main .wc-block-components-checkout-step,
.nmd-checkout-shell .wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
.nmd-checkout-shell .wc-block-checkout__sidebar .wc-block-checkout__actions,
.nmd-cart-shell .wc-block-cart .wc-block-cart__main,
.nmd-cart-shell .wc-block-cart .wc-block-cart__sidebar {
  border-radius: var(--nmd-card-radius);
  padding: var(--nmd-checkout-card-pad);
}

.nmd-checkout-shell .wc-block-components-checkout-step__heading {
  margin-bottom: 0.45rem;
}

.nmd-checkout-shell .wc-block-components-checkout-step__description {
  margin-bottom: 0.8rem;
}

.nmd-checkout-shell .wc-block-components-express-payment,
.nmd-checkout-shell .wc-block-checkout__express-payment {
  margin-bottom: 0.35rem;
  border-radius: var(--nmd-card-radius);
  padding: 0.8rem;
}

.nmd-checkout-shell .wc-block-components-express-payment__event-buttons,
.nmd-checkout-shell .wc-block-components-express-payment__content {
  display: grid;
  gap: 0.55rem;
  margin-inline: auto;
  width: min(100%, 460px);
}

.nmd-checkout-shell .wc-block-components-express-payment__separator {
  margin: 0.6rem auto 0;
  width: min(100%, 460px);
}

.nmd-checkout-shell :is(
  .wc-block-components-express-payment .wc-block-components-button,
  .wc-block-checkout__express-payment .wc-block-components-button,
  .wc-block-components-express-payment button,
  .wc-block-checkout__express-payment button,
  .wc-block-components-express-payment [class*='wcpay'],
  .wc-block-checkout__express-payment [class*='wcpay']
) {
  min-height: 44px;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.nmd-checkout-shell .wc-block-components-form .wc-block-components-text-input input,
.nmd-checkout-shell .wc-block-components-form .wc-block-components-select select,
.nmd-checkout-shell .wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control {
  min-height: 44px;
}

.nmd-checkout-shell .wc-block-components-checkout-place-order-button {
  min-height: 52px;
}

.nmd-checkout-shell .wc-block-checkout__actions {
  display: grid;
  gap: 0.8rem;
}

.nmd-cart-shell .wc-block-cart {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.nmd-cart-shell .wc-block-cart .wc-block-cart-item__wrap {
  min-width: 0;
}

.nmd-cart-shell .wc-block-components-quantity-selector,
.nmd-cart-shell .wc-block-components-product-metadata {
  margin-top: 0.35rem;
}

.nmd-cart-shell .wc-block-cart-item__prices {
  font-weight: 700;
}

.nmd-account-shell .woocommerce,
.nmd-account-shell .woocommerce-MyAccount-content,
.nmd-account-shell .woocommerce-MyAccount-navigation {
  font-family: inherit;
}

.nmd-account-shell .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nmd-account-shell .woocommerce-MyAccount-navigation li a {
  display: block;
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.45rem;
  text-decoration: none;
  color: var(--nmd-shell-text);
  font-weight: 600;
}

.nmd-account-shell .woocommerce-MyAccount-navigation li.is-active a,
.nmd-account-shell .woocommerce-MyAccount-navigation li a:hover,
.nmd-account-shell .woocommerce-MyAccount-navigation li a:focus-visible {
  background: var(--nmd-shell-text);
  color: var(--wp--preset--color--paper, #f6f8fc);
}

.nmd-order-confirmation-shell > * + * {
  margin-top: 1rem;
}

.nmd-order-confirmation-shell .wc-block-order-confirmation-status,
.nmd-order-confirmation-shell .wc-block-order-confirmation-summary,
.nmd-order-confirmation-shell .wc-block-order-confirmation-totals,
.nmd-order-confirmation-shell .wc-block-order-confirmation-downloads,
.nmd-order-confirmation-shell .wc-block-order-confirmation-additional-fields,
.nmd-order-confirmation-shell .wc-block-order-confirmation-additional-information,
.nmd-order-confirmation-shell .wc-block-order-confirmation-shipping-address,
.nmd-order-confirmation-shell .wc-block-order-confirmation-billing-address {
  border: 1px solid var(--nmd-shell-border);
  background: var(--wp--preset--color--white, #fff);
  border-radius: var(--nmd-card-radius);
  padding: 0.8rem;
}

@media (max-width: 980px) {
  .nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-stage-wrap {
    grid-template-columns: 1fr;
  }

  .nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-background-picker,
  .nmd-single-product-page .nmd-single-preview-card .nmd-art-placer-control-actions {
    grid-column: 1 / -1;
  }

  .nmd-shop-shell .nmd-shop-toolbar {
    display: grid;
    gap: 0.8rem;
  }

  .nmd-shop-shell .nmd-shop-category-all,
  .nmd-shop-shell .wc-block-product-categories-list-item,
  .nmd-shop-shell .wc-block-product-categories-list .wc-block-product-categories-list-item {
    min-width: 190px;
  }

  .nmd-checkout-shell .wc-block-checkout {
    grid-template-columns: 1fr;
  }

  .nmd-checkout-shell .wc-block-checkout__sidebar,
  .nmd-cart-shell .wc-block-cart .wc-block-cart__sidebar {
    position: static;
  }

  .nmd-cart-shell .wc-block-cart {
    grid-template-columns: 1fr;
  }

  .nmd-shop-shell .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .nmd-quick-view-dialog {
    grid-template-columns: 1fr;
  }

  .nmd-quick-view-media {
    min-height: 220px;
  }

  .nmd-single-product-page .nmd-single-product-shell {
    display: grid;
    gap: 1rem;
  }

  .nmd-single-product-page .nmd-single-summary-card {
    position: static;
  }

  .nmd-shop-shell .wc-block-product-template,
  .nmd-single-related-card .wc-block-product-template {
    grid-template-columns: 1fr;
  }

  .nmd-checkout-shell .wc-block-checkout,
  .nmd-cart-shell .wc-block-cart {
    gap: 0.8rem;
  }

  .nmd-checkout-shell .wc-block-components-express-payment,
  .nmd-checkout-shell .wc-block-checkout__express-payment,
  .nmd-checkout-shell .wc-block-checkout__main .wc-block-components-checkout-step,
  .nmd-checkout-shell .wc-block-checkout__sidebar .wc-block-components-totals-wrapper,
  .nmd-checkout-shell .wc-block-checkout__sidebar .wc-block-checkout__actions,
  .nmd-cart-shell .wc-block-cart .wc-block-cart__main,
  .nmd-cart-shell .wc-block-cart .wc-block-cart__sidebar {
    padding: 0.75rem;
  }
}
