    :root {
      --primary-dark: #080756;
      --primary-blue: #0c0b94;
      --light-blue: #6b9fff;
      --glass-light: rgba(255, 255, 255, 0.75);
      --glass-border: rgba(255, 255, 255, 0.4);
      --shadow-soft: 0 20px 60px rgba(8, 7, 86, 0.15);
      --radius-xl: 32px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --gradient-page: linear-gradient(135deg, #f8fbff 0%, #eef3ff 45%, #fdf9ff 100%);
      --gradient-hero: radial-gradient(circle at top right, rgba(255,255,255,0.9), rgba(107,159,255,0.25)), linear-gradient(135deg, #0c0b94 0%, #080756 100%);
    }

    * {
      box-sizing: border-box;
    }

    /* Only apply to WooCommerce archive pages */
    body.woocommerce-shop,
    body.tax-product_cat,
    body.post-type-archive-product {
      font-family: "PT Sans", sans-serif;
    }
    
    body.woocommerce-shop .page-wrapper,
    body.tax-product_cat .page-wrapper,
    body.post-type-archive-product .page-wrapper {
      width: min(1260px, calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 40px;
      padding: 20px 0 120px;
    }
    body.filter-open {
      overflow: hidden;
    }

    .page-wrapper {
      width: min(1260px, calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 40px;
      padding-top: 20px;
    }

    .hero-archive {
      background: rgba(255,255,255,0.95);
      border-radius: 30px;
      padding: 60px;
      box-shadow: 0 20px 60px rgba(8,7,86,0.15);
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.6);
      backdrop-filter: blur(18px);
    }

    .hero-archive::before {
      content: "";
      position: absolute;
      inset: -20% -10% auto auto;
      width: 420px;
      height: 420px;
      background: radial-gradient(circle, rgba(107,159,255,0.35), transparent 70%);
      opacity: 0.6;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 50px;
      align-items: center;
    }

    .hero-copy {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      border-radius: 999px;
      background: rgba(12,11,148,0.1);
      color: #0c0b94;
      font-weight: 600;
      font-size: 13px;
      width: fit-content;
    }

    .breadcrumbs {
      font-size: 15px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      opacity: 0.8;
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .breadcrumbs a {
      color: inherit;
      text-decoration: none;
      transition: opacity 0.2s ease;
    }

    .breadcrumbs a:hover {
      opacity: 1;
      text-decoration: underline;
    }

    .breadcrumbs strong {
      opacity: 1;
      font-weight: 700;
    }

    h1 {
      font-size: 46px;
      line-height: 1.15;
      color: #080756;
      margin: 0;
      text-shadow: none;
    }

    .hero-text {
      font-size: 18px;
      line-height: 1.6;
      color: #4a4d6b;
      max-width: 520px;
    }

    .hero-highlights {
      display: grid;
      gap: 16px;
    }

    .hero-highlight {
      display: flex;
      align-items: flex-start !important;
      gap: 20px;
      padding: 24px;
      border-radius: 0;
      border: none;
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
      transition: none;
      width: min(360px, 100%);
      margin-left: auto;
      margin-right: auto;
      position: relative;
      z-index: 2;
    }

    .hero-highlight:hover {
      transform: none;
      box-shadow: none;
      border: none;
      background: transparent;
    }

    .hero-highlight__icon {
      width: 64px;
      height: 64px;
      border-radius: 16px;
      background: linear-gradient(135deg, #6b9fff 0%, #4A4DB8 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 10px 25px rgba(107, 159, 255, 0.3);
    }

    .hero-highlight__icon svg {
      width: 32px;
      height: 32px;
      fill: #fff;
    }

    .hero-highlight__content {
      display: flex;
      flex-direction: column;
      gap: 0;
      flex: 1;
      min-height: 0;
      justify-content: flex-start;
    }

    .hero-highlight__title {
      font-size: 20px;
      font-weight: 700;
      color: #080756 !important;
      margin: 0;
      margin-bottom: 4px;
      line-height: 1.2;
      white-space: nowrap;
    }

    .hero-highlight__title .title-desktop {
      color: #080756 !important;
      white-space: nowrap;
    }

    /* Force blue color on all hero-highlight titles, including direct text */
    .hero-highlight__title,
    .hero-highlight__title * {
      color: #080756 !important;
    }

    .hero-highlight__meta {
      font-size: 14px;
      color: #666;
      margin: 0;
      line-height: 1.3;
    }

    /* Show desktop title and hide mobile title in desktop view */
    .hero-highlight__title .title-desktop {
      display: inline;
    }

    .hero-highlight__title .title-mobile {
      display: none;
    }

    .hero-highlight__meta {
      font-size: 14px;
      color: #666;
      margin: 0;
      line-height: 1.3;
      max-height: calc(14px * 1.3);
      flex-shrink: 0;
      overflow: hidden;
    }

    .filter-wrapper {
      /* Not sticky on desktop - only on mobile */
      position: relative;
      top: auto;
      z-index: 1000;
    }

    body.woocommerce-shop .filter-toggle-btn,
    body.tax-product_cat .filter-toggle-btn,
    body.post-type-archive-product .filter-toggle-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 10px;
      background: rgba(255,255,255,0.98) !important;
      border: 1px solid var(--glass-border) !important;
      border-radius: 5px;
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(16px);
      cursor: pointer;
      font-weight: 600;
      font-size: 13px;
      min-height: 28px;
      color: var(--primary-dark) !important;
      transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
      margin-bottom: 6px;
    }

    body.woocommerce-shop .filter-toggle-btn:hover,
    body.tax-product_cat .filter-toggle-btn:hover,
    body.post-type-archive-product .filter-toggle-btn:hover {
      background: rgba(255,255,255,1) !important;
      box-shadow: 0 8px 24px rgba(8,7,86,0.15);
      transform: translateY(-1px);
    }

    body.woocommerce-shop .filter-toggle-btn:active,
    body.woocommerce-shop .filter-toggle-btn:focus,
    body.tax-product_cat .filter-toggle-btn:active,
    body.tax-product_cat .filter-toggle-btn:focus,
    body.post-type-archive-product .filter-toggle-btn:active,
    body.post-type-archive-product .filter-toggle-btn:focus {
      background: rgba(255,255,255,0.98) !important;
      border-color: var(--glass-border) !important;
      color: var(--primary-dark) !important;
      outline: none;
    }

    .filter-toggle-btn svg {
      width: 20px;
      height: 20px;
      transition: transform 0.3s ease;
      fill: currentColor;
    }

    .filter-toggle-btn[aria-expanded="true"] svg {
      transform: rotate(180deg);
    }

    .filter-content {
      overflow: hidden;
      transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
      position: relative;
      z-index: 100;
    }
    
    .filter-content.expanded {
      overflow: visible;
    }

    .filter-content.collapsed {
      max-height: 0;
      opacity: 0;
      margin: 0;
      padding: 0;
    }

    .filter-content.expanded {
      max-height: 2000px;
      opacity: 1;
      margin-bottom: 0;
    }

    .filter-toolbar {
      background: rgba(255,255,255,1);
      border-radius: 5px;
      padding: 18px 22px;
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(16px);
      display: flex;
      flex-direction: column;
      gap: 18px;
      overflow: visible;
      position: relative;
      z-index: 101;
    }

    .mobile-filter-chip {
      display: none;
      position: fixed;
      right: 18px;
      bottom: 20px;
      padding: 12px 18px;
      border-radius: 999px;
      background: linear-gradient(120deg, var(--primary-dark), var(--primary-blue));
      color: #fff;
      font-weight: 600;
      border: none;
      box-shadow: 0 15px 35px rgba(8,7,86,0.25);
      gap: 8px;
      align-items: center;
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 9;
    }

    .mobile-filter-chip.hidden {
      opacity: 0;
      transform: translateY(12px);
      pointer-events: none;
    }

    .filter-top {
      display: flex;
      gap: 20px;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      width: 100%;
    }

    @media (max-width: 900px) {
      .filter-toolbar {
        border-radius: var(--radius-lg);
        gap: 16px;
      }
      .filter-top {
        flex-direction: column;
        align-items: stretch;
      }
    }

    /* Mobile view adjustments for hero section */
    @media (max-width: 768px) {
      /* Make filter-wrapper sticky on mobile */
      .filter-wrapper {
        position: sticky;
        top: 20px;
      }

      /* Reduce hero archive padding and spacing */
      .hero-archive {
        padding: 16px 12px;
        border-radius: 16px;
      }

      .hero-inner {
        gap: 12px;
        grid-template-columns: 1fr;
      }

      .hero-copy {
        gap: 8px;
      }

      /* Reduce heading size */
      h1 {
        font-size: 24px;
        line-height: 1.2;
      }

      .hero-text {
        font-size: 13px;
        line-height: 1.4;
      }

      .hero-tag {
        font-size: 10px;
        padding: 5px 12px;
      }

      .breadcrumbs {
        font-size: 11px;
      }

      /* Compact horizontal layout - icon + text on same row */
      .hero-highlights {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
      }

      .hero-highlight {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 0;
        height: auto;
        min-height: auto;
        border: none;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
        min-width: 0;
        max-width: 100%;
        width: calc(100% - 0px);
        box-sizing: border-box;
      }

      .hero-highlight:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent;
        background: transparent;
      }

      .hero-highlight__icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
        align-self: center;
        margin-top: 0;
      }

      .hero-highlight__icon svg {
        width: 20px;
        height: 20px;
      }

      .hero-highlight__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        padding: 0;
        text-align: left;
        flex: 1;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
        align-self: center;
      }

      .hero-highlight__title {
        font-size: 13px;
        line-height: 1.4;
        font-weight: 700;
        color: #080756 !important;
        margin: 0;
        margin-bottom: 0;
        text-align: left;
        display: flex;
        align-items: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap !important; /* Force text to stay on one line */
        width: 100%;
        max-width: 100%;
        max-height: none;
        min-height: auto;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        box-sizing: border-box;
      }

      /* Hide desktop title and show mobile title in mobile view */
      .hero-highlight__title .title-desktop {
        display: none;
      }

      .hero-highlight__title .title-mobile {
        display: inline;
        white-space: nowrap !important; /* Force text to stay on one line */
        overflow: hidden;
        text-overflow: ellipsis;
      }

      /* Hide meta text in mobile view */
      .hero-highlight__meta {
        display: none;
      }

      /* Mobile improvements for filter section */
      .filter-toolbar {
        padding: 14px 16px;
        gap: 16px;
        border-radius: 5px;
      }

      .filter-toggle-btn {
        padding: 6px 10px !important;
        min-height: 30px;
        font-size: 13px;
      }

      .filter-label {
        font-size: 14px;
        margin-bottom: 4px;
      }

      .filter-section {
        gap: 12px;
      }

      .pill {
        padding: 10px 18px;
        font-size: 15px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .category-tab {
        padding: 6px 10px;
        min-height: 30px;
        font-size: 13px;
        min-width: auto;
        flex: 1;
      }

      .category-tabs {
        width: 100%;
        display: flex;
        gap: 6px;
      }

      .filter-chip-panel {
        gap: 8px;
        background: rgba(12,11,148,0.04);
        padding: 12px;
        border-radius: 5px;
        border: 1px solid rgba(8,7,86,0.1);
        margin-top: 8px;
      }

      .filter-chip-panel .state-pill {
        padding: 10px 16px;
        min-height: 44px;
        font-size: 14px;
        min-width: auto;
        flex: 1;
      }

      .subcategory-card {
        padding: 14px 16px;
        gap: 10px;
      }

      .subcategory-card header {
        font-size: 14px;
        margin-bottom: 4px;
      }

      .subcategory-row {
        gap: 8px;
      }

      .subcategory-row .pill {
        padding: 8px 14px;
        font-size: 14px;
        min-height: 36px;
      }

      .sort-select {
        min-width: 100%;
      }

      .sort-select button {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 15px;
      }

      .sort-options {
        padding: 10px;
        gap: 4px;
      }

      body.woocommerce-shop .filter-section .sort-option,
      body.tax-product_cat .filter-section .sort-option,
      body.post-type-archive-product .filter-section .sort-option {
        padding: 12px 14px;
        min-height: 44px;
        font-size: 15px;
      }

      .filter-top {
        gap: 16px;
      }

      .reset-link {
        font-size: 15px;
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
      }

      /* Better scrollbar styling for mobile */
      .sort-options::-webkit-scrollbar {
        width: 6px;
      }

      .sort-options::-webkit-scrollbar-track {
        background: rgba(8,7,86,0.05);
        border-radius: 5px;
      }

      .sort-options::-webkit-scrollbar-thumb {
        background: rgba(8,7,86,0.2);
        border-radius: 5px;
      }

      .sort-options::-webkit-scrollbar-thumb:hover {
        background: rgba(8,7,86,0.3);
      }

      /* Improve spacing between filter sections */
      .filter-toolbar > * + * {
        margin-top: 4px;
      }

      /* Better visual separation for subcategory panel */
      .subcategory-panel {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(8,7,86,0.1);
      }

      .subcategory-card {
        border-radius: 5px;
      }
    }

    .filter-section {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      overflow: visible;
    }

    .filter-label {
      font-weight: 600;
      color: var(--primary-dark);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-size: 13px;
    }

    .pill {
      padding: 8px 16px;
      border-radius: 5px;
      border: 1px solid rgba(8,7,86,0.18);
      background: rgba(255,255,255,0.85);
      color: var(--primary-dark);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 14px;
    }

    .pill:hover {
      border-color: rgba(12,11,148,0.4);
      color: var(--primary-blue);
      box-shadow: 0 4px 10px rgba(8,7,86,0.12);
    }

    .pill.active {
      background: var(--primary-dark) !important;
      color: #ffffff !important;
      border-color: transparent;
      box-shadow: 0 8px 18px rgba(8,7,86,0.25);
    }
    
    .pill.active:link,
    .pill.active:visited,
    .pill.active:hover,
    .pill.active:active,
    .pill.active:focus {
      color: #ffffff !important;
      background: var(--primary-dark) !important;
    }

    .category-tabs {
      display: inline-flex;
      background: rgba(8,7,86,0.08);
      border-radius: 5px;
      padding: 2px 4px;
      border: 1px solid rgba(8,7,86,0.12);
      gap: 4px;
      box-shadow: inset 0 3px 6px rgba(255,255,255,0.4);
      width: fit-content;
    }

    .category-tab {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 5px 10px;
      border-radius: 5px;
      font-weight: 600;
      color: var(--primary-dark);
      cursor: pointer;
      border: 1px solid rgba(8,7,86,0.18);
      background: rgba(255,255,255,0.85);
      transition: all 0.2s ease;
      min-height: 28px;
      min-width: 100px;
      font-size: 13px;
      text-align: center;
    }

    .category-tab:hover {
      border-color: rgba(12,11,148,0.4);
      color: var(--primary-blue);
      box-shadow: 0 4px 10px rgba(8,7,86,0.12);
    }

    .category-tab.active {
      background: var(--primary-dark);
      color: #ffffff !important;
      border-color: transparent;
      box-shadow: 0 8px 18px rgba(8,7,86,0.25);
      font-weight: 700;
    }

    .category-tab svg {
      width: 18px;
      height: 18px;
      margin-left: 6px;
      fill: currentColor;
    }

    .category-tab:hover:not(.active) {
      color: var(--primary-blue);
      transform: translateY(-1px);
    }

    .filter-chip-panel {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .filter-chip-panel .state-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 600;
      border: 1px solid rgba(8,7,86,0.18);
      background: rgba(255,255,255,0.92);
      color: var(--primary-dark);
      min-height: 34px;
      min-width: 180px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
      justify-content: space-between;
    }

    .filter-chip-panel .state-pill button {
      border: none;
      background: transparent;
      color: inherit;
      font-size: 16px;
      cursor: pointer;
      line-height: 1;
      padding: 0;
    }

    .subcategory-panel {
      margin-top: 18px;
      position: relative;
      min-height: 140px;
    }

    .subcategory-card {
      background: rgba(255,255,255,0.92);
      border-radius: 5px;
      padding: 10px 14px;
      border: 1px solid rgba(8,7,86,0.08);
      box-shadow: 0 8px 18px rgba(8,7,86,0.1);
      display: flex;
      flex-direction: column;
      gap: 6px;
      position: absolute;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .subcategory-card.active {
      position: relative;
      opacity: 1;
      pointer-events: auto;
    }

    .subcategory-card header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #667;
    }

    .subcategory-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .pill .count {
      font-size: 12px;
      font-weight: 700;
      background: rgba(8,7,86,0.08);
      padding: 2px 8px;
      border-radius: 5px;
      margin-left: 4px;
    }

    .pill.active .count {
      background: rgba(255,255,255,0.25);
      color: #fff;
    }

    .reset-link {
      font-size: 14px;
      font-weight: 600;
      color: var(--primary-blue);
      cursor: pointer;
      border: none;
      background: none;
      text-decoration: underline;
    }

    .sort-select {
      position: relative;
      min-width: 220px;
    }

    .sort-select button {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 14px;
      border-radius: 5px;
      border: 1px solid rgba(8,7,86,0.2);
      background: rgba(255,255,255,0.85);
      font-weight: 600;
      color: var(--primary-dark);
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(8,7,86,0.1);
      transition: border-color 0.2s ease;
      min-height: 36px;
    }

    .sort-select button svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
      transition: transform 0.2s ease;
    }

    .sort-select.open button {
      border-color: var(--primary-blue);
    }

    .sort-select.open button svg {
      transform: rotate(180deg);
    }

    .sort-options {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      width: 100%;
      background: #fff;
      border-radius: 5px;
      border: 1px solid rgba(8,7,86,0.15);
      box-shadow: 0 25px 50px rgba(8,7,86,0.18);
      padding: 8px;
      display: none;
      z-index: 1000;
      max-height: 400px;
      overflow-y: auto;
    }

    .sort-select.open .sort-options {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    body.woocommerce-shop .sort-option,
    body.tax-product_cat .sort-option,
    body.post-type-archive-product .sort-option,
    body.woocommerce-shop .sort-options .sort-option,
    body.tax-product_cat .sort-options .sort-option,
    body.post-type-archive-product .sort-options .sort-option,
    body.woocommerce-shop .filter-section .sort-option,
    body.tax-product_cat .filter-section .sort-option,
    body.post-type-archive-product .filter-section .sort-option {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 5px;
      font-weight: 600;
      color: var(--primary-dark) !important;
      cursor: pointer;
      transition: background 0.2s ease, background-color 0.2s ease, color 0.2s ease;
      background: transparent !important;
      background-color: transparent !important;
      text-decoration: none !important;
    }
    
    body.woocommerce-shop .sort-option:link,
    body.tax-product_cat .sort-option:link,
    body.post-type-archive-product .sort-option:link,
    body.woocommerce-shop .sort-option:visited,
    body.tax-product_cat .sort-option:visited,
    body.post-type-archive-product .sort-option:visited,
    body.woocommerce-shop .sort-options .sort-option:link,
    body.tax-product_cat .sort-options .sort-option:link,
    body.post-type-archive-product .sort-options .sort-option:link,
    body.woocommerce-shop .sort-options .sort-option:visited,
    body.tax-product_cat .sort-options .sort-option:visited,
    body.post-type-archive-product .sort-options .sort-option:visited {
      color: var(--primary-dark) !important;
      background: transparent !important;
      background-color: transparent !important;
      text-decoration: none !important;
    }

    .sort-option svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    body.woocommerce-shop .sort-option.active,
    body.tax-product_cat .sort-option.active,
    body.post-type-archive-product .sort-option.active,
    body.woocommerce-shop .sort-options .sort-option.active,
    body.tax-product_cat .sort-options .sort-option.active,
    body.post-type-archive-product .sort-options .sort-option.active {
      background: rgba(12,11,148,0.1) !important;
      background-color: rgba(12,11,148,0.1) !important;
      color: var(--primary-blue) !important;
    }

    body.woocommerce-shop .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover,
    body.tax-product_cat .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover,
    body.post-type-archive-product .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover,
    body.woocommerce-shop .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover:link,
    body.tax-product_cat .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover:link,
    body.post-type-archive-product .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover:link,
    body.woocommerce-shop .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover:visited,
    body.tax-product_cat .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover:visited,
    body.post-type-archive-product .filter-toolbar .filter-section .sort-select .sort-options .sort-option:hover:visited,
    body.woocommerce-shop .sort-option:hover,
    body.tax-product_cat .sort-option:hover,
    body.post-type-archive-product .sort-option:hover,
    body.woocommerce-shop .sort-option:hover:link,
    body.tax-product_cat .sort-option:hover:link,
    body.post-type-archive-product .sort-option:hover:link,
    body.woocommerce-shop .sort-option:hover:visited,
    body.tax-product_cat .sort-option:hover:visited,
    body.post-type-archive-product .sort-option:hover:visited,
    body.woocommerce-shop .sort-options .sort-option:hover,
    body.tax-product_cat .sort-options .sort-option:hover,
    body.post-type-archive-product .sort-options .sort-option:hover,
    body.woocommerce-shop .filter-section .sort-option:hover,
    body.tax-product_cat .filter-section .sort-option:hover,
    body.post-type-archive-product .filter-section .sort-option:hover,
    body.woocommerce-shop .filter-toolbar .sort-option:hover,
    body.tax-product_cat .filter-toolbar .sort-option:hover,
    body.post-type-archive-product .filter-toolbar .sort-option:hover {
      background: rgba(12,11,148,0.08) !important;
      background-color: rgba(12,11,148,0.08) !important;
      background-image: none !important;
      color: var(--primary-dark) !important;
      text-decoration: none !important;
    }
    
    body.woocommerce-shop .sort-option:active,
    body.tax-product_cat .sort-option:active,
    body.post-type-archive-product .sort-option:active,
    body.woocommerce-shop .sort-option:focus,
    body.tax-product_cat .sort-option:focus,
    body.post-type-archive-product .sort-option:focus,
    body.woocommerce-shop .sort-options .sort-option:active,
    body.tax-product_cat .sort-options .sort-option:active,
    body.post-type-archive-product .sort-options .sort-option:active,
    body.woocommerce-shop .sort-options .sort-option:focus,
    body.tax-product_cat .sort-options .sort-option:focus,
    body.post-type-archive-product .sort-options .sort-option:focus {
      background: rgba(12,11,148,0.08) !important;
      background-color: rgba(12,11,148,0.08) !important;
      color: var(--primary-dark) !important;
      text-decoration: none !important;
      outline: none !important;
    }

    .sort-select-backdrop {
      position: fixed;
      inset: 0;
      background: transparent;
      display: none;
      z-index: 9;
    }

    .sort-select.open ~ .sort-select-backdrop {
      display: block;
    }

    .sort-status {
      font-size: 14px;
      color: #5a5c7a;
      font-weight: 600;
      text-transform: uppercase;
    }

    .products-status {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      padding: 0 4px;
    }

    .products-status-text {
      font-size: 15px;
      color: #4a4d6b;
      font-weight: 500;
    }

    .products-status-text strong {
      color: var(--primary-dark);
      font-weight: 700;
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 32px;
    }

    @media (max-width: 768px) {
      .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
      }

      body.woocommerce-shop .product-card,
      body.tax-product_cat .product-card,
      body.post-type-archive-product .product-card {
        padding: 0 !important;
        gap: 0 !important;
        min-height: auto !important;
        border-radius: 12px;
        display: flex !important;
        flex-direction: column !important;
      }

      body.woocommerce-shop .product-media,
      body.tax-product_cat .product-media,
      body.post-type-archive-product .product-media {
        min-height: 160px;
        margin: 0;
        padding: 0;
      }

      /* Add padding to content (everything except the image) - Förslag 2: Extra luft */
      body.woocommerce-shop .product-card > :not(.product-media),
      body.tax-product_cat .product-card > :not(.product-media),
      body.post-type-archive-product .product-card > :not(.product-media) {
        padding-left: 14px;
        padding-right: 14px;
      }

      /* First content element gets top padding */
      body.woocommerce-shop .product-card > :not(.product-media):first-of-type,
      body.tax-product_cat .product-card > :not(.product-media):first-of-type,
      body.post-type-archive-product .product-card > :not(.product-media):first-of-type {
        padding-top: 16px;
      }

      /* Last content element gets bottom padding */
      body.woocommerce-shop .product-card > :not(.product-media):last-child,
      body.tax-product_cat .product-card > :not(.product-media):last-child,
      body.post-type-archive-product .product-card > :not(.product-media):last-child {
        padding-bottom: 16px;
      }

      body.woocommerce-shop .product-title,
      body.tax-product_cat .product-title,
      body.post-type-archive-product .product-title,
      body.woocommerce-shop .product-card h2,
      body.tax-product_cat .product-card h2,
      body.post-type-archive-product .product-card h2,
      body.woocommerce-shop .product-card .product-title,
      body.tax-product_cat .product-card .product-title,
      body.post-type-archive-product .product-card .product-title {
        font-size: 15px !important;
        min-height: 39px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        flex-shrink: 0;
      }

      body.woocommerce-shop .product-desc,
      body.tax-product_cat .product-desc,
      body.post-type-archive-product .product-desc {
        font-size: 11px;
        min-height: 30px;
        max-height: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        margin: 0 0 0 0 !important; /* Ta bort margin-bottom, prissektionen ska ha fast margin-top istället */
        flex-shrink: 0;
      }

      /* Fast margin-top på prissektionen - samma oavsett om beskrivning finns eller inte */
      body.woocommerce-shop .product-desc + .product-price,
      body.tax-product_cat .product-desc + .product-price,
      body.post-type-archive-product .product-desc + .product-price {
        margin-top: 14px !important; /* Fast spacing efter beskrivning */
      }

      /* Om ingen beskrivning finns, använd samma totala spacing (8px title margin + 30px beskrivning space + 14px spacing) */
      body.woocommerce-shop .product-title + .product-price,
      body.tax-product_cat .product-title + .product-price,
      body.post-type-archive-product .product-title + .product-price {
        margin-top: 52px !important; /* 8px (title margin-bottom) + 30px (beskrivning min-height) + 14px (spacing) */
      }

      body.woocommerce-shop .price-current,
      body.tax-product_cat .price-current,
      body.post-type-archive-product .price-current {
        font-size: 18px;
      }

      body.woocommerce-shop .price-old,
      body.tax-product_cat .price-old,
      body.post-type-archive-product .price-old {
        font-size: 13px;
      }

      /* Prissektion med bakgrund - Förslag 2 - Fast position */
      body.woocommerce-shop .product-price,
      body.tax-product_cat .product-price,
      body.post-type-archive-product .product-price {
        background: rgba(255, 99, 99, 0.05);
        padding: 10px 8px;
        border-radius: 6px;
        margin-bottom: 14px !important;
        flex-shrink: 0;
      }

      body.woocommerce-shop .price-save,
      body.tax-product_cat .price-save,
      body.post-type-archive-product .price-save {
        font-size: 10px;
        padding: 2px 6px;
        min-height: 20px;
        display: block;
        margin-bottom: 6px;
      }

      body.woocommerce-shop .price-save--empty,
      body.tax-product_cat .price-save--empty,
      body.post-type-archive-product .price-save--empty {
        min-height: 20px;
        padding: 2px 6px;
        display: block;
        margin-bottom: 0;
      }

      body.woocommerce-shop .product-actions,
      body.tax-product_cat .product-actions,
      body.post-type-archive-product .product-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
      }

      body.woocommerce-shop .btn-primary,
      body.tax-product_cat .btn-primary,
      body.post-type-archive-product .btn-primary {
        padding: 6px 8px !important;
        font-size: 10px !important;
        white-space: nowrap;
        width: 100% !important;
        box-sizing: border-box !important;
        flex: none !important;
      }

      body.woocommerce-shop .btn-ghost,
      body.tax-product_cat .btn-ghost,
      body.post-type-archive-product .btn-ghost {
        display: none;
      }

      body.woocommerce-shop .product-tag,
      body.tax-product_cat .product-tag,
      body.post-type-archive-product .product-tag {
        padding: 4px 10px;
        font-size: 10px;
      }
    }

    .product-card-link {
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .product-card {
      background: rgba(255,255,255,0.95);
      border-radius: var(--radius-lg);
      padding: 24px;
      border: 1px solid rgba(107,159,255,0.12);
      box-shadow: 0 8px 24px rgba(8,7,86,0.08);
      display: flex;
      flex-direction: column;
      gap: 18px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      height: 100%;
      min-height: 580px;
    }

    .product-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 40px rgba(8,7,86,0.15);
      border-color: rgba(107,159,255,0.25);
    }

    .product-card::after {
      content: "";
      position: absolute;
      inset: auto -40% -40% auto;
      width: 140px;
      height: 140px;
      background: radial-gradient(circle, rgba(107,159,255,0.15), transparent 70%);
      z-index: 0;
      transition: all 0.4s ease;
    }

    .product-card:hover::after {
      width: 160px;
      height: 160px;
      opacity: 0.8;
    }


    .products-grid.is-hidden {
      display: none;
    }

    .no-results-card {
      display: none;
      flex-direction: column;
      gap: 18px;
      background: rgba(255,255,255,0.95);
      border-radius: 20px;
      padding: 50px 40px;
      text-align: center;
      border: 1px solid rgba(8,7,86,0.08);
      box-shadow: 0 30px 60px rgba(8,7,86,0.12);
      margin: 0 auto;
      width: min(800px, 90%);
    }

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

    .no-results-card h3 {
      margin: 0;
      font-size: 26px;
      color: var(--primary-dark);
    }

    .no-results-card p {
      margin: 0;
      color: #4a4d6b;
      line-height: 1.5;
    }

    .no-results-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .product-media {
      background: transparent;
      border-radius: var(--radius-md) var(--radius-md) 0 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      aspect-ratio: 1;
      min-height: 200px;
      position: relative;
      z-index: 1;
      overflow: hidden;
      margin: -24px -24px 0 -24px;
    }

    .product-media img {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 15px 25px rgba(0,0,0,0.12));
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      object-fit: cover;
      transform: scale(1.15);
    }

    .product-card:hover .product-media img {
      transform: scale(1.25);
    }

    .product-tags {
      position: absolute;
      top: 12px;
      left: 12px;
      right: 12px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      z-index: 10;
      pointer-events: none;
    }

    .product-tag {
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 700;
      background: rgba(107,159,255,0.95);
      color: #fff;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 12px rgba(8,7,86,0.2);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .product-tag.sale {
      background: #ff6363;
      color: #fff;
      box-shadow: 0 4px 16px rgba(255,99,99,0.4);
    }

    .product-tag.discount {
      background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
      color: #fff;
      box-shadow: 0 4px 16px rgba(255,107,53,0.4);
      font-size: 13px;
      font-weight: 800;
    }

    .product-title,
    .product-card h2,
    .product-card .product-title {
      font-size: 26px !important;
      margin: 0;
      color: var(--primary-dark);
      font-weight: 700;
      line-height: 1.3 !important;
      z-index: 1;
      min-height: 68px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .product-desc {
      font-size: 12px;
      color: #6a6c8a;
      line-height: 1.4;
      z-index: 1;
      margin: -4px 0 0 0;
      min-height: 34px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .product-price {
      display: flex;
      flex-direction: column;
      gap: 4px;
      align-items: flex-start;
      z-index: 1;
      margin-top: 4px;
    }

    .price-wrapper {
      display: flex;
      gap: 12px;
      align-items: baseline;
      flex-wrap: wrap;
    }

    .price-current {
      font-size: 20px;
      font-weight: 800;
      color: var(--primary-blue);
      line-height: 1;
    }

    .price-old {
      text-decoration: line-through;
      color: rgba(8,7,86,0.35);
      font-size: 15px;
      font-weight: 600;
    }

    .price-save {
      font-size: 11px;
      font-weight: 600;
      color: #fff;
      background: #ff6363;
      padding: 2px 6px;
      border-radius: 8px;
      box-shadow: 0 4px 16px rgba(255,99,99,0.4);
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      text-align: center;
    }

    .price-save--empty {
      visibility: hidden;
      min-height: 24px;
      padding: 2px 6px;
      margin: 0;
    }

    .product-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      z-index: 1;
      margin-top: auto;
    }

    .product-actions button {
      z-index: 2;
      position: relative;
    }

    .btn-primary {
      flex: 1;
      background: #ff6363;
      color: #fff;
      border: none;
      border-radius: 5px;
      padding: 14px 20px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 2px 4px rgba(255,99,99,0.3);
    }

    .btn-primary:hover {
      background: #e65555;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255,99,99,0.4);
    }

    .btn-ghost {
      border: 2px solid #ff6363;
      background: #ffffff;
      color: #ff6363;
      font-weight: 600;
      cursor: pointer;
      padding: 10px 12px;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .btn-ghost:hover {
      background: #ff6363;
      color: #ffffff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255,99,99,0.3);
    }

    .pagination,
    .woocommerce-pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      margin-top: 48px;
      padding: 0 4px;
      list-style: none;
    }
    
    .woocommerce-pagination ul {
      display: flex;
      gap: 8px;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    
    .woocommerce-pagination li {
      list-style: none;
      margin: 0;
    }
    
    .woocommerce-pagination a,
    .woocommerce-pagination span {
      min-width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      border: 1px solid rgba(8,7,86,0.15);
      background: rgba(255,255,255,0.95);
      color: var(--primary-dark);
      font-weight: 600;
      font-size: 15px;
      text-decoration: none;
      transition: all 0.2s ease;
    }
    
    .woocommerce-pagination a:hover {
      background: rgba(12,11,148,0.08);
      border-color: rgba(12,11,148,0.3);
      transform: translateY(-2px);
    }
    
    .woocommerce-pagination .current {
      background: var(--primary-dark);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 8px 18px rgba(8,7,86,0.25);
    }
    
    .woocommerce-pagination .prev,
    .woocommerce-pagination .next {
      padding: 0 12px;
    }
    
    .woocommerce-pagination .prev svg,
    .woocommerce-pagination .next svg {
      stroke: currentColor;
      fill: none;
      width: 18px;
      height: 18px;
    }

    .pagination-btn {
      min-width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      border: 1px solid rgba(8,7,86,0.15);
      background: rgba(255,255,255,0.95);
      color: var(--primary-dark);
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
    }

    .pagination-btn:hover:not(.disabled):not(.active) {
      background: rgba(12,11,148,0.08);
      border-color: rgba(12,11,148,0.3);
      transform: translateY(-2px);
    }

    .pagination-btn.active {
      background: var(--primary-dark);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 8px 18px rgba(8,7,86,0.25);
    }

    .pagination-btn.disabled {
      opacity: 0.4;
      cursor: not-allowed;
      pointer-events: none;
    }

    .pagination-btn svg {
      stroke: currentColor;
      fill: none;
    }

    .pagination-ellipsis {
      min-width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #5a5c7a;
      font-weight: 600;
    }

    .loading-overlay {
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      border-radius: var(--radius-lg);
    }

    .loading-overlay.active {
      display: flex;
    }

    .loading-spinner {
      width: 48px;
      height: 48px;
      border: 4px solid rgba(8,7,86,0.1);
      border-top-color: var(--primary-blue);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

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

    .products-grid-wrapper {
      position: relative;
    }
