/* /assets/css/products.php */

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; background: #08080f; color: #fff; min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* topbar (reuse home styles) */
.topbar { background: rgba(20,20,35,.95); backdrop-filter: blur(14px); border-bottom: 1px solid #1e1e2a; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #e50914, #ff6b6b); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 15px; }
.logo-text { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -.3px; }
.nav-pills { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.nav-pill { display: inline-flex; padding: 8px 14px; border-radius: 30px; font-size: 13.5px; font-weight: 600; color: #a4a4b8; text-decoration: none; transition: all .2s; }
.nav-pill:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-pill.active { color: #e50914; background: rgba(229,9,20,.12); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid #1e1e2a; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; text-decoration: none; position: relative; transition: all .2s; }
.nav-icon-btn:hover { background: rgba(229,9,20,.12); border-color: #e50914; color: #e50914; }
.nav-icon-btn .bubble { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; background: #e50914; color: #fff; border-radius: 20px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #08080f; }
.nav-cta { padding: 9px 18px; border-radius: 30px; background: linear-gradient(135deg, #e50914, #b80710); color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; box-shadow: 0 4px 14px rgba(229,9,20,.3); }
.nav-cta:hover { transform: translateY(-1px); }

.page-wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px 100px; }
.page-head { margin-bottom: 22px; }
.page-title { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.page-sub { font-size: 14px; color: #8a8a9a; margin: 0; }

/* filter chips */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-v2 { padding: 9px 16px; background: #14142a; border: 1px solid #1e1e2a; border-radius: 30px; font-size: 13px; font-weight: 600; color: #a4a4b8; cursor: pointer; font-family: inherit; transition: all .2s; }
.chip-v2:hover { color: #fff; }
.chip-v2.active { background: rgba(229,9,20,.12); border-color: #e50914; color: #e50914; }

/* groups list */
.groups-list { display: flex; flex-direction: column; gap: 14px; }

.group-card {
  display: block;
  background: linear-gradient(135deg, #14142a 0%, #0e0e1f 100%);
  border: 1px solid #1e1e2a;
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all .25s cubic-bezier(.2,.9,.3,1.05);
  position: relative;
  overflow: hidden;
}
.group-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(229,9,20,.14); border-color: rgba(229,9,20,.35); }
.group-card.out-of-stock { opacity: .65; }

.gc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #54546a; }
.stock-pill { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.stock-pill.ok { background: rgba(46,204,113,.12); color: #2ecc71; }
.stock-pill.out { background: rgba(231,76,60,.12); color: #e74c3c; }

.gc-body { margin-bottom: 16px; }
.gc-title { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -.02em; }
.gc-desc { font-size: 13.5px; color: #8a8a9a; margin: 0 0 12px; line-height: 1.5; }
.gc-durations { display: flex; flex-wrap: wrap; gap: 6px; }
.dur-badge { font-size: 11px; padding: 4px 10px; background: rgba(255,255,255,.05); border-radius: 20px; color: #c2c2d2; font-weight: 600; }

.gc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #1e1e2a; }
.gc-price { display: flex; align-items: baseline; gap: 6px; }
.gc-price .price-from { font-size: 11.5px; color: #54546a; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.gc-price .price-main { font-size: 20px; font-weight: 800; color: #2ecc71; letter-spacing: -.02em; }
.gc-btn { font-size: 13px; font-weight: 700; color: #e50914; display: inline-flex; align-items: center; gap: 6px; }
.gc-btn i { transition: transform .2s; }
.group-card:hover .gc-btn i { transform: translateX(3px); }

/* skeleton */
.skeleton-card { height: 160px; border-radius: 18px; background: linear-gradient(90deg, #14142a, #1a1a34, #14142a); background-size: 200% 100%; animation: shim 1.6s infinite; }
@keyframes shim { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* empty */
.empty { text-align: center; padding: 50px 20px; color: #54546a; }
.empty .ico { font-size: 42px; opacity: .5; display: block; margin-bottom: 14px; }
.empty h3 { font-size: 16px; color: #fff; margin: 0 0 6px; }

@media (max-width: 480px) {
  .page-wrap { padding: 20px 14px 90px; }
  .page-title { font-size: 22px; }
  .nav-pills { display: none; }
  .gc-title { font-size: 17px; }
  .gc-price .price-main { font-size: 18px; }
}

/* ============ CONSISTENT HEADER (matches /product/, /order/) ============ */
.d-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(8,8,15,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1e1e2a;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,.05);
  border: 1px solid #1e1e2a;
  color: #c2c2d2;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.back-link:hover {
  background: rgba(229,9,20,.12);
  border-color: rgba(229,9,20,.4);
  color: #fff;
}
.back-link i { font-size: 12px; }
.d-brand { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.d-brand .brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #e50914, #ff6b6b);
  color: #fff; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.d-brand .brand-name { font-size: 14px; font-weight: 700; color: #fff; }
.header-spacer { width: 100px; }

@media (max-width: 480px) {
  .header-spacer { width: 50px; }
}