/* ═══════════════════════════════════════════════════════════════
   AZURONN — CATEGORY / LISTING PAGE (below the hero)
   Clean, classic, premium. Loaded ONLY on body.shop-page.
   All selectors prefixed sl- so nothing leaks to other pages.
   The hero above this block is styled elsewhere and untouched.
   ═══════════════════════════════════════════════════════════════ */

body.shop-page .sl-wrap {
  background: #ffffff;
  color: #1a1a1a;
  --sl-ink: #1a1a1a;
  --sl-ink-soft: #6b6b6b;
  --sl-faint: #9a9a9a;
  --sl-line: #e8e8e6;
  --sl-tile: #f4f4f3;
  --sl-tile-hover: #efefed;
  --sl-accent: #1a1a1a;
  --sl-gold: #b08a4f;
  --sl-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sl-sans: 'Jost', 'Montserrat', 'Outfit', system-ui, sans-serif;
  --sl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.shop-page .sl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px 80px;
}

/* ── "Choose your style" carousel ───────────────────────────── */
body.shop-page .sl-stylebar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--sl-line);
}

body.shop-page .sl-stylebar-label {
  flex: 0 0 auto;
  font-family: var(--sl-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sl-ink);
  letter-spacing: 0.01em;
}

body.shop-page .sl-stylebar-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

body.shop-page .sl-stylebar-track {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px;
}

body.shop-page .sl-stylebar-track::-webkit-scrollbar { display: none; }

body.shop-page .sl-stylebar-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sl-ink-soft);
  transition: color 0.2s var(--sl-ease);
}

body.shop-page .sl-stylebar-item:hover { color: var(--sl-ink); }

body.shop-page .sl-stylebar-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sl-tile);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--sl-line);
  transition: border-color 0.2s var(--sl-ease), box-shadow 0.2s var(--sl-ease);
}

body.shop-page .sl-stylebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.shop-page .sl-stylebar-name {
  font-family: var(--sl-sans);
  font-size: 0.92rem;
  white-space: nowrap;
}

body.shop-page .sl-stylebar-item.is-active { color: var(--sl-ink); }

body.shop-page .sl-stylebar-item.is-active .sl-stylebar-thumb {
  border-color: var(--sl-ink);
  box-shadow: 0 0 0 1px var(--sl-ink);
}

body.shop-page .sl-stylebar-item.is-active .sl-stylebar-name { font-weight: 600; }

body.shop-page .sl-stylebar-arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sl-line);
  background: #fff;
  color: var(--sl-ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transition: all 0.2s var(--sl-ease);
}

body.shop-page .sl-stylebar-arrow:hover {
  border-color: var(--sl-ink);
  color: var(--sl-ink);
}

/* ── Toolbar: filters + count + sort ────────────────────────── */
body.shop-page .sl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

body.shop-page .sl-filters {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

body.shop-page .sl-filters-label {
  font-family: var(--sl-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sl-ink);
}

body.shop-page .sl-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.shop-page .sl-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: var(--sl-sans);
  font-size: 0.92rem;
  color: var(--sl-ink);
  padding: 4px 22px 4px 2px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--sl-ease);
}

body.shop-page .sl-select:hover { border-bottom-color: var(--sl-line); }
body.shop-page .sl-select:focus { outline: none; border-bottom-color: var(--sl-ink); }

body.shop-page .sl-select-caret {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
  color: var(--sl-faint);
  pointer-events: none;
}

body.shop-page .sl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

body.shop-page .sl-count {
  font-family: var(--sl-sans);
  font-size: 0.92rem;
  color: var(--sl-ink-soft);
  white-space: nowrap;
}

body.shop-page .sl-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.shop-page .sl-sort-label {
  font-family: var(--sl-sans);
  font-size: 0.92rem;
  color: var(--sl-ink-soft);
}

/* ── Active filter pills ────────────────────────────────────── */
body.shop-page .sl-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: -14px 0 28px;
}

body.shop-page .sl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #f5f4f1;
  border: 1px solid var(--sl-line);
  font-family: var(--sl-sans);
  font-size: 0.78rem;
  color: var(--sl-ink);
}

body.shop-page .sl-pill strong {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  color: var(--sl-ink-soft);
}

body.shop-page .sl-pill a {
  color: var(--sl-faint);
  text-decoration: none;
  font-size: 0.7rem;
  transition: color 0.2s var(--sl-ease);
}

body.shop-page .sl-pill a:hover { color: var(--sl-ink); }

body.shop-page .sl-pills-clear {
  font-family: var(--sl-sans);
  font-size: 0.78rem;
  color: var(--sl-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 4px;
}

body.shop-page .sl-flash {
  padding: 12px 18px;
  margin-bottom: 22px;
  border-radius: 6px;
  font-family: var(--sl-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid;
}

body.shop-page .sl-flash--success { background: #eef6f0; border-color: #cfe6d8; color: #2e6e4f; }
body.shop-page .sl-flash--error { background: #fbeeed; border-color: #f0d2cf; color: #9c3830; }

/* ── Product grid ───────────────────────────────────────────── */
body.shop-page .sl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}

body.shop-page .sl-card { display: grid; gap: 14px; }

body.shop-page .sl-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sl-tile);
  border-radius: 4px;
  overflow: hidden;
}

body.shop-page .sl-card-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
}

body.shop-page .sl-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s var(--sl-ease), transform 0.4s var(--sl-ease);
}

body.shop-page .sl-card-img--hover {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}

body.shop-page .sl-card:hover .sl-card-img--hover { opacity: 1; }
body.shop-page .sl-card:hover .sl-card-img:not(.sl-card-img--hover) { opacity: 0; }

body.shop-page .sl-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
  font-family: var(--sl-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.shop-page .sl-card-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s var(--sl-ease), transform 0.25s var(--sl-ease);
}

body.shop-page .sl-card:hover .sl-card-wish,
body.shop-page .sl-card-wish:focus-within { opacity: 1; transform: translateY(0); }

body.shop-page .sl-card-wish-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sl-ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: color 0.2s var(--sl-ease), transform 0.2s var(--sl-ease);
}

body.shop-page .sl-card-wish-btn:hover { transform: scale(1.08); }
body.shop-page .sl-card-wish-btn.is-active { color: #c0392b; }

body.shop-page .sl-card-swatches {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--sl-ease), transform 0.25s var(--sl-ease);
}

body.shop-page .sl-card:hover .sl-card-swatches { opacity: 1; transform: translateY(0); }

body.shop-page .sl-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

body.shop-page .sl-swatch--gold { background: radial-gradient(circle at 35% 30%, #f3dca0, #cd9f4f 70%); }
body.shop-page .sl-swatch--rose { background: radial-gradient(circle at 35% 30%, #f4d6c8, #d99c84 70%); }
body.shop-page .sl-swatch--white { background: radial-gradient(circle at 35% 30%, #ffffff, #d6d9da 70%); }
body.shop-page .sl-swatch--platinum { background: radial-gradient(circle at 35% 30%, #f1f2f3, #b8bec2 70%); }
body.shop-page .sl-swatch--silver { background: radial-gradient(circle at 35% 30%, #f4f5f6, #c2c6c9 70%); }

body.shop-page .sl-card-info {
  display: grid;
  gap: 5px;
  padding: 0 2px;
}

body.shop-page .sl-card-name {
  font-family: var(--sl-sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--sl-ink);
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s var(--sl-ease);
}

body.shop-page .sl-card-name:hover { color: var(--sl-gold); }

body.shop-page .sl-card-price {
  font-family: var(--sl-sans);
  font-size: 0.86rem;
  color: var(--sl-ink-soft);
}

body.shop-page .sl-card-price strong { color: var(--sl-ink); font-weight: 600; }

/* ── Empty state ────────────────────────────────────────────── */
body.shop-page .sl-empty {
  text-align: center;
  padding: 70px 24px;
  border: 1px solid var(--sl-line);
  border-radius: 8px;
}

body.shop-page .sl-empty h3 {
  font-family: var(--sl-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--sl-ink);
  margin: 0 0 12px;
}

body.shop-page .sl-empty p {
  color: var(--sl-ink-soft);
  font-family: var(--sl-sans);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

body.shop-page .sl-empty-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--sl-accent);
  color: #fff;
  font-family: var(--sl-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: opacity 0.2s var(--sl-ease);
}

body.shop-page .sl-empty-btn:hover { opacity: 0.88; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  body.shop-page .sl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body.shop-page .sl-container { padding: 22px 15px 60px; }
  body.shop-page .sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  body.shop-page .sl-stylebar { flex-direction: column; align-items: flex-start; gap: 14px; }
  body.shop-page .sl-stylebar-carousel { width: 100%; }
  body.shop-page .sl-toolbar { flex-direction: column; align-items: flex-start; gap: 16px; }
  body.shop-page .sl-toolbar-right { width: 100%; justify-content: space-between; }
  body.shop-page .sl-filters { gap: 18px; }
}

@media (max-width: 480px) {
  body.shop-page .sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  body.shop-page .sl-card-name { font-size: 0.9rem; }
  body.shop-page .sl-card-wish { opacity: 1; transform: none; }
  body.shop-page .sl-card-swatches { opacity: 1; transform: none; }
}
