/* Promitey test storefront: compact catalogue table. */
.pm-catalog {
  --pm-ink: #253340;
  --pm-muted: #7e8992;
  --pm-line: #e5e8eb;
  --pm-gold: #d2ab66;
  color: var(--pm-ink);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pm-catalog * { box-sizing: border-box; }
.pm-catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #75808a;
}
.pm-catalog-top > span { display: flex; align-items: center; gap: 7px; }
.pm-catalog-top i,
.pm-stock i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2b916a; }
.pm-catalog-top a { color: #48545e; font-weight: 500; text-decoration: none !important; }
.pm-catalog-top a:hover { color: #93733c; }
.pm-catalog-top a span { color: #a68243; margin-left: 7px; }
.pm-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #dfe4e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px #25334004;
  scrollbar-color: #cdd3d8 #f2f4f5;
  scrollbar-width: thin;
}
.pm-catalog .pm-table { display: block !important; min-width: 950px; width: 100%; background: #fff; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.pm-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.4fr) minmax(64px, .48fr) minmax(96px, .64fr) minmax(72px, .48fr) minmax(52px, .34fr) repeat(3, minmax(44px, .29fr)) minmax(100px, .68fr) minmax(190px, 1.27fr);
  gap: 0;
  align-items: stretch;
}
.pm-row > [role] { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 13px 6px; }
.pm-head { background: #f4f5f5; color: #4f5b65; font-size: 12.5px; font-weight: 600; line-height: 1.45; border-bottom: 1px solid #dde2e5; }
.pm-head > span { padding: 14px 5px; text-align: center; }
.pm-head > span:first-child { text-align: left; padding-left: 16px; }
.pm-head small { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; color: #8a939b; line-height: 1.4; }
.pm-head .pm-buy-head { flex-direction: row; justify-content: space-between; align-items: center; padding-left: 9px; padding-right: 16px; gap: 6px; font-size: 12px; }
.pm-rows { display: block; }
.pm-product { border-bottom: 1px solid #edf0f2; position: relative; min-height: 90px; transition: background-color .16s ease; }
.pm-product:nth-child(even) { background: #fcfcfc; }
.pm-product:last-child { border-bottom: 0; }
.pm-product:hover,
.pm-product:focus-within { background: #fbf8f0; }
.pm-product .pm-name-cell { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 13px 8px 13px 14px; }
.pm-thumb { display: block; flex: 0 0 48px; height: 48px; background: #fff; border: 1px solid #e9edf0; border-radius: 8px; padding: 3px; overflow: hidden; }
.pm-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pm-name-content { min-width: 0; flex: 1; }
.pm-catalog .pm-product-name { display: block; font-size: 12.5px; line-height: 1.45; font-weight: 500; color: #263743; text-decoration: none; }
.pm-product-name:hover { color: #9b773b !important; }
.pm-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.pm-sku { color: #8a949d; font: 10.5px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }
.pm-actions { display: flex; gap: 1px; }
.pm-catalog .pm-actions button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 4px; min-height: 0; border: 0; border-radius: 5px; box-shadow: none; color: #a0abb4; background: transparent; }
.pm-catalog .pm-actions button:hover,
.pm-catalog .pm-actions .btn-active { background: #f5ebd5; color: #a07b3d; }
.pm-catalog .pm-spec { text-align: center; font-size: 12px; line-height: 1.45; align-items: center; overflow-wrap: anywhere; color: #56616b; }
.pm-catalog .pm-brand { font-size: 11px; letter-spacing: .025em; font-weight: 500; color: #3a4752; }
.pm-catalog .pm-handed { font-size: 11.5px; color: #78828b; }
.pm-section,
.pm-dim { font-variant-numeric: tabular-nums; }
.pm-catalog .pm-section,
.pm-catalog .pm-dim { font-weight: 500; color: #45535f; }
.pm-missing { color: #bdc5cb; font-weight: 400; cursor: help; }
.pm-catalog .pm-price-cell { text-align: right; align-items: flex-end; padding-right: 12px; line-height: 1.4; }
.pm-price-cell strong { font-size: 14px; font-weight: 600; color: #253340; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pm-price-cell small { font-size: 9px; color: #98a1a9; margin-top: 4px; }
.pm-price-cell del { font-size: 10px; color: #98a0a6; }
.pm-catalog .pm-purchase { padding-left: 5px; padding-right: 13px; align-items: stretch; }
.pm-buy { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 !important; }
.pm-qty { display: grid; grid-template-columns: 25px 32px 25px; border: 1px solid #dce2e6; border-radius: 7px; background: #fff; overflow: hidden; height: 36px; }
.pm-qty button { border: 0; background: transparent; color: #72808b; font-size: 16px; font-family: inherit; padding: 0; line-height: 1; cursor: pointer; }
.pm-qty button:hover:not(:disabled) { background: #f4f5f5; color: #253340; }
.pm-qty button:disabled { color: #c8cdd1; cursor: default; }
.pm-qty input[type=number] { width: 32px; min-width: 0; height: 34px; border: 0 !important; border-radius: 0; padding: 0 !important; text-align: center; box-shadow: none !important; outline-offset: -2px; background: transparent; font-family: inherit; font-size: 12px; color: #354552; appearance: textfield; -moz-appearance: textfield; }
.pm-qty input::-webkit-inner-spin-button,
.pm-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pm-catalog .pm-cart { display: flex !important; justify-content: center; align-items: center; min-height: 36px; height: auto; min-width: 0; width: 100%; padding: 8px 4px; border: 0; border-radius: 7px; background: var(--pm-gold); color: #253340; font-size: 10.5px; font-weight: 500; line-height: 1.25; box-shadow: none; white-space: normal; }
.pm-catalog .pm-cart:hover { background: #bd9654; color: #253340; }
.pm-catalog .product-added .pm-cart { background: #e8f2ec; color: #387556; }
.pm-catalog .pm-cart:disabled { background: #eef1f3; color: #929da6; cursor: default; }
.pm-stock-wrap { position: relative; text-align: left; }
.pm-catalog .pm-stock { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; gap: 5px; width: auto; height: auto; min-width: 0; min-height: 0; margin-top: 7px; padding: 2px 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #4d8169; font-family: inherit; font-size: 10px; font-weight: 400; line-height: 16px; text-align: left; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; }
.pm-catalog .pm-stock:hover,
.pm-catalog .pm-stock[aria-expanded=true] { color: #287153; background: transparent; }
.pm-catalog .pm-stock i { flex: 0 0 5px; width: 5px; height: 5px; margin: 0; }
/* The chevron has a fixed box; theme button/span styles cannot shift it on hover. */
.pm-catalog .pm-stock > span { position: relative; display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; margin: 0 0 0 1px; padding: 0; inset: auto; font-size: 0; line-height: 0; color: currentColor; transform: none; }
.pm-catalog .pm-stock > span::before { content: ''; position: absolute; top: 4px; left: 2px; width: 8px; height: 5px; background: currentColor; clip-path: polygon(0 0, 50% 65%, 100% 0, 100% 35%, 50% 100%, 0 35%); transition: transform .16s ease; }
.pm-catalog .pm-stock[aria-expanded=true] > span::before { transform: rotate(180deg); }
.pm-catalog .pm-stock-empty { color: #939ca3; }
.pm-catalog .pm-stock-empty i { background: #b1b9be; }
.pm-stock-pop { position: fixed; z-index: 10050; width: 292px; background: #fff; border: 1px solid #dde4e8; border-radius: 12px; padding: 15px 16px; box-shadow: 0 12px 36px #25334021; text-align: left; line-height: 1.5; font-family: inherit; color: #354552; }
.pm-stock-pop[hidden] { display: none !important; }
.pm-stock-pop > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; font-size: 12px; }
.pm-stock-pop > div.pm-stock-title { margin: 0 0 13px; font-size: 13px; font-weight: 500; border-bottom: 1px solid #edf0f3; padding-bottom: 10px; }
.pm-stock-pop b { font-size: 12px; font-weight: 500; white-space: nowrap; }
.pm-stock-pop small { display: block; border-top: 1px solid #edf0f3; padding-top: 10px; font-size: 10px; color: #98a1a9; line-height: 1.5; }
.pm-stock-close { border: 0; background: none; color: #8293a0; font-size: 21px; line-height: 20px; cursor: pointer; padding: 0 3px; }
.pm-table-note { font-size: 10px; color: #929da6; margin: 11px 1px 18px !important; }
.pm-filter-result { order: -1; }
.pm-filter-result:empty { display: none; }
.pm-catalog button:focus-visible,
.pm-catalog a:focus-visible,
.pm-table-scroll:focus-visible { outline: 2px solid #b8914e; outline-offset: 3px; }
.pm-catalog input:focus-visible { outline: 2px solid #b8914e !important; outline-offset: -2px; }
@media (min-width: 1550px) {
  .pm-head { font-size: 13px; }
  .pm-head .pm-buy-head { font-size: 12.5px; }
  .pm-product { min-height: 88px; }
  .pm-catalog .pm-product-name { font-size: 13px; }
  .pm-catalog .pm-spec { font-size: 12.5px; }
  .pm-catalog .pm-brand { font-size: 11.5px; }
  .pm-catalog .pm-handed { font-size: 12px; }
  .pm-buy { grid-template-columns: 88px minmax(0, 1fr); gap: 9px; }
  .pm-qty { grid-template-columns: 27px 32px 27px; }
  .pm-catalog .pm-cart { font-size: 11px; }
  .pm-price-cell strong { font-size: 15px; }
}
@media (max-width: 767px) {
  .pm-catalog-top { font-size: 10px; gap: 8px; }
  .pm-table-scroll { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .pm-catalog .pm-table { min-width: 0; background: transparent; }
  .pm-head { display: none !important; }
  .pm-product { grid-template-columns: repeat(12, minmax(0, 1fr)); border: 1px solid var(--pm-line) !important; border-radius: 12px; margin-bottom: 12px; background: #fff; padding: 4px 12px 12px; }
  .pm-product:nth-child(even) { background: #fff; }
  .pm-product:hover,
  .pm-product:focus-within { background: #fbf8f0; }
  .pm-row > [role] { padding: 8px 4px; }
  .pm-product .pm-name-cell { grid-column: 1/-1; padding: 10px 0 12px; gap: 12px; border-bottom: 1px solid #edf0f2; }
  .pm-thumb { flex-basis: 52px; height: 52px; }
  .pm-catalog .pm-product-name { font-size: 13px; }
  .pm-actions button { width: 29px !important; height: 28px !important; }
  .pm-catalog .pm-spec { grid-column: span 4; align-items: flex-start; text-align: left; font-size: 12px !important; padding-top: 12px; }
  .pm-spec::before { content: attr(data-label); display: block; font-size: 9px; font-weight: 400; color: #8a97a2; margin-bottom: 3px; }
  .pm-catalog .pm-dim { grid-column: span 3; padding-top: 7px; padding-bottom: 12px; }
  .pm-product .pm-price-cell { grid-column: span 4; align-items: flex-start; text-align: left; border-top: 1px solid #edf0f2; padding: 14px 0 0; }
  .pm-price-cell strong { font-size: 15px; }
  .pm-price-cell small { font-size: 10px; }
  .pm-product .pm-purchase { grid-column: span 8; padding: 14px 0 0 5px; border-top: 1px solid #edf0f2; }
  .pm-buy { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .pm-qty { grid-template-columns: 28px 38px 28px; height: 38px; }
  .pm-qty input[type=number] { height: 36px; width: 38px; }
  .pm-catalog .pm-cart { min-height: 38px; font-size: 11px; }
  .pm-catalog .pm-stock { font-size: 10px; margin-top: 8px; }
  .pm-table-note { font-size: 10px; }
  .pm-stock-pop { width: min(292px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-product,
  .pm-catalog .pm-stock > span::before { transition: none; }
}


/* Eight compact subcategory cards per desktop row in the test theme. */
@media (min-width: 1024px) {
  .pm-category-grid-eight .categories-sm__wrap {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
  }
  .pm-category-grid-eight .categories-sm__name { font-size: 13px; line-height: 1.4; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .pm-category-grid-eight .categories-sm__wrap { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Native stock notification replaces the purchase controls in every catalogue view. */
.pm-catalog-notice { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.pm-catalog-notice > .pnotice__buttonView { flex: 1 1 auto; min-width: 0; max-width: 100%; width: 100%; height: auto; min-height: 40px; margin: 0; padding: 9px 12px; white-space: normal; line-height: 1.3; font-size: 13px; }
.pm-catalog .pm-stock-notice > .pnotice__buttonView { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: var(--pm-gold); color: var(--pm-ink); padding: 9px 8px; font-size: 11.5px; font-weight: 500; box-shadow: none; }
.pm-catalog .pm-stock-notice > .pnotice__buttonView:hover { background: #bd9654; color: var(--pm-ink); }
