/* ─── CATALOG LAYOUT ─── */
.catalog-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
}

.catalog-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 0;
  pointer-events: none;
}

.filter-close-top {
  display: none;
}

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

  .catalog-page::before {
    display: none;
  }

  .filters-sidebar.is-open .filter-close-top {
    display: block;
  }
}

/* TYPE SWITCHER */
.mobile-toolbar {
  display: none;
}

.type-switcher-wrapper {
  position: sticky;
  top: var(--nav-h, 60px);
  z-index: 80;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}

.type-switcher {
  flex: 1;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  border-bottom: none;
  background: transparent;
  /* hide scrollbar for elegance */
  scrollbar-width: none;
}

.type-switcher::-webkit-scrollbar {
  display: none;
}

@media(max-width:900px) {
  .type-switcher-wrapper {
    background: transparent;
    border-bottom: none;
    padding-top: 16px;
    pointer-events: none;
    justify-content: center;
  }

  .mobile-toolbar {
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    overflow: hidden;
    height: 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  @supports (backdrop-filter: blur(10px)) {
    .mobile-toolbar {
      background: color-mix(in srgb, var(--surface) 80%, transparent);
    }
  }

  .mobile-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
  }

  .mobile-toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  .mobile-toolbar-btn:active {
    background: rgba(0, 0, 0, 0.06);
  }

  .mobile-toolbar-sep {
    width: 1px;
    background: var(--border);
    margin: 12px 0;
  }

  .mobile-filter-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    margin-left: -2px;
    line-height: 1;
  }

  .type-switcher {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    pointer-events: auto;
    z-index: 100;
  }

  .type-switcher.is-open {
    display: flex;
    animation: dropdownPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  @keyframes dropdownPop {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .type-switcher-label {
    display: none;
  }

  .type-btn {
    justify-content: flex-start;
    padding: 12px 16px;
    margin-bottom: 2px;
    transition: background 0.2s;
  }

  .type-btn.is-active {
    display: none;
  }

  .mobile-toolbar-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
  }

  .chevron {
    transition: transform 0.3s;
  }
}

.type-switcher-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}



.type-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-btn:hover {
  color: var(--text);
}

.type-btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* INK TYPES */
.ink-types {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
}

.ink-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 8px;
}

.ink-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}

.ink-badge:hover {
  border-color: var(--accent);
}

.ink-badge.is-active {
  border-color: var(--accent);
  background: rgba(255, 141, 0, .05);
  color: var(--accent);
}

.ink-badge .ink-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wax .ink-dot {
  background: #4a90d9;
}

.wax-resin .ink-dot {
  background: #9b59b6;
}

.resin .ink-dot {
  background: #e67e22;
}

/* ─── SIDEBAR FILTERS ─── */
.filters-sidebar {
  padding: 24px;
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  align-self: start;
  z-index: 2;
  /* Extra bottom padding to avoid items pressing against bottom screen */
  padding-bottom: 100px;
  /* Scrollbar offset hack for cleaner look */
  margin-right: -10px;
  padding-right: 34px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.filter-mobile-footer {
  display: none;
}

.filters-sidebar-content {
  height: auto;
  padding: 0;
}

/* Default for PC */

@media(max-width:900px) {
  .filters-sidebar {
    position: fixed;
    inset: 0;
    /* Cover entire screen */
    width: 100%;
    height: 100dvh;
    max-height: none;
    /* Override desktop max-height */
    border: none;
    background: var(--surface);
    z-index: 9999;
    padding: 0;
    /* Clear sidebar padding for header/content split */
    display: none;
    overflow: hidden;
    /* Sidebar itself doesn't scroll */
    overscroll-behavior: contain;
  }

  .filters-sidebar.is-open {
    display: flex;
    flex-direction: column;
  }

  .filter-heading {
    flex-shrink: 0;
    padding: 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 10;
    margin-bottom: 0;
  }

  .filters-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-bottom: 60px;
    /* Space for easier scrolling at bottom */
  }

  .filter-mobile-footer {
    display: flex !important;
    padding: 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    z-index: 20;
    justify-content: center;
  }

  .btn-apply-mobile {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 141, 0, 0.15);
  }
}

.btn-primary {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.filter-heading {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-reset {
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity .2s;
}

.filter-reset:hover {
  opacity: 0.7;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  user-select: none;
  transition: color .15s;
  width: 100%;
}

.filter-option:hover {
  color: var(--accent);
}

/* Info Button Wrap for filtering */
.filter-option-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* ── Info Button ── */
.info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.4s ease, background 0.4s ease,
    border-color 0.4s ease, transform 0.4s ease;
  margin-right: -4px;
  -webkit-tap-highlight-color: transparent;
  z-index: 5;
  outline: none;
  position: relative;
  /* For the expanded tap target */
}

/* Expanded tap area for mobile */
.info-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: transparent;
}

.info-btn:hover,
.info-btn.active {
  border-color: rgba(255, 141, 0, 0.15);
  color: var(--accent);
  background: rgba(255, 141, 0, 0.05);
  transform: scale(1.08);
  z-index: 1001;
  /* Ensure it stays above the tooltip for easy toggling */
}

/* ── Tooltip ── */
.tooltip {
  position: absolute;
  right: 0;
  top: 100%;
  width: 210px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
}

/* Invisible bridge to prevent tooltip from closing when moving mouse from button to content */
.tooltip::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
}

/* Hover logic for PC - now only on the (i) button */
@media (hover: hover) {

  .info-btn:hover+.tooltip,
  .tooltip:hover {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
  }

  .info-btn:hover,
  .tooltip:hover~.info-btn {
    /* Does not work backwards with ~, but we can handle via parent */
  }

  /* Use the wrap hover ONLY for the button highlight if desired, 
     but user asked for tooltip ONLY on 'i'. 
     To keep it simple and allowing 'i' to stay active: */
  .filter-option-wrap:has(.info-btn:hover) .info-btn,
  .filter-option-wrap:has(.tooltip:hover) .info-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 141, 0, 0.04);
  }
}

.tooltip.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.tooltip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.tooltip-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tooltip-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
  transition: opacity 0.45s;
}

.tooltip-link:hover {
  opacity: 0.8;
}

.tooltip-link svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tooltip-arrow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(-45deg);
  top: -6px;
  right: 12px;
}

@media(max-width: 900px) {
  .tooltip {
    right: 0;
    /* Align to right side of the screen/sidebar padding */
    width: calc(100% + 10px);
    /* Fill most of the width */
    max-width: 320px;
  }

  .btn-primary {

    display: block;
  }


}

.filter-checkbox {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
  background: transparent;
}

.filter-option.is-active .filter-checkbox {
  border-color: var(--accent);
  background: var(--accent);
}

.filter-checkbox::after {
  content: '✓';
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity .15s;
}

.filter-option.is-active .filter-checkbox::after {
  opacity: 1;
}

.filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 3px;
}

.filter-subgroup-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin: 12px 0 8px;
}

/* Filter Accordion */
.filter-accordion-toggle {
  cursor: pointer;
  user-select: none;
  transition: color .2s;
  display: flex;
  align-items: center;
}

.filter-accordion-toggle:hover {
  color: var(--text);
}

.accordion-arr {
  transition: transform .3s;
  font-size: 14px;
  font-weight: 400;
  margin-left: auto;
}

.filter-accordion-toggle.is-open .accordion-arr {
  transform: rotate(90deg);
}

.filter-group-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  line-height: 1;
}

.filter-accordion-body {
  display: none;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.filter-accordion-body.is-open {
  display: block;
}

/* Filter scroll box and Sidebar */
.filter-scroll-box {
  scrollbar-width: none;
}

.filter-scroll-box::-webkit-scrollbar {
  display: none;
}

.filters-sidebar::-webkit-scrollbar {
  width: 3px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.size-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.size-input {
  width: 90px;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-family: 'Onest', sans-serif;
  transition: border-color .2s;
  outline: none;
}

.size-input:focus {
  border-color: var(--accent);
}

.size-sep {
  color: var(--muted);
  font-size: 12px;
}

/* ─── LANDING CONTEXT BANNER (mobile only) ─── */
.landing-context-banner {
  display: none;
  margin-bottom: 20px;
}

@media(max-width:900px) {
  .landing-context-banner.is-visible {
    display: block;
  }
}

.landing-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 141, 0, 0.06) 0%, rgba(255, 141, 0, 0.02) 100%);
  border: 1px solid rgba(255, 141, 0, 0.15);
}

.landing-banner-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.landing-banner-label svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.landing-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.landing-banner-link:hover {
  opacity: 1;
}



/* ─── MAIN CONTENT ─── */
.catalog-content {
  padding: 24px 32px;
}

@media(max-width:768px) {
  .catalog-content {
    padding: 20px;
  }
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.catalog-count {
  font-size: 13px;
  color: var(--muted);
}



/* Quick tags */
.quick-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.quick-tag {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  text-decoration: none;
}

.quick-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-tag.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 500;
}

.compat-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 141, 0, .04);
  border: 1px solid rgba(255, 141, 0, .12);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.compat-note strong {
  color: var(--text);
}

/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  transition: opacity .3s ease;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .3s, transform .2s, box-shadow .3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(0, 0, 0, .1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

.card-image {
  width: 100%;
  aspect-ratio: 1/0.85;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image .placeholder {
  font-size: 52px;
  opacity: .2;
  transition: transform .3s, opacity .3s;
}

.product-card:hover .card-image .placeholder {
  transform: scale(1.1);
  opacity: .35;
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
}

.ink-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}

.ink-type-badge.wax {
  background: #4a90d9;
  color: #fff;
}

.ink-type-badge.wax-resin {
  background: #9b59b6;
  color: #fff;
}

.ink-type-badge.resin {
  background: #e67e22;
  color: #fff;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-material,
.card-brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
}

.card-specs {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: auto;
  padding-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--cta);
  border: 1px solid var(--cta);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.card-request-btn:hover {
  background: var(--cta-dim);
  border-color: var(--cta-dim);
}

.card-add-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
}

.card-add-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.card-add-btn.added {
  background: #2d7a3a;
  color: #fff;
  border-color: #2d7a3a;
}

/* No results */
.no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 20px;
  margin-top: 40px;
}

.no-results.is-visible {
  display: flex;
}

.no-results .emoji {
  font-size: 64px;
  margin-bottom: 24px;
  line-height: 1;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.no-results-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.no-results-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.no-results-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(255, 141, 0, 0.2);
}

.no-results-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 141, 0, 0.3);
  filter: brightness(1.1);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 60px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

/* ─── TAXONOMY RICH HERO (AWWWARDS LEVEL SPLIT) ─── */
.taxonomy-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  min-height: 280px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.taxonomy-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  flex: 0 0 55%;
  /* Text takes 55% of width */
  background: var(--surface);
  /* Solid background for text readability */
}

.taxonomy-hero-visual {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.taxonomy-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.taxonomy-hero:hover .taxonomy-hero-visual img {
  transform: scale(1.03) translateX(-1%);
}

/* Smooth fade mask - REMOVED per user request */
.hero-fade-left {
  display: none;
}

/* Premium Abstract CSS Placeholder */
.css-abstract-bg {
  width: 100%;
  height: 100%;
  background-color: #0f1013;
  background-image:
    radial-gradient(at 0% 0%, rgba(0, 0, 0, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(74, 144, 226, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(155, 89, 182, 0.08) 0px, transparent 50%);
  filter: contrast(120%) brightness(110%);
}

.hero-badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 141, 0, 0.05);
  border: 1px solid rgba(255, 141, 0, 0.15);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  max-width: 90%;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Onest', sans-serif;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hero-back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.hero-back-btn svg {
  transition: transform 0.25s ease;
}

.hero-back-btn:hover svg {
  transform: translateX(-4px);
}

.hero-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Onest', sans-serif;
}

@media(max-width:900px) {
  .taxonomy-hero {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .taxonomy-hero-content {
    flex: 1 1 auto;
    padding: 24px;
  }

  .taxonomy-hero-visual {
    height: 200px;
    width: 100%;
    flex: 0 0 200px;
  }

  .hero-fade-left {
    background: linear-gradient(to top, var(--surface) 0%, transparent 30%);
  }

  .hero-desc {
    max-width: 100%;
  }
}

/* ─── SEO LINKS SECTION (Footer Text Grid) ─── */
.seo-links-section {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #2A2A2A;
}

.seo-links-header {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 24px;
}

.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.seo-column-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  margin-bottom: 12px;
}

.seo-links-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-links-column a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-links-column a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .seo-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}