/* --- Page Categories --- */

:root {
  --cat-accent: var(--rose-500);
  --cat-glass: rgba(255, 255, 255, .06);
  --cat-card-border: rgba(255, 255, 255, .12);
}

.categories-hero {
  position: relative;
  background:
    radial-gradient(120% 120% at -10% 10%, rgba(255, 124, 194, .18), transparent 55%),
    radial-gradient(140% 120% at 110% -20%, rgba(94, 223, 255, .18), transparent 60%),
    var(--card-bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.categories-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 40%, transparent 60%, rgba(255, 255, 255, .04));
  opacity: .4;
  pointer-events: none;
}

.categories-hero .container {
  position: relative;
  z-index: 1;
}

.categories-hero .eyebrow {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.categories-hero .hero-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.categories-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.categories-hero__particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  box-shadow: 0 0 24px rgba(255, 124, 194, .65);
  opacity: .5;
  animation: float 10s ease-in-out infinite;
}

.categories-hero__particles span:nth-child(1) { top: 14%; left: 12%; animation-duration: 12s; }
.categories-hero__particles span:nth-child(2) { top: 28%; right: 10%; animation-duration: 9s; }
.categories-hero__particles span:nth-child(3) { bottom: 18%; left: 22%; animation-duration: 11s; }
.categories-hero__particles span:nth-child(4) { bottom: 8%; right: 18%; animation-duration: 10s; }
.categories-hero__particles span:nth-child(5) { top: 6%; right: 42%; animation-duration: 13s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: .4; }
  50% { transform: translateY(-12px) scale(1.15); opacity: .9; }
  100% { transform: translateY(0) scale(1); opacity: .4; }
}

.categories-hero__header {
  display: grid;
  gap: 1rem;
}

.hero-highlight .hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 600;
  color: rgba(235, 236, 246, .9);
  box-shadow: 0 10px 32px -24px rgba(0, 0, 0, .6);
}

.hero-chip i {
  color: var(--cat-accent);
}

.filter-wrap .searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 520px;
}

.filter-wrap .searchbar i {
  position: absolute;
  left: .85rem;
  pointer-events: none;
  opacity: .7;
}

.filter-wrap .searchbar .form-control {
  padding-left: 2.2rem;
  height: 46px;
  border-radius: 999px;
  background: var(--cat-glass);
  border: 1px solid var(--border);
}

.filter-wrap .searchbar .form-control:focus {
  border-color: var(--cat-accent);
  box-shadow: 0 0 0 .2rem rgba(255, 79, 168, .18);
}

.filter-wrap .stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.categories-toolbar {
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 1.1rem 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  box-shadow: 0 18px 38px -28px rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
}

.categories-search__hint {
  color: rgba(220, 223, 236, .75);
  font-size: .9rem;
  padding-left: 2.1rem;
}

.categories-toolbar__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}

.categories-toolbar__stat {
  padding: .75rem .9rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: .15rem;
  min-height: 100%;
}

.categories-toolbar__stat .label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  color: rgba(220, 223, 236, .7);
}

.categories-toolbar__stat .value {
  font-size: 1.35rem;
  font-weight: 800;
}

.categories-toolbar__stat .hint {
  color: rgba(220, 223, 236, .65);
}

.link-ghost {
  color: #f7dbff;
  text-decoration: none;
}

.link-ghost:hover {
  color: #fff;
  text-decoration: underline;
}

.categories-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem;
  height: 100%;
  min-height: 360px;
  border-radius: calc(var(--radius) * 1.25);
  border: 1px solid var(--cat-card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 28px -20px rgba(0, 0, 0, .65);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .36);
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .55);
}

.category-card--all {
  border-color: rgba(255, 214, 102, .4);
  background: linear-gradient(160deg, rgba(255, 214, 102, .16), rgba(255, 255, 255, .06));
  box-shadow: 0 22px 48px -22px rgba(255, 214, 102, .5);
}

.category-card__preview {
  position: relative;
  border-radius: calc(var(--radius) * 1);
  background:
    radial-gradient(140% 120% at 20% 10%, rgba(255, 124, 194, .15), transparent 45%),
    radial-gradient(140% 130% at 90% 0%, rgba(94, 223, 255, .12), transparent 50%),
    rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.category-card__preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.category-card:hover .category-card__preview-image {
  transform: scale(1.05);
}

.category-card__preview-count {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(10, 12, 20, .7);
  border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 600;
  font-size: .85rem;
  line-height: 1;
  color: rgba(255, 255, 255, .92);
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  z-index: 1;
}

.category-card__preview-count::before {
  content: '';
  position: absolute;
  inset: -.15rem;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 124, 194, .25), rgba(94, 223, 255, .18));
  opacity: .85;
  z-index: -1;
}

.category-card__preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, .55);
  border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  position: relative;
}

.category-card__preview-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 10%, rgba(255, 124, 194, .16), transparent 50%);
  opacity: .6;
  pointer-events: none;
}

.category-card--all .category-card__preview-placeholder {
  background: linear-gradient(135deg, rgba(255, 214, 102, .15), rgba(255, 255, 255, .04));
  border-color: rgba(255, 214, 102, .38);
}

.category-card__body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: space-between;
}

.category-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-card__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.category-card__pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(230, 233, 248, .9);
  border: 1px solid rgba(255, 255, 255, .12);
}

.category-card__pill i {
  color: var(--cat-accent);
}

.category-card__pill--ghost {
  background: rgba(255, 255, 255, .05);
  border-style: dashed;
}

.category-card__pill--accent {
  background: rgba(255, 214, 102, .18);
  border-color: rgba(255, 214, 102, .32);
  color: #fff2d1;
}

.category-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.category-card__description {
  margin: 0;
  color: var(--bs-secondary-color, var(--muted));
  font-size: .95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  flex-wrap: wrap;
}

.category-card__meta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--bs-secondary-color, var(--muted));
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-weight: 600;
  font-size: .85rem;
}

.category-card__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--cat-accent);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.category-card:hover .category-card__cta {
  background: linear-gradient(140deg, rgba(255, 124, 194, .2), rgba(94, 223, 255, .18));
  border-color: rgba(255, 255, 255, .32);
  color: #ffeaf6;
  transform: translateY(-1px);
}

.category-card__cta i {
  font-size: .95rem;
}

.categories-grid .empty-state,
.categories-empty .empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .75rem;
  padding: 2.25rem 2.5rem;
  border-radius: calc(var(--radius) * 1.1);
  border: 1px dashed rgba(255, 255, 255, .18);
  background: rgba(18, 22, 34, .82);
}

.categories-grid .empty-illustration,
.categories-empty .empty-illustration {
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
}

.categories-grid .empty-text,
.categories-empty .empty-text {
  margin: 0;
  max-width: 46ch;
  color: rgba(220, 223, 236, .82);
}

.categories-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.categories-empty .empty-state {
  max-width: min(560px, 100%);
}

@media (max-width: 991.98px) {
  .category-card {
    padding: 1.2rem;
    gap: .9rem;
  }

  .category-card__preview {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 575.98px) {
  .categories-hero .container {
    padding-inline: .5rem;
  }

  .categories-grid {
    gap: 1rem;
  }

  .category-card {
    padding: 1.05rem;
    border-radius: calc(var(--radius) * 1.05);
  }
}

/* --- Category detail page --- */
.category-show{
  display:grid;
  gap:1.75rem;
}
.category-show__hero{
  position:relative;
  overflow:hidden;
  padding:2.6rem 2.8rem;
  border-radius:calc(var(--radius) * 1.3);
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(145deg,rgba(46,52,86,.82),rgba(20,24,40,.88));
}
.category-show__hero::before,
.category-show__hero::after{
  content:"";
  position:absolute;
  inset:auto;
  border-radius:50%;
  filter:blur(140px);
  opacity:.65;
  pointer-events:none;
}
.category-show__hero::before{
  width:360px;
  height:360px;
  top:-180px;
  left:-140px;
  background:rgba(255,124,194,.35);
}
.category-show__hero::after{
  width:420px;
  height:420px;
  bottom:-220px;
  right:-60px;
  background:rgba(94,223,255,.28);
}
.category-show__hero-layout{
  position:relative;
  z-index:1;
  display:grid;
  gap:1.6rem;
  grid-template-columns:minmax(0,1fr);
  align-items:flex-start;
}
.category-show__hero-left{
  display:flex;
  flex-direction:column;
  gap:1.6rem;
}
.category-show__breadcrumb{
  display:flex;
  align-items:center;
  gap:.65rem;
  font-size:.85rem;
  color:rgba(235,237,248,.72);
}
.category-show__breadcrumb a{
  color:inherit;
  opacity:.85;
  transition:opacity .2s ease;
}
.category-show__breadcrumb a:hover{
  opacity:1;
}
.category-show__hero-heading{
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.category-show__hero-chip{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .85rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#f4f6ff;
}
.category-show__title{
  margin:0;
  font-family:var(--font-display,'Marcellus',serif);
  font-size:clamp(2.5rem,4vw,3.2rem);
  letter-spacing:.01em;
}
.category-show__description{
  margin:0;
  color:rgba(226,228,242,.86);
  font-size:1rem;
  max-width:58ch;
  line-height:1.55;
}
.category-show__subtitle{
  margin:0;
  color:rgba(230,232,245,.8);
  font-size:.95rem;
}
.category-show__subtitle a{
  text-decoration:underline;
  text-decoration-style:dotted;
}
.category-show__hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem;
}
.category-show__hero-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.85rem 1.45rem;
  border-radius:16px;
  font-weight:600;
}
.category-show__hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}
.category-show__pill{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.4rem .9rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  font-size:.85rem;
  font-weight:600;
  color:#f5f6ff;
  letter-spacing:.01em;
}
.category-show__pill--soft{
  background:rgba(94,223,255,.16);
  border-color:rgba(94,223,255,.28);
  color:#e6f7ff;
}
.category-show__pill--ghost{
  background:rgba(255,255,255,.06);
  border-style:dashed;
}
.category-show__hero-action-icon{
  display:inline-flex;
}
.category-show__hero-action-icon svg{
  width:1.1rem;
  height:1.1rem;
  fill:currentColor;
}
.category-show__hero-scroll{
  border-color:rgba(255,255,255,.28);
  color:#f0f3ff;
}
.category-show__hero-scroll:hover{
  border-color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.14);
}
.category-show__hero-right{
  display:grid;
  gap:1.25rem;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.category-show__stats{
  padding:1.6rem 1.8rem;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(165deg, rgba(18,22,36,.9), rgba(10,12,22,.92));
  box-shadow:0 16px 32px -28px rgba(0,0,0,.75);
}
.category-show__stat-grid{
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.category-show__stat-grid--inline{
  grid-auto-flow:column;
  grid-auto-columns:minmax(220px,1fr);
  grid-template-columns:none;
  overflow-x:auto;
  padding:.2rem;
  scrollbar-width:thin;
}
.category-show__stat-grid--inline::-webkit-scrollbar{
  height:8px;
}
.category-show__stat-grid--inline::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}
.category-show__stat{
  display:grid;
  grid-template-columns:minmax(0,3rem) 1fr;
  align-items:center;
  gap:.5rem 1rem;
  padding:1.3rem 1.45rem;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(160deg, rgba(24,31,56,.75), rgba(10,13,29,.85));
  box-shadow:0 18px 38px -26px rgba(4,8,18,.88);
  backdrop-filter:blur(8px);
}
.category-stat__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  align-self:stretch;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);
  color:#f7f8ff;
}
.category-stat__icon svg{
  width:1.15rem;
  height:1.15rem;
  fill:currentColor;
  opacity:.92;
}
.category-stat__content{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.category-stat__label{
  font-size:.7rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(232,235,248,.68);
  line-height:1.3;
}
.category-stat__value{
  font-size:1.24rem;
  font-weight:700;
  color:#f5f6ff;
  line-height:1.2;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.category-show__layout{
  display:grid;
  gap:1.75rem;
}
.category-show__aside{
  display:grid;
  gap:1.4rem;
}
.category-show__aside-card{
  padding:1.6rem 1.8rem;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(16,20,32,.75);
  display:grid;
  gap:1rem;
  backdrop-filter:blur(8px);
}
.category-show__aside-card h2{
  margin:0;
  font-size:1.15rem;
  font-weight:600;
}
.category-show__aside-card p{
  margin:0;
  color:rgba(220,224,238,.75);
  line-height:1.55;
}
.category-show__aside-card--note{
  background:linear-gradient(155deg,rgba(72,80,128,.22),rgba(16,20,32,.92));
}
.category-show__aside-card--filters{
  position:sticky;
  top:calc(var(--toolbar-top, 64px) + 1rem);
}
.category-filters{
  display:grid;
  gap:1.2rem;
}
.category-filters__group{
  border:0;
  margin:0;
  padding:0;
  display:grid;
  gap:.8rem;
}
.category-filters__group legend{
  margin:0;
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(208,212,228,.72);
}
.category-filters__range{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.category-filters__label{
  font-size:.78rem;
  color:rgba(208,211,226,.7);
}
.category-filters__input{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  padding:.55rem .75rem;
  color:#f2f4ff;
}
.category-filters__input:focus{
  outline:none;
  border-color:rgba(255,124,194,.45);
  box-shadow:0 0 0 .15rem rgba(255,124,194,.2);
}
.category-filters__options{
  display:grid;
  gap:.45rem;
}
.category-filters__checkbox,
.category-filters__radio{
  display:flex;
  align-items:center;
  gap:.55rem;
  font-size:.85rem;
  color:rgba(225,227,242,.85);
}
.category-filters__checkbox input,
.category-filters__radio input{
  accent-color:#ff7cc2;
}
.category-filters__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.category-filters__actions .btn{
  flex:1 1 auto;
  justify-content:center;
}
.category-show__links{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:.6rem;
}
.category-show__links a{
  color:rgba(230,233,246,.85);
  text-decoration:none;
  font-weight:600;
}
.category-show__chips{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}
.category-show__chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.45rem .9rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  font-size:.85rem;
  font-weight:600;
  color:#f2f4ff;
  transition:all .2s ease;
}
.category-show__chip:hover{
  border-color:rgba(255,255,255,.32);
  background:rgba(255,255,255,.12);
}
.category-show__chip--ghost{
  background:rgba(94,223,255,.12);
  border-color:rgba(94,223,255,.26);
  color:#d8f6ff;
}
.category-show__suggestion-empty{
  display:grid;
  gap:.5rem;
  padding:1.1rem 1.2rem;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(8,12,20,.6);
  color:rgba(230,233,244,.6);
  font-size:.85rem;
  text-align:left;
}
.category-show__content{
  padding:2.1rem 2.3rem;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(170deg, rgba(17,20,30,.95), rgba(10,12,22,.92));
  box-shadow:0 16px 36px -30px rgba(0,0,0,.85);
  display:grid;
  gap:1.8rem;
}
.category-show__toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:1.75rem;
  justify-content:space-between;
  align-items:flex-end;
}
.category-show__toolbar-info{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.category-show__section-title{
  margin:0;
  font-size:1.55rem;
  font-weight:700;
}
.category-show__helper{
  margin:0;
  color:rgba(220,223,235,.7);
  font-size:.9rem;
}
.category-show__filters-active{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:.75rem;
}
.category-show__filter-chip{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.35rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#f5f6ff;
  font-size:.78rem;
  font-weight:600;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.18);
  transition:background .18s ease, border-color .18s ease;
}
.category-show__filter-chip span{
  font-size:1rem;
  line-height:1;
}
.category-show__filter-chip:hover{
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.3);
}
.category-show__filter-hint{
  font-size:.8rem;
  color:rgba(220,223,235,.65);
}
.category-show__sort{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.category-show__sort-label{
  font-size:.85rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(220,224,236,.65);
}
.category-show__sort .form-select{
  min-width:200px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(26,30,44,.92);
  color:#f5f6ff;
}
.category-show__reset{
  font-size:.85rem;
  color:rgba(255,255,255,.75);
  text-decoration:underline;
  text-decoration-style:dotted;
}
.category-show__grid{
  display:grid;
  gap:1.5rem;
  list-style:none;
  margin:0;
  padding:0;
}
@media (min-width:576px){
  .category-show__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (min-width:992px){
  .category-show__grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (min-width:1280px){
  .category-show__grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
.category-show__grid-item{
  display:flex;
  min-width:0;
}
.category-show__grid-item .product-card{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  display:flex;
  background:rgba(15,19,31,.9);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 14px 28px rgba(0,0,0,.28);
  transition:transform .18s ease, box-shadow .18s ease;
}
.category-show__grid-item .product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 40px rgba(0,0,0,.45);
}
.product-card__link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none;
  width:100%;
}
.product-card__media{
  position:relative;
  aspect-ratio:4/5;
  background:rgba(12,15,25,.92);
  overflow:hidden;
}
.product-card--oos .product-card__media::after{
  content:'RUPTURE';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:.18em;
  font-size:1.05rem;
  color:#ffe6e6;
  text-transform:uppercase;
  background:linear-gradient(180deg,rgba(24,4,8,.65),rgba(12,8,14,.85));
  backdrop-filter:blur(3px);
  mix-blend-mode:screen;
}
.product-card--oos .product-card__media::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 50%, rgba(255,94,94,.28), transparent 60%);
  pointer-events:none;
}
.product-card__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
}
.product-card__placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.4);
  font-weight:700;
  letter-spacing:.2em;
}
.product-card__badges{
  position:absolute;
  top:12px;
  left:12px;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.product-card__badge{
  padding:.35rem .7rem;
  border-radius:999px;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.02em;
  background:rgba(12,14,22,.85);
  color:#f6f5ff;
  backdrop-filter:blur(4px);
  box-shadow:0 6px 12px rgba(0,0,0,.28);
}
.product-card__badge--new{
  background:rgba(255,124,194,.28);
  color:#ffe6f4;
  border:1px solid rgba(255,124,194,.32);
}
.product-card__badge--oos{
  background:linear-gradient(135deg, rgba(255,94,94,.4), rgba(255,134,134,.32));
  color:#fff3f3;
  border:1px solid rgba(255,94,94,.45);
  box-shadow:0 8px 16px rgba(255,94,94,.22);
}
.product-card__badge--low{
  background:rgba(255,209,102,.24);
  color:#fff2d1;
  border:1px solid rgba(255,209,102,.32);
}
.product-card__badge--ghost{
  background:rgba(255,255,255,.12);
  color:#f5f6ff;
}
.product-card__body{
  display:flex;
  flex-direction:column;
  gap:.75rem;
  flex:1;
  min-height:210px;
  padding:1rem 1.1rem 1.2rem;
}
.product-card__title{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.7rem;
}
.product-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  min-height:1.8rem;
}
.product-card__meta-chip{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.25rem .65rem;
  border-radius:999px;
  font-size:.75rem;
  background:rgba(255,255,255,.08);
  color:rgba(230,233,248,.88);
}
.product-card__meta-chip--status{
  background:rgba(118,181,255,.18);
  color:#d8e9ff;
}
.product-card__footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem .85rem;
  width:100%;
  flex-wrap:wrap;
}
.product-card__price{
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.02em;
  display:flex;
  align-items:baseline;
  gap:.25rem;
  white-space:nowrap;
}
.product-card__cta{
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  padding:.45rem .95rem;
  font-weight:600;
  font-size:.9rem;
  transition:background .18s ease, border-color .18s ease;
  white-space:nowrap;
  margin-left:auto;
  flex-shrink:0;
  align-self:flex-start;
}
.product-card__link:hover .product-card__cta{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.26);
}
.category-pagination{
  display:flex;
  justify-content:center;
}
.category-pagination__list{
  display:flex;
  gap:.6rem;
  padding:0;
  margin:0;
  list-style:none;
}
.category-pagination__item{
  display:flex;
}
.category-pagination__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.55rem 1.1rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  color:#f4f6ff;
  font-weight:600;
  background:rgba(255,255,255,.06);
  transition:all .18s ease;
}
.category-pagination__item.is-active .category-pagination__link{
  background:rgba(255,124,194,.24);
  border-color:rgba(255,124,194,.32);
  color:#ffe6f4;
}
.category-pagination__item.is-disabled .category-pagination__link{
  opacity:.4;
  pointer-events:none;
}
.category-pagination__link:hover{
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.12);
}
.category-show__empty{
  display:grid;
  justify-items:center;
  gap:1rem;
  padding:3rem 2.4rem;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.14);
  background:rgba(18,22,34,.8);
  text-align:center;
}
.category-show__empty-icon{
  font-size:2.5rem;
  color:rgba(255,255,255,.8);
}
.category-show__empty-title{
  margin:0;
  font-size:1.4rem;
  font-weight:700;
}
.category-show__empty-text{
  margin:0;
  color:rgba(220,223,236,.7);
  max-width:52ch;
}
.category-show__empty .btn{
  border-radius:14px;
  padding:.8rem 1.4rem;
}

.category-show__cta{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:1.4rem;
  padding:2rem 2.4rem;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(140deg,rgba(94,223,255,.14),rgba(46,52,86,.82));
}
.category-show__cta-content h2{
  margin:0 0 .6rem;
  font-size:1.55rem;
  font-weight:700;
}
.category-show__cta-content p{
  margin:0;
  color:rgba(228,231,244,.78);
  max-width:48ch;
}
.category-show__cta-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}
.category-show__cta-actions .btn{
  border-radius:16px;
  padding:.85rem 1.5rem;
  font-weight:600;
}

@media (max-width: 991px) {
  .categories-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (min-width:992px){
  .category-show__layout{
    grid-template-columns:minmax(0,280px) minmax(0,1fr);
  }
}
@media (max-width:992px){
  .category-show__hero{
    padding:2.1rem 1.8rem;
  }
  .category-show__hero-layout{
    grid-template-columns:minmax(0,1fr);
  }
}
@media (max-width:768px){
  .category-show__content{
    padding:1.6rem;
  }
  .category-show__toolbar{
    align-items:flex-start;
  }
  .category-show__sort{
    width:100%;
    justify-content:space-between;
  }
  .category-show__sort .form-select{
    flex:1 1 auto;
  }
  .category-show__cta{
    padding:1.6rem;
  }
  .category-show__cta-actions{
    width:100%;
  }
  .category-show__cta-actions .btn{
    flex:1 1 auto;
    justify-content:center;
  }
}
