body.woocommerce-shop,
  body.post-type-archive-product,
  body.tax-product_cat,
  body.search-results.post-type-archive-product {
    background: var(--plc-paper, #f9f7f7);
  }

  body.woocommerce-shop #secondary,
  body.post-type-archive-product #secondary,
  body.tax-product_cat #secondary,
  body.woocommerce-shop .widget-area,
  body.post-type-archive-product .widget-area,
  body.tax-product_cat .widget-area {
    display: none !important;
  }

  body.woocommerce-shop .content-area,
  body.post-type-archive-product .content-area,
  body.tax-product_cat .content-area,
  body.woocommerce-shop #primary,
  body.post-type-archive-product #primary,
  body.tax-product_cat #primary {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
  }

  body.woocommerce-shop main,
  body.post-type-archive-product main,
  body.tax-product_cat main {
    width: min(calc(100% - 36px), 1360px);
    margin-inline: auto;
    padding: 28px 0 74px;
    color: var(--plc-navy, #112d4e);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .woocommerce-breadcrumb {
    margin: 0 0 12px !important;
    color: rgba(17, 45, 78, .56) !important;
    font-size: 12px !important;
  }

  .woocommerce-breadcrumb a {
    color: var(--plc-blue, #3f72af) !important;
    text-decoration: none;
    font-weight: 500;
  }

  .woocommerce-products-header {
    margin: 0 0 24px;
    padding: 19px 24px;
    border: 1px solid rgba(17, 45, 78, .1);
    border-radius: 12px;
    background: linear-gradient(110deg, #fff 0%, var(--plc-mist, #dbe2ef) 135%);
  }

  .woocommerce-products-header::after { display: none !important; }

  .woocommerce-products-header__title.page-title {
    margin: 0;
    color: var(--plc-navy, #112d4e);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.15;
  }

  .term-description {
    max-width: 820px;
    margin: 8px 0 0;
    color: rgba(17, 45, 78, .7);
    font-size: 14px;
    line-height: 1.65;
  }

  .term-description p:last-child { margin-bottom: 0; }

  /* Full-width cart notice: no cropped sentence or detached button. */
  .woocommerce-notices-wrapper {
    width: 100%;
    max-width: 100%;
    clear: both;
    margin: 0 0 20px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .woocommerce .woocommerce-message,
  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-error {
    width: 100%;
    min-height: 64px;
    display: block !important;
    margin: 0 0 18px !important;
    padding: 14px 16px 14px 20px !important;
    overflow: hidden;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    border: 1px solid rgba(63, 114, 175, .16) !important;
    border-left: 4px solid var(--plc-blue, #3f72af) !important;
    border-radius: 10px;
    color: var(--plc-navy, #112d4e);
    background: var(--plc-mist, #dbe2ef);
    font-size: 14px;
    line-height: 1.45;
  }

  .woocommerce .woocommerce-message::before,
  .woocommerce .woocommerce-info::before,
  .woocommerce .woocommerce-error::before { display: none; }

  .woocommerce .woocommerce-message .button,
  .woocommerce .woocommerce-info .button {
    min-height: 39px;
    float: right !important;
    margin: -2px 0 -2px 16px !important;
    padding: 0 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: var(--plc-blue, #3f72af) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .plcmro-catalog-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
    clear: both;
  }

  .plcmro-catalog-sidebar {
    position: sticky;
    top: 178px;
    z-index: 4;
  }

  body.admin-bar .plcmro-catalog-sidebar { top: 210px; }

  /* Radwell-style narrow product-search panel, adapted to the PLC MRO palette. */
  .plcmro-filter-panel {
    overflow: hidden;
    border: 1px solid rgba(17, 45, 78, .15);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 45, 78, .09);
  }

  .plcmro-filter-panel summary {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 6px;
    color: var(--plc-navy, #112d4e);
    background: #fff;
    cursor: default;
    list-style: none;
  }

  .plcmro-filter-panel summary::-webkit-details-marker { display: none; }

  .plcmro-filter-panel summary strong {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: .98;
  }

  .plcmro-filter-panel summary svg { display: none; width: 18px; height: 18px; }

  .plcmro-catalog-filter {
    display: grid;
    gap: 16px;
    padding: 10px 14px 16px;
  }

  .plcmro-line-field,
  .plcmro-part-field {
    min-width: 0;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .plcmro-line-field > span,
  .plcmro-part-field legend {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--plc-navy, #112d4e);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }

  .plcmro-catalog-filter input[type="text"],
  .plcmro-catalog-filter input[type="search"],
  .plcmro-catalog-filter select {
    width: 100%;
    height: 31px;
    margin: 0;
    padding: 0 23px 0 2px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid var(--plc-blue, #3f72af);
    border-radius: 0;
    outline: 0;
    color: var(--plc-navy, #112d4e);
    background-color: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
  }

  .plcmro-catalog-filter select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 25px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23112D4E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 3px center !important;
    background-size: 12px 8px !important;
    text-overflow: ellipsis;
  }

  .plcmro-catalog-filter input:focus,
  .plcmro-catalog-filter select:focus {
    border-bottom-width: 2px;
    border-bottom-color: var(--plc-navy, #112d4e);
    box-shadow: none;
  }

  .plcmro-match-options {
    display: grid;
    gap: 5px;
    margin-top: 2px;
  }

  .plcmro-match-options label {
    display: grid;
    grid-template-columns: 14px 1fr;
    align-items: center;
    gap: 6px;
    color: rgba(17, 45, 78, .86);
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
  }

  .plcmro-match-options input,
  .plcmro-stock-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .plcmro-match-options label > span {
    width: 13px;
    height: 13px;
    display: grid;
    place-items: center;
    border: 1px solid var(--plc-blue, #3f72af);
    border-radius: 50%;
    background: #fff;
  }

  .plcmro-match-options input:checked + span::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--plc-blue, #3f72af);
  }

  .plcmro-match-options input:focus-visible + span,
  .plcmro-stock-check input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(63, 114, 175, .16);
  }

  .plcmro-stock-check {
    display: grid;
    grid-template-columns: 15px 1fr;
    align-items: center;
    gap: 7px;
    color: rgba(17, 45, 78, .86);
    font-size: 11px;
    cursor: pointer;
  }

  .plcmro-stock-check > span {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(17, 45, 78, .38);
    border-radius: 2px;
    background: #fff;
  }

  .plcmro-stock-check input:checked + span {
    border-color: var(--plc-blue, #3f72af);
    background: var(--plc-blue, #3f72af);
  }

  .plcmro-stock-check input:checked + span::after {
    content: "";
    width: 7px;
    height: 4px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg) translateY(-1px);
  }

  .plcmro-filter-submit {
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    display: block;
    margin: 1px 0 0 !important;
    padding: 0 14px;
    box-sizing: border-box;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--plc-blue, #3f72af);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
  }

  .plcmro-filter-submit:hover {
    background: var(--plc-navy, #112d4e);
    transform: translateY(-1px);
  }

  .plcmro-clear-filters {
    justify-self: center;
    margin-top: -8px;
    color: rgba(17, 45, 78, .62);
    font-size: 10px;
    text-decoration: none;
  }

  .plcmro-clear-filters:hover { color: var(--plc-blue, #3f72af); }

  .plcmro-catalog-results { min-width: 0; }

  .plcmro-catalog-results .woocommerce-result-count {
    margin: 10px 0 18px;
    color: rgba(17, 45, 78, .68);
    font-size: 12px;
    line-height: 38px;
  }

  .plcmro-catalog-results .woocommerce-ordering { margin: 0 0 18px; }

  .plcmro-catalog-results .woocommerce-ordering select {
    min-height: 38px;
    padding: 0 34px 0 11px;
    border: 1px solid rgba(17, 45, 78, .14);
    border-radius: 6px;
    color: var(--plc-navy, #112d4e);
    background-color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
  }

  .plcmro-catalog-results ul.products {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px !important;
    clear: both;
    margin: 0 !important;
    padding: 0 !important;
  }

  .plcmro-catalog-results ul.products::before,
  .plcmro-catalog-results ul.products::after { display: none !important; }

  .plcmro-catalog-results ul.products li.product {
    width: auto !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 17px !important;
    overflow: hidden;
    border: 1px solid rgba(17, 45, 78, .12);
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(17, 45, 78, .045);
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
  }

  .plcmro-catalog-results ul.products li.product:hover {
    border-color: rgba(63, 114, 175, .38);
    box-shadow: 0 12px 28px rgba(17, 45, 78, .09);
    transform: translateY(-2px);
  }

  .plcmro-catalog-results ul.products li.product > a.woocommerce-LoopProduct-link {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
    background: transparent !important;
    text-decoration: none;
    box-shadow: none !important;
  }

  /* One image surface only. This removes theme wrappers, padding and the second white box. */
  .plcmro-catalog-results ul.products li.product .astra-shop-thumbnail-wrap,
  .plcmro-catalog-results ul.products li.product .ct-media-container,
  .plcmro-catalog-results ul.products li.product .product-image,
  .plcmro-catalog-results ul.products li.product .product-image-wrap,
  .plcmro-catalog-results ul.products li.product .woocommerce-loop-product__link > span:first-child {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .plcmro-catalog-results ul.products li.product img {
    width: 100% !important;
    height: 205px !important;
    display: block;
    margin: 0 0 15px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain;
    background: #fff !important;
    box-shadow: none !important;
  }

  .plcmro-catalog-results .woocommerce-loop-product__title {
    min-height: 44px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--plc-navy, #112d4e) !important;
    font-size: 14px !important;
    font-weight: 560 !important;
    line-height: 1.52 !important;
  }

  .plcmro-loop-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin: 0 0 10px;
  }

  .plcmro-loop-sku {
    color: rgba(17, 45, 78, .57);
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .plcmro-loop-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    white-space: nowrap;
  }

  .plcmro-loop-stock i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }

  .plcmro-loop-stock.is-in-stock { color: #2d6b57; }
  .plcmro-loop-stock.is-out-of-stock { color: #87505a; }

  .plcmro-catalog-results ul.products li.product .price {
    margin: auto 0 12px !important;
    color: var(--plc-blue, #3f72af) !important;
    font-size: 17px !important;
    font-weight: 650 !important;
  }

  /* Before adding: one solid action. After adding: hide it and show one solid View cart action. */
  .plcmro-catalog-results ul.products li.product .button,
  .plcmro-catalog-results ul.products li.product .added_to_cart {
    width: 100%;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: var(--plc-blue, #3f72af) !important;
    box-shadow: none !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 41px !important;
    transition: background 160ms ease, transform 160ms ease;
  }

  .plcmro-catalog-results ul.products li.product .button { display: inline-flex; }
  .plcmro-catalog-results ul.products li.product .button.added { display: none !important; }
  .plcmro-catalog-results ul.products li.product .added_to_cart { display: inline-flex; }

  .plcmro-catalog-results ul.products li.product .button:hover,
  .plcmro-catalog-results ul.products li.product .added_to_cart:hover {
    color: #fff !important;
    background: var(--plc-navy, #112d4e) !important;
    transform: translateY(-1px);
  }

  .plcmro-catalog-results ul.products li.product .button::after { display: none !important; }

  .plcmro-catalog-results ul.products li.product .onsale {
    min-width: auto;
    min-height: auto;
    top: 17px;
    left: 17px;
    right: auto;
    margin: 0;
    padding: 5px 8px;
    border-radius: 4px;
    color: #fff;
    background: var(--plc-blue, #3f72af);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
  }

  .woocommerce nav.woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
  }

  .woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 5px;
    margin: 0;
    border: 0;
  }

  .woocommerce nav.woocommerce-pagination ul li { border: 0; }

  .woocommerce nav.woocommerce-pagination ul li a,
  .woocommerce nav.woocommerce-pagination ul li span {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(17, 45, 78, .13);
    border-radius: 6px;
    color: var(--plc-navy, #112d4e);
    background: #fff;
    font-size: 12px;
  }

  .woocommerce nav.woocommerce-pagination ul li span.current,
  .woocommerce nav.woocommerce-pagination ul li a:hover {
    color: #fff;
    background: var(--plc-blue, #3f72af);
  }

  @media (max-width: 1080px) {
    .plcmro-catalog-results ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 780px) {
    body.woocommerce-shop main,
    body.post-type-archive-product main,
    body.tax-product_cat main {
      width: min(calc(100% - 26px), 1360px);
      padding-top: 22px;
    }

    .plcmro-catalog-layout { grid-template-columns: 1fr; gap: 18px; }
    .plcmro-catalog-sidebar { position: static; }

    .plcmro-filter-panel summary {
      min-height: 56px;
      padding: 11px 14px;
      cursor: pointer;
    }

    .plcmro-filter-panel summary strong { font-size: 18px; line-height: 1.05; }
    .plcmro-filter-panel summary strong br { display: none; }
    .plcmro-filter-panel summary svg { display: block; transition: transform 160ms ease; }
    .plcmro-filter-panel[open] summary svg { transform: rotate(180deg); }
    .plcmro-catalog-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; }
    .plcmro-part-field { grid-row: span 2; }
    .plcmro-stock-check, .plcmro-filter-submit, .plcmro-clear-filters { grid-column: 1 / -1; }
  }

  @media (max-width: 540px) {
    .woocommerce-products-header { padding: 17px 18px; }
    .woocommerce-products-header__title.page-title { font-size: 28px; }
    .plcmro-catalog-filter { grid-template-columns: 1fr; }
    .plcmro-part-field { grid-row: auto; }
    .plcmro-stock-check, .plcmro-filter-submit, .plcmro-clear-filters { grid-column: auto; }
    .plcmro-catalog-results ul.products { grid-template-columns: 1fr; }
    .plcmro-catalog-results ul.products li.product img { height: 225px !important; }
    .plcmro-catalog-results .woocommerce-result-count,
    .plcmro-catalog-results .woocommerce-ordering { float: none; width: 100%; }
    .plcmro-catalog-results .woocommerce-ordering select { width: 100%; }

    .woocommerce .woocommerce-message,
    .woocommerce .woocommerce-info,
    .woocommerce .woocommerce-error {
      padding: 15px !important;
    }

    .woocommerce .woocommerce-message .button,
    .woocommerce .woocommerce-info .button {
      width: 100%;
      float: none !important;
      margin: 0 0 12px !important;
    }
  }

.plcmro-catalog-filter {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .plcmro-catalog-filter select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 25px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23112D4E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 3px center !important;
    background-size: 12px 8px !important;
  }

  .plcmro-line-field::before,
  .plcmro-line-field::after {
    display: none !important;
    content: none !important;
  }

  .plcmro-filter-submit {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 1px 0 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
  }

  .woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .woocommerce .woocommerce-message,
  .woocommerce .woocommerce-info,
  .woocommerce .woocommerce-error {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  .woocommerce .woocommerce-message .button,
  .woocommerce .woocommerce-info .button {
    float: right !important;
    width: auto !important;
    margin: -2px 0 -2px 16px !important;
  }

  @media (max-width: 540px) {
    .woocommerce .woocommerce-message .button,
    .woocommerce .woocommerce-info .button {
      width: 100% !important;
      float: none !important;
      margin: 0 0 12px !important;
    }
  }

