/* ================================================================
   category.css  –  Trang danh mục sản phẩm
   ================================================================ */

/* ── CATEGORY HERO ── */
.cat-hero {
  background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #0d0d0d 100%);
  position: relative; overflow: hidden;
}
.cat-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=60') center/cover no-repeat;
  opacity: 0.12;
}
.cat-hero-accent {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: #f5f5f5;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── PRODUCT CARD ── */
.prod-card {
  background: #1a1a24; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.5); }

.prod-card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.prod-card:hover .prod-card-img img { transform: scale(1.07); }

.prod-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: #dfb667; color: #000;
  font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 9999px;
}
.prod-card-badge.red { background: #dfb667; color: #000; }

.prod-card-body { padding: 1.1rem 1.1rem .9rem; flex: 1; display: flex; flex-direction: column; }
.prod-card-title {
  font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.4; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-card-desc {
  font-size: .82rem; color: #aaa; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .8rem;
}
.prod-card-meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: #bbb; margin-bottom: .8rem; }
.prod-card-btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  background: linear-gradient(135deg, #dfb667 0%, #c89f55 100%); color: #000; font-weight: 900; font-size: .85rem;
  padding: .65rem 1rem; border-radius: .5rem;
  transition: transform .15s; text-align: center;
}
.prod-card-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(223, 182, 103, 0.4); }

/* ── SIDEBAR ── */
.sidebar-card { background: #1a1a24; border-radius: 1rem; box-shadow: 0 2px 16px rgba(0,0,0,.3); overflow: hidden; }
.sidebar-card-header {
  background: #000; color: #dfb667; font-weight: 900; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .85rem 1.1rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.1rem; font-size: .88rem; color: #ccc;
  border-bottom: 1px solid #242430;
  transition: background .18s, color .18s; font-weight: 600;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: #242430; color: #fff; }
.sidebar-link.active { background: #242430; color: #dfb667; font-weight: 800; }
.sidebar-link i { color: #dfb667; width: 16px; text-align: center; flex-shrink: 0; }

/* ── FILTER BUTTONS ── */
.cat-filter-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: 9999px;
  font-size: .85rem; font-weight: 700;
  border: 2px solid #333; color: #aaa; background: #1a1a24;
  cursor: pointer; transition: all .2s;
}
.cat-filter-btn:hover { border-color: #dfb667; color: #fff; }
.cat-filter-btn.active { background: #dfb667; border-color: #dfb667; color: #000; }

/* ── PAGINATION ── */
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: .5rem;
  font-weight: 700; font-size: .9rem;
  border: 2px solid #333; color: #aaa; background: #1a1a24;
  transition: all .2s;
}
.page-btn:hover { border-color: #dfb667; color: #fff; }
.page-btn.active { background: #dfb667; border-color: #dfb667; color: #000; }

/* ── HIGHLIGHT BOX (sidebar widget) ── */
.highlight-box {
  background: linear-gradient(135deg, #111 0%, #1c1c2e 100%);
  border-radius: 1rem; padding: 1.5rem; color: #fff;
}

/* ── STAR RATING ── */
.stars { color: #dfb667; font-size: .85rem; letter-spacing: 1px; }

/* ── CATEGORY TAG ── */
.cat-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #242430; color: #dfb667;
  border: 1px solid #c89f55; border-radius: 9999px;
  font-size: .75rem; font-weight: 700; padding: 2px 10px;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #dfb667 0%, #c89f55 100%);
  border-radius: 1.25rem; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px; background: rgba(255,255,255,.15); border-radius: 50%;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -60%; left: 0;
  width: 220px; height: 220px; background: rgba(0,0,0,.06); border-radius: 50%;
}
