.shpm-page-shell,
.shpm-wrap,
.shpm-grid,
.shpm-grid-form,
.shpm-account-wrap,
.shpm-list,
.shpm-filter-grid,
.shpm-stat-grid{
  box-sizing:border-box;
}

.shpm-wrap{
  width:min(1200px,calc(100% - 32px));
  margin:0 auto;
  padding:24px 0;
}

.shpm-page-shell,
.shpm-list,
.shpm-grid,
.shpm-grid-form,
.shpm-account-wrap,
.shpm-filter-grid,
.shpm-stat-grid{
  display:grid;
  gap:18px;
}

.shpm-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.shpm-grid-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.shpm-account-wrap{grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)}
.shpm-filter-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.shpm-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

.shpm-card,
.shpm-panel,
.shpm-form,
.shpm-filter-form{
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  background:rgba(255,255,255,.04);
  padding:22px;
}

.shpm-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}

.shpm-toolbar-actions,
.shpm-card-actions,
.shpm-filter-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.shpm-account-purchases{
  display:grid;
  gap:14px;
}

.shpm-account-purchase{
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}

.shpm-account-purchase p{
  margin:0 0 8px;
}

.shpm-account-purchase p:last-child{
  margin-bottom:0;
}

.shpm-form input[type=text],
.shpm-form input[type=email],
.shpm-form input[type=password],
.shpm-form input[type=url],
.shpm-form input[type=number],
.shpm-form textarea,
.shpm-form select,
.shpm-filter-form input[type=text],
.shpm-filter-form select{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  color:inherit;
}

.shpm-form textarea{padding:14px;min-height:140px}
.shpm-filter-check{display:flex;align-items:center;gap:8px}
.shpm-filter-check input{width:auto}

.shpm-form button,
.shpm-card .button,
.shpm-panel .button,
.shpm-filter-form button,
.shpm-toolbar .button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.1);
  text-decoration:none;
  cursor:pointer;
}

.shpm-notice,
.shpm-error,
.shpm-success{
  padding:14px 16px;
  border-radius:14px;
  margin:0 0 14px;
}

.shpm-error{background:rgba(170,35,35,.16)}
.shpm-success{background:rgba(35,160,90,.16)}
.shpm-notice{background:rgba(255,255,255,.06)}

.shpm-card-preset{padding:0;overflow:hidden}
.shpm-thumb img,
.shpm-thumb-fallback{
  display:block;
  width:100%;
  min-height:180px;
  object-fit:cover;
}
.shpm-thumb-fallback{background:rgba(255,255,255,.08)}
.shpm-card-body{padding:18px 20px 20px}
.shpm-badge-row,
.shpm-card-stats{display:flex;gap:8px;flex-wrap:wrap}
.shpm-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-size:.85rem;
}

.shpm-pagination{margin-top:24px}
.shpm-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  padding:0 12px;
  margin:0 8px 8px 0;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  text-decoration:none;
}

@media (max-width:900px){
  .shpm-account-wrap,
  .shpm-stat-grid{grid-template-columns:1fr}
  .shpm-toolbar{display:grid;grid-template-columns:1fr}
}

@media (max-width:640px){
  .shpm-wrap{width:min(1200px,calc(100% - 20px))}
  .shpm-grid,
  .shpm-grid-form,
  .shpm-filter-grid{grid-template-columns:1fr}
}
