/* category-page.css – additional styles for category pages */

/* Product Card Grid variant */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.product-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

.product-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  font-size: 2rem;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body { padding: 16px; }
.product-card-name {
  font-weight: 700; color: var(--clr-text); font-size: 0.95rem; margin-bottom: 6px;
}
.product-card-tag {
  display: inline-block;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--clr-primary);
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 20px; border-radius: 100px;
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-glass-border);
  color: var(--clr-text-muted); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.specs-table th, .specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--clr-glass-border);
  font-size: 0.9rem;
}
.specs-table th {
  color: var(--clr-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  background: var(--clr-dark-4);
}
.specs-table td { color: var(--clr-text); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Info Banner */
.info-banner {
  background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 40px;
}
.info-banner-icon { font-size: 2rem; flex-shrink: 0; }
.info-banner-text h4 { color: var(--clr-text); font-weight: 700; margin-bottom: 4px; }
.info-banner-text p { color: var(--clr-text-muted); font-size: 0.9rem; }

/* Page hero variant */
.page-hero {
  min-height: 380px;
  padding-top: 72px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,240,245,0.9) 100%);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(2px);
}
.page-hero-content { position: relative; z-index: 1; width: 100%; }

/* Sidebar layout */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.sidebar {
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky; top: 88px;
}
.sidebar-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--clr-text-muted);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-glass-border);
}
.sidebar-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--clr-text-muted);
  transition: var(--transition); font-weight: 500;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(0,0,0,0.04);
  color: var(--clr-primary);
  border-left: 2px solid var(--clr-primary);
  padding-left: 10px;
}
.sidebar-link span { font-size: 1rem; }

@media (max-width: 900px) {
  .category-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ============================================================
   KRAVEN – Global Theme & Contrast Overrides
   ============================================================ */

/* 1. Category Hero (Dark Background) – Force White Text */
.cat-hero, .page-hero {
  position: relative;
}
/* Force background overlays to be sufficiently dark for white text readability */
.cat-hero-overlay, .page-hero-overlay {
  background: rgba(10, 10, 15, 0.75) !important;
  opacity: 1 !important;
}

.cat-hero h1, .cat-hero h1 *,
.page-hero h1, .page-hero h1 * {
  color: #ffffff !important;
}

.cat-hero-subtitle, .page-hero p, .page-hero-content p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.breadcrumb, .breadcrumb a, .breadcrumb span, .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.65) !important;
}
.breadcrumb a:hover {
  color: #ffffff !important;
}
.breadcrumb-current, .breadcrumb-current * {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.cat-hero-stat-num {
  color: #ffffff !important;
}
.cat-hero-stat-label {
  color: rgba(255, 255, 255, 0.6) !important;
}

.cat-hero-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
.cat-hero-badge-dot {
  background: #ffffff !important;
}

/* 2. Customization Options & Info Banners (Light Background) – Force Dark Text */
.custom-card-title, 
.custom-title, 
.custom-card h4, 
.custom-option-text h4, 
.custom-option-item h4 {
  color: #111111 !important;
}

.custom-card-desc, 
.custom-desc, 
.custom-card p, 
.custom-option-text p, 
.custom-option-item p {
  color: #5a5e66 !important;
}

.rugby-info-banner h4, 
.cat-info-banner h4, 
.info-banner-text h4, 
.info-banner h4 {
  color: #111111 !important;
}
.rugby-info-banner p, 
.cat-info-banner p, 
.info-banner-text p, 
.info-banner p {
  color: #5a5e66 !important;
}

