/* Category V3 — page-specific styles */
/* Shared design system, header, footer loaded via homepage.css */

    /* ========================================
       CATEGORY HERO
       ======================================== */

    .cat-hero {
      position: relative;
      padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
      background:
        /* Fine crosshatch pattern */
        repeating-linear-gradient(
          45deg,
          transparent,
          transparent 24px,
          rgba(216,195,165,0.12) 24px,
          rgba(216,195,165,0.12) 25px
        ),
        repeating-linear-gradient(
          -45deg,
          transparent,
          transparent 24px,
          rgba(216,195,165,0.12) 24px,
          rgba(216,195,165,0.12) 25px
        ),
        var(--sand-pale);
      overflow: hidden;
    }

    /* Layered background details */
    .cat-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        /* Soft radial glow behind the product cards */
        radial-gradient(ellipse 50% 70% at 75% 50%, rgba(216,195,165,0.25) 0%, transparent 70%),
        /* Diagonal gradient wash */
        linear-gradient(160deg, transparent 0%, rgba(216,195,165,0.1) 40%, rgba(58,78,57,0.03) 100%);
      pointer-events: none;
    }

    /* Thin decorative ring — top left */
    .cat-hero::after {
      content: '';
      position: absolute;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      border: 1px solid var(--sand);
      opacity: 0.3;
      top: -260px;
      left: -120px;
      pointer-events: none;
    }

    /* Small ring — bottom right, behind products */
    .cat-hero__inner::before {
      content: '';
      position: absolute;
      bottom: -100px;
      right: 5%;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      border: 1px solid var(--sand);
      opacity: 0.2;
      pointer-events: none;
    }

    /* Decorative dots cluster — left side */
    .cat-hero__dots {
      position: absolute;
      left: clamp(20px, 4vw, 80px);
      bottom: clamp(30px, 5vw, 60px);
      display: grid;
      grid-template-columns: repeat(5, 6px);
      gap: 10px;
      opacity: 0.2;
      pointer-events: none;
      z-index: 1;
    }

    .cat-hero__dots span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      border: 1px solid var(--sand);
    }

    /* Diagonal slash accent — top right corner, away from cards */
    .cat-hero__slash {
      position: absolute;
      top: 24px;
      right: clamp(40px, 6vw, 100px);
      width: 1px;
      height: 80px;
      background: var(--sand);
      opacity: 0.25;
      transform: rotate(-30deg);
      pointer-events: none;
      z-index: 1;
    }

    /* Second smaller ring — mid left */
    .cat-hero__ring {
      position: absolute;
      left: 15%;
      top: 50%;
      transform: translateY(-50%);
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 1px solid var(--sand);
      opacity: 0.15;
      pointer-events: none;
      z-index: 1;
    }

    .cat-hero__inner {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(32px, 4vw, 64px);
      align-items: center;
    }

    .cat-hero__text {
      max-width: 540px;
    }

    .cat-hero__breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.05em;
      margin-bottom: 20px;
    }

    .cat-hero__breadcrumb a {
      color: var(--muted);
      transition: color 0.3s var(--ease);
    }

    .cat-hero__breadcrumb a:hover { color: var(--forest); }

    .cat-hero__breadcrumb svg {
      width: 12px;
      height: 12px;
      opacity: 0.5;
    }

    .cat-hero__title {
      font-family: var(--font-display);
      font-size: clamp(36px, 5vw, 60px);
      font-weight: 300;
      line-height: 1.1;
      color: var(--charcoal);
      letter-spacing: -0.02em;
      margin-bottom: 16px;
    }

    .cat-hero__title em {
      font-style: italic;
      color: var(--forest);
    }

    .cat-hero__desc {
      font-size: 15px;
      line-height: 1.75;
      color: var(--charcoal-soft);
      margin-bottom: 24px;
    }

    .cat-hero__count {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--forest);
    }

    .cat-hero__count-line {
      width: 32px;
      height: 1px;
      background: var(--sand);
    }

    /* Featured products — right side */
    .cat-hero__featured {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .cat-hero__product {
      background: var(--warm-white);
      border-radius: 8px;
      padding: 16px 12px 14px;
      text-align: center;
      border: 1px solid var(--border);
      transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
      position: relative;
    }

    .cat-hero__product:nth-child(2) {
      transform: translateY(-16px);
    }

    .cat-hero__product:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }

    .cat-hero__product:nth-child(2):hover {
      transform: translateY(-22px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }

    .cat-hero__product-badge {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 2;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--warm-white);
      background: var(--forest);
      padding: 3px 8px;
      border-radius: 3px;
    }

    .cat-hero__product-img {
      width: 100%;
      aspect-ratio: 1;
      background: var(--sand-pale);
      border-radius: 6px;
      margin-bottom: 12px;
      overflow: hidden;
    }

    .cat-hero__product-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s var(--ease);
    }

    .cat-hero__product:hover .cat-hero__product-img img {
      transform: scale(1.05);
    }

    .cat-hero__product-name {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 500;
      color: var(--charcoal);
      line-height: 1.3;
      margin-bottom: 4px;
    }

    .cat-hero__product-price {
      font-size: 13px;
      font-weight: 600;
      color: var(--forest);
    }

    .cat-hero__product-seats {
      font-size: 10px;
      color: var(--muted);
      margin-top: 2px;
    }

    /* ========================================
       SUBCATEGORY NAV
       ======================================== */

    .cat-subnav {
      border-bottom: 1px solid var(--border);
      background: var(--warm-white);
      position: sticky;
      top: 72px;
      z-index: 90;
      transition: box-shadow 0.3s var(--ease);
    }

    .cat-subnav.scrolled {
      box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    }

    .cat-subnav__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      height: 56px;
    }

    .cat-subnav__tabs {
      display: flex;
      gap: 4px;
      list-style: none;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      flex: 1;
    }

    .cat-subnav__tabs::-webkit-scrollbar { display: none; }

    .cat-subnav__tab {
      white-space: nowrap;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 8px 16px;
      border-radius: 100px;
      transition: all 0.3s var(--ease);
      cursor: pointer;
    }

    .cat-subnav__tab:hover {
      color: var(--forest);
      background: var(--sand-pale);
    }

    .cat-subnav__tab.active {
      color: var(--forest-dark);
      background: var(--sand-pale);
      font-weight: 600;
    }

    .cat-subnav__tab a { color: inherit; }

    /* ========================================
       FILTER SIDEBAR
       ======================================== */

    .cat-layout {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 0;
      transition: grid-template-columns 0.4s var(--ease-out);
    }

    .cat-layout.sidebar-collapsed {
      grid-template-columns: 0px 1fr;
    }

    /* Sidebar */
    .cat-sidebar {
      border-right: 1px solid var(--border);
      padding: clamp(24px, 3vw, 40px) 28px clamp(32px, 4vw, 56px) 0;
      position: sticky;
      top: 128px; /* header 72 + subnav 56 */
      height: calc(100vh - 128px);
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
      transition: opacity 0.3s var(--ease), padding 0.4s var(--ease-out), border-color 0.3s var(--ease);
    }

    .cat-layout.sidebar-collapsed .cat-sidebar {
      opacity: 0;
      padding-left: 0;
      padding-right: 0;
      border-color: transparent;
      pointer-events: none;
    }

    .cat-sidebar::-webkit-scrollbar { width: 4px; }
    .cat-sidebar::-webkit-scrollbar-track { background: transparent; }
    .cat-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .cat-sidebar__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }

    .cat-sidebar__title {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--charcoal);
    }

    .cat-sidebar__clear {
      font-size: 12px;
      color: var(--muted);
      transition: color 0.3s var(--ease);
      cursor: pointer;
    }

    .cat-sidebar__clear:hover { color: var(--forest); }

    /* Active filter chips */
    .cat-sidebar__active {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 20px;
    }

    .cat-sidebar__chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 500;
      color: var(--forest-dark);
      background: var(--sand-pale);
      border: 1px solid var(--border);
      padding: 4px 10px;
      border-radius: 100px;
      cursor: pointer;
      transition: all 0.25s var(--ease);
    }

    .cat-sidebar__chip:hover {
      background: var(--sand-light);
      border-color: var(--sand);
    }

    .cat-sidebar__chip svg {
      width: 10px;
      height: 10px;
      opacity: 0.6;
    }

    /* Filter group */
    .filter-group {
      border-bottom: 1px solid var(--border);
    }

    .filter-group__trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 600;
      color: var(--charcoal);
      letter-spacing: 0.02em;
      cursor: pointer;
      background: none;
      border: none;
    }

    .filter-group__trigger:hover { color: var(--forest); }

    .filter-group__icon {
      width: 18px;
      height: 18px;
      color: var(--muted);
      transition: transform 0.3s var(--ease);
    }

    .filter-group.open .filter-group__icon {
      transform: rotate(180deg);
    }

    .filter-group__body {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
    }

    .filter-group.open .filter-group__body {
      max-height: 400px;
      padding-bottom: 16px;
    }

    .filter-group__list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    /* Checkbox-style filter items */
    .filter-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 8px;
      border-radius: 3px;
      cursor: pointer;
      transition: background 0.2s var(--ease);
    }

    .filter-item:hover {
      background: var(--sand-pale);
    }

    .filter-item__check {
      width: 16px;
      height: 16px;
      border: 1.5px solid var(--border);
      border-radius: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s var(--ease);
    }

    .filter-item__check svg {
      width: 10px;
      height: 10px;
      color: #fff;
      opacity: 0;
      transition: opacity 0.2s var(--ease);
    }

    .filter-item.selected .filter-item__check {
      background: var(--forest);
      border-color: var(--forest);
    }

    .filter-item.selected .filter-item__check svg {
      opacity: 1;
    }

    .filter-item__label {
      font-size: 13px;
      color: var(--charcoal-soft);
      flex: 1;
    }

    .filter-item__count {
      font-size: 11px;
      color: var(--muted);
    }

    /* Price range filter */
    .filter-price {
      padding: 4px 0 0;
    }

    .filter-price__inputs {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .filter-price__field {
      flex: 1;
      position: relative;
    }

    .filter-price__field span {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 13px;
      color: var(--muted);
      pointer-events: none;
    }

    .filter-price__input {
      width: 100%;
      font-family: var(--font-body);
      font-size: 13px;
      color: var(--charcoal);
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 8px 10px 8px 22px;
      transition: border-color 0.3s var(--ease);
    }

    .filter-price__input:focus {
      outline: none;
      border-color: var(--forest);
    }

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

    .filter-price__apply {
      margin-top: 12px;
      width: 100%;
      padding: 8px;
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--forest);
      background: transparent;
      border: 1px solid var(--forest);
      border-radius: 2px;
      cursor: pointer;
      transition: all 0.3s var(--ease);
    }

    .filter-price__apply:hover {
      background: var(--forest);
      color: #fff;
    }

    /* Color swatches */
    .filter-swatches {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 4px 0 0;
    }

    .filter-swatch {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s var(--ease);
      position: relative;
    }

    .filter-swatch::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 1.5px solid transparent;
      transition: border-color 0.2s var(--ease);
    }

    .filter-swatch:hover::after,
    .filter-swatch.selected::after {
      border-color: var(--forest);
    }

    /* Hide/Show filter toggle (desktop) */
    .cat-toolbar__hide-filters {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--charcoal-soft);
      padding: 8px 16px;
      border: 1px solid var(--border);
      border-radius: 2px;
      cursor: pointer;
      transition: all 0.3s var(--ease);
    }

    .cat-toolbar__hide-filters:hover {
      border-color: var(--forest);
      color: var(--forest);
    }

    .cat-layout.sidebar-collapsed .cat-toolbar__hide-filters {
      background: var(--forest);
      border-color: var(--forest);
      color: #fff;
    }

    .cat-layout.sidebar-collapsed .cat-toolbar__hide-filters:hover {
      background: var(--forest-dark);
      border-color: var(--forest-dark);
    }

    .cat-toolbar__hide-filters svg {
      width: 14px;
      height: 14px;
    }

    /* Mobile filter toggle */
    .cat-toolbar__filter-btn {
      display: none;
      align-items: center;
      gap: 6px;
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--charcoal);
      padding: 8px 14px;
      border: 1px solid var(--border);
      border-radius: 2px;
      cursor: pointer;
      transition: all 0.3s var(--ease);
    }

    .cat-toolbar__filter-btn:hover {
      border-color: var(--forest);
      color: var(--forest);
    }

    .cat-toolbar__filter-btn svg {
      width: 14px;
      height: 14px;
    }

    .cat-toolbar__filter-count {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--forest);
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Mobile overlay */
    .cat-sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 200;
      opacity: 0;
      transition: opacity 0.3s var(--ease);
    }

    .cat-sidebar-overlay.active {
      opacity: 1;
    }

    .cat-sidebar__close {
      display: none;
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      align-items: center;
      justify-content: center;
      color: var(--charcoal);
      cursor: pointer;
    }

    .cat-sidebar__close svg {
      width: 18px;
      height: 18px;
    }

    /* ========================================
       TOOLBAR (Sort + View + Count)
       ======================================== */

    .cat-toolbar {
      padding: 20px 0;
      border-bottom: 1px solid var(--border);
    }

    .cat-toolbar__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .cat-toolbar__left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .cat-toolbar__count {
      font-size: 13px;
      color: var(--muted);
    }

    .cat-toolbar__count strong {
      color: var(--charcoal);
      font-weight: 600;
    }

    .cat-toolbar__right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .cat-toolbar__sort {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .cat-toolbar__sort-label {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
    }

    /* Per-page selector */
    .cat-toolbar__per-page {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
    }

    .cat-toolbar__per-page span {
      color: var(--muted);
    }

    .cat-toolbar__per-page a {
      color: var(--muted);
      text-decoration: none;
      padding: 2px 0;
      transition: color 0.2s var(--ease);
    }

    .cat-toolbar__per-page a:hover {
      color: var(--charcoal);
    }

    .cat-toolbar__per-page a.active {
      color: var(--charcoal);
      font-weight: 700;
    }

    .cat-toolbar__per-page-sep {
      color: var(--border);
    }

    .cat-toolbar__sort-select {
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 500;
      color: var(--charcoal);
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 2px;
      padding: 8px 32px 8px 12px;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237A7A7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      transition: border-color 0.3s var(--ease);
    }

    .cat-toolbar__sort-select:hover,
    .cat-toolbar__sort-select:focus {
      border-color: var(--forest);
      outline: none;
    }

    .cat-toolbar__views {
      display: flex;
      gap: 4px;
      border: 1px solid var(--border);
      border-radius: 2px;
      overflow: hidden;
    }

    .cat-toolbar__view-btn {
      padding: 7px 10px;
      color: var(--muted);
      transition: all 0.25s var(--ease);
      display: flex;
      align-items: center;
    }

    .cat-toolbar__view-btn:hover {
      color: var(--forest);
    }

    .cat-toolbar__view-btn.active {
      background: var(--forest);
      color: #fff;
    }

    .cat-toolbar__view-btn svg {
      width: 16px;
      height: 16px;
    }

    /* ========================================
       PRODUCT GRID
       ======================================== */

    .cat-main {
      min-width: 0;
      padding-left: clamp(24px, 3vw, 40px);
      transition: padding-left 0.4s var(--ease-out);
    }

    .cat-layout.sidebar-collapsed .cat-main {
      padding-left: 0;
    }

    .cat-products {
      padding: clamp(24px, 3vw, 40px) 0 var(--section-pad);
    }

    .cat-products__grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }

    /* Four-column variant */
    .cat-products__grid--4col {
      grid-template-columns: repeat(4, 1fr);
    }

    /* Expand grid when sidebar is collapsed */
    .cat-layout.sidebar-collapsed .cat-products__grid {
      grid-template-columns: repeat(4, 1fr);
    }

    .cat-layout.sidebar-collapsed .cat-products__grid--4col {
      grid-template-columns: repeat(4, 1fr);
    }

    /* Product card */
    .product-card {
      position: relative;
      cursor: pointer;
    }

    .product-card__image-wrap {
      display: block;
      text-decoration: none;
      color: inherit;
      position: relative;
      aspect-ratio: 1/1;
      background: var(--card-bg);
      border-radius: 3px;
      overflow: hidden;
      margin-bottom: 16px;
      border: 1px solid transparent;
      transition: border-color 0.3s var(--ease);
    }

    .product-card:hover .product-card__image-wrap {
      border-color: var(--border);
    }

    .product-card__image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 20px;
      transition: transform 0.6s var(--ease-out);
    }

    .product-card:hover .product-card__image {
      transform: scale(1.05);
    }

    .product-card__placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .product-card__placeholder img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s var(--ease-out);
    }

    .product-card:hover .product-card__placeholder img {
      transform: scale(1.05);
    }

    .product-card__placeholder svg {
      width: 60%;
      height: 60%;
      opacity: 0.12;
      color: var(--forest);
    }

    .product-card__badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: var(--forest);
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 2px;
    }

    .product-card__wishlist {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.9);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      opacity: 0;
      transform: scale(0.85);
      transition: all 0.3s var(--ease);
    }

    .product-card:hover .product-card__wishlist {
      opacity: 1;
      transform: scale(1);
    }

    .product-card__wishlist:hover {
      color: #c0392b;
      border-color: #c0392b;
    }

    .product-card__wishlist svg {
      width: 16px;
      height: 16px;
    }

    .product-card__quick-add {
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      background: var(--forest);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
      padding: 12px;
      border-radius: 2px;
      opacity: 0;
      transform: translateY(8px);
      transition: all 0.3s var(--ease);
    }

    .product-card:hover .product-card__quick-add {
      opacity: 1;
      transform: translateY(0);
    }

    .product-card__quick-add:hover {
      background: var(--forest-dark);
    }

    .product-card__info {
      padding: 0 4px;
    }

    .product-card__collection {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .product-card__title {
      font-family: var(--font-body);
      font-size: 15px;
      font-weight: 500;
      color: var(--charcoal);
      line-height: 1.4;
      margin-bottom: 8px;
    }

    .product-card__price {
      font-size: 15px;
      font-weight: 600;
      color: var(--forest);
    }

    .product-card__price-original {
      font-size: 13px;
      font-weight: 400;
      color: var(--muted);
      text-decoration: line-through;
      margin-left: 8px;
    }

    .product-card__affirm {
      font-size: 12px;
      color: var(--muted);
      margin-top: 4px;
    }

    /* ========================================
       PAGINATION
       ======================================== */

    .cat-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: clamp(32px, 4vw, 56px) 0 0;
    }

    .cat-pagination__btn {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 500;
      color: var(--charcoal-soft);
      border: 1px solid transparent;
      border-radius: 2px;
      transition: all 0.3s var(--ease);
      cursor: pointer;
    }

    .cat-pagination__btn:hover {
      border-color: var(--border);
      color: var(--forest);
    }

    .cat-pagination__btn.active {
      background: var(--forest);
      color: #fff;
      border-color: var(--forest);
    }

    .cat-pagination__btn--arrow {
      color: var(--muted);
    }

    .cat-pagination__btn--arrow:hover {
      color: var(--forest);
    }

    .cat-pagination__btn--arrow.disabled {
      opacity: 0.3;
      pointer-events: none;
    }

    .cat-pagination__btn svg {
      width: 16px;
      height: 16px;
    }

    .cat-pagination__dots {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 14px;
      letter-spacing: 0.1em;
    }

    /* ========================================
       CATEGORY DESCRIPTION / SEO
       ======================================== */

    .cat-description {
      padding: var(--section-pad-sm) 0 var(--section-pad);
      border-top: 1px solid var(--border);
    }

    .cat-description__inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(40px, 6vw, 80px);
      align-items: start;
    }

    .cat-description__heading {
      font-family: var(--font-display);
      font-size: clamp(28px, 3.5vw, 42px);
      font-weight: 300;
      line-height: 1.2;
      color: var(--charcoal);
      margin-bottom: 20px;
    }

    .cat-description__text {
      font-size: 15px;
      line-height: 1.8;
      color: var(--charcoal-soft);
    }

    .cat-description__text p + p {
      margin-top: 16px;
    }

    .cat-description__features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 24px;
    }

    .cat-description__features li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 14px;
      color: var(--charcoal-soft);
      line-height: 1.5;
    }

    .cat-description__features li svg {
      width: 18px;
      height: 18px;
      color: var(--forest);
      flex-shrink: 0;
      margin-top: 2px;
    }

    /* ========================================
       RECENTLY VIEWED / CROSS-SELL
       ======================================== */

    /* Explore collections — hidden by default, enable per-category */
    .cat-explore {
      display: none; /* add data-show-explore to <section> or remove this line in PHP */
      padding: var(--section-pad-sm) 0 var(--section-pad);
      background: var(--sand-pale);
    }

    .cat-explore[data-enabled] {
      display: block;
      text-decoration: none;
      color: inherit;
    }

    .cat-explore__header {
      text-align: center;
      margin-bottom: clamp(24px, 3vw, 48px);
    }

    .cat-explore__header .eyebrow {
      margin-bottom: 12px;
    }

    .cat-explore__grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--gap);
    }

    .cat-explore__card {
      position: relative;
      overflow: hidden;
      border-radius: 3px;
      min-height: 280px;
      cursor: pointer;
      background: var(--card-bg);
    }

    .cat-explore__card-bg {
      position: absolute;
      inset: 0;
      background: var(--forest-dark);
      transition: transform 0.8s var(--ease-out);
    }

    .cat-explore__card:hover .cat-explore__card-bg {
      transform: scale(1.04);
    }

    .cat-explore__card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%);
      transition: background 0.5s var(--ease);
    }

    .cat-explore__card:hover .cat-explore__card-overlay {
      background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    }

    .cat-explore__card-content {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 28px;
      z-index: 2;
    }

    .cat-explore__card-title {
      font-family: var(--font-display);
      font-size: clamp(22px, 2.5vw, 32px);
      font-weight: 400;
      color: #fff;
      margin-bottom: 4px;
    }

    .cat-explore__card-count {
      font-size: 13px;
      color: rgba(255,255,255,0.65);
    }

    .cat-explore__card-arrow {
      position: absolute;
      bottom: 28px;
      right: 28px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      opacity: 0;
      transform: translateX(-8px);
      transition: all 0.4s var(--ease-out);
      z-index: 2;
    }

    .cat-explore__card:hover .cat-explore__card-arrow {
      opacity: 1;
      transform: translateX(0);
    }

    .cat-explore__card-arrow svg {
      width: 16px;
      height: 16px;
    }


    /* ========================================
       RESPONSIVE — 1024px
       ======================================== */

    @media (max-width: 1024px) {

      .cat-layout {
        grid-template-columns: 240px 1fr;
      }

      .cat-layout.sidebar-collapsed {
        grid-template-columns: 0px 1fr;
      }

      .cat-sidebar {
        padding-right: 20px;
      }

      .cat-products__grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .cat-products__grid--4col {
        grid-template-columns: repeat(3, 1fr);
      }

      .cat-layout.sidebar-collapsed .cat-products__grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    /* ========================================
       RESPONSIVE — 768px
       ======================================== */

    @media (max-width: 768px) {
      :root {
        --section-pad: clamp(32px, 5vw, 60px);
        --section-pad-sm: clamp(24px, 4vw, 48px);
      }

      .section-heading {
        font-size: clamp(26px, 6vw, 38px);
      }

      .container,
      .container--narrow {
        padding: 0 clamp(20px, 6vw, 48px);
      }

      .btn {
        padding: 12px 24px;
        font-size: 11px;
      }

      /* Hero */
      .cat-hero {
        padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px);
      }

      .cat-hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .cat-hero__title {
        font-size: clamp(30px, 7vw, 44px);
      }

      .cat-hero__desc {
        font-size: 14px;
      }

      .cat-hero__featured {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
      }

      .cat-hero__product:nth-child(2) {
        transform: translateY(-10px);
      }

      .cat-hero__product:nth-child(2):hover {
        transform: translateY(-16px);
      }

      .cat-hero__product-name {
        font-size: 12px;
      }

      .cat-hero__product-price {
        font-size: 12px;
      }

      /* Subnav */
      .cat-subnav {
        top: 56px;
      }

      .cat-subnav__inner {
        height: 48px;
        gap: 12px;
      }

      .cat-subnav__tab {
        font-size: 11px;
        padding: 6px 12px;
      }

      /* Sidebar — slide-in drawer on mobile */
      .cat-layout {
        grid-template-columns: 1fr;
      }

      .cat-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 210;
        background: var(--warm-white);
        border-right: 1px solid var(--border);
        padding: 56px 24px 32px;
        transition: left 0.35s var(--ease-out);
        overflow-y: auto;
      }

      .cat-sidebar.mobile-open {
        left: 0;
      }

      .cat-sidebar__close {
        display: flex;
      }

      .cat-sidebar-overlay {
        display: block;
        pointer-events: none;
      }

      .cat-sidebar-overlay.active {
        pointer-events: auto;
      }

      .cat-toolbar__filter-btn {
        display: flex;
      }

      .cat-toolbar__hide-filters {
        display: none;
      }

      /* Toolbar */
      .cat-toolbar__views { display: none; }

      .cat-toolbar__count {
        font-size: 12px;
      }

      /* Grid */
      .cat-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }

      .cat-products__grid--4col {
        grid-template-columns: repeat(2, 1fr);
      }

      .product-card__image-wrap {
      display: block; margin-bottom: 8px; }
      .product-card__image { padding: 10px; }
      .product-card__collection { font-size: 9px; margin-bottom: 2px; }
      .product-card__title { font-size: 13px; margin-bottom: 4px; line-height: 1.3; }
      .product-card__price { font-size: 14px; }
      .product-card__price-original { font-size: 11px; }
      .product-card__affirm { font-size: 10px; }
      .product-card__badge { font-size: 8px; padding: 3px 7px; top: 6px; left: 6px; }
      .product-card__wishlist { display: none; }

      /* Pagination */
      .cat-pagination__btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
      }

      /* Description */
      .cat-description__inner {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      /* Explore collections */
      .cat-explore__grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .cat-explore__card {
        min-height: 200px;
      }

      /* Footer */
    }

    /* ========================================
       RESPONSIVE — 480px
       ======================================== */

    @media (max-width: 480px) {
      .cat-hero__title {
        font-size: clamp(26px, 8vw, 34px);
      }

      .cat-hero__featured {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
      }

      .cat-hero__product {
        padding: 10px 8px;
      }

      .cat-hero__product:nth-child(2) {
        transform: translateY(-8px);
      }

      .cat-hero__product-badge {
        font-size: 7px;
        padding: 2px 5px;
        top: 6px;
        left: 6px;
      }

      .cat-hero__product-name {
        font-size: 11px;
      }

      .cat-hero__product-price {
        font-size: 11px;
      }

      .cat-hero__product-seats {
        font-size: 9px;
      }

      .cat-subnav__tab {
        font-size: 10px;
        padding: 5px 10px;
      }

      .cat-toolbar__inner {
        flex-wrap: wrap;
        gap: 10px;
      }

      .cat-toolbar__sort-select {
        font-size: 12px;
        padding: 6px 28px 6px 10px;
      }

      .cat-pagination__btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
      }

      .cat-pagination__dots { width: 28px; }
    }

    /* ========================================
       DYNAMIC TEMPLATE ADDITIONS
       ======================================== */

    /* Filter item links — make clickable filter items look right */
    .filter-item__link {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      color: inherit;
      text-decoration: none;
    }

    .filter-item__link:hover {
      color: inherit;
    }

    /* Active filters bar above the product grid */
    .cat-active-filters {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding: 16px 0 0;
    }

    .cat-active-filters__chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 500;
      color: var(--forest-dark);
      background: var(--sand-pale);
      border: 1px solid var(--border);
      padding: 6px 12px;
      border-radius: 100px;
      cursor: pointer;
      transition: all 0.25s var(--ease);
      text-decoration: none;
    }

    .cat-active-filters__chip:hover {
      background: var(--sand-light);
      border-color: var(--sand);
      color: var(--forest-dark);
    }

    .cat-active-filters__chip svg {
      width: 10px;
      height: 10px;
      opacity: 0.6;
    }

    .cat-active-filters__clear {
      font-size: 12px;
      color: var(--muted);
      text-decoration: underline;
      text-underline-offset: 2px;
      margin-left: 4px;
      transition: color 0.3s var(--ease);
    }

    .cat-active-filters__clear:hover {
      color: var(--forest);
    }

    /* No products found — empty state */
    .cat-empty {
      text-align: center;
      padding: clamp(60px, 8vw, 120px) 20px;
    }

    .cat-empty svg {
      width: 64px;
      height: 64px;
      color: var(--border);
      margin: 0 auto 24px;
    }

    .cat-empty__title {
      font-family: var(--font-display);
      font-size: clamp(24px, 3vw, 32px);
      font-weight: 300;
      color: var(--charcoal);
      margin-bottom: 12px;
    }

    .cat-empty__text {
      font-size: 15px;
      color: var(--muted);
      margin-bottom: 32px;
      max-width: 420px;
      margin-left: auto;
      margin-right: auto;
    }

    /* WooCommerce price HTML compatibility */
    .product-card__price .woocommerce-Price-amount {
      font-size: inherit;
      font-weight: inherit;
      color: inherit;
    }

    .product-card__price .woocommerce-Price-currencySymbol {
      font-size: inherit;
    }

    .product-card__price del {
      font-size: 13px;
      font-weight: 400;
      color: var(--muted);
      text-decoration: line-through;
      margin-right: 6px;
    }

    .product-card__price del .woocommerce-Price-amount {
      color: var(--muted);
    }

    .product-card__price ins {
      text-decoration: none;
      color: var(--forest);
    }

    /* Hero product price WooCommerce formatting */
    .cat-hero__product-price .woocommerce-Price-amount {
      font-size: inherit;
      font-weight: inherit;
      color: inherit;
    }

    /* Subnav count badge */
    .cat-subnav__count {
      font-weight: 400;
      color: var(--muted);
      font-size: 0.9em;
    }

    /* Product card image (from WP) */
    .product-card__img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s var(--ease-out);
    }

    .product-card:hover .product-card__img {
      transform: scale(1.05);
    }

    /* Product card title link */
    .product-card__title a {
      color: inherit;
      text-decoration: none;
    }

    .product-card__title a:hover {
      color: var(--forest);
    }

    /* Sidebar chip as link */
    a.cat-sidebar__chip {
      text-decoration: none;
    }

    a.cat-sidebar__chip:hover {
      color: var(--forest-dark);
    }

    /* Responsive additions for active filters */
    @media (max-width: 768px) {
      .cat-active-filters {
        padding: 12px 0 0;
        gap: 6px;
      }

      .cat-active-filters__chip {
        font-size: 11px;
        padding: 5px 10px;
      }
    }

    /* ========================================
       BUG FIXES — Feb 21
       ======================================== */

    /* Fix: hero product image links need block display for aspect-ratio */
    a.cat-hero__product-img {
      display: block;
    }

    /* Fix: WoodMart JS adds inline display:none to some product titles — override */
    .product-card__title {
      display: block !important;
    }

    /* Fix: mobile filter button should be hidden on desktop (higher specificity) */
    .cat-toolbar .cat-toolbar__filter-btn {
      display: none !important;
    }

    @media (max-width: 768px) {
      .cat-toolbar .cat-toolbar__filter-btn {
        display: flex !important;
      }
      .cat-toolbar .cat-toolbar__hide-filters {
        display: none !important;
      }
    }

    /* ========================================
       WOODMART BUTTON OVERRIDE FIX
       WoodMart global button styles override
       class-level selectors. Force our styles.
       ======================================== */

    /* --- Toolbar: Hide Filters button --- */
    button.cat-toolbar__hide-filters {
      display: inline-flex !important;
      align-items: center !important;
      gap: 7px !important;
      font-family: var(--font-body) !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      color: var(--charcoal-soft) !important;
      padding: 8px 16px !important;
      border: 1px solid var(--border) !important;
      border-radius: 2px !important;
      background: transparent !important;
      cursor: pointer !important;
      text-align: left !important;
    }

    button.cat-toolbar__hide-filters:hover {
      border-color: var(--forest) !important;
      color: var(--forest) !important;
    }

    .cat-layout.sidebar-collapsed button.cat-toolbar__hide-filters {
      background: var(--forest) !important;
      border-color: var(--forest) !important;
      color: #fff !important;
    }

    .cat-layout.sidebar-collapsed button.cat-toolbar__hide-filters:hover {
      background: var(--forest-dark) !important;
      border-color: var(--forest-dark) !important;
    }

    button.cat-toolbar__hide-filters svg {
      width: 14px !important;
      height: 14px !important;
    }

    /* --- Filter group triggers --- */
    button.filter-group__trigger {
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 16px 0 !important;
      font-family: var(--font-body) !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      color: var(--charcoal) !important;
      letter-spacing: 0.02em !important;
      text-align: left !important;
      cursor: pointer !important;
      background: none !important;
      border: none !important;
      border-radius: 0 !important;
    }

    button.filter-group__trigger:hover {
      color: var(--forest) !important;
    }

    /* --- Price Apply button --- */
    button.filter-price__apply {
      display: block !important;
      width: 100% !important;
      padding: 10px 0 !important;
      font-family: var(--font-body) !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      letter-spacing: 0.08em !important;
      text-transform: uppercase !important;
      color: var(--charcoal) !important;
      background: transparent !important;
      border: 1px solid var(--border) !important;
      border-radius: 2px !important;
      cursor: pointer !important;
      text-align: center !important;
      margin-top: 12px !important;
    }

    button.filter-price__apply:hover {
      border-color: var(--forest) !important;
      color: var(--forest) !important;
    }

    /* --- Mobile filter button --- */
    button.cat-toolbar__filter-btn {
      font-family: var(--font-body) !important;
      font-size: 12px !important;
      font-weight: 600 !important;
      letter-spacing: 0.06em !important;
      text-transform: uppercase !important;
      padding: 8px 14px !important;
      border: 1px solid var(--border) !important;
      border-radius: 2px !important;
      background: transparent !important;
    }

    /* --- Sidebar close button (hidden on desktop, shown on mobile via media query) --- */
    button.cat-sidebar__close {
      display: none !important;
      background: none !important;
      border: none !important;
      padding: 0 !important;
    }

    /* --- Sidebar clear all --- */
    button.cat-sidebar__clear {
      font-size: 12px !important;
      color: var(--muted) !important;
      background: none !important;
      border: none !important;
      padding: 0 !important;
      cursor: pointer !important;
      text-decoration: underline !important;
      text-underline-offset: 2px !important;
    }

    button.cat-sidebar__clear:hover {
      color: var(--forest) !important;
    }

    /* --- Grid view toggle buttons --- */
    button.cat-toolbar__view-btn {
      width: 40px !important;
      height: 40px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      border: 1px solid var(--border) !important;
      border-radius: 2px !important;
      background: transparent !important;
      cursor: pointer !important;
      padding: 0 !important;
    }

    button.cat-toolbar__view-btn.active {
      background: var(--forest) !important;
      border-color: var(--forest) !important;
      color: #fff !important;
    }

    button.cat-toolbar__view-btn svg {
      width: 16px !important;
      height: 16px !important;
    }

    @media (max-width: 768px) {
      button.cat-sidebar__close {
        display: flex !important;
      }
    }
