/* Hallmark | pre-emit critique: P5 H5 E5 S5 R5 V4 */
/* Hallmark | component: compact mobile product directory | genre: modern-minimal | tone: restrained industrial | anchor: MOSINTER green | macrostructure: component-only */
/* Hallmark | component: product category disclosure | genre: modern-minimal | theme: existing MOSINTER tokens
 * states: default | hover | focus | active | disabled | loading | error | success
 * contrast: pass
 */
/* Shared presentation for all product category and category pagination pages. */
.mos-product-categories-page .mos-product-grid > [class*="col-"] {
  margin-bottom: 30px;
}

.mos-product-categories-page .mos-product-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.mos-product-categories-page .mos-product-card .wt-thum-bx {
  height: 260px;
  background: #f6f6f6;
}

.mos-product-categories-page .mos-product-card .wt-thum-bx img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
  background: #fff;
}

.mos-product-categories-page .mos-product-card .wt-info {
  height: calc(100% - 260px);
}

.mos-product-categories-page .mos-product-card .wt-info > div {
  display: flex;
  min-height: 220px;
  height: 100%;
  flex-direction: column;
}

.mos-product-categories-page .mos-product-card .wt-title {
  min-height: 54px;
  margin-bottom: 8px;
  font-size: 21px;
}

.mos-product-categories-page .mos-product-card .mos-cas {
  color: #608a35;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
}

.mos-product-categories-page .mos-product-card .mos-category {
  color: #777;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mos-product-categories-page .mos-product-card .mos-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13px;
  line-height: 1.65;
}

.mos-product-categories-page .mos-product-card .mos-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.mos-product-categories-page .mos-product-card .mos-card-actions a {
  font-size: 12px;
  font-weight: 700;
}

.mos-product-categories-page .mos-product-card .mos-card-actions a:first-child,
.mos-product-categories-page .mos-directory-sidebar .widget_services li.active > a {
  color: #608a35;
}

.mos-product-categories-page .mos-directory-sidebar {
  background: #f5f5f5;
}

.mos-product-categories-page .mos-directory-sidebar .widget-title {
  margin-bottom: 18px;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-parent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding-block: 0;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-parent > a {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  padding-block: var(--mos-header-space-xs);
  padding-inline-end: var(--mos-header-space-xs);
  overflow-wrap: anywhere;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-parent > .badge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: var(--mos-header-space-2xs);
  float: none;
  font-variant-numeric: tabular-nums;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--mos-header-control-radius);
  background: transparent;
  color: var(--mos-inquiry-ink);
  cursor: pointer;
  transition: background-color var(--mos-header-dur-short) var(--mos-header-ease-out),
              color var(--mos-header-dur-short) var(--mos-header-ease-out),
              transform var(--mos-header-dur-micro) var(--mos-header-ease-out);
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle i {
  transition: transform var(--mos-header-dur-short) var(--mos-header-ease-out);
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle:focus-visible {
  outline: 3px solid var(--mos-inquiry-focus);
  outline-offset: 1px;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle:active {
  transform: translateY(1px);
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle:disabled,
.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle[data-state="loading"] {
  cursor: wait;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle[data-state="error"] {
  outline: 2px dashed var(--mos-inquiry-error);
  outline-offset: -3px;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-toggle[data-state="success"] {
  color: var(--mos-inquiry-success);
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 var(--mos-header-space-xs);
  padding: var(--mos-header-space-xs) 0 var(--mos-header-space-2xs) var(--mos-header-space-sm);
  border-inline-start: 2px solid var(--mos-header-accent-strong);
  background: var(--mos-inquiry-surface);
  color: var(--mos-inquiry-ink);
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children[hidden] {
  display: none;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--mos-header-space-2xs) 0 var(--mos-header-space-xs);
  border: 0;
  line-height: 1.4;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children > li::before {
  display: none;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children a {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  padding-block: var(--mos-header-space-xs);
  color: var(--mos-inquiry-muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children .badge {
  padding-inline: var(--mos-header-space-xs) 0;
  color: var(--mos-inquiry-muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children li.active > a,
.mos-product-categories-page .mos-directory-sidebar .mos-category-children a:focus-visible {
  color: var(--mos-header-accent-deep);
  font-weight: 700;
}

.mos-product-categories-page .mos-directory-sidebar .mos-category-children a:focus-visible {
  outline: 3px solid var(--mos-inquiry-focus);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .mos-product-categories-page .mos-directory-sidebar .mos-category-toggle:hover {
    background: var(--mos-inquiry-accent-soft);
    color: var(--mos-header-accent-deep);
  }

  .mos-product-categories-page .mos-directory-sidebar .mos-category-children a:hover {
    color: var(--mos-header-accent-deep);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mos-product-categories-page .mos-directory-sidebar .mos-category-toggle,
  .mos-product-categories-page .mos-directory-sidebar .mos-category-toggle i {
    transition-duration: 1ms;
  }
}

.mos-product-categories-page .mos-directory-sidebar .form-control {
  height: 48px;
  border-radius: 0;
}

.mos-product-categories-page .mos-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
}

.mos-product-categories-page .mos-pagination a,
.mos-product-categories-page .mos-pagination span {
  display: flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
}

.mos-product-categories-page .mos-pagination a:hover,
.mos-product-categories-page .mos-pagination .current {
  border-color:var(--mos-green-action);
  background:var(--mos-green-action);
  color:var(--mos-green-ink);
}

.mos-product-categories-page .mos-page-status {
  margin: -8px 0 24px;
  color: #6f7378;
  font-size: 14px;
}

.mos-product-categories-page .mos-product-card img.is-image-missing {
  opacity: 0.2;
}

@media (min-width: 100rem) {
  .mos-product-categories-page .mos-product-card .wt-thum-bx {
    height: 280px;
  }

  .mos-product-categories-page .mos-product-card .wt-info {
    height: calc(100% - 280px);
  }

  .mos-product-categories-page .mos-product-grid > [class*="col-"] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (min-width: 140rem) {
  .mos-product-categories-page .mos-product-card .wt-thum-bx {
    height: 300px;
  }

  .mos-product-categories-page .mos-product-card .wt-info {
    height: calc(100% - 300px);
  }

  .mos-product-categories-page .mos-product-card .wt-title {
    font-size: 22px;
  }

  .mos-product-categories-page .mos-product-grid > [class*="col-"] {
    flex-basis: 20%;
    max-width: 20%;
  }
}

@media (max-width: 47.9375rem) {
  .mos-product-categories-page .mos-directory-sidebar .widget_services {
    scroll-margin-top: calc(var(--mos-header-stack-height, 7rem) + 1rem);
  }

  .mos-product-categories-page .mos-product-card .wt-thum-bx {
    height: clamp(12.5rem, 62vw, 15rem);
  }

  .mos-product-categories-page .mos-product-card .wt-thum-bx img {
    padding: .375rem;
  }

  .mos-product-categories-page .mos-product-card .wt-info {
    height: auto;
  }

  .mos-product-categories-page .mos-product-card .wt-info > div {
    min-height: 0;
    height: auto;
    padding: 1rem !important;
  }

  .mos-product-categories-page .mos-product-card .wt-title {
    min-height: 0;
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .mos-product-categories-page .mos-product-card .mos-summary {
    margin-block: .625rem .25rem;
    -webkit-line-clamp: 4;
    font-size: .8125rem;
    line-height: 1.55;
  }

  .mos-product-categories-page .mos-product-card .mos-summary.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .mos-product-categories-page .mos-product-card .mos-card-actions {
    margin-block-start: .75rem;
    padding-block-start: .75rem;
  }

  .mos-product-categories-page .mos-product-grid > [class*="col-"] {
    margin-block-end: 1.25rem;
  }
}

/* Hallmark | component: mobile category return + summary disclosure | genre: modern-minimal
 * states: default | hover | focus | active | disabled | loading | error | success
 */
.mos-summary-toggle,
.mos-category-shortcut {
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--mos-header-accent-strong);
  border-radius: var(--mos-header-control-radius);
  background: var(--mos-inquiry-surface);
  color: var(--mos-header-accent-deep);
  font: 700 .75rem/1.2 var(--mos-header-font-body);
  transition: background-color var(--mos-header-dur-short) var(--mos-header-ease-out), color var(--mos-header-dur-short) var(--mos-header-ease-out), transform var(--mos-header-dur-micro) var(--mos-header-ease-out);
}

.mos-summary-toggle {
  display: none;
  width: max-content;
  margin: .125rem 0 .5rem;
  padding: .5rem .75rem;
}

.mos-category-shortcut {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 990;
  display: inline-flex;
  gap: .5rem;
  max-width: calc(100% - 5.5rem);
  padding: .625rem .875rem;
  background: var(--mos-header-surface);
  color: var(--mos-header-ink);
  box-shadow: 0 .75rem 2rem var(--mos-header-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  pointer-events: none;
}

.mos-category-shortcut.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mos-summary-toggle:focus-visible,
.mos-category-shortcut:focus-visible {
  outline: 3px solid var(--mos-header-focus);
  outline-offset: 2px;
}

.mos-summary-toggle:active,
.mos-category-shortcut:active {
  transform: translateY(1px);
}

.mos-summary-toggle:disabled,
.mos-category-shortcut:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.mos-summary-toggle[data-state="loading"],
.mos-category-shortcut[data-state="loading"] { cursor: wait; }
.mos-summary-toggle[data-state="error"],
.mos-category-shortcut[data-state="error"] { border-style: dashed; border-color: var(--mos-inquiry-error); }
.mos-summary-toggle[data-state="success"],
.mos-category-shortcut[data-state="success"] { border-color: var(--mos-inquiry-success); }

@media (max-width: 47.9375rem) {
  .mos-product-categories-page .mos-summary-toggle { display: inline-flex; }
}

@media (hover: hover) and (pointer: fine) {
  .mos-summary-toggle:hover,
  .mos-category-shortcut:hover {
    background: var(--mos-header-accent-deep);
    color: var(--mos-header-accent-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mos-summary-toggle,
  .mos-category-shortcut {
    transition-duration: 1ms;
  }
}

/* Compact catalogue search shared by English product category pages. */
.mos-category-search {
  display:grid;
  grid-template-columns:minmax(13rem,.7fr) minmax(20rem,1.3fr);
  align-items:center;
  gap:clamp(1rem,2.5vw,2rem);
  margin:0 0 clamp(2rem,4vw,3rem);
  padding:clamp(1rem,2.2vw,1.5rem);
  border:1px solid rgba(28,93,45,.14);
  border-inline-start:4px solid var(--mos-header-accent-strong,#38aa48);
  border-radius:.5rem;
  background:#f7faf7;
  box-shadow:0 .65rem 1.8rem rgba(20,53,31,.07);
}

.mos-category-search-copy strong {
  display:block;
  margin-block-end:.25rem;
  color:#173522;
  font-size:clamp(1rem,1.35vw,1.25rem);
  line-height:1.25;
}

.mos-category-search-copy span {
  display:block;
  color:#5d6d62;
  font-size:.875rem;
  line-height:1.5;
}

.mos-category-search-form {
  display:flex;
  align-items:stretch;
  min-width:0;
}

.mos-category-search-field {
  position:relative;
  display:block;
  flex:1 1 auto;
  min-width:0;
  margin:0;
}

.mos-category-search-field > i {
  position:absolute;
  top:50%;
  left:1rem;
  color:#64736a;
  transform:translateY(-50%);
  pointer-events:none;
}

.mos-category-search-field input {
  width:100%;
  height:3.25rem;
  padding:0 1rem 0 2.75rem;
  border:1px solid #cbd7ce;
  border-inline-end:0;
  border-radius:.375rem 0 0 .375rem;
  background:#fff;
  color:#172b1e;
  font:500 .9375rem/1.2 "Poppins",sans-serif;
  outline:0;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.mos-category-search-field input::placeholder { color:#77847b; opacity:1; }
.mos-category-search-field input:focus {
  position:relative;
  z-index:1;
  border-color:var(--mos-header-accent-strong,#38aa48);
  box-shadow:0 0 0 3px rgba(56,170,72,.15);
}

.mos-category-search-form button {
  flex:0 0 auto;
  min-width:7.25rem;
  height:3.25rem;
  padding:0 1.25rem;
  border:1px solid var(--mos-header-accent-deep,#247a34);
  border-radius:0 .375rem .375rem 0;
  background:var(--mos-header-accent-deep,#247a34);
  color:#fff;
  font:700 .875rem/1 "Poppins",sans-serif;
  letter-spacing:.025em;
  cursor:pointer;
  transition:background-color .2s ease,transform .15s ease;
}

.mos-category-search-form button:focus-visible {
  outline:3px solid rgba(56,170,72,.3);
  outline-offset:2px;
}

.mos-category-search-form button:active { transform:translateY(1px); }

@media (hover:hover) and (pointer:fine) {
  .mos-category-search-form button:hover { background:#1c672b; }
}

@media (max-width:47.9375rem) {
  .mos-category-search {
    grid-template-columns:1fr;
    gap:.875rem;
    margin-block-end:1.75rem;
  }

  .mos-category-search-form button {
    min-width:3.5rem;
    padding-inline:1rem;
  }

  .mos-category-search-form button span {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
  }
}
