/* PRAASIA Auction - shared category panel appearance and capped scroll.
   This one stylesheet is used by index.php and auction_list.php. */
body.pah-auction-page { --pac-max-height: 420px; }
body.pah-auction-page .pac-panel {
  border:1px solid #c9a16b;border-radius:15px;background:#fff7e9;
  box-shadow:0 9px 25px #4c2b1414;overflow:hidden;
}
body.pah-auction-page .pac-heading {
  display:flex;align-items:center;gap:9px;min-height:45px;
  padding:11px 12px;margin:0!important;
  background:linear-gradient(105deg,#472713,#6a401e);color:#ffe3ac;
  font-size:14px;font-weight:800;line-height:1.35;
}
body.pah-auction-page .pac-heading .section-title {color:#ffe3ac;font-size:14px!important;margin:0}
body.pah-auction-page .pac-category-list {
  display:grid;grid-template-columns:minmax(0,1fr);gap:5px;
  padding:9px;margin:0;min-width:0;min-height:0;
  max-height:min(47dvh,var(--pac-max-height));
  height:auto;flex:0 1 auto;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bf9254 #f6e6cb;
  scroll-snap-type:none;
}
body.pah-auction-page .pac-category-link {
  display:flex;align-items:center;justify-content:flex-start;text-align:left;
  width:100%;min-width:0;min-height:38px;gap:8px;
  padding:6px 8px;border:1px solid #ead6b7;border-radius:9px;
  background:#fffcf7;color:#563820;box-shadow:none;
  font:700 11.5px/1.4 'Noto Sans Thai',Sarabun,sans-serif;
  text-decoration:none;overflow-wrap:anywhere;
}
body.pah-auction-page .pac-category-link:hover,
body.pah-auction-page .pac-category-link.is-current {background:#fff0d5;border-color:#c99047;color:#532e13}
body.pah-auction-page .pac-category-link:focus-visible {outline:3px solid #b8883e;outline-offset:1px}
body.pah-auction-page .pac-category-icon {
  flex:none;width:26px;height:27px;display:grid;place-items:center;
  border-radius:7px;background:#f1e0c2;color:#9b6524;
  border:1px solid #dfc6a0;font-size:13px;
}
body.pah-auction-page .pac-category-icon img {display:block;width:100%;height:100%;object-fit:contain}
body.pah-auction-page .pac-category-name {flex:1;min-width:0;overflow-wrap:anywhere}
/* The home sidebar used to stretch to viewport height, which looked oversized
   next to the short list sidebar. The shared panel is content-sized instead. */
@media (min-width:900px) {
  body.pah-auction-home-page .auction-home-stage > .auction-category-sidebar {
    align-self:start;height:auto;min-height:0;overflow:visible;
  }
  body.pah-auction-home-page .auction-category-contents,
  body.pah-auction-home-page .auction-category-sidebar .category-wrap {
    height:auto;min-height:0;display:block;
  }
  body.pah-auction-home-page .auction-category-sidebar .category-grid.pac-category-list {
    flex:0 1 auto;max-height:min(47dvh,var(--pac-max-height));height:auto;
  }
}
@media (max-width:760px) {
  body.pah-auction-page {--pac-max-height:300px;}
  body.pah-auction-page .pac-category-list {max-height:min(45dvh,var(--pac-max-height));grid-template-columns:minmax(0,1fr);}
  body.pah-auction-page .pac-category-link {min-height:36px;font-size:11px}
  body.pah-auction-page .pac-heading {min-height:42px;font-size:12px;padding:10px 12px}
}
@media (prefers-reduced-motion:reduce) {body.pah-auction-page .pac-category-list {scroll-behavior:auto}}
/* Home-page selectors in older layouts are more specific than the shared base. */
body.pah-auction-home-page .auction-category-sidebar .category-grid.pac-category-list {
  overflow-y:auto;
  overflow-x:hidden;
}
