/* ==========================================================================
   v2 — category listing. Loaded only for product/category?v=v2.
   ========================================================================== */

html.route-product-category-v2,
html.route-product-category-v2 body {
  background: #f8f7f6 !important;
}

html.route-product-category-v2 .v2-category {
  width: 100%;
  min-height: 60vh;
  padding: 0 0 96px;
  overflow: hidden;
}

html.route-product-category-v2 .v2c-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumbs stay deliberately quiet: they orient without competing with H1. */
html.route-product-category-v2 .v2c-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 52px;
  padding-top: 4px;
  color: var(--c-ink-40);
  font-size: 12px;
  line-height: 1.4;
}

html.route-product-category-v2 .v2c-breadcrumbs > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html.route-product-category-v2 .v2c-breadcrumbs > span:not(:last-child)::after {
  content: '/';
  color: rgba(48, 47, 48, .22);
}

html.route-product-category-v2 .v2c-breadcrumbs a {
  transition: color var(--tr-fast);
}

html.route-product-category-v2 .v2c-breadcrumbs a:hover { color: var(--c-violet-700); }

html.route-product-category-v2 .v2c-hero { padding: 48px 0 40px; }

html.route-product-category-v2 .v2c-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--c-lilac-600);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html.route-product-category-v2 .v2c-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--c-lilac);
}

html.route-product-category-v2 .v2c-hero__line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

html.route-product-category-v2 .v2c-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

html.route-product-category-v2 .v2c-count {
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--c-ink-70);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

html.route-product-category-v2 .v2c-count strong {
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 600;
}

/* A horizontal rail is easier to scan than the former nested sidebar menu. */
html.route-product-category-v2 .v2c-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 -32px 48px;
  padding: 0 32px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html.route-product-category-v2 .v2c-subcategories::-webkit-scrollbar { display: none; }

html.route-product-category-v2 .v2c-subcategories a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--c-lilac-200);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  transition: border-color var(--tr-fast), background var(--tr-fast), color var(--tr-fast);
}

html.route-product-category-v2 .v2c-subcategories a:hover {
  border-color: var(--c-lilac);
  background: var(--c-tint);
  color: var(--c-violet-700);
}

html.route-product-category-v2 .v2c-subcategories small {
  min-width: 26px;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: var(--c-tint);
  color: var(--c-lilac-600);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

html.route-product-category-v2 .v2c-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--c-ink-08);
  border-bottom: 1px solid var(--c-ink-08);
}

html.route-product-category-v2 .v2c-toolbar__result {
  color: var(--c-ink-70);
  font-size: 13px;
}

html.route-product-category-v2 .v2c-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.route-product-category-v2 .v2c-select {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(160px, auto) 16px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(48, 47, 48, .12);
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-ink-70);
  font-size: 12px;
  font-weight: 500;
}

html.route-product-category-v2 .v2c-select--limit {
  grid-template-columns: auto 38px 16px;
}

html.route-product-category-v2 .v2c-select select {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--ff-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

html.route-product-category-v2 .v2c-select svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--c-ink-70);
  stroke-width: 1.5;
  pointer-events: none;
}

html.route-product-category-v2 .v2c-select:focus-within {
  border-color: var(--c-lilac);
  box-shadow: 0 0 0 2px rgba(185, 153, 228, .14);
}

html.route-product-category-v2 .v2c-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

html.route-product-category-v2 .v2c-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 47, 48, .08);
  border-radius: 16px;
  background: var(--c-surface);
  transition: border-color var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}

html.route-product-category-v2 .v2c-card:hover {
  border-color: rgba(118, 80, 143, .18);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(48, 47, 48, .07);
}

html.route-product-category-v2 .v2c-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f4f1f2;
}

html.route-product-category-v2 .v2c-card__media > a {
  display: block;
  width: 100%;
  height: 100%;
}

html.route-product-category-v2 .v2c-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-img);
}

html.route-product-category-v2 .v2c-card:hover .v2c-card__media img { transform: scale(1.025); }

html.route-product-category-v2 .v2c-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--c-violet-900);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
}

html.route-product-category-v2 .v2c-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(48, 47, 48, .08);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--c-ink-70);
  box-shadow: 0 4px 14px rgba(48, 47, 48, .08);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color var(--tr-fast), background var(--tr-fast), transform var(--tr-fast);
}

html.route-product-category-v2 .v2c-wish:hover {
  background: #fff;
  color: var(--c-violet-700);
  transform: scale(1.04);
}

html.route-product-category-v2 .v2c-wish svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.route-product-category-v2 .v2c-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 16px;
}

html.route-product-category-v2 .v2c-card__model {
  min-height: 15px;
  margin-bottom: 6px;
  overflow: hidden;
  color: var(--c-ink-40);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

html.route-product-category-v2 .v2c-card h2 {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  font-family: var(--ff-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.route-product-category-v2 .v2c-card h2 a { transition: color var(--tr-fast); }
html.route-product-category-v2 .v2c-card h2 a:hover { color: var(--c-violet-700); }

html.route-product-category-v2 .v2c-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 9px;
  min-height: 30px;
  margin-top: 12px;
}

html.route-product-category-v2 .v2c-card__price strong {
  color: var(--c-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

html.route-product-category-v2 .v2c-card__price s {
  color: var(--c-ink-40);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

html.route-product-category-v2 .v2c-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--c-violet-900);
  color: #fff;
  font-family: var(--ff-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast);
}

html.route-product-category-v2 .v2c-add:hover { background: var(--c-violet-700); }
html.route-product-category-v2 .v2c-add:active { transform: translateY(1px); }
html.route-product-category-v2 .v2c-add svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.route-product-category-v2 .v2c-pagination {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-ink-08);
  overflow: visible;
}

html.route-product-category-v2 .v2c-pagination__primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

html.route-product-category-v2 .v2c-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 300px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--c-violet-900);
  border-radius: 12px;
  background: var(--c-violet-900);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background var(--tr-fast), border-color var(--tr-fast);
}

html.route-product-category-v2 .v2c-load-more:hover {
  border-color: var(--c-violet-700);
  background: var(--c-violet-700);
  color: #fff;
}

html.route-product-category-v2 .v2c-load-more.has-error {
  border-color: #a3495c;
  background: #a3495c;
}

html.route-product-category-v2 .v2c-load-more__spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: v2c-spin 700ms linear infinite;
}

html.route-product-category-v2 .v2c-load-more[aria-busy="true"] {
  cursor: wait;
  opacity: .82;
}

html.route-product-category-v2 .v2c-load-more[aria-busy="true"] .v2c-load-more__spinner { display: block; }

@keyframes v2c-spin { to { transform: rotate(360deg); } }

html.route-product-category-v2 .v2c-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  overflow: visible;
}

html.route-product-category-v2 .v2c-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(48, 47, 48, .1);
  border-radius: 12px;
  background: var(--c-surface);
  color: var(--c-ink-70);
  font-family: var(--ff-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

html.route-product-category-v2 a.v2c-page:hover {
  border-color: var(--c-lilac);
  color: var(--c-violet-700);
}

html.route-product-category-v2 .v2c-page.is-current {
  border-color: var(--c-violet-900);
  background: var(--c-violet-900);
  color: #fff;
}

html.route-product-category-v2 .v2c-page--direction {
  color: var(--c-violet-700);
  font-size: 22px;
  font-weight: 400;
}

html.route-product-category-v2 .v2c-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 44px;
  color: var(--c-ink-40);
  font-size: 16px;
  line-height: 1;
}

html.route-product-category-v2 .v2c-pagination__result {
  margin: 0;
  color: var(--c-ink-40);
  font-size: 12px;
  text-align: right;
}

html.route-product-category-v2 .v2c-pagination__complete { display: none; }

html.route-product-category-v2 .v2c-pagination__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html.route-product-category-v2 .v2c-empty {
  padding: 96px 24px;
  border: 1px solid var(--c-ink-08);
  border-radius: var(--r-l);
  background: var(--c-surface);
  text-align: center;
}

html.route-product-category-v2 .v2c-empty h2 { margin-bottom: 24px; font-size: 28px; }
html.route-product-category-v2 .v2c-empty a {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-violet-900);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

html.route-product-category-v2 .v2c-description {
  margin-top: 72px;
  border-top: 1px solid var(--c-ink-08);
  border-bottom: 1px solid var(--c-ink-08);
}

html.route-product-category-v2 .v2c-description summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0;
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

html.route-product-category-v2 .v2c-description summary::-webkit-details-marker { display: none; }
html.route-product-category-v2 .v2c-description summary::marker { display: none; content: ''; }
html.route-product-category-v2 .v2c-description summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform var(--tr-fast);
}

html.route-product-category-v2 .v2c-description[open] summary svg { transform: rotate(180deg); }

html.route-product-category-v2 .v2c-description__body {
  max-width: 860px;
  padding: 0 0 48px;
  color: var(--c-ink-70);
  font-size: 14px;
  line-height: 1.75;
}

html.route-product-category-v2 .v2c-description__body h2,
html.route-product-category-v2 .v2c-description__body h3 {
  margin: 32px 0 12px;
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

html.route-product-category-v2 .v2c-description__body p { margin: 0 0 16px; }
html.route-product-category-v2 .v2c-description__body ul,
html.route-product-category-v2 .v2c-description__body ol { margin: 0 0 16px 20px; }
html.route-product-category-v2 .v2c-description__body li { margin-bottom: 6px; list-style: inherit; }
html.route-product-category-v2 .v2c-description__body a { color: var(--c-violet-700); text-decoration: underline; }

@media (max-width: 1023px) {
  html.route-product-category-v2 .v2c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.route-product-category-v2 .v2c-toolbar__result { display: none; }
  html.route-product-category-v2 .v2c-toolbar { justify-content: flex-end; }
}

@media (max-width: 767px) {
  html.route-product-category-v2 .v2-category { padding-bottom: 64px; }
  html.route-product-category-v2 .v2c-wrap { padding: 0 16px; }

  html.route-product-category-v2 .v2c-breadcrumbs {
    min-height: 44px;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
  }

  html.route-product-category-v2 .v2c-breadcrumbs > span { min-width: 0; }
  html.route-product-category-v2 .v2c-breadcrumbs > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.route-product-category-v2 .v2c-hero { padding: 32px 0 28px; }
  html.route-product-category-v2 .v2c-hero__line {
    display: block;
  }

  html.route-product-category-v2 .v2c-hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.06;
  }

  html.route-product-category-v2 .v2c-count {
    margin-top: 16px;
    padding: 0;
    white-space: normal;
  }

  html.route-product-category-v2 .v2c-subcategories {
    flex-wrap: nowrap;
    margin: 0 -16px 28px;
    padding: 0 16px 8px;
  }

  html.route-product-category-v2 .v2c-subcategories a {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 12px;
  }

  html.route-product-category-v2 .v2c-toolbar {
    min-height: 0;
    margin-bottom: 16px;
    padding: 12px 0;
  }

  html.route-product-category-v2 .v2c-toolbar__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
  }

  html.route-product-category-v2 .v2c-select {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 4px;
    min-width: 0;
    padding: 0 10px;
  }

  html.route-product-category-v2 .v2c-select > span { display: none; }
  html.route-product-category-v2 .v2c-select--limit { grid-template-columns: 36px 16px; }
  html.route-product-category-v2 .v2c-select select { min-width: 0; font-size: 12px; }

  html.route-product-category-v2 .v2c-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  html.route-product-category-v2 .v2c-card { border-radius: 12px; }
  html.route-product-category-v2 .v2c-card:hover { transform: none; box-shadow: none; }
  html.route-product-category-v2 .v2c-card__body { padding: 12px; }
  html.route-product-category-v2 .v2c-card__model { margin-bottom: 4px; font-size: 9px; }
  html.route-product-category-v2 .v2c-card h2 { min-height: 39px; font-size: 12px; line-height: 1.55; }
  html.route-product-category-v2 .v2c-card__price { min-height: 26px; margin-top: 8px; gap: 3px 6px; }
  html.route-product-category-v2 .v2c-card__price strong { font-size: 14px; }
  html.route-product-category-v2 .v2c-card__price s { font-size: 10px; }
  html.route-product-category-v2 .v2c-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 9px; }
  html.route-product-category-v2 .v2c-wish { top: 7px; right: 7px; width: 34px; height: 34px; }
  html.route-product-category-v2 .v2c-wish svg { width: 16px; height: 16px; }
  html.route-product-category-v2 .v2c-add { min-height: 42px; margin-top: 10px; padding: 9px 10px; font-size: 12px; }
  html.route-product-category-v2 .v2c-add svg { display: none; }

  html.route-product-category-v2 .v2c-pagination {
    gap: 16px;
    margin-top: 0;
    padding: 24px 0 32px;
    border-top: 0;
  }

  html.route-product-category-v2 .v2c-pagination__primary {
    display: block;
  }

  html.route-product-category-v2 .v2c-load-more {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: #825a9d;
    font-size: 14px;
    line-height: 20px;
  }

  html.route-product-category-v2 .v2c-load-more:active { background: #6d477f; }
  html.route-product-category-v2 .v2c-pagination__result { display: none; }
  html.route-product-category-v2 .v2c-page-nav { gap: 4px; }
  html.route-product-category-v2 .v2c-page { flex-basis: 44px; width: 44px; height: 44px; border-radius: 10px; }
  html.route-product-category-v2 .v2c-page-ellipsis { flex-basis: 18px; width: 18px; }
  html.route-product-category-v2 .v2c-pagination__complete.is-visible {
    display: block;
    margin: 0;
    color: #777178;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
  }
  html.route-product-category-v2 .v2c-description { margin-top: 48px; }
  html.route-product-category-v2 .v2c-description summary { min-height: 56px; font-size: 20px; }
  html.route-product-category-v2 .v2c-description__body { padding-bottom: 32px; font-size: 13px; }
}

@media (max-width: 359px) {
  html.route-product-category-v2 .v2c-page-nav { gap: 3px; }
  html.route-product-category-v2 .v2c-page { flex-basis: 40px; width: 40px; height: 40px; }
  html.route-product-category-v2 .v2c-page-ellipsis { flex-basis: 14px; width: 14px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html.route-product-category-v2 .v2c-card,
  html.route-product-category-v2 .v2c-card__media img,
  html.route-product-category-v2 .v2c-wish,
  html.route-product-category-v2 .v2c-add { transition: none; }
}
