/* catalog.css — category filters, server pagination, bottom thumbnail gallery
   Put this file in the same folder as products.css / product-detail.css */

/* ---------- category filter chips (products.php) ---------- */
.pc-filters{display:flex;flex-direction:column;gap:12px;margin:0 0 40px}
.pc-filter-row{display:flex;flex-wrap:wrap;gap:8px}
.pc-filter-sub .pc-chip{font-size:.78rem;padding:7px 14px}
.pc-chip{
  display:inline-block;padding:9px 18px;border:1px solid rgba(0,0,0,.18);
  border-radius:999px;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;
  color:inherit;text-decoration:none;background:transparent;transition:all .2s ease;
}
.pc-chip:hover{border-color:currentColor}
.pc-chip.active{background:#111;color:#fff;border-color:#111}
.pc-empty{padding:60px 0;text-align:center;opacity:.7}

/* ---------- server-side pagination: <a> works like the old <button> ---------- */
a.pg-num,a.pg-arrow{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.pg-ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:32px;opacity:.6}

/* ---------- product detail: main image on top, thumbnails below ---------- */
.page-product .pd-gallery.pd-gallery-bottom{
  display:flex !important;flex-direction:column !important;gap:16px;
}
.page-product .pd-gallery-bottom .pd-main{order:1;width:100%}
.page-product .pd-gallery-bottom .pd-thumbs{
  order:2;position:static !important;width:100% !important;height:auto !important;
  display:flex !important;flex-direction:row !important;flex-wrap:nowrap;gap:12px;
  overflow-x:auto;padding-bottom:4px;
}
.page-product .pd-gallery-bottom .pd-thumb{
  flex:0 0 auto;width:96px;height:96px;padding:0;border:2px solid transparent;
  background:#f2f0ec;cursor:pointer;opacity:.7;transition:all .2s ease;overflow:hidden;
}
.page-product .pd-gallery-bottom .pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.page-product .pd-gallery-bottom .pd-thumb:hover{opacity:1}
.page-product .pd-gallery-bottom .pd-thumb.active{opacity:1;border-color:#111}
@media (max-width:575px){
  .page-product .pd-gallery-bottom .pd-thumb{width:72px;height:72px}
}
.product-card .pc-frame {
  --k: 0.16px;                 
  position: relative;
  display: flex;
  align-items: flex-end;       
  justify-content: center;
  width: 100%;
  height: 540px;
  padding: 14px;
  overflow: hidden;
  /*background: #efede9;*/
}
.product-card .pc-slab {
  display: block;
  height: calc(var(--mm-h) * var(--k));
  aspect-ratio: var(--mm-w) / var(--mm-h);
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border: 0.05em solid #B8Bcc2 !important;
}
.product-card .pc-view {
  position: absolute;
  right: 14px;
  top: 14px;
}
@media (max-width: 767px) {
  .product-card .pc-frame { --k: 0.12px; height: 420px; }
}