/* ════════════════════════════════════════════════════════════
   MOJOOD — products.css
   Shop / listing page styles
   ════════════════════════════════════════════════════════════ */

/* ── SHOP HEADER ──────────────────────────────────────────── */
.shop-header {
  padding: 120px 48px 48px;
  background: var(--void);
  border-bottom: 1px solid var(--surface);
}

.shop-header-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bc-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.bc-link:hover { color: var(--acid); }

.bc-sep {
  color: var(--border);
  font-size: 13px;
}

.bc-current {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--chrome);
}

.shop-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 12px;
}

.shop-sub {
  font-size: 0.95rem;
  color: var(--chrome);
  max-width: 600px;
  line-height: 1.7;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.shop-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.sidebar-section {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-of-type {
  border-bottom: none;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--chrome);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.sf-label:hover, .sf-label.active {
  background: rgba(212,255,0,0.06);
  color: var(--white);
}

.sf-label.active {
  color: var(--acid);
}

.sf-label input[type="radio"] {
  display: none;
}

.sf-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid);
  background: var(--void);
  padding: 2px 8px;
  border-radius: 20px;
}

.sf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--chrome);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.sf-check:hover { background: rgba(255,255,255,0.04); }

.sf-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--acid);
  cursor: pointer;
  flex-shrink: 0;
}

/* Price Range */
.price-range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--chrome);
}

#priceRangeInput {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--acid) 0%, var(--acid) 100%, var(--border) 100%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#priceRangeInput::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--acid);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212,255,0,0.4);
  transition: transform 0.2s;
}

#priceRangeInput::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ── SHOP MAIN ────────────────────────────────────────────── */
.shop-main {
  min-height: 600px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface);
}

.shop-results {
  font-size: 0.875rem;
  color: var(--chrome);
}

.shop-results strong {
  color: var(--white);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  color: var(--chrome);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: rgba(212,255,0,0.4);
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.vt-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
}

.vt-btn svg {
  width: 14px;
  height: 14px;
}

.vt-btn.active, .vt-btn:hover {
  background: var(--acid);
  color: var(--void);
}

/* ── PRODUCT GRID ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: opacity 0.25s;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
}

.products-grid.loading {
  opacity: 0.4;
  pointer-events: none;
}

/* In list view, product cards stretch */
.products-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 24px;
}

.products-grid.list-view .product-img-wrap {
  height: 160px;
}

.products-grid.list-view .product-actions {
  position: static;
  opacity: 1;
  flex-direction: row;
}

.products-grid.list-view .product-info {
  padding: 0;
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.shop-empty-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.4;
}

.shop-empty h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.shop-empty p {
  color: var(--chrome);
  font-size: 0.9rem;
}

/* ── PAGINATION ───────────────────────────────────────────── */
.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--surface);
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--chrome);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.page-btn:hover {
  border-color: rgba(212,255,0,0.4);
  color: var(--white);
}

.page-btn.active {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--void);
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; padding: 24px; }
  .shop-header { padding: 120px 24px 32px; }
  .shop-sidebar {
    position: static;
    display: none; /* toggled by mobile filter button */
  }
  .shop-sidebar.open { display: flex; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
}
