.hmpro-pft {
  --hmpro-pft-columns: 4;
  --hmpro-pft-gap: 20px;
  --hmpro-pft-tab-col: 260px;
  --hmpro-pft-thumb-ratio: 125%;
  --hmpro-pft-tabs-align: center;
  --hmpro-pft-tab-text: #222;
  --hmpro-pft-tab-bg: #fff;
  --hmpro-pft-tab-text-hover: #111;
  --hmpro-pft-tab-bg-hover: #f2f2f2;
  --hmpro-pft-tab-text-active: #fff;
  --hmpro-pft-tab-bg-active: #4b4b4b;
  --hmpro-pft-panel-bg: #fff;
  --hmpro-pft-panel-border-color: #e5e5e5;
  --hmpro-pft-panel-border-width: 1px;
  --hmpro-pft-panel-radius: 16px;
  --hmpro-pft-header-align: center;
  padding: 24px 0;
  position: relative;
}

.hmpro-pft__frame {
  max-width: var(--hmpro-pft-maxw, 1200px);
  margin: 0 auto;
  position: relative;
}

.hmpro-pft__bleed { display: none; }

.hmpro-pft.is-fullwidth {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;
}

.hmpro-pft__header {
  text-align: var(--hmpro-pft-header-align, center);
  margin-bottom: 16px;
}

.hmpro-pft__header-title {
  font-size: 1.35em;
  line-height: 1.2;
  font-weight: 650;
  margin-bottom: 6px;
}

.hmpro-pft__header-subtitle {
  max-width: 60ch;
  margin: 0 auto;
  opacity: .84;
  line-height: 1.45;
}

.hmpro-pft.has-header-align-left .hmpro-pft__header-subtitle,
.hmpro-pft.has-header-align-right .hmpro-pft__header-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hmpro-pft__panel {
  background: var(--hmpro-pft-panel-bg, #fff);
  border: var(--hmpro-pft-panel-border-width, 1px) solid var(--hmpro-pft-panel-border-color, #e5e5e5);
  border-radius: var(--hmpro-pft-panel-radius, 16px);
  padding: 20px;
}

.hmpro-pft__tabs {
  display: flex;
  justify-content: var(--hmpro-pft-tabs-align);
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hmpro-pft__tab {
  border: 1px solid rgba(0,0,0,.12);
  background: var(--hmpro-pft-tab-bg);
  color: var(--hmpro-pft-tab-text);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: .18s ease;
  font-weight: 600;
  line-height: 1.2;
}

.hmpro-pft__tab:hover {
  background: var(--hmpro-pft-tab-bg-hover);
  color: var(--hmpro-pft-tab-text-hover);
}

.hmpro-pft__tab.is-active {
  background: var(--hmpro-pft-tab-bg-active);
  color: var(--hmpro-pft-tab-text-active);
  border-color: transparent;
}

.hmpro-pft__pane { display: none; }
.hmpro-pft__pane.is-active { display: block; }
.hmpro-pft__pane.is-loading { opacity: .65; }

.hmpro-pft__grid {
  display: grid;
  grid-template-columns: repeat(var(--hmpro-pft-columns, 4), minmax(0, 1fr));
  gap: var(--hmpro-pft-gap, 20px);
  align-items: start;
}

.hmpro-pft__card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px;
}

.hmpro-pft__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
}

.hmpro-pft__thumb::before {
  content: '';
  display: block;
  padding-top: var(--hmpro-pft-thumb-ratio, 125%);
}

.hmpro-pft__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hmpro-pft__meta { padding: 16px 6px 8px; }
.hmpro-pft__title {
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.hmpro-pft__price {
  opacity: .88;
  font-size: .98rem;
}
.hmpro-pft__price del {
  opacity: .72;
  margin-right: 6px;
}
.hmpro-pft__empty { padding: 16px; opacity: .75; }
.hmpro-pft__card--placeholder { visibility: hidden; pointer-events: none; }

.hmpro-pft__pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.hmpro-pft__pager-btn {
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.hmpro-pft__pager-btn:disabled { opacity: .5; cursor: not-allowed; }

.hmpro-pft--layout-vertical .hmpro-pft__body {
  display: grid;
  grid-template-columns: minmax(180px, var(--hmpro-pft-tab-col, 260px)) 1fr;
  gap: 28px;
  align-items: start;
}

.hmpro-pft--layout-vertical .hmpro-pft__tabs {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 0;
  position: sticky;
  top: 16px;
}

.hmpro-pft--layout-vertical .hmpro-pft__tab {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  padding: 14px 18px;
}

@media (max-width: 1180px) {
  .hmpro-pft__grid { grid-template-columns: repeat(min(3, var(--hmpro-pft-columns, 4)), minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .hmpro-pft__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hmpro-pft--layout-vertical .hmpro-pft__body { grid-template-columns: 1fr; }
  .hmpro-pft--layout-vertical .hmpro-pft__tabs {
    margin-bottom: 20px;
    position: static;
  }
}

@media (max-width: 520px) {
  .hmpro-pft__grid { grid-template-columns: 1fr; }
  .hmpro-pft__panel { padding: 16px; }
}
