@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   LumenShop — Sharp. Modern. Black.
   ============================================================ */

:root {
  --ls-bg:           #f5f4f1;
  --ls-surface:      #ffffff;
  --ls-surface-2:    #f0eeea;
  --ls-border:       #d8d4cc;
  --ls-border-dark:  #1a1a18;
  --ls-text:         #111110;
  --ls-text-muted:   #6b6860;
  --ls-text-xmuted:  #a09d97;

  --ls-black:        #111110;
  --ls-black-hover:  #2a2a28;
  --ls-white:        #faf9f6;

  --ls-amber:        #b8740a;

  --ls-transition:   .18s cubic-bezier(.4,0,.2,1);

  --ls-font:         'Space Grotesk', system-ui, sans-serif;
  --ls-font-mono:    'Space Mono', monospace;
}

.ls-wrap *, .ls-wrap *::before, .ls-wrap *::after { box-sizing: border-box; }

/* ── Layout shell ────────────────────────────────────────── */
.ls-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  font-family: var(--ls-font);
  color: var(--ls-text);
  background: var(--ls-bg);
  border: 1px solid var(--ls-border-dark);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.ls-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--ls-black);
  border-right: 1px solid #2a2a26;
  padding: 32px 0 40px;
}

.ls-sidebar__title {
  font-family: var(--ls-font-mono);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #555550;
  margin: 0 0 0;
  padding: 0 24px 16px;
  border-bottom: 1px solid #252522;
}

.ls-cat-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ls-cat-list__item { position: relative; }

.ls-cat-list__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ls-white);
}

.ls-cat-list__link {
  display: flex;
  align-items: center;
  padding: 11px 24px;
  text-decoration: none;
  color: #888884;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .01em;
  transition: color var(--ls-transition), background var(--ls-transition);
}

.ls-cat-list__link:hover {
  color: var(--ls-white);
  background: #1c1c1a;
}

.ls-cat-list__item.is-active .ls-cat-list__link {
  color: var(--ls-white);
  font-weight: 600;
  background: #1c1c1a;
}

.ls-cat-list__icon { display: none; }

.ls-cat-list__count {
  margin-left: auto;
  color: #444440;
  font-family: var(--ls-font-mono);
  font-size: .6rem;
}
.ls-cat-list__item.is-active .ls-cat-list__count,
.ls-cat-list__link:hover .ls-cat-list__count { color: #888884; }

/* ── Main area ───────────────────────────────────────────── */
.ls-main {
  min-width: 0;
  padding: 32px 36px 64px;
  background: var(--ls-bg);
}

/* Filter badge */
.ls-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ls-black);
  padding: 6px 14px 6px 16px;
  font-size: .65rem;
  font-family: var(--ls-font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ls-white);
  margin-bottom: 24px;
}
.ls-filter-badge__clear {
  color: #888884;
  text-decoration: none;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color var(--ls-transition);
  padding: 2px 4px;
}
.ls-filter-badge__clear:hover { color: var(--ls-white); }

/* ── Product Grid ────────────────────────────────────────── */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(var(--ls-cols, 3), 1fr);
  gap: 1px;
  background: var(--ls-border);
  border: 1px solid var(--ls-border);
}

/* ── Product Card ────────────────────────────────────────── */
.ls-card {
  background: var(--ls-surface);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Image container */
.ls-card__img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ls-surface-2);
}

.ls-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .4s ease;
}

.ls-card__img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .4s ease;
}

.ls-card__img-wrap:hover .ls-card__img       { opacity: 0; }
.ls-card__img-wrap:hover .ls-card__img-hover { opacity: 1; }
.ls-card__img-wrap:hover { cursor: crosshair; }

/* Placeholder */
.ls-card__img--placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ls-border);
}
.ls-card__img--placeholder svg { width: 48px; height: 48px; }

/* Badges */
.ls-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--ls-font-mono);
  font-size: .56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 10px;
  z-index: 2;
  pointer-events: none;
  border-radius: 0;
}
.ls-card__badge--sale {
  background: var(--ls-black);
  color: var(--ls-white);
}
.ls-card__badge--new {
  background: var(--ls-text-muted);
  color: var(--ls-white);
}

/* Overlay */
.ls-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 14px 14px;
  opacity: 0;
  transition: opacity var(--ls-transition);
  z-index: 3;
  background: linear-gradient(0deg, rgba(8,8,8,.6) 0%, transparent 55%);
}
.ls-card__img-wrap:hover .ls-card__overlay { opacity: 1; }

.ls-card__overlay-cta {
  background: var(--ls-white);
  color: var(--ls-black);
  font-size: .62rem;
  font-weight: 700;
  font-family: var(--ls-font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  transform: translateY(6px);
  transition: transform var(--ls-transition);
  pointer-events: none;
}
.ls-card__img-wrap:hover .ls-card__overlay-cta { transform: translateY(0); }

/* Card body */
.ls-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  border-top: 1px solid var(--ls-border);
}

.ls-card__title {
  font-family: var(--ls-font);
  font-size: .86rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.ls-card__title a {
  color: var(--ls-text);
  text-decoration: none;
  transition: color var(--ls-transition);
}
.ls-card__title a:hover { color: var(--ls-text-muted); }

/* Stars */
.ls-card__stars {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: .78rem;
}
.ls-star { color: var(--ls-border); line-height: 1; }
.ls-star.is-filled { color: var(--ls-amber); }
.ls-card__review-count {
  color: var(--ls-text-xmuted);
  font-family: var(--ls-font-mono);
  font-size: .6rem;
  margin-left: 5px;
}

/* Footer */
.ls-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
  padding-top: 2px;
}

.ls-card__price {
  font-family: var(--ls-font);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ls-text);
  letter-spacing: -.02em;
}
.ls-card__price .woocommerce-Price-currencySymbol { font-weight: 400; font-size: .8em; }
.ls-card__price del {
  color: var(--ls-text-xmuted);
  font-weight: 300;
  font-size: .76rem;
  margin-right: 4px;
  text-decoration: line-through;
}

/* ── BLACK button ────────────────────────────────────────── */
.ls-btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ls-black);
  color: var(--ls-white) !important;
  text-decoration: none !important;
  font-family: var(--ls-font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background var(--ls-transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.ls-btn-cart:hover { background: var(--ls-black-hover); }
.ls-btn-cart:active { opacity: .85; }
.ls-btn-cart.loading { opacity: .4; pointer-events: none; }
.ls-btn-cart.added { background: #3a3a38; }
.ls-btn-cart.added::before { content: '\2713\00a0\00a0'; }

/* ── Empty state ─────────────────────────────────────────── */
.ls-empty {
  padding: 100px 24px;
  text-align: center;
  color: var(--ls-text-muted);
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
}
.ls-empty__icon { font-size: 2rem; margin-bottom: 20px; opacity: .35; }
.ls-empty p { font-size: .88rem; letter-spacing: .02em; margin-bottom: 24px; }
.ls-btn-back {
  display: inline-block;
  padding: 11px 32px;
  background: var(--ls-black);
  color: var(--ls-white);
  text-decoration: none;
  font-family: var(--ls-font-mono);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background var(--ls-transition);
}
.ls-btn-back:hover { background: var(--ls-black-hover); color: var(--ls-white); }

/* ── Pagination ──────────────────────────────────────────── */
.ls-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  margin-top: 48px;
  width: fit-content;
  border: 1px solid var(--ls-border);
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-family: var(--ls-font-mono);
  font-size: .7rem;
  font-weight: 400;
  color: var(--ls-text-muted);
  border-right: 1px solid var(--ls-border);
  background: var(--ls-surface);
  transition: background var(--ls-transition), color var(--ls-transition);
  border-radius: 0;
}
.page-numbers:last-child { border-right: none; }
.page-numbers:hover { background: var(--ls-surface-2); color: var(--ls-text); }
.page-numbers.current {
  background: var(--ls-black);
  color: var(--ls-white);
  border-color: var(--ls-black);
}

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

@media ( max-width: 900px ) {
  .ls-wrap { grid-template-columns: 1fr; }
  .ls-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #252522;
    padding: 20px 0 0;
  }
  .ls-sidebar__title { padding: 0 20px 14px; }
  .ls-cat-list {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 16px 16px;
    gap: 4px;
  }
  .ls-cat-list__item::before { display: none; }
  .ls-cat-list__link {
    padding: 6px 14px;
    font-size: .75rem;
    background: #1c1c1a;
  }
  .ls-cat-list__count { display: none; }
  .ls-main { padding: 24px 20px 48px; }
}

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