/* ===================================================================
   LUNTEX — Products Page Specific Styles
=================================================================== */

/* ── Hero Banner ─────────────────────────────────────────────────── */
.products-hero {
  background: radial-gradient(circle at 60% 40%, #2a3f5f 0%, var(--navy) 100%);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.products-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.products-hero .eyebrow { color: var(--red-light); position: relative; z-index: 1; }
.products-hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; color: var(--white); line-height: 1.2;
  position: relative; z-index: 1;
}
.products-hero h1 span { color: var(--red-light); }
.products-hero-desc {
  font-size: 1.05rem; color: var(--gray-300); max-width: 500px;
  margin: 12px auto 0; position: relative; z-index: 1;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.products-count {
  font-size: .85rem; color: var(--gray-500); font-weight: 600;
  margin-bottom: 20px;
}
.products-count strong { color: var(--navy); }

/* ── Filter Sidebar ──────────────────────────────────────────────── */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
}

.filter-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-section h4 {
  font-family: var(--font-head); font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--navy);
  margin-bottom: 12px;
}

/* Search input */
.filter-search-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--gray-100); border-radius: 10px;
  padding: 8px 12px; transition: var(--transition);
}
.filter-search-wrap:focus-within { border-color: var(--red); }
.filter-search-wrap svg { flex-shrink: 0; color: var(--gray-400); }
.filter-search-wrap input {
  border: none; outline: none; background: transparent;
  font-size: .88rem; width: 100%; color: var(--gray-700);
}

/* Category chips */
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.filter-chip {
  padding: 6px 14px; border-radius: 20px; font-size: .78rem; font-weight: 700;
  background: var(--gray-50); color: var(--gray-500);
  border: 1.5px solid var(--gray-200); cursor: pointer;
  transition: var(--transition); text-transform: capitalize;
}
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* Size pills */
.filter-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.filter-pill {
  padding: 5px 12px; border-radius: 6px; font-size: .78rem; font-weight: 700;
  background: var(--gray-50); color: var(--gray-500);
  border: 1.5px solid var(--gray-200); cursor: pointer; transition: var(--transition);
}
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Color swatches */
.filter-colors-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 8px;
}
.filter-color-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--gray-200); cursor: pointer;
  transition: all .15s ease; position: relative; padding: 0;
}
.filter-color-btn:hover { transform: scale(1.25); border-color: var(--gray-400); }
.filter-color-btn.active {
  border-color: var(--navy); box-shadow: 0 0 0 2px rgba(26,35,50,.3);
  transform: scale(1.2);
}
.filter-color-btn.active::after {
  content: '\2713'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Price range */
.filter-price-range { padding: 4px 0; }
.filter-price-range input[type="range"] {
  width: 100%; accent-color: var(--red); cursor: pointer;
}
.filter-price-labels {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--gray-500); margin-top: 6px;
}

/* Active filters */
.active-filters { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.active-filters-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.active-filters-header span { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--navy); }
.filter-clear-btn {
  font-size: .72rem; color: var(--red); font-weight: 700; cursor: pointer;
  background: none; border: none; text-decoration: underline;
}
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filter-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700;
  background: rgba(192,57,43,.08); color: var(--red);
}
.active-filter-tag button {
  background: none; border: none; color: var(--red); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0;
}

/* ── Mobile Filter Button ────────────────────────────────────────── */
.mobile-filter-btn {
  display: none; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border-radius: 12px;
  background: var(--white); border: 2px solid var(--gray-200);
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  color: var(--navy); cursor: pointer; margin-bottom: 16px;
  transition: var(--transition);
}
.mobile-filter-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Mobile Filter Overlay ───────────────────────────────────────── */
.filter-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
  z-index: 1999;
}
.filter-sidebar-overlay.open { display: block; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .mobile-filter-btn { display: flex; }

  .filter-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 300px; z-index: 2000;
    border-radius: 0 16px 16px 0;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .filter-sidebar.open { transform: translateX(0); }

  .products-hero { padding: 120px 0 40px; }
  .products-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ── Skeleton Loader ─────────────────────────────────────────────── */
.skeleton-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--gray-100);
}
.skeleton-img {
  aspect-ratio: 4/3; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 16px; }
.skeleton-line {
  height: 12px; border-radius: 6px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
