.template-container { max-width:1200px; margin:auto; padding:40px 20px; }
.template-title { text-align:center; font-size:36px; font-weight:bold; margin-bottom:40px; }
.template-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:25px; }
.template-card { border-radius:16px; overflow:hidden; box-shadow:0 10px 25px rgba(0,0,0,0.1); transition:.3s; background:#fff; }
.template-card:hover { transform:translateY(-8px); }
.template-img { width:100%; height:180px; object-fit:cover; }
.template-content { padding:20px; }
.template-name { font-size:20px; font-weight:600; margin-bottom:10px; }
.template-desc { font-size:14px; color:#555; margin-bottom:15px; }
.template-meta { display:flex; justify-content:space-between; margin-bottom:15px; font-size:14px; }
.template-price { font-weight:bold; color:#0073aa; }
.template-users { color:#777; }
.template-buttons { display:flex; gap:10px; margin-top: 20px;}
.btn { flex:1; text-align:center; padding:10px; border-radius:8px; text-decoration:none; font-size:14px; }
.btn-preview { background:#f1f1f1; color:#333; }
.btn-use { background:#0073aa; color:#fff; }

.filter-bar { text-align:center; margin-bottom:30px; }
.filter-btn {
  padding:10px 15px; margin:5px; border:none; cursor:pointer;
  border-radius:8px; background:#f1f1f1; display:inline-flex; align-items:center; gap:6px;
}
.filter-btn.active { background:#0073aa; color:#fff; }
.loader { text-align:center; display:none; font-size:18px; }
.no-data { text-align:center; font-size:18px; color:#777; margin-top:20px; }

/* Favorite Button */
.fav-btn {
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fav-btn:hover {
  transform: scale(1.1);
}

.fav-btn.active {
  background: #ff4d6d;
  color: #fff;
}

/* Buy Button */
.buy-btn {
  background: linear-gradient(135deg, #0073aa, #00c6ff);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.buy-btn:active {
  transform: scale(0.95);
}