/** Shopify CDN: Minification failed

Line 16:10 Unexpected "{"
Line 16:19 Expected ":"
Line 17:16 Expected identifier but found whitespace
Line 17:18 Unexpected "{"
Line 17:27 Expected ":"
Line 17:78 Expected ":"
Line 18:19 Expected identifier but found whitespace
Line 18:21 Unexpected "{"
Line 18:30 Expected ":"
Line 18:84 Expected ":"
... and 21 more hidden warnings

**/
.section-{{ section.id }}-padding {
    padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
    padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
  }

  @media screen and (min-width: 750px) {
    .section-{{ section.id }}-padding {
      padding-top: {{ section.settings.padding_top }}px;
      padding-bottom: {{ section.settings.padding_bottom }}px;
    }
  }

  {% liquid
    assign rgb =  section.settings.background | color_to_rgb
    assign tail = section.settings.opacity | prepend: ', ' | append: ')'
  %}

  .section-{{ section.id }} {
    background-color: {{ rgb | replace: 'rgb', 'rgba' | replace: ')', tail }};
  }

  .section-{{  section.id }} {
    /* Add Css here */
  }

  /* CSS Variables for Product Finder - Light Mode (default) */
  .we-pf {
    /* Background colors */
    --pf-bg-primary: #d9d1c8;
    --pf-bg-secondary: #F9F5F3;
    --pf-bg-card: #F9F5F3;
    --pf-bg-input: #FFFFFF;

    /* Text colors */
    --pf-text-primary: #000000;
    --pf-text-secondary: #696461;
    --pf-text-muted: #666666;
    --pf-text-inverted: #FFFFFF;

    /* Border colors */
    --pf-border-default: #FFFFFF;
    --pf-border-active: #000000;
    --pf-border-subtle: #E2D2C6;

    /* Accent colors - these stay consistent across modes */
    --pf-accent-dark: #2e2e2e;
    --pf-accent-cream: #ece2d9;
    --pf-dark-gray: #2e2e2e;

    /* Shadow */
    --pf-shadow: rgba(0, 0, 0, 0.1);
    --pf-overlay: rgba(0, 0, 0, 0.5);
  }

  /* CSS-8: Light mode background override */
  html:not([data-display="dark"]) [class*="section-"][class*="-padding"]:has(.we-pf) {
    background-color: var(--pf-bg-primary) !important;
  }

  .we-pf {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .we-pf:has(.we-pf-nav:empty) {
    gap: 0;
  }
  @media screen and (max-width: 768px) {
    .we-pf {
        padding: 0;
        gap: 0;
    }
  }

  /* Section top padding */
  .we-pf.section {
    padding-block-start: 3rem;
  }
  @media screen and (max-width: 768px) {
    .we-pf.section {
      padding-block-start: 0rem;
    }
  }

  /* BEGIN CUSTOM EDIT: Hide Svelte Widget | Date: 2026-01-12 | What: Only show .sw_container on shoe models grid view */
  .sw_container.svelte-191a2su {
    display: none !important;
  }
  body:has(.we-pf-models) .sw_container.svelte-191a2su:not(.open-container) {
    display: block !important;
  }
  /* END CUSTOM EDIT */

  .we-pf label {
    display: block;
  }

  .we-pf .btn[disabled] {
    background-color: var(--pf-bg-secondary);
    color: var(--pf-text-muted);
    cursor: default;
    transition: none;
  }

  .we-pf-content {
    border-radius: 12px;
    background: var(--pf-bg-primary);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    overflow-y: auto;
  }
  .we-pf-content.fade-out {
    opacity: 0;
  }

  /* Prevent layout shift during search by maintaining minimum content height */
  .we-pf-content:has(.we-pf-search-input) {
    min-height: 80vh;
  }

  @media screen and (max-width: 768px) {
    .we-pf-content {
        border-radius: 0;
        gap: 1rem;
    }
    .we-pf-content:has(.we-pf-search-input) {
        min-height: 100vh;
    }
  }

  .we-pf input[type="text"],
  .we-pf-custom-input input {
    width: 100%;
    background: var(--pf-bg-input);
    border-radius: 12px;
    border: none;
    padding: 0.75rem 1rem;
    padding-left: 2.75rem;
    font-size: 1rem;
    color: var(--pf-text-primary);
    outline: none;
    transition: all 0.3s ease;
  }
  .we-pf-custom-input input {
    padding-left: 1rem;
  }

  .we-pf input[type="text"]::placeholder {
    color: var(--pf-text-primary);
    opacity: 1;
  }

  .we-pf-search { 
    position: relative;
  }
  .we-pf-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
  }
  /* JS-13: Search clear button styling */
  .we-pf-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--pf-text-muted);
    transition: color 0.2s ease;
  }
  .we-pf-search-clear:hover {
    color: var(--pf-text-primary);
  }
  .we-pf-search-clear svg {
    width: 18px;
    height: 18px;
  }

  .we-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--pf-text-primary) transparent;
  }
  /* Aglets grid: 6 columns on desktop */
  .we-pf-aglet-details .we-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  @media screen and (max-width: 1024px) {
    .we-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .we-pf-aglet-details .we-grid {
        grid-template-columns: repeat(3, 1fr);
    }
  }
  @media screen and (max-width: 768px) {
    .we-pf-models .we-grid {
        grid-template-columns: repeat(2, 1fr);
    }
  }
  @media screen and (max-width: 640px) {
    *:not(.we-pf-models) > .we-grid {
        grid-template-columns: repeat(2, 1fr);
    }
  }

  .we-pf-load-more-container {
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .we-pf-load-more {
    width: auto;
    position: relative;
  }
  .we-pf-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  .we-pf-load-more-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: we-pf-spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
  }
  .we-pf-load-more.loading .we-pf-load-more-text {
    opacity: 0.7;
  }
  .we-pf-recommended-variant-badge {
    border-radius: 100px;
    background: var(--pf-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
  }
  .we-pf-length-calculator-item {
    display: flex;
    flex-direction: column;
  }
  .we-pf-length-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  @media screen and (max-width: 620px) {
    .we-pf-length-grid {
        grid-template-columns: repeat(2, 1fr);
    }
  }
  .we-pf-custom-input {
    grid-column: 1/-1;
  }
  .we-pf-input-error {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
  }
  .we-pf-input-error.show {
    display: block;
  }
  .we-pf-custom-input input:invalid {
    border-color: #d32f2f;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .we-pf-style-selection,
  .we-pf-form-filters,
  .we-pf-mode-selection {
    display: flex;
    gap: 1rem;
    width: 100%;
  }

  .we-pf-radio input {
    display: none;
  }
  .we-pf-radio label {
    border-radius: 0.75rem;
    border: 1px solid var(--pf-border-default);
    background: var(--pf-bg-secondary);
    padding: 0.7rem;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
  }
  .we-pf-radio:has(input:checked) label {
    border-color: var(--pf-border-active);
  }
  /* Hover only on non-touch devices */
  @media (hover: hover) {
    .we-pf-radio:hover label {
      border-color: var(--pf-border-active);
    }
  }

  /* Hardcoded colors since checkbox is above images */
  label .we-pf-radio-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    border: 1px solid #2e2e2e;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  label .we-pf-radio-checkbox svg {
    display: none;
  }
  /* Light mode: dark background, light checkmark */
  .we-pf-radio:has(input:checked) label .we-pf-radio-checkbox {
    border: 1px solid #2e2e2e;
    background: #2e2e2e;
  }
  .we-pf-radio:has(input:checked) label .we-pf-radio-checkbox svg {
    display: block;
    color: #ece2d9;
  }
  /* Dark mode: dark background, light checkmark */
  html[data-display="dark"] .we-pf-radio:has(input:checked) label .we-pf-radio-checkbox {
    border: 1px solid #ece2d9;
    background: #2e2e2e;
  }
  html[data-display="dark"] .we-pf-radio:has(input:checked) label .we-pf-radio-checkbox svg {
    color: #ece2d9;
  }
  /* CSS-3: Hide checkmark on model grid */
  .we-pf-model-item .we-pf-radio-checkbox {
    display: none;
  }

  .we-pf-style-selection-item,
  .we-pf-form-filter-item,
  .we-pf-mode-selection-item {
    flex: 1;
  }

  .we-pf-mode-selection {
    position: relative;
    border-radius: 12px;
    background: var(--pf-bg-secondary);
    border: 1px solid var(--pf-border-default);
    gap: 0;
    overflow: hidden;
  }
  .we-pf-mode-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--pf-text-primary);
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
  }
  .we-pf-mode-selection:has(.we-pf-mode-selection-item:last-child input:checked)::before {
    transform: translateX(100%);
  }
  .we-pf-mode-selection-item input {
    display: none;
  }
  .we-pf-mode-selection-item label {
    position: relative;
    z-index: 1;
    border-radius: 10px;
    margin: 0;
    padding: 1rem 1.5rem;
    transition: color 0.3s ease;
    text-align: center;
    font-weight: 500;
  }
  .we-pf-mode-selection-item:has(input:checked) label {
    color: var(--pf-text-inverted);
  }

  .we-pf-radio label img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
  }

  .we-pf-brand-item input,
  .we-pf-color-filter-item input {
    display: none;
  }
  .we-pf-brand-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
  }
  .we-pf-brand-item-logo {
    border-radius: 100px;
    border: 1px solid var(--pf-border-default);
    background: var(--pf-bg-secondary);
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
  }
  /* CSS-25: Brand swiper - native scroll */
  .we-pf-brands.swiper {
    overflow: hidden;
  }
  .we-pf-brands .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
  }
  .we-pf-brands .swiper-wrapper::-webkit-scrollbar {
    display: none;
  }
  .we-pf-brands .swiper-slide {
    flex-shrink: 0;
    width: auto;
  }
  @media screen and (max-width: 749px) {
    .we-pf-brand-item label .we-pf-brand-item-logo {
      width: 4rem;
      height: 4rem;
      padding: 0.375rem;
    }
  }
  .we-pf-brand-item:has(input:checked) label .we-pf-brand-item-logo {
    border-color: var(--pf-border-active);
  }
  /* Hover only on non-touch devices */
  @media (hover: hover) {
    .we-pf-brand-item:hover label .we-pf-brand-item-logo {
      border-color: var(--pf-border-active);
    }
  }
  .we-pf-brand-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .we-pf-brand-item-name {
    color: var(--pf-text-primary);
    text-align: center;
    font-size: 0.7rem;
    font-style: normal;
    line-height: 120%;
  }
  /* CSS-2: Dim unselected brands when one is selected */
  .we-pf-brands:has(input[type="checkbox"]:checked) .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.2s ease;
  }
  .we-pf-brands .swiper-slide:has(input[type="checkbox"]:checked) {
    opacity: 1;
  }

  .we-pf-radio.we-pf-form-detail-item label,
  .we-pf-radio.we-pf-color-detail-item label,
  .we-pf-radio.we-pf-aglet-detail-item label {
    padding: 0;
    overflow: hidden;
    height: 100%;
  }
  .we-pf-item-image {
    position: relative;
    aspect-ratio: 4 / 5;
  }
  .we-pf-radio .we-pf-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* Zoom only for aglet detail images */
  .we-pf-aglet-detail-item .we-pf-item-image {
    overflow: hidden;
  }
  .we-pf-aglet-detail-item .we-pf-item-image img {
    transform: scale(2);
    transform-origin: center 60%;
  }
  .we-pf-form-detail-item-info,
  .we-pf-color-detail-item-info,
  .we-pf-aglet-detail-item-info {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-top: 0.5rem;
  }
  .we-pf-form-detail-item-info-title,
  .we-pf-color-detail-item-info-title {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .we-pf-info-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--pf-accent-dark);
    color: var(--pf-accent-cream);
    border-radius: 100px;
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }

  .we-pf-color-filters {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  /* CSS-28: Native scroll for color filters */
  .we-pf-color-filters.swiper {
    overflow: hidden;
  }
  .we-pf-color-filters .swiper-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
  }
  .we-pf-color-filters .swiper-wrapper::-webkit-scrollbar {
    display: none;
  }
  .we-pf-color-filters .swiper-slide {
    flex-shrink: 0;
    width: auto;
  }
  .we-pf-color-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    min-width: 4rem;
  }
  .we-pf-color-filter-item label {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .we-pf-color-filter-item label .we-pf-color-filter-item-color {
    display: inline-block;
    border-radius: 100%;
    border: 1px solid var(--pf-border-default);
    aspect-ratio: 1/1;
    transition: all 0.3s ease;
    width: 3.5rem;
    height: 3.5rem;
  }
  @media screen and (max-width: 768px) {
    .we-pf-color-filters .swiper-wrapper {
      gap: 0.5rem;
    }
    .we-pf-color-filter-item {
      min-width: 3rem;
    }
    .we-pf-color-filter-item label .we-pf-color-filter-item-color {
      width: 3rem;
      height: 3rem;
    }
  }
  .we-pf-color-filter-item:has(input:checked) label .we-pf-color-filter-item-color,
  .we-pf-color-filter-item:hover label .we-pf-color-filter-item-color {
    border-color: var(--pf-border-active);
  }
  /* CSS-27: Dim unselected color filters when one is selected */
  .we-pf-color-filters:has(input[type="radio"]:checked) .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.2s ease;
  }
  .we-pf-color-filters .swiper-slide:has(input[type="radio"]:checked) {
    opacity: 1;
  }

  .we-pf-nav-buttons {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
    order: 99;
  }
    .we-pf-nav-buttons .we-pf-nav-button--prev svg {
        display: none;
    }
    .we-pf-nav-button--next.btn--mobile-only {
        display: none;
    }
  @media screen and (max-width: 768px) {
    .we-pf-nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
        backdrop-filter: blur(20px);
        will-change: backdrop-filter, transform;
        background: rgb(from var(--pf-bg-primary) r g b / 0.6) !important;

    }
    .we-pf-nav-buttons button,
    .we-pf-nav-buttons form {
        width: 100%;
    }
    .we-pf-nav-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--pf-bg-primary);
        padding: 1rem;
        z-index: 100;
        box-shadow: 0 -2px 10px var(--pf-shadow);
        flex-direction: row;
        gap: 1rem;
        align-items: stretch;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }
    .we-pf-nav-buttons.hidden {
        transform: translateY(100%);
    }
    .we-pf-nav-buttons .we-pf-nav-button--prev {
        width: auto;
        min-width: 3rem;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 0;
        line-height: 0;
        aspect-ratio: 1;
    }
    .we-pf-nav-buttons .we-pf-nav-button--prev-text {
        display: none;
    }
    .we-pf-nav-buttons .we-pf-nav-button--prev svg {
        width: 1.25rem;
        height: 1.25rem;
        flex-shrink: 0;
        display: block;
    }
    .we-pf-nav-buttons button.we-pf-nav-button--next,
    .we-pf-nav-buttons form {
        flex: 1;
    }
    .we-pf-nav-buttons:has(.btn--mobile-only) .we-pf-nav-button--next:not(.btn--mobile-only) {
        display: none;
    }
    .we-pf-nav-buttons:has(.btn--mobile-only) .we-pf-nav-button--next.btn--mobile-only {
        display: block;
        padding: 0.25rem;
    }
    .we-pf-content {
        padding-top: 1rem;
        padding-bottom: 120px;
    }
  }
  /* BEGIN CUSTOM EDIT: Desktop fixed nav buttons | Date: 2026-03-13 | What: Fix nav buttons at bottom when grid has multiple rows */
  .we-pf-nav-buttons.fixed-desktop {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--pf-content-width, 100%);
    max-width: var(--pf-content-max-width, 100%);
    padding: 1rem 1.5rem;
    z-index: 99;
    box-shadow: 0 -2px 10px var(--pf-shadow);
    backdrop-filter: blur(20px);
    background: rgb(from var(--pf-bg-primary) r g b / 0.85);
    border-radius: 12px 12px 0 0;
  }
  .we-pf-content:has(.we-pf-nav-buttons.fixed-desktop) {
    padding-bottom: 80px;
  }
  /* END CUSTOM EDIT */
  .we-pf-nav-buttons > * {
    flex: 1;
  }
  .we-pf-nav-buttons form button {
    width: 100%;
  }
  /* CSS-24: Configure/Previous button - cream background with dark text */
  .we-pf-nav-button--prev,
  .we-pf-variant-popup-configure {
    background-color: var(--pf-accent-cream);
    color: var(--pf-dark-gray);
    border: 1px solid var(--pf-accent-cream);
  }
  .we-pf-nav-button--prev:hover,
  .we-pf-variant-popup-configure:hover {
    background: var(--pf-bg-primary);
    border-color: var(--pf-bg-primary);
  }
  /* Configure button in popup */
  .we-pf-variant-popup .we-pf-variant-popup-configure {
    background-color: var(--pf-bg-secondary);
    border-color: var(--pf-bg-secondary);
  }
  /* Next/Continue button styling */
  .we-pf-nav-button--next {
    background-color: var(--pf-text-primary);
    color: var(--pf-text-inverted);
    border: 1px solid var(--pf-text-primary);
  }
  .we-pf-nav-button--next:hover {
    background-color: var(--pf-text-secondary);
    border-color: var(--pf-text-secondary);
  }
  .we-pf-nav-button--next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
  }

  .we-pf-item-title {
    color: var(--pf-text-primary);
    text-align: center;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
  }

  .we-pf-model-item {
    height: 100%;
    position: relative;
  }
  .we-pf-model-item.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  .we-pf-model-item.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--pf-border-default);
    border-top-color: var(--pf-text-primary);
    border-radius: 50%;
    animation: we-pf-spin 0.8s linear infinite;
    z-index: 3;
  }
  html[data-display="dark"] .we-pf-model-item.is-loading::after {
    background: rgba(0, 0, 0, 0.6);
  }
  .we-pf-model-item label {
    height: 100%;
    border: 1px solid var(--pf-border-default) !important;
    border-radius: 0.75rem !important;
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  /* Light mode: dark border on selected */
  .we-pf-model-item:has(input:checked) label {
    border-color: var(--pf-dark-gray) !important;
  }
  /* Light mode: hover only on non-touch devices */
  @media (hover: hover) {
    .we-pf-model-item label:hover {
      border-color: var(--pf-dark-gray) !important;
    }
  }
  /* JS-6: Brand logo overlay for model cards */
  .we-pf-model-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0.5rem;
    flex: 1;
  }
  .we-pf-model-image-container img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
  }
  @media screen and (max-width: 500px) {
    .we-pf-model-image-container img {
      max-height: 80px;
    }
  }
  /* CSS-15: Brand logo in model grid - position bottom-left */
  .we-pf-model-brand-logo {
    position: absolute;
    bottom: 1px;
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 1;
    padding: 0;
    left: -15px;
  }
  @media screen and (max-width: 500px) {
    .we-pf-model-brand-logo {
      left: -0.3rem;
      max-width: 60px;
      max-height: 30px;
    }
  }
  /* CSS-26: Model card footer with text and brand logo */
  .we-pf-model-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0.5rem 0.5rem;
  }
  .we-pf-model-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }
  .we-pf-model-footer .we-pf-model-brand-logo {
    position: static;
    max-width: 50px;
    max-height: 25px;
    flex-shrink: 0;
  }
  .we-pf-model-brand-name {
    color: var(--pf-text-primary);
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 120%;
    cursor: pointer;
  }
  .we-pf-model-silhouette {
    color: var(--pf-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 120%;
    cursor: pointer;
  }
  @media screen and (max-width: 500px) {
    .we-pf-model-brand-name,
    .we-pf-model-silhouette {
      font-size: 0.75rem;
    }
    .we-pf-model-footer .we-pf-model-brand-logo {
      max-width: 40px;
      max-height: 20px;
    }
  }

  .we-pf-swiper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  .we-pf-swiper-header-buttons {
    display: flex;
    gap: 0.5rem;
  }
  .we-pf-swiper-header-buttons button:disabled {
    opacity: 0.5;
  }

  .we-pf-section-title {
    color: var(--pf-text-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .we-pf-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
    gap: 1rem;
  }
  .we-pf-section-title-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .we-pf-section-selected-value {
    color: var(--pf-text-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
  }
  
  .we-pf-label-separator {
    color: var(--pf-text-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
    margin-left: -0.5rem;
  }
  /* JS-5: Brand clear button (X button) styling */
  .we-pf-selected-value-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: 4px;
    color: var(--pf-text-muted);
    transition: color 0.2s ease;
    vertical-align: middle;
  }
  .we-pf-selected-value-clear:hover {
    color: var(--pf-text-primary);
  }
  .we-pf-selected-value-clear svg {
    width: 14px;
    height: 14px;
  }
  .we-pf-container-header .we-pf-badge-legend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--pf-text-secondary);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    flex-wrap: wrap;
  }
  /* Hide badge legend when the parent container's grid/content doesn't contain the badge */
  .we-pf-models:not(:has(.we-grid .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend,
  .we-pf-form-details:not(:has(.we-grid .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend,
  .we-pf-form-filters-container:not(:has(.we-pf-form-filters .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend,
  .we-pf-color-details:not(:has(.we-grid .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend,
  .we-pf-aglet-details:not(:has(.we-grid .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend,
  .we-pf-length-calculator-item:not(:has(.we-pf-length-grid .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend,
  .we-pf-length-details:not(:has(.we-grid .we-pf-recommended-variant-badge)) .we-pf-container-header .we-pf-badge-legend {
    display: none;
  }

  .we-pf-variant-summary-card {
    border-radius: 12px;
    border: 1px solid var(--pf-border-default);
    background: var(--pf-bg-secondary);
    display: flex;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    overflow-anchor: none; /* Prevent scroll jumping when card is replaced */
    /* Fade-in animation */
    opacity: 0;
    transition: opacity 0.5s ease-out;
  }
  /* BEGIN CUSTOM EDIT: Centered popup summary card | Date: 2026-03-13 | What: Card as centered popup overlay on all screen sizes */
  /* BEGIN CUSTOM EDIT: Popup light mode variables | Date: 2026-03-17 | What: Define CSS vars for card appended to body outside .we-pf */
  .we-pf-variant-summary-card.fade-in {
    --pf-bg-primary: #d9d1c8;
    --pf-bg-secondary: #F9F5F3;
    --pf-bg-card: #F9F5F3;
    --pf-bg-input: #FFFFFF;
    --pf-text-primary: #000000;
    --pf-text-secondary: #696461;
    --pf-text-muted: #666666;
    --pf-text-inverted: #FFFFFF;
    --pf-border-default: #FFFFFF;
    --pf-border-active: #000000;
    --pf-border-subtle: #E2D2C6;
    --pf-accent-dark: #2e2e2e;
    --pf-accent-cream: #ece2d9;
    --pf-dark-gray: #2e2e2e;
    --pf-shadow: rgba(0, 0, 0, 0.1);

    opacity: 1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    margin: 0;
    width: 90%;
    max-width: 900px;
    max-height: 85dvh;
    overflow-y: auto;
    padding: 1.5rem;
    gap: 1.5rem;
    background: var(--pf-accent-cream, #ece2d9);
  }
  /* END CUSTOM EDIT */
  .we-pf-variant-summary-card.fade-in .we-pf-variant-summary-card-image {
    width: 220px;
    min-width: 220px;
  }
  .we-pf-variant-summary-card.fade-in .we-pf-variant-summary-card-info {
    gap: 1rem;
  }
  .we-pf-variant-summary-card.fade-in .we-pf-variant-summary-card-info-title {
    display: none;
  }
  .we-pf-variant-summary-card.fade-in .we-pf-config-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 0.75rem;
  }
  .we-pf-variant-summary-card.fade-in .we-pf-variant-summary-card-info-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .we-pf-variant-summary-card.fade-in .we-pf-variant-popup-configure {
    background-color: var(--pf-bg-primary, #d9d1c8);
    border-color: var(--pf-bg-primary, #d9d1c8);
  }
  .we-pf-variant-summary-card.fade-in .we-pf-variant-popup-configure:hover {
    background-color: var(--pf-bg-secondary, #F9F5F3);
    border-color: var(--pf-bg-secondary, #F9F5F3);
  }
  .we-pf-variant-summary-card.fade-in .we-pf-card-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .we-pf-variant-summary-card.fade-in .we-pf-card-buttons > * {
    width: 100%;
  }
  .we-pf-variant-summary-card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
  }
  .we-pf-variant-summary-card-overlay.active {
    opacity: 1;
    pointer-events: auto;
    cursor: var(--cursor-close-svg-url) 28 28, auto;
  }
  @media screen and (max-width: 580px) {
    .we-pf-variant-summary-card.fade-in {
      width: 95%;
      max-height: 90dvh;
      flex-direction: column;
      padding: 1rem;
    }
    .we-pf-variant-summary-card.fade-in .we-pf-variant-summary-card-image {
      width: 100%;
      min-width: unset;
      max-height: 200px;
    }
    .we-pf-variant-summary-card.fade-in .we-pf-variant-summary-card-image img {
      object-fit: cover;
      max-height: 200px;
    }
  }
  .we-pf-variant-summary-card.fade-in.inline {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow-y: visible;
    box-shadow: none;
    z-index: auto;
    padding: 1rem;
    gap: 1rem;
    border-radius: 12px;
    margin: 0;
  }
  .we-pf-variant-summary-card.fade-in.inline .we-pf-variant-summary-card-image {
    width: 200px;
    min-width: 200px;
  }
  .we-pf-variant-summary-card.fade-in.inline .we-pf-variant-summary-card-info {
    gap: 0.75rem;
  }
  .we-pf-variant-summary-card.fade-in.inline .we-pf-variant-summary-card-info-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.75rem;
  }
  .we-pf-variant-summary-card.fade-in.inline .we-pf-card-buttons {
    flex-direction: row;
    gap: 1rem;
  }
  .we-pf-variant-summary-card.fade-in.inline .we-pf-card-buttons > * {
    width: 50%;
  }
  /* END CUSTOM EDIT */
  .we-pf-variant-summary-card-image {
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
  }
  /* Only constrain image width when card is below shoe grid (models page) */
  .we-pf-models .we-pf-variant-summary-card-image {
    width: 160px;
    min-width: 160px;
  }
  /* Summary page: larger responsive image */
  .we-pf-content > .we-pf-variant-summary-card .we-pf-variant-summary-card-image {
    width: 200px;
    min-width: 200px;
  }
  @media screen and (max-width: 580px) {
    .we-pf-content > .we-pf-variant-summary-card {
      flex-direction: column;
    }
    .we-pf-content > .we-pf-variant-summary-card .we-pf-variant-summary-card-image {
      width: 100%;
      min-width: unset;
      max-height: 250px;
    }
    .we-pf-content > .we-pf-variant-summary-card .we-pf-variant-summary-card-image img {
      object-fit: cover;
      height: auto;
      max-height: 250px;
    }
  }
  .we-pf-variant-summary-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
  }
  .we-pf-variant-summary-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
  }
  @media screen and (max-width: 768px) {
    .we-pf-variant-summary-card-info {
        flex: none;
        gap: 0.5rem;
    }
    /* Mobile: 2-column layout for details (left) and price (right) */
    .we-pf-content .we-pf-variant-summary-card-info {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.5rem;
    }
    .we-pf-content .we-pf-variant-summary-card-info-title {
      grid-column: 1 / -1;
    }
    .we-pf-content .we-pf-variant-summary-card-info-details {
      grid-column: 1;
      grid-template-columns: 1fr;
    }
    .we-pf-content .we-pf-variant-summary-card-price {
      grid-column: 2;
      align-self: end;
      text-align: right;
      white-space: nowrap;
    }
    .we-pf-content .we-pf-card-buttons {
      grid-column: 1 / -1;
    }
  }
  .we-pf-variant-summary-card-info-title {
    color: var(--pf-text-primary);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
  }
  /* BEGIN CUSTOM EDIT: Config section background | Date: 2026-03-18 | What: Separate background for details section in summary card */
  .we-pf-config-section {
    background: var(--pf-bg-card, #F9F5F3);
    border-radius: 8px;
    padding: 0.75rem;
  }
  /* END CUSTOM EDIT */
  .we-pf-variant-summary-card-info-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.75rem;
  }
  @media screen and (max-width: 475px) {
    .we-pf-variant-summary-card-info-details {
      grid-template-columns: 1fr;
    }
  }
  .we-pf-variant-summary-card-info-details-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
  }
  .we-pf-variant-summary-card-info-details-item button {
    z-index: 2;
  }
  /* BEGIN CUSTOM EDIT: Edit button label text | Date: 2026-03-12 | What: Show "customize" text next to pencil icon */
  .we-pf-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    color: inherit;
    opacity: 0.75;
    font-size: 0.8rem;
    font-weight: 300;
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }
  .we-pf-edit-btn:hover {
    opacity: 1;
  }
  .we-pf-edit-btn svg {
    width: 14px;
    height: 14px;
  }
  /* END CUSTOM EDIT */
  .we-pf-variant-summary-card-info-details-label {
    font-weight: 300;
  }
  /* JS-17 & CSS-1: Color swatch in variant summary */
  .we-pf-variant-summary-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: var(--pf-accent-dark);
    color: var(--pf-accent-cream);
    padding-inline: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
    height: 22px;
  }
  .we-pf-variant-summary-card-price {
    color: var(--pf-text-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    line-height: 120%;
  }
  .we-pf-variant-summary-card-info form button {
    width: 100%;
  }
  /* Popup needs its own CSS variables since it's appended to body outside .we-pf */
  .we-pf-variant-popup {
    /* Light mode variables */
    --pf-bg-primary: #d9d1c8;
    --pf-bg-secondary: #F9F5F3;
    --pf-bg-card: #F9F5F3;
    --pf-bg-input: #FFFFFF;
    --pf-text-primary: #000000;
    --pf-text-secondary: #696461;
    --pf-text-muted: #666666;
    --pf-text-inverted: #FFFFFF;
    --pf-border-default: #FFFFFF;
    --pf-border-active: #000000;
    --pf-border-subtle: #E2D2C6;
    --pf-accent-dark: #2e2e2e;
    --pf-accent-cream: #ece2d9;
    --pf-dark-gray: #2e2e2e;
    --pf-shadow: rgba(0, 0, 0, 0.1);
    --pf-overlay: rgba(0, 0, 0, 0.5);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 46, 46, 0.6);
    backdrop-filter: blur(50px);
    will-change: backdrop-filter, opacity;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: visible;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  .we-pf-variant-popup.fade-in {
    opacity: 1;
  }
  .we-pf-variant-popup-content {
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
    overflow: visible;
  }
  .we-pf-variant-popup-scrollable {
    max-height: 90dvh;
    overflow-y: auto;
    overflow-x: visible;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }
  @keyframes slideUpFromBottom {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  @media screen and (max-width: 701px) {
    .we-pf-variant-popup {
      align-items: flex-end;
      padding: 0;
    }
    .we-pf-variant-popup-content {
      width: 100%;
      max-width: 100%;
      max-height: 100dvh;
      height: 100dvh;
      border-radius: 0;
      margin: 0;
      transform: translateY(100%);
      transition: transform 0.3s ease-out;
    }
    .we-pf-variant-popup-content.slide-in {
      transform: translateY(0);
    }
    .we-pf-variant-popup-scrollable {
      max-height: 100dvh;
      height: 100%;
      border-radius: 0;
      padding: 1rem;
    }
  }
  .we-pf-variant-popup-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    background: #2e2e2e;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #ece2d9;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 0;
    font-weight: 300;
    box-shadow: 0 2px 4px var(--pf-shadow);
  }
  .we-pf-variant-popup-close:hover {
    opacity: 0.7;
  }
  @media screen and (max-width: 701px) {
    .we-pf-variant-popup-close {
      top: 1.5rem;
      right: 1.5rem;
    }
  }
  .we-pf-variant-popup .we-pf-variant-summary-card {
    margin: 0;
    min-height: 0;
    overflow-y: auto;
    background: var(--pf-accent-cream, #ece2d9);
    opacity: 1; /* Override - always visible in popup context */
  }
  .we-pf-variant-popup .we-pf-variant-summary-card-image {
    flex-shrink: 0;
  }
  .we-pf-variant-popup .we-pf-variant-summary-card .we-pf-variant-summary-card-image img {
    object-fit: cover;
  }
  @media screen and (max-width: 768px) {
    .we-pf-variant-popup .we-pf-variant-summary-card {
      flex-direction: column;
      max-height: none;
      background-color: var(--pf-accent-cream, #ece2d9);
      justify-content: space-between;
    }
    .we-pf-variant-popup .we-pf-variant-summary-card-image {
      width: 100%;
      max-width: 100%;
      max-height: 50%;
      flex: 1;
      display: flex;
      align-items: center;
      overflow: hidden;
      border-radius: 8px;
    }
    .we-pf-variant-popup .we-pf-variant-summary-card .we-pf-variant-summary-card-image img {
      all: unset;
      height: 100%;
      object-fit: cover;
      object-position: left 0 bottom 45%;
      width: 100%;
      height: 100%;
      max-height: 35vh;
    }
    .we-grid {
        max-height: none;
    }
    /* Mobile popup: 2-column layout for details (left) and price (right) */
    .we-pf-variant-popup .we-pf-variant-summary-card-info {
      display: grid;
      grid-template-columns: 1fr auto;
      grid-template-rows: auto auto auto auto;
      gap: 1rem;
      padding: 1rem;
    }
    /* Model info spans full width */
    .we-pf-variant-popup .we-pf-variant-summary-card-info > .we-pf-model-info-row {
      grid-column: 1 / -1;
    }
    /* Hide product title in popup */
    .we-pf-variant-popup .we-pf-variant-summary-card-info-title {
      display: none;
    }
    /* Config section on left */
    .we-pf-variant-popup .we-pf-config-section {
      grid-column: 1;
      background: #FFFFFF;
      border-radius: 8px;
      padding: 0.75rem;
    }
    .we-pf-variant-popup .we-pf-variant-summary-card-info-details {
      grid-template-columns: 1fr;
      row-gap: 1rem;
    }
    /* Price on right, aligned to bottom */
    .we-pf-variant-popup .we-pf-variant-summary-card-price {
      grid-column: 2;
      align-self: end;
      text-align: right;
      white-space: nowrap;
    }
    /* Buttons span full width */
    .we-pf-variant-popup .we-pf-card-buttons {
      grid-column: 1 / -1;
      margin-top: 0.5rem;
    }
  }
  @media screen and (max-width: 580px) {
    .we-pf-content > .we-pf-variant-summary-card {
        flex-direction: column;
    }
    .we-pf-content > .we-pf-variant-summary-card .we-pf-variant-summary-card-image img {
      width: 100%;
      max-width: 100%;
      height:30vh;
    }
  }

  .we-pf-container-header {
    margin-bottom: 0.75rem;
  }

  .we-pf-length-calculator {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* ============================================
     CALCULATOR LAYOUT FROM LENGTH GUIDE
  ============================================ */

  /* Skip Option - "Don't know your model?" */
  .we-pf-skip-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--pf-bg-secondary);
    border-radius: 12px;
    text-align: center;
  }

  .we-pf-skip-text {
    color: rgb(var(--color-dark));
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
  }

  .we-pf-skip-button {
    background-color: rgb(var(--color-dark));
    color: rgb(var(--color-light));
    border: none;
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
  }

  .we-pf-skip-button:hover {
    opacity: 0.85;
  }

  /* CSS-17: Calculator label tooltip alignment */
  .we-pf-length-calculator .we-pf-container-header {
    justify-content: flex-start;
  }

  /* Calculator section titles - medium weight */
  .we-pf-length-calculator .we-pf-section-title-text {
    font-weight: 500;
  }

  .we-pf-length-calculator .we-pf-container-header .we-pf-tooltip {
    margin-left: 0.35rem;
  }

  /* Calculator option labels - show values inline with title */
  .we-pf-length-calculator .we-pf-section-selected-value {
    display: inline;
    font-weight: 500;
  }
  .we-pf-length-calculator .we-pf-section-selected-value::before {
    content: ": ";
  }

  /* Grid layout for eyelets (5 columns) */
  .we-pf-length-calculator .we-pf-length-grid--eyelets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .we-pf-length-calculator .we-pf-length-grid--eyelets .we-pf-radio label {
    min-width: unset;
    padding: 0.75rem 0.5rem;
  }

  @media screen and (max-width: 540px) {
    .we-pf-length-calculator .we-pf-length-grid--eyelets {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* Calculated length display */
  .we-pf-calculated-length {
    padding: 1.25rem;
    background: var(--pf-bg-secondary);
    border-radius: 12px;
    text-align: center;
    margin-top: 0.5rem;
  }

  .we-pf-calculated-length-label {
    font-size: 0.875rem;
    color: rgb(var(--color-dark) / 0.6);
    margin-bottom: 0.25rem;
  }

  .we-pf-calculated-length-value {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(var(--color-dark));
  }

  /* Auto-calculate match result + confirm button */
  .we-pf-match-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    background: var(--pf-bg-secondary);
    border-radius: 12px;
  }

  .we-pf-match-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
  }

  .we-pf-recommended-length-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(var(--color-dark), 0.08);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--pf-text-primary);
  }

  .we-pf-recommended-length-badge .we-pf-recommended-variant-badge {
    display: flex;
    align-items: center;
  }

  .we-pf-recommended-length-badge .we-pf-recommended-variant-badge svg {
    width: 20px;
    height: 20px;
  }

  .we-pf-recommended-length-badge strong {
    font-weight: 600;
  }

  .we-pf-match-label {
    font-size: 0.875rem;
    color: rgb(var(--color-dark) / 0.6);
  }

  .we-pf-match-value {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(var(--color-dark));
  }

  .we-pf-max-warning {
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 6px;
    color: #856404;
    font-size: 0.875rem;
    text-align: center;
  }

  /* Confirm button - hidden, use nav buttons instead */
  .we-pf-confirm-btn {
    display: none;
  }

  /* Range Slider Styles - Native iOS/Material inspired design */
  .we-pf-slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }

  .we-pf-slider-value {
    display: none; /* Hidden - value now shown in section header */
  }

  /* Slider value label in header */
  .we-pf-section-selected-value .we-pf-slider-value-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--pf-text-muted);
    margin-left: 0.25rem;
  }

  /* Native iOS-style slider: thin track, white thumb with subtle shadow */
  .we-pf-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--pf-bg-secondary);
    outline: none;
    cursor: pointer;
    margin: 14px 0;
  }

  /* WebKit (Chrome, Safari, iOS) thumb */
  .we-pf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(var(--color-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  }

  .we-pf-slider::-webkit-slider-thumb:hover {
    transform: scale(1.05);
  }

  .we-pf-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  /* Firefox thumb */
  .we-pf-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(var(--color-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  }

  .we-pf-slider::-moz-range-thumb:hover {
    transform: scale(1.05);
  }

  .we-pf-slider::-moz-range-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  /* Firefox track styling */
  .we-pf-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--pf-bg-secondary);
  }

  /* Focus state for accessibility */
  .we-pf-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.15);
  }

  .we-pf-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.15);
  }

  .we-pf-slider-ticks {
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-size: 0.65rem;
    color: var(--pf-text-muted);
    margin-top: 6px;
  }

  .we-pf-slider-tick {
    flex: 1;
    text-align: center;
    opacity: 0.5;
  }

  .we-pf-slider-tick--major {
    opacity: 0.9;
    font-weight: 600;
  }

  .we-pf-slider-value-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--pf-text-muted);
    margin-left: 0.25rem;
  }

  /* Dark mode slider styles */
  html[data-display="dark"] .we-pf-slider-value {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-slider {
    background: rgba(var(--color-light), 0.15);
  }

  html[data-display="dark"] .we-pf-slider::-webkit-slider-thumb {
    background: rgb(var(--color-light));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  html[data-display="dark"] .we-pf-slider::-moz-range-thumb {
    background: rgb(var(--color-light));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  html[data-display="dark"] .we-pf-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  html[data-display="dark"] .we-pf-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  html[data-display="dark"] .we-pf-slider-tick {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-slider-value-label {
    color: rgba(var(--color-light), 0.6);
  }

  /* Mobile slider enhancements */
  @media (max-width: 768px) {
    .we-pf-slider {
      height: 6px;
      margin: 18px 0;
      touch-action: none; /* Prevent page scroll while dragging */
    }

    .we-pf-slider::-webkit-slider-thumb {
      width: 32px;
      height: 32px;
    }

    .we-pf-slider::-moz-range-thumb {
      width: 32px;
      height: 32px;
    }

    .we-pf-slider-value {
      font-size: 1.2rem;
    }

    .we-pf-slider-ticks {
      font-size: 0.8rem;
    }
  }

  /* Smart tooltip positioning - flip to below when clipped at top */
  .we-pf-tooltip-content.tooltip-below {
    bottom: auto;
    top: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    transform: translateX(-50%) translateY(0);
  }

  .we-pf-tooltip-content.tooltip-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.9);
    border-bottom-width: 0.5rem;
    border-top-width: 0;
  }

  /* Dark mode calculator styles */
  html[data-display="dark"] .we-pf-skip-option {
    background: var(--pf-bg-secondary, #3a3a3a);
  }

  html[data-display="dark"] .we-pf-skip-text {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-skip-button {
    background-color: rgb(var(--color-light));
    color: rgb(var(--color-dark));
  }

  html[data-display="dark"] .we-pf-calculated-length {
    background: var(--pf-bg-secondary, #3a3a3a);
  }

  html[data-display="dark"] .we-pf-calculated-length-label {
    color: rgb(var(--color-light) / 0.7);
  }

  html[data-display="dark"] .we-pf-calculated-length-value {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-match-result {
    background: var(--pf-bg-secondary, #3a3a3a);
  }

  html[data-display="dark"] .we-pf-match-label {
    color: rgb(var(--color-light) / 0.7);
  }

  html[data-display="dark"] .we-pf-match-value {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-max-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
  }

  html[data-display="dark"] .we-pf-tooltip-content.tooltip-below::after {
    border-bottom-color: rgb(var(--color-dark));
  }

  html[data-display="dark"] .we-pf-recommended-length-badge {
    background: rgba(var(--color-light), 0.1);
    color: rgb(var(--color-light));
  }

  .we-pf-model-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .we-pf-model-info-image {
    width: 6rem;
    min-width: 6rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
  }
  .we-pf-model-info-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .we-pf-model-info-details {
    display: flex;
    flex-direction: column;
    color: var(--pf-text-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
  }
  .we-pf-model-info-title {
    font-weight: 300;
  }
  .we-pf-model-info-silhouette {
    font-weight: 400;
    color: var(--pf-text-primary);
  }

  .we-pf-loading-spinner {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    gap: 1rem;
  }
  .we-pf-loading-spinner::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--pf-bg-secondary);
    border-top-color: var(--pf-text-primary);
    border-radius: 50%;
    animation: we-pf-spin 0.8s linear infinite;
  }
  .we-pf-loading-text {
    font-size: 1rem;
    color: var(--pf-text-primary);
  }
  @keyframes we-pf-spin {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  .we-pf-variant-summary-card-loading {
    border-radius: 12px;
    border: 1px solid var(--pf-border-default);
    background: var(--pf-bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    min-height: 200px;
    overflow-anchor: none; /* Prevent scroll jumping during card swap */
  }
  .we-pf-variant-summary-card-loading::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--pf-bg-secondary);
    border-top-color: var(--pf-text-primary);
    border-radius: 50%;
    animation: we-pf-spin 0.8s linear infinite;
  }

  .we-pf-nav-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    border-radius: 12px;
    background: var(--pf-bg-primary);
    padding: 1.5rem;
    flex-wrap: wrap;
  }
  @media screen and (max-width: 768px) {
    .we-pf-nav-steps {
        border-radius: 0;
        padding-block: 1rem;
    }
    /* Hide steps counter on mobile when summary view is shown */
    .we-pf:has(.we-pf-variant-summary-card) .we-pf-nav-steps {
        display: none;
    }
  }
  .we-pf-nav-steps button {
    padding: 0;
  }
  .we-pf-nav-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pf-text-secondary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    transition: all 0.3s ease;
  }
  .we-pf-nav-step.active,
  .we-pf-nav-step.completed:hover {
    color: var(--pf-text-primary);
  }
  .we-pf-nav-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--pf-text-secondary);
    color: var(--pf-text-inverted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    padding-top: 1px;
    transition: all 0.3s ease;
  }
  .we-pf-nav-step.active .we-pf-nav-step-number,
  .we-pf-nav-step.completed:hover .we-pf-nav-step-number {
    background: var(--pf-text-primary);
  }
  .we-pf-nav-step.completed .we-pf-nav-step-number span {
    display: none;
  }
  .we-pf-nav-step:not(.completed) .we-pf-nav-step-number svg {
    display: none;
  }
  @media screen and (max-width: 768px) {
    .we-pf-nav-step:not(.active) .we-pf-nav-step-title {
        display: none;
    }
  }

  span.we-pf-nav-step-title {
    padding-top:5px;
  }

  .we-pf-page-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .we-pf-page-header-container {
    display: flex;
    flex-direction: column;
  }
  @media screen and (max-width: 768px) {
    .we-pf-page-header-container--skip {
        display: none;
    }
  }
  .we-pf-page-header-title {
    color: var(--pf-text-primary);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
  }
  .we-pf-page-header-subtitle {
    color: var(--pf-text-primary);
    font-size: 1rem;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
  }
  .we-pf-page-header-description {
    color: var(--pf-text-secondary);
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
  }

  .we-pf-length-detail-item-length {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .we-pf-length-selection-item label {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .we-pf-length-selection-item label .we-pf-length-selection-item-title {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 120%;
  }
  .we-pf-length-selection-item label .we-pf-length-selection-item-description {
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
  }

  .we-pf-tooltip {
    position: relative;
  }
  .we-pf-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .we-pf-tooltip-trigger.has-tooltip {
    cursor: pointer;
  }
  @media (max-width: 768px) {
    .we-pf-tooltip-trigger.has-tooltip {
      -webkit-tap-highlight-color: transparent;
    }
  }
  .we-pf-tooltip-icon {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
  }
  .we-pf-tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem;
    display: none;
    border-radius: 0.75rem;
    z-index: 2;
    margin-bottom: 0.5rem;
  }
  .we-pf-tooltip-content::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid rgba(0, 0, 0, 0.9);
  }
  .we-pf-tooltip:hover .we-pf-tooltip-content {
    display: block;
  }
  .we-pf-tooltip-content img {
    width: 100%;
    height: auto;
    min-width: 200px;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
  }
  .we-pf-tooltip-text * {
    margin: 0;
  }

  .we-pf-empty-state {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: var(--pf-bg-secondary);
  }
  .we-pf-empty-state-description:last-child {
    margin: 0;
  }

  .we-pf-card-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .we-pf-card-buttons > * {
    width: 50%;
  }
  /* ATC button in summary card - dark gray with cream text */
  .we-pf-card-buttons form .btn {
    background-color: var(--pf-dark-gray);
    color: var(--pf-accent-cream);
    border: 1px solid var(--pf-dark-gray);
    font-weight: 500;
  }
  .we-pf-card-buttons form .btn:hover {
    background-color: var(--pf-text-primary);
    border-color: var(--pf-text-primary);
  }
  @media screen and (max-width: 768px) {
    .we-pf-card-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .we-pf-card-buttons > * {
        width: 100%;
    }
  }

  @media screen and (min-width: 769px) {
    .we-pf-content:has(.we-pf-models) .we-pf-nav-buttons {
        display: none;
    }
  }

  .we-pf-button-label-container {
    display: flex;
    flex-direction: column;
  }

  /* Mobile light mode: cream background for nav and content */
  @media screen and (max-width: 768px) {
    html:not([data-display="dark"]) .we-pf-nav,
    html:not([data-display="dark"]) .we-pf-nav-steps,
    html:not([data-display="dark"]) .we-pf-content {
      background-color: var(--pf-accent-cream);
    }
  }

  /* ============================================
     CSS-9: DARK MODE STYLES
  ============================================ */

  /* Dark mode CSS variables - override light mode defaults */
  html[data-display="dark"] .we-pf {
    /* Background colors */
    --pf-bg-primary: rgb(var(--color-dark-light));
    --pf-bg-secondary: rgb(var(--color-dark));
    --pf-bg-card: rgb(var(--color-light) / 0.1);
    --pf-bg-input: rgb(var(--color-dark));

    /* Text colors */
    --pf-text-primary: rgb(var(--color-light));
    --pf-text-secondary: rgb(var(--color-light) / 0.7);
    --pf-text-muted: rgb(var(--color-light) / 0.5);
    --pf-text-inverted: rgb(var(--color-dark));

    /* Border colors - increased opacity for better visibility in dark mode */
    --pf-border-default: rgb(var(--color-light) / 0.4);
    --pf-border-active: rgb(var(--color-light));
    --pf-border-subtle: rgb(var(--color-light) / 0.25);

    /* Accent colors - keep dark gray consistent for elements like brand logos */
    --pf-accent-dark: rgb(var(--color-light));
    --pf-accent-cream: rgb(var(--color-dark));
    --pf-dark-gray: #2e2e2e;

    /* Shadow */
    --pf-shadow: rgba(0, 0, 0, 0.3);
    --pf-overlay: rgba(0, 0, 0, 0.6);
  }

  /* Section container backgrounds */
  html[data-display="dark"] .we-pf-content {
    background-color: var(--pf-bg-primary);
  }

  html[data-display="dark"] .we-pf-nav {
    background-color: var(--pf-bg-primary);
    border-radius: 12px;
  }

  /* Mobile dark mode: header matches product finder background */
  @media screen and (max-width: 768px) {
    html[data-display="dark"] {
      --background: rgb(var(--color-dark-light)) !important;
    }
    html[data-display="dark"] .header__wrapper {
      background-color: rgb(var(--color-dark-light));
    }
    html[data-display="dark"] .we-pf-nav {
      background-color: rgb(var(--color-dark-light));
    }
  }

  /* Text colors - from black to light */
  html[data-display="dark"] .we-pf-page-header-title,
  html[data-display="dark"] .we-pf-page-header-subtitle,
  html[data-display="dark"] .we-pf-section-title,
  html[data-display="dark"] .we-pf-section-title-text,
  html[data-display="dark"] .we-pf-section-selected-value,
  html[data-display="dark"] .we-pf-label-separator {
    color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-page-header-description {
    color: var(--pf-text-muted);
  }

  /* Step navigation */
  html[data-display="dark"] .we-pf-nav-step {
    color: var(--pf-text-muted);
  }

  html[data-display="dark"] .we-pf-nav-step.active {
    color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-nav-step-number {
    color: var(--pf-text-primary);
    background-color: var(--pf-bg-card);
  }

  html[data-display="dark"] .we-pf-nav-step.active .we-pf-nav-step-number {
    background-color: rgb(var(--color-light));
    color: rgb(var(--color-dark));
  }

  /* Buttons */
  html[data-display="dark"] .we-pf-nav-buttons .btn {
    color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-nav-buttons .btn.btn-secondary {
    background-color: var(--pf-bg-secondary);
  }

  /* Radio option cards - no border by default in dark mode, only on hover/selected */
  html[data-display="dark"] .we-pf-radio label {
    background: var(--pf-bg-secondary);
    color: var(--pf-text-primary);
    border-color: transparent;
  }

  /* Dark mode: hover only on non-touch devices */
  @media (hover: hover) {
    html[data-display="dark"] .we-pf-radio label:hover {
      border-color: var(--pf-border-active);
    }
  }

  html[data-display="dark"] .we-pf-radio:has(input:checked) label {
    border-color: var(--pf-border-active);
  }

  /* Radio option text colors */
  html[data-display="dark"] .we-pf-item-title,
  html[data-display="dark"] .we-pf-item-description,
  html[data-display="dark"] .we-pf-form-detail-item-info-title,
  html[data-display="dark"] .we-pf-color-detail-item-info-title {
    color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-form-detail-item-info-description,
  html[data-display="dark"] .we-pf-color-detail-item-info-description {
    color: var(--pf-text-muted);
  }
  /* Dark mode SVG stroke color in form description */
  html[data-display="dark"] .we-pf-form-detail-item-info-description svg path {
    stroke: rgb(var(--color-light));
  }

  /* CSS-10: Dark mode brand circle */
  html[data-display="dark"] .we-pf-brand-item-logo {
    background: var(--pf-dark-gray);
    border: none;
  }

  html[data-display="dark"] .we-pf-brand-item-logo img {
    filter: invert(1) brightness(1) grayscale(1);
  }

  html[data-display="dark"] .we-pf-brand-item-name {
    color: var(--pf-text-primary);
    font-weight: 300;
  }

  /* CSS-15: Dark mode brand logo in model grid */
  html[data-display="dark"] .we-pf-model-brand-logo {
    filter: invert(1);
  }

  /* Mode switch (Sneaker/Classic toggle) */
  html[data-display="dark"] .we-pf-mode-selection {
    background: var(--pf-bg-secondary);
    border-color: var(--pf-border-color);
  }

  html[data-display="dark"] .we-pf-mode-selection::before {
    background: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-mode-selection-item-title,
  html[data-display="dark"] .we-pf-mode-selection-item-description {
    color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-mode-selection-item:has(input:checked) .we-pf-mode-selection-item-title,
  html[data-display="dark"] .we-pf-mode-selection-item:has(input:checked) .we-pf-mode-selection-item-description {
    color: rgb(var(--color-dark));
  }

  /* Search input */
  html[data-display="dark"] .we-pf input[type="text"],
  html[data-display="dark"] .we-pf-custom-input input {
    background: var(--pf-bg-secondary);
    color: var(--pf-text-primary);
    border: 1px solid var(--pf-border-color);
  }

  html[data-display="dark"] .we-pf input[type="text"]::placeholder {
    color: var(--pf-text-muted);
  }

  html[data-display="dark"] .we-pf-search-icon svg path {
    stroke: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-search-clear {
    color: rgb(var(--color-light) / 0.5);
  }

  html[data-display="dark"] .we-pf-search-clear:hover {
    color: rgb(var(--color-light));
  }

  /* CSS-13: Dark mode loader */
  html[data-display="dark"] .we-pf-loading-spinner::before {
    border-color: var(--pf-border-default);
    border-top-color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-loading-text {
    color: var(--pf-text-secondary);
  }

  /* Empty state */
  html[data-display="dark"] .we-pf-empty-state {
    background-color: var(--pf-bg-secondary);
    color: var(--pf-text-primary);
  }

  html[data-display="dark"] .we-pf-empty-state-description {
    color: var(--pf-text-muted);
  }

  /* Navigation buttons (swiper) */
  html[data-display="dark"] .we-pf-swiper-header-buttons button {
    color: var(--pf-text-primary);
  }

  /* Tooltip */
  html[data-display="dark"] .we-pf-tooltip-content {
    background-color: rgb(var(--color-dark));
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-tooltip-content::after {
    border-top-color: rgb(var(--color-dark));
  }

  html[data-display="dark"] .we-pf-tooltip-icon {
    color: rgba(200, 185, 170, 0.7);
  }

  /* Color filter items */
  html[data-display="dark"] .we-pf-color-filter-item label {
    border-color: var(--pf-border-color);
  }

  html[data-display="dark"] .we-pf-color-filter-item:has(input:checked) label {
    border-color: var(--pf-border-active);
  }

  html[data-display="dark"] .we-pf-color-filter-item-name {
    color: var(--pf-text-primary);
  }

  /* Variant summary card - use direct values since popup is appended to body outside .we-pf */
  html[data-display="dark"] .we-pf-variant-summary-card {
    background-color: rgb(var(--color-dark));
    border-width: 1px;
    border-color: rgb(var(--color-light) / 0.5);
  }

  html[data-display="dark"] .we-pf-variant-summary-card-title,
  html[data-display="dark"] .we-pf-variant-summary-card-info-title,
  html[data-display="dark"] .we-pf-variant-summary-card-info-details-label,
  html[data-display="dark"] .we-pf-variant-summary-card-info-details-value {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-variant-summary-card-price {
    color: rgb(var(--color-light));
  }

  /* Model items - no border by default in dark mode, only on hover/selected */
  html[data-display="dark"] .we-pf-model-item label {
    border-color: transparent !important;
  }

  /* Dark mode: model hover only on non-touch devices */
  @media (hover: hover) {
    html[data-display="dark"] .we-pf-model-item label:hover {
      border-color: var(--pf-border-active) !important;
    }
  }

  html[data-display="dark"] .we-pf-model-item:has(input:checked) label {
    border-color: var(--pf-border-active) !important;
  }

  /* CSS-26: Dark mode model card text */
  html[data-display="dark"] .we-pf-model-brand-name,
  html[data-display="dark"] .we-pf-model-silhouette {
    color: rgb(var(--color-light));
  }

  /* Badge styling */
  html[data-display="dark"] .we-pf-info-badge {
    background: var(--pf-bg-primary);
    color: var(--pf-text-primary);
  }

  /* Recommended badge - swap colors for dark mode (hardcoded) */
  html[data-display="dark"] .we-pf-recommended-variant-badge .badge-bg {
    fill: #ece2d9;
  }
  html[data-display="dark"] .we-pf-recommended-variant-badge .badge-letter {
    fill: #2e2e2e;
  }

  /* Length selection items */
  html[data-display="dark"] .we-pf-length-selection-item label {
    background: var(--pf-bg-secondary);
    color: var(--pf-text-primary);
    border-color: var(--pf-border-color);
  }

  html[data-display="dark"] .we-pf-length-selection-item:has(input:checked) label {
    border-color: var(--pf-border-active);
  }

  /* Calculator styles for dark mode */
  html[data-display="dark"] .we-pf-length-calculator-item label {
    background: var(--pf-bg-secondary);
    color: var(--pf-text-primary);
    border-color: var(--pf-border-color);
  }

  html[data-display="dark"] .we-pf-length-calculator-item:has(input:checked) label {
    border-color: var(--pf-border-active);
  }

  /* Section parent container background fix */
  html[data-display="dark"] [class*="section-"][class*="-padding"]:has(.we-pf) {
    background-color: rgb(var(--color-dark)) !important;
  }

  @media screen and (max-width: 768px) {
    html[data-display="dark"] .we-pf-nav-steps {
      border-radius: 0;
    }
  }

  /* CSS-18b: Dark mode nav step numbers (ported from V1) */
  html[data-display="dark"] .we-pf-nav-step-number {
    color: var(--pf-text-primary);
    background-color: var(--pf-bg-card);
  }

  html[data-display="dark"] .we-pf-nav-step.active .we-pf-nav-step-number,
  html[data-display="dark"] .we-pf-nav-step.completed:hover .we-pf-nav-step-number {
    background-color: var(--pf-text-primary);
    color: var(--pf-text-inverted);
  }

  /* CSS-19: Dark mode nav buttons (mobile fixed bar) */
  @media screen and (max-width: 768px) {
    html[data-display="dark"] .we-pf-nav-buttons {
      background-color: var(--pf-bg-primary);
      border-top-color: var(--pf-border-default);
      box-shadow: 0 -2px 10px var(--pf-shadow);
    }
  }

  /* Dark mode nav button prev (secondary style) - grey background */
  html[data-display="dark"] .we-pf-nav-buttons .we-pf-nav-button--prev,
  html[data-display="dark"] .we-pf-nav-button--prev {
    background-color: rgb(var(--color-dark));
    color: rgb(var(--color-light));
    border-color: rgb(var(--color-light));
  }
  html[data-display="dark"] .we-pf-nav-button--prev:hover {
    background-color: rgb(var(--color-dark-light));
    border-color: rgb(var(--color-light));
  }
  /* Dark mode nav button next (primary style) - light background */
  html[data-display="dark"] .we-pf-nav-buttons .we-pf-nav-button--next,
  html[data-display="dark"] .we-pf-nav-button--next {
    background-color: rgb(var(--color-light));
    color: rgb(var(--color-dark));
    border-color: rgb(var(--color-light));
  }
  html[data-display="dark"] .we-pf-nav-button--next:hover {
    background-color: rgb(var(--color-light) / 0.85);
    border-color: rgb(var(--color-light));
  }
  html[data-display="dark"] .we-pf-nav-button--next:disabled {
    opacity: 0.35;
    background-color: rgb(var(--color-light) / 0.5);
    border-color: rgb(var(--color-light) / 0.5);
  }
  /* CSS-24: Dark mode configure button - secondary style */
  html[data-display="dark"] .we-pf-variant-popup-configure {
    background-color: rgb(var(--color-dark-light));
    color: rgb(var(--color-light));
    border-color: transparent;
  }
  html[data-display="dark"] .we-pf-variant-popup-configure:hover {
    background-color: rgb(var(--color-dark));
    border-color: transparent;
  }
  /* Dark mode ATC button in summary card - primary style (light bg) */
  html[data-display="dark"] .we-pf-card-buttons form .btn {
    background-color: rgb(var(--color-light));
    color: rgb(var(--color-dark));
    border-color: rgb(var(--color-light));
  }
  html[data-display="dark"] .we-pf-card-buttons form .btn:hover {
    background-color: rgb(var(--color-light) / 0.85);
    border-color: rgb(var(--color-light));
  }

  /* Dark mode button label container (Model not known skip option) */
  html[data-display="dark"] .we-pf-button-label-container .we-pf-page-header-subtitle,
  html[data-display="dark"] .we-pf-button-label-container .we-pf-page-header-description {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-button-label-container .we-pf-page-header-description {
    color: rgb(var(--color-light) / 0.7);
  }

  /* CSS-20: Dark mode swiper header buttons - ensure proper color */
  html[data-display="dark"] .we-pf-swiper-header-buttons button {
    color: rgb(var(--color-light)) !important;
  }

  html[data-display="dark"] .we-pf-swiper-header-buttons button svg {
    color: rgb(var(--color-light));
  }

  /* CSS-21: Dark mode pencil/edit icon in variant summary */
  html[data-display="dark"] .we-pf-variant-summary-card-info-details-item button {
    color: rgb(var(--color-light));
  }

  /* CSS-22: Dark mode variant popup with CSS variables */
  html[data-display="dark"] .we-pf-variant-popup,
  html[data-display="dark"] .we-pf-variant-summary-card.fade-in {
    --pf-bg-primary: rgb(var(--color-dark-light));
    --pf-bg-secondary: rgb(var(--color-dark));
    --pf-bg-card: rgb(var(--color-light) / 0.1);
    --pf-bg-input: rgb(var(--color-dark));
    --pf-text-primary: rgb(var(--color-light));
    --pf-text-secondary: rgb(var(--color-light) / 0.7);
    --pf-text-muted: rgb(var(--color-light) / 0.5);
    --pf-text-inverted: rgb(var(--color-dark));
    --pf-border-default: rgb(var(--color-light) / 0.4);
    --pf-border-active: rgb(var(--color-light));
    --pf-border-subtle: rgb(var(--color-light) / 0.25);
    --pf-accent-dark: rgb(var(--color-light));
    --pf-accent-cream: rgb(var(--color-dark));
    --pf-dark-gray: #2e2e2e;
    --pf-shadow: rgba(0, 0, 0, 0.3);
    --pf-overlay: rgba(0, 0, 0, 0.6);
    background-color: rgb(var(--color-dark));
  }
  html[data-display="dark"] .we-pf-variant-summary-card.fade-in .we-pf-config-section {
    background: rgb(var(--color-light) / 0.1);
  }

  /* CSS-23: Dark mode skip option */
  html[data-display="dark"] .we-pf-skip-option {
    background-color: rgb(var(--color-dark));
  }

  html[data-display="dark"] .we-pf-skip-text {
    color: rgb(var(--color-light));
  }

  html[data-display="dark"] .we-pf-skip-button {
    background-color: rgb(var(--color-light));
    color: rgb(var(--color-dark));
  }

  /* Dark mode skip button in shoe view (model selection) */
  html[data-display="dark"] .we-pf-page-header-container--skip .btn {
    background: #ece2d9;
    color: #2e2e2e;
  }