/* =============================================
   ERIECOM GADGETS — SHOP PAGE STYLES
   ============================================= */

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, rgba(108,59,255,0.12) 0%, transparent 60%),
              var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 32px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--primary-light); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 10px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.page-desc { font-size: 15px; color: var(--text-muted); }

/* SHOP LAYOUT */
.shop-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* SIDEBAR */
.shop-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h3 { font-size: 16px; font-weight: 700; color: #fff; }
.clear-filters {
  font-size: 12px;
  color: var(--primary-light);
  background: rgba(108,59,255,0.1);
  border: 1px solid rgba(108,59,255,0.2);
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.clear-filters:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border-bottom: none; margin-bottom: 16px; }
.filter-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.filter-title i { font-size: 11px; color: var(--text-muted); transition: transform var(--transition); }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.filter-opt:hover { color: #fff; }
.filter-opt input[type="radio"],
.filter-opt input[type="checkbox"] {
  accent-color: var(--primary);
  width: 14px; height: 14px;
  cursor: pointer;
}

/* PRICE RANGE */
.price-range { display: flex; flex-direction: column; gap: 10px; }
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-inputs input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: border-color var(--transition);
  width: 80px;
}
.price-inputs input:focus { border-color: var(--primary); }
.price-inputs span { color: var(--text-muted); }
.range-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}
.price-display { font-size: 12px; color: var(--primary-light); font-weight: 600; }
.w-full { width: 100%; justify-content: center; }

/* SHOP TOOLBAR */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-size: 14px; color: var(--text-muted); }
.results-count span { color: #fff; font-weight: 600; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238888a0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}
.sort-select:focus { border-color: var(--primary); }
.sort-select option { background: var(--card-bg); }

.view-toggles { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.view-btn.active, .view-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ACTIVE FILTER CHIPS */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,59,255,0.12);
  border: 1px solid rgba(108,59,255,0.25);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}
.filter-chip button {
  color: var(--primary-light);
  font-size: 12px;
  transition: color var(--transition);
}
.filter-chip button:hover { color: var(--error); }

/* LIST VIEW */
.products-grid.list-view {
  grid-template-columns: 1fr;
}
.products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.products-grid.list-view .product-img-wrap {
  height: 100%;
  min-height: 180px;
}
.products-grid.list-view .product-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.products-grid.list-view .product-name { font-size: 18px; -webkit-line-clamp: 1; }
.products-grid.list-view .product-desc-preview {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* PRODUCT DESCRIPTION PREVIEW (list view) */
.product-desc-preview { display: none; }

/* LOAD MORE */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
}

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 20px;
}
.no-results.hidden { display: none; }
.no-results i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); margin-bottom: 20px; }

/* MOBILE FILTER BUTTON */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(108,59,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.mobile-filter-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* SIDEBAR OVERLAY for mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
  .shop-wrapper { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    top: 0; left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 1500;
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
    border-radius: 0;
  }
  .shop-sidebar.open { left: 0; }
  .mobile-filter-btn { display: flex; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid.list-view { grid-template-columns: 1fr; }
  .products-grid.list-view .product-card { grid-template-columns: 140px 1fr; }
  .toolbar-right { gap: 8px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
