:root{
  --ink: #1c2a3a;
  --muted: rgba(28,42,58,0.72);

  --ivory: #f7f5f0;
  --panel: rgba(255,255,255,0.86);

  --line: rgba(28,42,58,0.14);
  --line2: rgba(28,42,58,0.20);

  --gold: #c8a45d;
  --shadow: 0 18px 52px rgba(16,22,28,0.12);
  --shadow2: 0 10px 26px rgba(16,22,28,0.10);

  --r: 18px;
  --max: 1180px;
  --pad: 18px;
}

*{ box-sizing: border-box; }

.sp-shell{
  padding: 26px 0 44px 0;
}

.sp-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sp-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
}

.sp-title{
  margin: 0;
  font-size: 32px;
  font-weight: 840;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.sp-sub{
  margin: 6px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.6px;
  max-width: 72ch;
}

.sp-filters{
  margin-top: 16px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
}

.sp-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sp-label{
  display:block;
  font-size: 13px;
  font-weight: 650;
  color: rgba(28,42,58,0.88);
  margin-bottom: 6px;
}

.sp-input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}

.sp-input:focus{
  border-color: rgba(200,164,93,0.45);
  box-shadow: 0 0 0 4px rgba(200,164,93,0.16);
}

.sp-filter-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  color: rgba(28,42,58,0.92);
  font-weight: 750;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow2);
}

.sp-btn:hover{
  border-color: var(--line2);
}

.sp-btn-primary{
  border-color: rgba(200,164,93,0.30);
  background: rgba(200,164,93,0.16);
}

.sp-btn-sm{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.sp-btn-add{
  border-color: rgba(200,164,93,0.30);
  background: rgba(200,164,93,0.16);
}

.sp-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-meta{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: rgba(28,42,58,0.72);
  font-size: 13.5px;
}

.sp-link{
  color: rgba(28,42,58,0.82);
  text-decoration: none;
  font-weight: 700;
}

.sp-link:hover{
  text-decoration: underline;
}

.sp-gridcards{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sp-card{
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.sp-media{
  display:block;
  aspect-ratio: 4 / 3;
  background: rgba(28,42,58,0.06);
  overflow: hidden;
}

.sp-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.001);
}

.sp-img-empty{
  width: 100%;
  height: 100%;
  display:grid;
  place-items:center;
  color: rgba(28,42,58,0.6);
  font-weight: 700;
  font-size: 13px;
}

.sp-body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.sp-name{
  font-weight: 820;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.sp-desc{
  color: rgba(28,42,58,0.72);
  font-size: 13.6px;
  line-height: 1.55;
  min-height: 2.8em;
}

.sp-foot{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.sp-price{
  font-weight: 820;
  color: rgba(28,42,58,0.92);
}

.sp-muted{
  color: rgba(28,42,58,0.62);
}

.sp-add{
  margin: 0;
}

.sp-empty{
  margin-top: 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
  padding: 16px;
}

.sp-empty-title{
  font-weight: 840;
}

.sp-empty-sub{
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.sp-pager{
  margin-top: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

@media (max-width: 1100px){
  .sp-grid{ grid-template-columns: repeat(2, 1fr); }
  .sp-gridcards{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .sp-grid{ grid-template-columns: 1fr; }
  .sp-gridcards{ grid-template-columns: 1fr; }
}
