/* Dynamic WooCommerce archive; full original images and product names. */
.nd-shop {
  --nd-shop-ink: var(--wp--preset--color--ink, #171a21);
  --nd-shop-muted: var(--wp--preset--color--muted, #565d68);
  --nd-shop-line: var(--wp--preset--color--line, #dce0e5);
  --nd-shop-coral: var(--wp--preset--color--brand, #f84e45);
  --nd-shop-brand-text: var(--wp--preset--color--brand-text, #b72c25);
  --nd-shop-tint: var(--wp--preset--color--brand-tint, #fff3f1);
  color: var(--nd-shop-ink);
}
.nd-shop *, .nd-shop *::before, .nd-shop *::after { box-sizing: border-box; }
.nd-shop-container { max-width: 1320px; margin-inline: auto; padding-inline: clamp(1.25rem, 4.5vw, 4rem); }
.nd-shop-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) 2rem; }
.nd-shop .woocommerce-breadcrumb { margin: 0 0 1.5rem; color: var(--nd-shop-muted); font-size: .875rem; line-height: 1.65; }
.nd-shop .woocommerce-breadcrumb a { color: var(--nd-shop-muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nd-shop-eyebrow { color: var(--nd-shop-brand-text); font-size: .8125rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 .75rem; }
.nd-shop .nd-shop-title { font-size: clamp(2.25rem, 4.6vw, 4.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -.05em; margin: 0; max-width: 23ch; overflow-wrap: anywhere; }
.nd-shop-description { max-width: 68ch; margin-top: 1.25rem; color: var(--nd-shop-muted); font-size: 1rem; line-height: 1.75; }
.nd-shop-description > :first-child { margin-top: 0; }
.nd-shop-search { margin-block: 1.75rem 0; max-width: 42rem; }
.nd-shop-search .wp-block-search__inside-wrapper { border: 1px solid var(--nd-shop-line); border-radius: 8px; padding: 4px; gap: .5rem; }
.nd-shop-search input { min-width: 0; border: 0; padding: .75rem 1rem; font: inherit; color: var(--nd-shop-ink); background: #fff; }
.nd-shop-search button { margin: 0; min-height: 44px; border: 0; border-radius: 5px; padding: .75rem 1rem; background: var(--nd-shop-ink); color: #fff; font: inherit; font-size: .9375rem; cursor: pointer; }
.nd-shop-browse { padding-block: 1rem clamp(3.5rem, 6vw, 6rem); }
.nd-shop-layout { display: grid; grid-template-columns: minmax(0, 224px) minmax(0, 1fr); gap: clamp(1.75rem, 3.5vw, 3.5rem); align-items: start; }
.nd-shop-layout > * { min-width: 0; margin-block-start: 0; }
.nd-shop-sidebar { position: sticky; top: 1.25rem; max-height: calc(100svh - 2.5rem); overflow-y: auto; padding-block: .25rem; padding-inline-end: 4px; scrollbar-width: thin; }
.nd-shop-categories { border-block: 1px solid var(--nd-shop-line); padding-block: 1rem; }
.nd-shop-categories > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 600; }
.nd-shop-categories > summary::-webkit-details-marker { display: none; }
.nd-shop-categories > summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; }
.nd-shop-categories[open] > summary::after { content: "−"; }
.nd-shop-category-tree { margin-top: .75rem; max-height: min(560px, 65svh); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 6px; scrollbar-width: thin; }
.nd-shop-category-tree .wc-block-product-categories-list { padding: 0; margin: 0; list-style: none; font-size: .9375rem; line-height: 1.5; }
.nd-shop-category-tree .wc-block-product-categories-list .wc-block-product-categories-list { margin-inline-start: .75rem; padding-inline-start: .75rem; border-inline-start: 1px solid var(--nd-shop-line); }
.nd-shop-category-tree .wc-block-product-categories-list-item { margin: 0; }
.nd-shop-category-tree a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nd-shop-muted); text-decoration: none; overflow-wrap: anywhere; }
.nd-shop-category-tree a:hover { color: var(--nd-shop-brand-text); }
.nd-shop-category-tree a[aria-current="page"] { color: var(--nd-shop-ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--nd-shop-coral); text-underline-offset: 5px; }
.nd-shop-category-tree .wc-block-product-categories-list-item-count { color: var(--nd-shop-muted); font-size: .75rem; white-space: nowrap; }
.nd-shop-category-row { display: flex; align-items: center; gap: .375rem; }
.nd-shop-category-row > a { flex: 1; }
.nd-shop-branch-toggle { flex: 0 0 32px; width: 32px; min-height: 44px; border: 0; background: transparent; color: var(--nd-shop-muted); font: inherit; cursor: pointer; }
.nd-shop-branch-toggle::before { content: "+"; }
.nd-shop-branch-toggle[aria-expanded="true"]::before { content: "−"; }
.nd-shop-category-tree [hidden] { display: none !important; }
.nd-shop .nd-shop-filters { padding-block: 0 1.5rem; border-bottom: 1px solid var(--nd-shop-line); }
.nd-shop .nd-shop-filter-title { font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; margin-block: 0 .875rem; }
.nd-shop .wc-block-product-filters__overlay-content { gap: 1.75rem; }
.nd-shop .wc-block-product-filter-checkbox-list__label { font-size: .9375rem; }
.nd-shop .wc-block-product-filter-checkbox-list input { accent-color: var(--nd-shop-brand-text); }
.nd-shop .wc-block-product-filter-price-slider input:not([type="range"]) { min-height: 44px; min-width: 0; border-color: var(--nd-shop-line); border-radius: 5px; font: inherit; font-size: .875rem; }
.nd-shop .wc-block-product-filter-removable-chips__items { gap: .5rem; }
.nd-shop .wc-block-product-filter-removable-chips__item { background: var(--nd-shop-tint); border: 1px solid var(--nd-shop-line); border-radius: 6px; font-size: .8125rem; }
.nd-shop .wc-block-product-filter-removable-chips__remove { min-width: 44px; min-height: 44px; }
.nd-shop .wp-block-woocommerce-product-filter-clear-button .wp-element-button { background: transparent; color: var(--nd-shop-brand-text); border: 0; font-size: .875rem; padding: .5rem 0; text-decoration: underline; text-underline-offset: 4px; }
.nd-shop-toolbar { min-height: 60px; margin-block: 0 1.5rem; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--nd-shop-line); }
.nd-shop-toolbar .woocommerce-result-count { margin: 0; color: var(--nd-shop-muted); font-size: .875rem; }
.nd-shop-toolbar .woocommerce-ordering { margin: 0; }
.nd-shop-density { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--nd-shop-line); border-radius: 6px; }
.nd-shop-density button { min-height: 44px; padding: .5rem .625rem; border: 0; border-radius: 3px; background: transparent; color: var(--nd-shop-muted); font: inherit; font-size: .8125rem; cursor: pointer; }
.nd-shop-density button[aria-pressed="true"] { background: var(--nd-shop-ink); color: #fff; }
.nd-shop-toolbar select { width: auto; max-width: 100%; min-height: 44px; background: #fff; color: var(--nd-shop-ink); border: 1px solid var(--nd-shop-line); border-radius: 6px; padding: .65rem 2rem .65rem .75rem; font: inherit; font-size: .875rem; }
.nd-shop .nd-shop-collection { margin-block: 0; }
.nd-shop .wc-block-product-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2.25rem 1.25rem !important; }
.nd-shop .wc-block-product-template > li { min-width: 0; display: flex; flex-direction: column; }
.nd-shop.nd-shop-compact .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.nd-shop-card { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.nd-shop .nd-shop-image { display: block; position: relative; aspect-ratio: 5 / 4; width: 100%; border: 1px solid #e7e9ed; border-radius: 12px; background: #fff; margin: 0 0 1.25rem; overflow: hidden; }
.nd-shop .nd-shop-image > a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.nd-shop .nd-shop-image img { display: block; width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; object-fit: contain !important; object-position: center; aspect-ratio: auto !important; padding: clamp(.75rem, 1.25vw, 1.25rem); }
.nd-shop .nd-shop-image img[data-nd-image-shape="wide"] { padding-inline: .625rem; }
.nd-shop .nd-shop-image img[data-nd-image-shape="tall"] { padding-block: .625rem; }
.nd-shop-card-copy { display: flex; flex-direction: column; flex: 1; gap: .65rem; min-width: 0; }
.nd-shop .nd-shop-product-title { margin: 0; font-size: clamp(.9375rem, 1.2vw, 1.125rem); font-weight: 600; line-height: 1.45; letter-spacing: -.015em; overflow-wrap: anywhere; }
.nd-shop-product-title a { color: var(--nd-shop-ink); text-decoration: none; }
.nd-shop-product-title a:hover { color: var(--nd-shop-brand-text); text-decoration: underline; text-underline-offset: 4px; }
.nd-shop .nd-shop-product-price { margin: 0; color: var(--nd-shop-muted); font-size: .9375rem; font-weight: 500; }
.nd-shop .nd-shop-product-price ins { color: var(--nd-shop-brand-text); text-decoration: none; }
.nd-shop .nd-shop-product-price del { opacity: .7; font-weight: 400; }
.nd-shop .nd-shop-product-button { margin-block-start: auto; padding-top: .25rem; }
.nd-shop .nd-shop-product-button .wp-element-button { width: 100%; min-height: 44px; border: 1px solid var(--nd-shop-line); border-radius: 6px; background: #fff; color: var(--nd-shop-ink); padding: .625rem .75rem; font-size: .875rem; font-weight: 550; line-height: 1.4; transition: border-color .18s ease, background-color .18s ease; }
.nd-shop .nd-shop-product-button .wp-element-button:hover { border-color: var(--nd-shop-coral); background: var(--nd-shop-tint); }
.nd-shop .wc-block-components-product-sale-badge { border: 0; border-radius: 4px; background: var(--nd-shop-tint); color: var(--nd-shop-brand-text); font-size: .6875rem; font-weight: 650; padding: .35rem .5rem; }
.nd-shop .nd-shop-pagination { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--nd-shop-line); gap: .5rem; font-size: .9375rem; }
.nd-shop-pagination :where(a,span.page-numbers) { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: .5rem; color: var(--nd-shop-ink); border-radius: 5px; text-decoration: none; }
.nd-shop-pagination .page-numbers.current { background: var(--nd-shop-ink); color: #fff; }
.nd-shop-pagination a:hover { background: var(--nd-shop-tint); }
.nd-shop-empty { padding-block: 3rem; color: var(--nd-shop-muted); line-height: 1.75; }
.nd-shop-price-fallback { padding-block: 1.5rem; }
.nd-shop-price-fallback fieldset { padding: 0; border: 0; margin: 0 0 1rem; }
.nd-shop-price-fallback legend { font-weight: 600; margin-bottom: 1rem; }
.nd-shop-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.nd-shop-price-fields label { min-width: 0; font-size: .8125rem; line-height: 1.5; }
.nd-shop-price-fields input { display: block; width: 100%; min-height: 44px; margin-top: .5rem; border: 1px solid var(--nd-shop-line); border-radius: 5px; font: inherit; padding: .5rem; }
.nd-shop-price-fallback button { min-height: 44px; background: var(--nd-shop-ink); color: #fff; border: 0; border-radius: 5px; font: inherit; font-size: .875rem; padding: .75rem; cursor: pointer; }
@media (max-width: 1100px) {
  .nd-shop-layout { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1.5rem; }
  .nd-shop .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nd-shop.nd-shop-compact .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
  .nd-shop-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .nd-shop-sidebar { position: static; max-height: none; overflow: visible; padding-inline-end: 0; }
  .nd-shop .nd-shop-filters { padding-block: 1rem; }
  .nd-shop .wc-block-product-filters__open-overlay { min-height: 44px; border: 1px solid var(--nd-shop-line); border-radius: 6px; background: #fff; padding: .625rem .875rem; font: inherit; }
  .nd-shop .wc-block-product-filters__overlay-dialog { background: #fff; }
  .nd-shop .wc-block-product-filters__close-overlay, .nd-shop .wc-block-product-filters__apply { min-height: 44px; }
  .nd-shop .wc-block-product-filters__apply { color: var(--nd-shop-ink); background: var(--nd-shop-coral); }
  .nd-shop-category-tree { max-height: 45svh; }
  .nd-shop-toolbar { margin-bottom: 1.25rem; }
  .nd-shop .wc-block-product-template { gap: 2rem 1rem !important; }
  .nd-shop.nd-shop-compact .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nd-shop .nd-shop-image { border-radius: 8px; margin-bottom: .875rem; }
}
@media (max-width: 429px) {
  .nd-shop .wc-block-product-template { grid-template-columns: 1fr !important; }
  .nd-shop .nd-shop-image { aspect-ratio: 4 / 3; max-height: 280px; }
  .nd-shop .nd-shop-product-title { font-size: 1rem; }
  .nd-shop-search input { padding-inline: .625rem; }
}
/* Woo's default drawer breakpoint is 600px; match this catalogue's sidebar. */
@media (min-width: 601px) and (max-width: 781px) {
  .nd-shop .wc-block-product-filters__open-overlay { display: flex; }
  .nd-shop .wc-block-product-filters__overlay { position: fixed; inset: 0; background: transparent; pointer-events: none; }
  .nd-shop .wc-block-product-filters__overlay-wrapper { height: 100%; width: 100%; }
  .nd-shop .wc-block-product-filters__overlay-dialog { position: absolute; inset: 0; background: #fff; transform: translateY(100vh); }
  .nd-shop .wc-block-product-filters__overlay-header { display: flex; }
  .nd-shop .wc-block-product-filters__overlay-footer { display: block; }
  .nd-shop .wc-block-product-filters__overlay-content { overflow-y: auto; padding: 0 var(--wp--preset--spacing--40); }
  .nd-shop .is-overlay-opened .wc-block-product-filters__overlay { background: rgb(23 26 33 / .35); pointer-events: auto; }
  .nd-shop .is-overlay-opened .wc-block-product-filters__overlay-wrapper { height: 100%; width: 100%; }
  .nd-shop .is-overlay-opened .wc-block-product-filters__overlay-dialog { position: absolute; background: #fff; transform: translateY(0); }
  .nd-shop .is-overlay-opened .wc-block-product-filters__overlay-header { display: flex; }
  .nd-shop .is-overlay-opened .wc-block-product-filters__overlay-footer { display: block; }
  .nd-shop .is-overlay-opened .wc-block-product-filters__open-overlay { display: flex; }
  .nd-shop .is-overlay-opened .wc-block-product-filters__overlay-content { overflow-y: auto; padding: 0 var(--wp--preset--spacing--40); }
}
@media (prefers-reduced-motion: reduce) { .nd-shop * { transition: none !important; scroll-behavior: auto !important; } }

/* The archive begins with real category browsing, not a promotional banner. */
.nd-shop > .nd-shop-container { margin-block: 0; }
.nd-shop-hero { padding-block: clamp(1.5rem, 3.5vw, 3rem) 1.5rem; }
.nd-shop .woocommerce-breadcrumb { margin-bottom: .875rem; }
.nd-shop--archive .nd-shop-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; gap: 1.75rem 3rem; background: #fff9f7; border-bottom: 1px solid #f0e4df; }
.nd-shop--archive .nd-shop-hero > * { margin-block: 0; min-width: 0; }
.nd-shop--archive .nd-shop-search { width: 100%; max-width: none; }
.nd-shop--archive .nd-shop-search .wp-block-search__inside-wrapper { background: #fff; border-color: #dfd8d4; }
.nd-shop-category-explorer { grid-column: 1 / -1; min-width: 0; }
.nd-shop-category-explorer > ul { display: flex; gap: .5rem; padding: 0 0 .375rem; margin: 0; list-style: none; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.nd-shop-category-explorer li { flex: 1 0 178px; margin: 0; min-width: 0; }
.nd-shop-category-link { display: flex; align-items: center; gap: .75rem; min-height: 96px; padding: .5rem; color: var(--nd-shop-ink); text-decoration: none; border-radius: 8px; transition: background-color .18s ease; }
.nd-shop-category-link:hover, .nd-shop-category-link:focus-visible { background: #fff; }
.nd-shop-category-photo-frame { display: flex; align-items: center; justify-content: center; flex: 0 0 80px; width: 80px; height: 80px; background: #fff; border: 1px solid #f0e4df; border-radius: 8px; }
.nd-shop-category-photo-frame img { display: block; width: 100%; height: 100%; padding: .25rem; object-fit: contain; }
.nd-shop-category-initial { font-size: 2rem; font-weight: 500; color: var(--nd-shop-brand-text); }
.nd-shop-category-label { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.nd-shop-category-name { font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; overflow-wrap: normal; word-break: normal; hyphens: none; }
.nd-shop-category-total { font-size: .8125rem; color: var(--nd-shop-muted); line-height: 1.5; white-space: nowrap; }
.nd-shop-browse { padding-top: 1.5rem; }
/* The sidebar/drawer owns vertical scrolling; its hierarchy never nests scrollers. */
.nd-shop-category-tree { max-height: none; overflow: visible; }
.nd-shop-category-tree .wc-block-product-categories-list-item-count { font-size: .8125rem; }
.nd-shop .wc-block-components-product-sale-badge { font-size: .8125rem; }
.nd-shop-density { order: 3; padding: 2px; }
.nd-shop-density button { min-height: 36px; font-size: .8125rem; }
.nd-shop-toolbar > .wp-block-woocommerce-product-results-count { order: 1; min-width: 0; }
.nd-shop-toolbar > .wp-block-woocommerce-catalog-sorting { order: 2; min-width: 0; margin-left: auto; }
@media (max-width: 1100px) {
  .nd-shop-category-explorer li { flex-basis: 192px; }
  .nd-shop-category-photo-frame { flex-basis: 72px; width: 72px; height: 72px; }
  .nd-shop-category-link { min-height: 88px; }
}
@media (max-width: 781px) {
  .nd-shop-hero { padding-block: 1.25rem; }
  .nd-shop--archive .nd-shop-hero { grid-template-columns: 1fr; gap: .875rem; padding-block: 1.25rem 1rem; }
  .nd-shop .woocommerce-breadcrumb { margin-bottom: .625rem; }
  .nd-shop-category-explorer { margin-top: .125rem !important; }
  .nd-shop-category-explorer li { flex: 0 0 188px; }
  .nd-shop-category-link { min-height: 68px; gap: .625rem; padding: .375rem; }
  .nd-shop-category-photo-frame { flex-basis: 56px; width: 56px; height: 56px; border-radius: 6px; }
  .nd-shop-category-name { font-size: .875rem; }
  .nd-shop-category-total { font-size: .8125rem; }
  .nd-shop-browse { padding-top: .875rem; }
  .nd-shop-layout { gap: 1rem; }
  .nd-shop .nd-shop-filters { padding-block: 0 .875rem; }
  .nd-shop-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: center; padding-bottom: .875rem; margin-bottom: 1.25rem; }
  .nd-shop-toolbar .woocommerce-result-count { font-size: .8125rem; line-height: 1.5; }
  .nd-shop-toolbar > .wp-block-woocommerce-catalog-sorting { justify-self: end; margin-left: 0; }
  .nd-shop-toolbar select { font-size: .8125rem; padding-inline: .5rem 1.5rem; }
  .nd-shop-density { grid-column: 1 / -1; justify-self: start; order: 3; border: 0; padding: 0; gap: .375rem; }
  .nd-shop-density button { min-height: 32px; padding: .375rem .75rem; border-radius: 5px; }
  .nd-shop-density button:not([aria-pressed="true"]) { background: #f5f6f8; }
}
.nd-shop .nd-shop-sort-submit { margin-top: .5rem; min-height: 40px; padding: .5rem .875rem; font-size: .875rem; }
