.board-write-compact, .board-search-field .board-filter-toggle, .commerce-row-feedback:empty,
.commerce-product-page .commerce-product-back, .commerce-catalog-ad-vacant, .commerce-catalog-sponsored-heading,
.commerce-card-reward-icon,
.commerce-product-list :is(.commerce-category-select, .commerce-option-link, .commerce-quick-cart-label, .commerce-card-category, .commerce-card-sold-out, .commerce-card-shipping) { display: none; }
.commerce-card-meta, .commerce-card-pricing,
.commerce-product-summary, .commerce-product-controls, .commerce-product-purchase { display: contents; }

@media (min-width: 721px) {
  .commerce-card-meta .commerce-card-badges { order: 1; }
  .commerce-catalog-ads[data-reserve-ad-space]:not(:has(.commerce-catalog-ad)) { display: none; }
  .commerce-catalog-layout:has(> .commerce-catalog-ads[data-reserve-ad-space]:not(:has(.commerce-catalog-ad))) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .workshop .board-heading { flex-wrap: nowrap; gap: 8px; margin-block: 8px; padding: 5px 0; border: 0; }
  .workshop .board-heading h1 { margin: 0; font-size: 1.2rem; }
  .board-heading :is(#board-description, .board-write-wide) { display: none; }
  .board-heading .board-write-compact { display: inline; }
  .workshop .board-heading .board-write { flex: none; min-height: 40px; padding: 4px 12px; font-size: .8rem; white-space: nowrap; }
  .workshop .board-toolbar { gap: 6px; padding: 7px; }
  .workshop .board-toolbar .board-search-field { flex: 1 1 100%; max-width: none; min-height: 40px; padding-block: 2px; }
  .board-search-field input { font-size: .78rem; }
  .board-search-field button[type='submit'] { min-height: 34px; }
  .board-search-field .board-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 1px; flex: none; min-height: 36px; padding: 0 4px; color: #415c4e; background: transparent; font-size: .7rem; white-space: nowrap; }
  .board-filter-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .board-filter-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
  .board-search-field .board-filter-toggle[data-filtered] { color: #234f39; background: #e6efe3; }
  #board-search[data-board]:not([data-equipment-open]) > #board-equipment-filters,
  #board-search[data-board] :is(.board-advanced-toggle, .board-advanced-summary) { display: none; }
  #board-search[data-board][data-equipment-open] > #board-equipment-filters {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
    padding: 0;
  }
  #board-equipment-filters :is(.board-filter, #board-brand-filter) { display: grid; grid-column: auto; gap: 2px; min-width: 0; }
  #board-equipment-filters label { font-size: .7rem; }
  #board-equipment-filters select { width: 100%; min-height: 36px; padding-inline: 4px; font-size: .75rem; }
  #board-search[data-board] > #board-options,
  #board-search[data-board][data-questions] > #board-options {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px;
    padding-top: 5px;
  }
  #board-options .segments { flex-wrap: nowrap; align-items: stretch; min-width: 0; gap: 1px; padding: 1px; }
  #board-options .segments label { flex: 1 0 auto; }
  #board-options .segments span { display: grid; place-items: center; min-height: 34px; padding: 2px 4px; font-size: .69rem; white-space: nowrap; }
  #board-view-mode:not([hidden]) { grid-column: 1 / -1; justify-self: end; }
  .workshop .board-layout .board-results { margin-top: 6px; padding: 4px 8px 6px; }
  .board-layout .board-results-head { min-height: 25px; padding-inline: 3px; }
  .workshop #board-items .feed-item { grid-template-columns: minmax(0, 1fr) auto; gap: 0 7px; align-items: center; min-height: 49px; padding: 3px 4px; }
  #board-items .feed-item > div:first-child { display: contents; }
  .workshop #board-items .feed-item h3 { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .875rem; }
  #board-items .feed-item .metadata { overflow: hidden; margin-top: 2px; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
  #board-items .feed-item .category-link { display: none; }
  #board-items .feed-stats { display: flex; flex-wrap: nowrap; justify-content: end; gap: 5px; font-size: .69rem; }
  #board-items .feed-stats .question-status { font-size: inherit; }
  #board-items .feed-stats .like { min-height: 29px; padding: 2px 4px; font-size: .71rem; }

  .workshop:has(.secondary-page:not([hidden]) > :is(.commerce-product-list, .commerce-product-page)) {
    --community-paper: #eaf1e8;
  }
  .commerce-store:is(.commerce-product-list, .commerce-product-page) {
    --shop-forest: #274b3e;
    --shop-line: #cfddce;
    --shop-gap: 10px;
    margin-block: var(--shop-gap) 20px;
  }
  :is(.commerce-product-list, .commerce-product-page) .commerce-shopping-heading {
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: var(--shop-gap);
    padding: 6px 8px;
    border-radius: 12px;
    background: var(--shop-forest);
    color: #fff;
  }
  .commerce-product-list .commerce-shopping-heading h1 {
    padding-inline-start: 3px;
    color: inherit;
    font-size: clamp(1.25rem, 5.6vw, 1.5rem);
    font-weight: 720;
    line-height: 1.15;
  }
  :is(.commerce-product-list, .commerce-product-page) .commerce-shopping-actions { flex-wrap: nowrap; gap: 4px; }
  :is(.commerce-product-list, .commerce-product-page) .commerce-shopping-heading a {
    min-height: 40px;
    padding: 4px 8px;
    border-color: #648475;
    border-radius: 7px;
    background: #355c4d;
    color: #fff;
    font-size: .8rem;
    white-space: nowrap;
  }
  :is(.commerce-product-list, .commerce-product-page) .commerce-shopping-heading a:is(:hover, :focus-visible) { background: #49705f; }
  :is(.commerce-product-list, .commerce-product-page) .commerce-shopping-heading a:focus-visible { outline-color: #fff; outline-offset: 1px; }
  .commerce-product-list .commerce-shopping-heading {
    margin-bottom: 0;
    padding: 7px 12px;
    border: 1px solid var(--shop-line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #fff;
    color: var(--shop-forest);
  }
  .commerce-product-list .commerce-shopping-heading h1 { padding-inline-start: 0; }
  .commerce-product-list .commerce-shopping-heading a {
    border-color: #dbe5da;
    background: #f7f9f6;
    color: var(--shop-forest);
  }
  .commerce-product-list .commerce-shopping-heading a:is(:hover, :focus-visible) { background: #eaf2e7; }
  .commerce-product-list .commerce-shopping-heading a:focus-visible { outline-color: var(--shop-forest); }
  .commerce-product-list .commerce-catalog-layout { gap: var(--shop-gap); }
  .commerce-product-list .commerce-catalog-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 12px 10px;
    border: 1px solid var(--shop-line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
  }
  .commerce-product-list .commerce-catalog-tools:has(.is-repeated-count) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-product-list .commerce-catalog-tools .factory-mall-filters { display: none; }
  .commerce-product-list .commerce-catalog-search { grid-column: 1 / -1; width: 100%; }
  .commerce-product-list .commerce-catalog-tools .commerce-search { grid-column: 1 / -1; width: 100%; background: #f7f9f6; font-size: .83rem; }
  .commerce-product-list .commerce-category-select { display: block; width: 100%; min-height: 38px; font-size: .75rem; }
  .commerce-product-list .factory-mall-sort { display: contents; }
  .commerce-product-list .factory-mall-sort select { grid-column: 2; grid-row: 2; width: 100%; min-height: 38px; font-size: .75rem; }
  .commerce-product-list .commerce-catalog-count { grid-column: 3; grid-row: 2; justify-self: end; color: #5a6b62; font-size: .75rem; white-space: nowrap; }
  .commerce-product-list .commerce-catalog-count.is-repeated-count { display: none; }
  .commerce-product-list .commerce-catalog-layout .factory-mall-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .commerce-product-list .commerce-catalog-layout .factory-mall-grid .factory-mall-card {
    display: grid;
    grid-template-columns: clamp(68px, 20vw, 84px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    border-color: var(--shop-line);
  }
  .commerce-product-list .commerce-catalog-sponsored-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 7px 12px;
    border: 1px solid var(--shop-line);
    border-radius: 10px 10px 0 0;
    background: #f3f7f1;
    color: var(--shop-forest);
    font-size: .94rem;
    font-weight: 680;
    line-height: 1.4;
  }
  .commerce-catalog-sponsored-heading span { color: #586c5f; font-size: .77rem; font-weight: 550; }
  .commerce-product-list .commerce-catalog-layout .factory-mall-card.nado-ad-sponsored {
    outline: none;
  }
  .commerce-product-list .commerce-catalog-layout .factory-mall-photo-button {
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f9f6;
  }
  .commerce-product-list .commerce-catalog-layout .factory-mall-photo-button :is(img, .factory-mall-photo) {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
  }
  .commerce-product-list :is(.commerce-media-tag, .commerce-list-stock) { display: none; }
  .commerce-product-list .commerce-card-sold-out { display: inline; color: #8a4238; font-size: .76rem; font-weight: 700; }
  .commerce-product-list .commerce-catalog-layout .factory-mall-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    gap: 4px 10px;
    padding: 0;
  }
  .commerce-product-list .commerce-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-column: 1;
    grid-row: 3;
    column-gap: 7px;
    min-width: 0;
    padding-block-start: 4px;
  }
  .commerce-product-list .factory-mall-card-body .factory-mall-spec {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: #5a6b62;
    font-size: .75rem;
    line-height: 1.35;
  }
  .commerce-product-list .factory-mall-card-body :is(h3, .commerce-row-feedback) { grid-column: 1 / -1; }
  .commerce-product-list .factory-mall-card-body .commerce-card-badges { min-width: 0; gap: 0 6px; font-size: .72rem; line-height: 1.4; }
  .commerce-product-list .commerce-card-meta:has(.factory-mall-spec:not(:empty)) .commerce-card-badges::before {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9eaea4;
    content: '';
  }
  .commerce-product-list .commerce-card-badges .nado-ad-sponsored-label {
    align-self: center;
    margin: 0;
    color: #53685c;
    font-size: .69rem;
    font-weight: 540;
  }
  .commerce-product-list .commerce-catalog-layout .factory-mall-card .factory-mall-cap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    white-space: nowrap;
  }
  .commerce-product-list .commerce-card-reward-icon { display: block; width: 16px; height: 16px; }
  .commerce-product-list .commerce-card-reward-unit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .commerce-product-list .commerce-catalog-layout .factory-mall-card h3 {
    grid-row: 1;
    min-height: 0;
    color: #202d26;
    font-size: .9rem;
    font-weight: 550;
    line-height: 1.36;
    letter-spacing: -.012em;
  }
  .commerce-product-list .commerce-catalog-price { display: contents; }
  .commerce-product-list .commerce-card-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    grid-column: 1;
    grid-row: 2;
    gap: 1px 6px;
  }
  .commerce-product-list .commerce-catalog-price .factory-mall-price {
    color: #24352c;
    font-size: 1.1rem;
    font-weight: 730;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .commerce-product-list .commerce-card-shipping {
    display: inline;
    color: #5a6b62;
    font-size: .68rem;
    line-height: 1.25;
    white-space: nowrap;
  }
  .commerce-product-list .commerce-catalog-price > :is(a, button, .commerce-card-sold-out) {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
  }
  .commerce-product-list .commerce-catalog-price :is(.commerce-quick-cart, .commerce-option-link) {
    display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: auto; min-width: 68px; min-height: 40px; padding: 4px 7px;
    border: 1px solid #ccddca; border-radius: 8px; background: #f4f8f2; color: #254d39; font-size: .8rem; font-weight: 620; white-space: nowrap;
  }
  .commerce-product-list .commerce-quick-cart-label { display: inline; }
  .commerce-product-list .commerce-row-feedback { margin: 0; font-size: .72rem; line-height: 1.4; }

  .commerce-product-list .commerce-catalog-sponsored-heading:not([hidden]) + .factory-mall-grid { row-gap: 0; }
  .commerce-catalog-sponsored-heading:not([hidden]) + .factory-mall-grid .factory-mall-card.nado-ad-sponsored {
    padding-block: 8px;
    border-width: 0 1px 1px;
    border-color: #e3ebe1 var(--shop-line) #e3ebe1;
    border-radius: 0;
    background: #fff;
  }
  .commerce-catalog-sponsored-heading:not([hidden]) + .factory-mall-grid .nado-ad-sponsored .nado-ad-sponsored-label,
  .commerce-catalog-sponsored-heading:not([hidden]) + .factory-mall-grid .nado-ad-sponsored .commerce-card-badges:has(> .nado-ad-sponsored-label:only-child) {
    display: none;
  }
  .commerce-catalog-sponsored-heading:not([hidden]) + .factory-mall-grid .nado-ad-sponsored:not(:has(+ .nado-ad-sponsored)) {
    border-radius: 0 0 10px 10px;
  }
  .commerce-catalog-sponsored-heading:not([hidden]) + .factory-mall-grid .factory-mall-card:not(.nado-ad-sponsored) { margin-top: 8px; }

  .commerce-product-list .commerce-catalog-ads[data-reserve-ad-space] {
    max-width: none;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--shop-line);
    border-radius: 11px;
    background: #f3f7f1;
  }
  [data-reserve-ad-space] .commerce-catalog-ad-heading h2 { color: var(--shop-forest); font-size: .94rem; font-weight: 680; }
  [data-reserve-ad-space] .commerce-catalog-ad-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  [data-reserve-ad-space] .commerce-catalog-ad-list > * { min-width: 0; min-height: 82px; height: auto; aspect-ratio: auto; border-radius: 7px; }
  [data-reserve-ad-space] .commerce-catalog-ad-vacant {
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px dashed #b8cbbd;
    background: #fff;
    color: #53685c;
    font-size: .75rem;
  }
  [data-reserve-ad-space] .commerce-catalog-ad-list > a.commerce-catalog-ad {
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    align-items: center;
    border-color: var(--shop-line);
    background: #fff;
  }
  [data-reserve-ad-space] .commerce-catalog-ad-list > a.commerce-catalog-ad:has(img) { grid-template-columns: clamp(32px, 12vw, 54px) minmax(0, 1fr); }
  [data-reserve-ad-space] .commerce-catalog-ad-list > a.commerce-catalog-ad > img {
    width: 100%;
    height: 100%;
    padding: 4px;
    aspect-ratio: auto;
    background: #fff;
    object-fit: contain;
  }
  [data-reserve-ad-space] .commerce-catalog-ad :is(.commerce-catalog-ad-copy, .nado-ad-copy) {
    gap: 3px;
    padding: 6px;
    color: #25382e;
    font-size: .86rem;
    line-height: 1.22;
  }
  [data-reserve-ad-space] .commerce-catalog-ad :is(.commerce-catalog-ad-copy, .nado-ad-copy) strong { font-weight: 680; }
  [data-reserve-ad-space] .commerce-catalog-ad :is(.commerce-catalog-ad-copy, .nado-ad-copy) small { color: #5a6b62; font-size: .74rem; }

  .commerce-product-page .commerce-shopping-heading h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .commerce-product-page .commerce-shopping-heading .commerce-product-back { display: inline-flex; }
  .commerce-product-page .commerce-crumb { display: none; }
  .commerce-store.commerce-product-page .factory-mall-detail {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--shop-gap);
    margin-top: 0;
    padding: 11px;
    border: 1px solid var(--shop-line);
    border-radius: 13px;
    background: #fff;
  }
  .commerce-product-page .factory-mall-detail-copy { gap: 10px; }
  .commerce-product-page .commerce-gallery { gap: 5px; }
  .commerce-product-page .commerce-gallery-main .factory-mall-photo { border-color: #dce7d9; border-radius: 8px; }
  .commerce-product-page .commerce-thumbnails { gap: 3px; flex-wrap: nowrap; overflow-x: auto; }
  .commerce-product-page .commerce-thumbnails button { flex: 0 0 42px; height: 42px; }
  .commerce-product-page .commerce-product-summary { display: grid; align-self: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
  .commerce-product-page .commerce-product-summary .factory-mall-spec { margin: 0; }
  .commerce-product-page .commerce-product-summary h2 { margin: 0; font-size: clamp(1.16rem, 5.5vw, 1.5rem); font-weight: 700; line-height: 1.23; }
  .commerce-product-page .factory-mall-detail .factory-mall-price {
    color: #244e3b;
    font-size: clamp(1.3rem, 6.35vw, 1.6rem);
    font-weight: 730;
    font-variant-numeric: tabular-nums;
    line-height: 1.12;
  }
  .commerce-product-page :is(.commerce-delivery, .commerce-product-purchase) { grid-column: 1 / -1; }
  .commerce-product-page .commerce-delivery {
    gap: 4px;
    padding: 7px 9px;
    border: 1px solid #e8dfcd;
    border-radius: 8px;
    background: #f8f4ea;
    color: #524c3d;
    font-size: .78rem;
  }
  .commerce-product-page .commerce-delivery strong { font-size: inherit; text-align: end; }
  .commerce-product-page .commerce-delivery .commerce-total-row:last-child { margin: 0; padding-top: 4px; border-color: #e8dfcd; color: inherit; }
  .commerce-product-page .commerce-product-purchase {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--shop-line);
    border-radius: 8px;
    background: #eaf2e7;
  }
  .commerce-product-page .commerce-product-controls { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 8px; align-items: start; }
  .commerce-product-page .commerce-product-controls:has(select) { grid-template-columns: minmax(0, 1fr) 64px; }
  .commerce-product-page .commerce-product-controls :is(select, input) { width: 100%; min-height: 44px; }
  .commerce-product-page .commerce-product-stock { grid-column: 1 / -1; margin: 0; font-size: .75rem; }
  .commerce-product-page .commerce-product-controls:not(:has(select)) .commerce-product-stock { grid-column: auto; align-self: end; padding-bottom: 12px; }
  .commerce-store.commerce-product-page .factory-mall-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
  .commerce-product-page .factory-mall-links > :is(a, button) { padding-inline: 4px; font-size: .85rem; }
  .commerce-product-page .factory-mall-links > button { border-color: #a8bfb0; color: #284f3c; }
  .commerce-product-page .factory-mall-links > button:disabled { opacity: .55; }
  .commerce-product-page .commerce-product-purchase .commerce-feedback { margin: 0; padding: 5px 0 0; }
  .commerce-product-page .commerce-product-information .commerce-panel { padding: 13px; border-color: var(--shop-line); border-radius: 10px; }
}

@media (max-width: 340px) {
  #board-options .segments span { padding-inline: 2px; }
}
