/* =====================================================
   ACRYLICTUBES.IN — products.css
   Product Archive Page Styles
   ===================================================== */

/* ── Active nav ─── */
.nav-active { color: var(--primary) !important; background: var(--light-bg) !important; border-radius: 8px; }

/* Breadcrumb (shared) */
.breadcrumb { display:flex;align-items:center;gap:8px;margin-bottom:16px;font-size:13px; }
.breadcrumb a { color:rgba(255,255,255,.65);transition:var(--ease); }
.breadcrumb a:hover { color:var(--accent); }
.bc-sep { color:rgba(255,255,255,.3); }
.breadcrumb span:last-child { color:rgba(255,255,255,.9);font-weight:600; }

/* ═══════════════════════════════
   PAGE HERO
═══════════════════════════════ */
.pg-hero {
  position: relative;
  min-height: 300px;
  margin-top: var(--total-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-bottom: 56px;
}
.pg-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  transform: scale(1.04);
  animation: pgZoom 14s ease-in-out infinite alternate;
}
@keyframes pgZoom { from{transform:scale(1.04)} to{transform:scale(1.1)} }
.pg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,30,55,.88) 0%, rgba(26,111,168,.7) 100%);
}
.pg-hero-shape {
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 60px; background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.pg-hero-content { position: relative; z-index: 2; padding-top: 20px; }
.pg-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 100px);
  line-height: .9; color: #fff;
  letter-spacing: 2px; margin-bottom: 14px;
}
.pg-hero-title em { color: var(--accent); font-style: normal; }
.pg-hero-sub { font-size: 16px; color: rgba(255,255,255,.75); max-width: 500px; margin-bottom: 24px; }

/* Hero stats */
.pg-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 24px;
  flex-wrap: wrap;
}
.phs-item { text-align: center; padding: 0 16px; }
.phs-item strong { display: block; font-family: 'Bebas Neue',sans-serif; font-size: 22px; color: var(--accent); letter-spacing: 1px; line-height: 1; }
.phs-item span { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; }
.phs-sep { width: 1px; height: 36px; background: rgba(255,255,255,.2); }

/* ═══════════════════════════════
   CATEGORY TAB BAR (sticky)
═══════════════════════════════ */
.cat-tab-bar {
  position: sticky;
  top: var(--total-h);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26,111,168,.07);
}
.cat-tab-inner {
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tab-inner::-webkit-scrollbar { display: none; }
.cat-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  min-width: max-content;
}
.cat-tab-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ease);
  font-family: 'Outfit', sans-serif;
}
.cat-tab-btn:hover { color: var(--primary); background: var(--light-bg); }
.cat-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.cat-tab-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════
   MAIN LAYOUT
═══════════════════════════════ */
.products-page { background: var(--off-white); padding: 40px 0 80px; }
.products-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 28px;
  align-items: start;
}

/* ═══════════════════════════════
   FILTER SIDEBAR
═══════════════════════════════ */
.filter-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--total-h) + 56px);
  max-height: calc(100vh - var(--total-h) - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Mobile head (hidden on desktop) */
.filter-mobile-head { display: none; }

/* Active filters */
.active-filters {
  padding: 14px 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.af-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted);
}
.af-clear {
  font-size: 12px; color: var(--primary); font-weight: 600;
  cursor: pointer; background: none; border: none;
  font-family: 'Outfit', sans-serif; transition: var(--ease);
}
.af-clear:hover { color: var(--primary-dark); text-decoration: underline; }
.af-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.af-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--light-bg); border: 1px solid var(--border);
  color: var(--primary); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
}
.af-tag button { background: none; border: none; cursor: pointer; color: var(--primary); font-size: 13px; line-height: 1; padding: 0; }

/* Filter blocks */
.filter-block { border-bottom: 1px solid var(--border); }
.filter-block:last-of-type { border-bottom: none; }
.fb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  font-size: 14px; font-weight: 700; color: var(--dark);
  cursor: pointer; user-select: none;
  transition: background var(--ease);
}
.fb-head:hover { background: var(--light-bg); }
.fb-arrow { transition: transform var(--ease); flex-shrink: 0; color: var(--text-muted); }
.fb-arrow.open { transform: rotate(0deg); }
.fb-arrow:not(.open) { transform: rotate(-90deg); }
.fb-body { padding: 4px 18px 14px; }
.fb-body.collapsed { display: none; }

/* Filter checkboxes */
.filter-check {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  font-size: 13px; color: var(--text); cursor: pointer;
  user-select: none; transition: color var(--ease);
}
.filter-check:hover { color: var(--primary); }
.filter-check input { display: none; }
.fcheck-box {
  width: 17px; height: 17px; border-radius: 4px;
  border: 1.5px solid var(--border);
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease); font-size: 10px; color: #fff;
}
.filter-check input:checked ~ .fcheck-box {
  background: var(--primary); border-color: var(--primary);
}
.filter-check input:checked ~ .fcheck-box::after { content: '✓'; font-weight: 700; }
.filter-check input[type="radio"] ~ .fcheck-box { border-radius: 50%; }
.filter-check input[type="radio"]:checked ~ .fcheck-box::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.filter-check.active-check { color: var(--primary); font-weight: 600; }
.fcheck-count {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  background: var(--light-bg); padding: 2px 7px; border-radius: 50px;
}

/* Sidebar CTA */
.sidebar-cta {
  margin: 16px 18px 18px;
  background: var(--gradient-dark);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  text-align: center;
  color: #fff;
}
.sidebar-cta-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--accent);
}
.sidebar-cta h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; margin-bottom: 14px; }

/* ═══════════════════════════════
   PRODUCTS AREA
═══════════════════════════════ */
.products-area { min-width: 0; }

/* Toolbar */
.products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.products-count { font-size: 14px; color: var(--text-muted); }
.products-count strong { color: var(--primary); font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Search */
.pg-search-wrap {
  position: relative;
  display: flex; align-items: center;
}
.pg-search-wrap > svg {
  position: absolute; left: 11px;
  color: var(--text-muted); pointer-events: none;
}
.pg-search-input {
  padding: 8px 12px 8px 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px; font-family: 'Outfit',sans-serif;
  background: var(--off-white); color: var(--text);
  width: 200px; transition: var(--ease);
}
.pg-search-input:focus {
  outline: none; border-color: var(--primary);
  background: #fff; box-shadow: 0 0 0 3px rgba(26,111,168,.08);
}
.pg-search-input::placeholder { color: var(--text-muted); }

/* Sort */
.pg-sort {
  padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px;
  font-family: 'Outfit',sans-serif;
  background: var(--off-white); color: var(--text);
  cursor: pointer; transition: var(--ease); appearance: none;
}
.pg-sort:focus { outline: none; border-color: var(--primary); }

/* View Toggle */
.view-toggle { display: flex; gap: 2px; background: var(--light-bg); border-radius: 8px; padding: 3px; }
.vt-btn {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--ease);
}
.vt-btn.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.vt-btn:hover:not(.active) { color: var(--primary); }

/* Mobile filter toggle (hidden on desktop) */
.filter-toggle-btn {
  display: none; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--off-white);
  transition: var(--ease); font-family: 'Outfit',sans-serif;
}
.filter-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════
   PRODUCT CARDS — GRID VIEW
═══════════════════════════════ */
.products-grid-area {
  display: grid;
  gap: 20px;
}
.grid-view {
  grid-template-columns: repeat(3, 1fr);
}

.pg-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--ease);
  display: flex; flex-direction: column;
}
.pg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.pg-card.featured-card { border: 2px solid var(--primary); }

/* Card image */
.pgc-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--light-bg);
}
.pgc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.pg-card:hover .pgc-img-wrap img { transform: scale(1.06); }

/* Badges */
.pgc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.pgc-badge {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 50px; color: #fff;
}
.pgc-badge.bestseller { background: var(--gradient); }
.pgc-badge.new { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pgc-badge.popular { background: linear-gradient(135deg, #38b2ac, #2d9e9e); }

/* Card overlay */
.pgc-overlay {
  position: absolute; inset: 0;
  background: rgba(10,30,55,.65);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0; transition: var(--ease);
}
.pg-card:hover .pgc-overlay { opacity: 1; }
.pgc-quick-btn {
  padding: 9px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700; font-family: 'Outfit',sans-serif;
  background: #fff; color: var(--primary);
  border: none; cursor: pointer;
  transform: translateY(8px); transition: var(--ease);
  text-decoration: none;
}
.pg-card:hover .pgc-quick-btn { transform: translateY(0); }
.pgc-quick-btn:hover { background: var(--accent); color: #fff; }
.pgc-view-btn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); transition-delay: .05s; }
.pgc-view-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Card body */
.pgc-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pgc-cat {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent2);
}
.pgc-title { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.35; }
.pgc-specs {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}
.pgc-specs strong { color: var(--text); }
.pgc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pgc-tags span {
  font-size: 11px; padding: 3px 10px;
  background: var(--light-bg); color: var(--primary);
  border-radius: 50px; font-weight: 600;
}

/* Card footer */
.pgc-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pgc-enq-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; background: var(--gradient);
  color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  font-family: 'Outfit',sans-serif; cursor: pointer;
  transition: var(--ease);
}
.pgc-enq-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,111,168,.35); }
.pgc-wa-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: #25D366; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.pgc-wa-btn:hover { background: #128C7E; transform: translateY(-1px); }

/* Custom CTA card */
.pg-card-custom {
  background: linear-gradient(145deg, var(--light-bg) 0%, #f0faff 100%);
  border: 2px dashed var(--primary-light);
}
.pgc-custom-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 36px 24px;
  height: 100%; gap: 12px;
}
.pgc-custom-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 4px;
}
.pgc-custom-inner h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.pgc-custom-inner p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.pgc-wa-custom {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #25D366;
  margin-top: 4px; transition: var(--ease);
}
.pgc-wa-custom:hover { color: #128C7E; }

/* ═══════════════════════════════
   LIST VIEW
═══════════════════════════════ */
.list-view { grid-template-columns: 1fr; }
.list-view .pg-card { flex-direction: row; }
.list-view .pgc-img-wrap { width: 200px; flex-shrink: 0; aspect-ratio: auto; height: auto; min-height: 160px; }
.list-view .pgc-body { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
.list-view .pgc-title { font-size: 16px; width: 100%; }
.list-view .pgc-foot { margin-top: 0; padding-top: 0; border-top: none; margin-left: auto; flex-shrink: 0; }
.list-view .pgc-overlay { display: none; }

/* No results */
.no-results {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  gap: 14px;
}
.no-results svg { color: var(--border); }
.no-results h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.no-results p { font-size: 14px; }

/* ═══════════════════════════════
   PAGINATION
═══════════════════════════════ */
.pg-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 40px; flex-wrap: wrap;
}
.pg-page-btn {
  min-width: 40px; height: 40px;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--ease);
  font-family: 'Outfit',sans-serif; padding: 0 4px;
}
.pg-page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--light-bg); }
.pg-page-btn.pg-page-active { background: var(--gradient); color: #fff; border-color: transparent; }
.pg-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-page-ellipsis { font-size: 16px; color: var(--text-muted); padding: 0 4px; }

/* ═══════════════════════════════
   MOBILE FILTER BACKDROP
═══════════════════════════════ */
.filter-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10,20,40,.5);
  backdrop-filter: blur(3px);
}
.filter-backdrop.show { display: block; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1100px) {
  .products-layout { grid-template-columns: 240px 1fr; }
  .grid-view { grid-template-columns: repeat(2, 1fr); }
}

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

  /* Sidebar becomes slide-in drawer */
  .filter-sidebar {
    position: fixed;
    top: 0; left: -300px; bottom: 0;
    width: 290px;
    z-index: 999;
    border-radius: 0;
    max-height: 100vh;
    transition: left .35s cubic-bezier(.25,.8,.25,1);
    box-shadow: var(--shadow-lg);
  }
  .filter-sidebar.sidebar-open { left: 0; }
  .filter-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 18px 14px;
    font-size: 16px; font-weight: 700; color: var(--dark);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: #fff; z-index: 2;
  }
  .filter-close-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--light-bg); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: var(--ease);
  }
  .filter-close-btn:hover { background: var(--border); }
  .filter-toggle-btn { display: flex; }
  .pg-search-input { width: 150px; }
}

@media (max-width: 600px) {
  .grid-view { grid-template-columns: repeat(2, 1fr); }
  .pg-hero { padding-bottom: 40px; min-height: 260px; }
  .pg-hero-title { font-size: 56px; }
  .pg-hero-stats { padding: 8px 12px; gap: 0; }
  .phs-item { padding: 0 10px; }
  .phs-item strong { font-size: 18px; }
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: flex-end; }
  .list-view .pg-card { flex-direction: column; }
  .list-view .pgc-img-wrap { width: 100%; height: 200px; }
  .list-view .pgc-body { flex-direction: column; }
  .list-view .pgc-foot { margin-left: 0; }
}

@media (max-width: 400px) {
  .grid-view { grid-template-columns: 1fr; }
  .pg-search-input { width: 100%; }
  .toolbar-right { width: 100%; justify-content: space-between; }
}
