/* ===== SHOP PAGE SPECIFIC STYLES ===== */

/* ===== PAGE BACKGROUND ===== */
body {
    background-color: #f0f0f0;
}

/* ===== SHOP MAIN LAYOUT ===== */
.shop-main {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-2xl) 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: visible;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.filter-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.filter-reset-btn {
    background: none;
    border: 1px solid #004D45;
    color: #004D45;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: #004D45;
    color: white;
}

.filter-group {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid #e5e5e5;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: var(--spacing-sm);
}
.filter-group-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.filter-active-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(0, 77, 69, 0.12);
    color: #004D45;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Filter toggle button */
.filter-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: none; /* Hidden by default, shown on mobile or for specific filters */
}

.filter-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.filter-toggle-icon {
    transition: transform 0.2s ease;
    stroke: var(--text-gray);
}

/* Main filter toggle (for mobile) */
.main-filter-toggle {
    display: none;
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

/* Only show pointer cursor on clickable elements (text and toggle button) */
.filter-title > span {
    cursor: pointer;
}

@media (max-width: 768px) {
    .filter-title > span {
        cursor: pointer;
    }
}

/* Filter content wrapper */
.filter-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Collapsed state */
.filter-group.collapsed .filter-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
}

/* Expanded state */
.filter-group:not(.collapsed) .filter-content {
    max-height: 3000px; /* Increased to accommodate all filter items */
    opacity: 1;
    overflow-y: auto; /* Allow scrolling if content is very long */
}

/* Rotate arrow when expanded */
.filter-group:not(.collapsed) .filter-toggle-icon {
    transform: rotate(180deg);
}

/* Show toggles for specific filters on all devices */
.filter-group[data-expandable="always"] .filter-toggle {
    display: block;
}

/* Main filter content wrapper */
.main-filter-content {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

/* Collapsed state for main filter */
.filter-header.collapsed + .main-filter-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Expanded state for main filter */
.filter-header:not(.collapsed) + .main-filter-content {
    max-height: none;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 0;
}

/* Rotate arrow when main filter expanded */
.filter-header:not(.collapsed) .filter-toggle-icon {
    transform: rotate(180deg);
}

/* Mobile responsive rules */
@media (max-width: 768px) {
    /* Show main filter toggle on mobile */
    .main-filter-toggle {
        display: block;
    }

    /* Hide individual filter toggles on mobile (only main filter toggle should be visible) */
    .filter-group[data-expandable="mobile"] .filter-toggle {
        display: none;
    }

    /* Keep always-expandable toggles visible on mobile */
    .filter-group[data-expandable="always"] .filter-toggle {
        display: block;
    }

    /* Default collapsed state for main filter on mobile */
    .filter-header[data-expandable="mobile-main"].collapsed + .main-filter-content {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    /* Expanded state for main filter on mobile */
    .filter-header[data-expandable="mobile-main"]:not(.collapsed) + .main-filter-content {
        max-height: 5000px; /* Increased from none to allow scrolling */
        opacity: 1;
        overflow: visible;
    }

    /* Individual filter groups should not be collapsible on mobile (except always ones) */
    .filter-group[data-expandable="mobile"] .filter-content {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: var(--spacing-sm);
    }

    /* Default collapsed state for always-expandable filters on mobile */
    .filter-group[data-expandable="always"].collapsed .filter-content {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding-top: 0;
    }

    /* Expanded state for always-expandable filters on mobile */
    .filter-group[data-expandable="always"]:not(.collapsed) .filter-content {
        max-height: 3000px; /* Large enough to show all filter items */
        opacity: 1;
        margin-top: var(--spacing-sm);
        overflow-y: auto; /* Allow scrolling if needed */
    }

    /* Adjust spacing for mobile */
    .filter-group-title {
        margin-bottom: var(--spacing-sm);
    }
}

/* Desktop: Hide main filter toggle, show subcategory toggles */
@media (min-width: 769px) {
    .main-filter-toggle {
        display: none;
    }

    .main-filter-content {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    /* Show toggles only for always-expandable filters on desktop */
    .filter-group[data-expandable="always"] .filter-toggle {
        display: block;
    }

    /* Hide mobile-only expandable toggles on desktop */
    .filter-group[data-expandable="mobile"] .filter-toggle {
        display: none;
    }

    /* Keep mobile filters always expanded on desktop */
    .filter-group[data-expandable="mobile"] .filter-content {
        max-height: none !important;
        opacity: 1 !important;
    }

    /* Default collapsed state for always-expandable filters on desktop */
    .filter-group[data-expandable="always"] .filter-content {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding-top: 0;
    }

    /* Expanded state for always-expandable filters on desktop when NOT collapsed */
    .filter-group[data-expandable="always"]:not(.collapsed) .filter-content {
        max-height: none;
        opacity: 1;
        margin-top: var(--spacing-sm);
        padding-top: 0;
    }
}

/* ===== CATEGORY BUTTONS ===== */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.category-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
    font-weight: 400;
}

.category-btn:hover {
    background: rgba(0, 77, 69, 0.1);
}

.category-btn.active {
    background: rgba(0, 77, 69, 0.15);
    color: #004D45;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
}

/* ===== DUAL RANGE SLIDER (Price & Size) ===== */
.price-range,
.size-range {
    padding: var(--spacing-sm) 0;
}

.price-inputs,
.size-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.price-input-group,
.size-input-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-input,
.size-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    text-align: center;
}

/* Remove spinner arrows */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button,
.size-input::-webkit-outer-spin-button,
.size-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input[type=number],
.size-input[type=number] {
    -moz-appearance: textfield;
}

.price-unit,
.size-unit {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    font-weight: 500;
}

.price-separator,
.size-separator {
    color: var(--text-gray);
}

.range-slider {
    position: relative;
    height: 20px;
    padding: 8px 0;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.range-progress {
    position: absolute;
    height: 4px;
    background: #004D45;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.range-input {
    position: absolute;
    width: 100%;
    top: 0;
    height: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #004D45;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
    cursor: pointer;
}

.range-input::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #004D45;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: auto;
    cursor: pointer;
}

/* ===== PROPERTIES FILTER ===== */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: 4px 0;
    font-size: var(--font-size-sm);
}

.checkbox-label:hover {
    color: var(--primary-green);
}

/* Nicht verfügbare Filter-Option (würde 0 Treffer liefern) */
.filter-option--unavailable {
    opacity: 0.35;
    pointer-events: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    accent-color: var(--accent-green);
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== WOUND COMPATIBILITY FILTER ===== */
.wound-compatibility-filters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.wound-category {
    margin-bottom: var(--spacing-sm);
}

.wound-category-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 4px;
}

.wound-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-sm);
}

.wound-checkbox-label {
    font-size: var(--font-size-sm);
}

.wound-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    accent-color: var(--accent-green);
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    background: transparent;
    min-width: 0;
    overflow: hidden;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        gap: 12px;
        padding: var(--spacing-md);
    }
    .products-header-left {
        width: 100%;
        min-width: 0;
    }
    .products-header h1 {
        font-size: 18px;
        word-break: break-word;
    }
    .products-header .sort-options {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .subcategory-chips {
        max-width: 100%;
    }
}

.products-header h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
}

.products-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.products-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

/* S4: Product count badge — separate from h1 to preserve context labels */
.product-count-badge {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    white-space: nowrap;
}


.sort-options {
    display: flex;
    flex-direction: column; /* Stack label above select */
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.sort-options label {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
    font-weight: 500;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background-color: var(--white);
    font-size: var(--font-size-sm);
    min-width: 160px;
    cursor: pointer;
}

/* ===== PRODUCTS GRID ===== */
/* Grid layout defined in productCard.css — only margin here */
.products-grid {
    margin-bottom: var(--spacing-2xl);
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-2xl);
    font-size: var(--font-size-lg);
    color: var(--text-gray);
    margin: 0;
}

/* S5: Shop empty state */
.shop-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
}

.shop-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.shop-empty-sub {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

.shop-empty-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Entfernt: .product-card, .product-badge, .product-image, .product-content, .btn-add-cart usw.
   Diese kommen jetzt NUR aus productCard.css */

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #16a34a;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 14px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
}

/* Last page message */
.last-page-message {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.last-page-message p {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-page-search {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.last-page-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color 0.2s;
}

.last-page-search__input:focus {
    border-color: #004D45;
}

.last-page-search__btn {
    padding: 10px 20px;
    background: #004D45;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: background 0.2s;
}

.last-page-search__btn:hover {
    background: #003a33;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-dark);
}

.pagination-btn:hover:not(:disabled) {
    border-color: #004D45;
    background: rgba(0, 77, 69, 0.05);
    color: #004D45;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f8f8f8;
}

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

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
}

.pagination-number:hover {
    border-color: #004D45;
    background: rgba(0, 77, 69, 0.05);
    color: #004D45;
}

.pagination-number.active {
    background: #004D45;
    border-color: #004D45;
    color: white;
}

.pagination-number.active:hover {
    background: #003a33;
    border-color: #003a33;
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        margin-bottom: var(--spacing-xl);
    }
    
}

/* Grid layout managed by productCard.css — shop-grid rules removed */

@media (max-width: 768px) {
  /* Last page message mobile styles */
  .last-page-message {
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
  }

  .last-page-message p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
  }

  .last-page-search {
    max-width: 100%;
  }

  .last-page-search__input {
    font-size: var(--font-size-sm);
  }

  .last-page-search__btn {
    padding: 10px 16px;
    font-size: var(--font-size-sm);
  }

  /* Pagination mobile styles - touch targets min 44px */
  .pagination {
    gap: 6px;
    padding: var(--spacing-md) 0;
  }

  .pagination-btn,
  .pagination-number {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .pagination-dots {
    width: 36px;
    font-size: 14px;
  }

  /* Category filter buttons: touch targets */
  .category-btn {
    padding: var(--spacing-md);
    min-height: 44px;
    font-size: 14px;
  }

  /* Checkbox labels: touch targets */
  .checkbox-label {
    padding: 8px 0;
    min-height: 44px;
  }

  .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }

  /* Sort select: touch target */
  .sort-select {
    padding: 10px 16px;
    font-size: 16px; /* Prevent iOS zoom */
    min-height: 44px;
  }

  /* Mobile filter button: touch target */
  .mobile-filter-btn {
    min-height: 48px;
  }
}

/* ===== FILTER COUNT BADGE ===== */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #004D45;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
}

/* Desktop filter count text next to reset button */
/* ===== MOBILE FILTER CONTROLS ===== */
.mobile-filter-controls {
    display: none;
}

.mobile-reset-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-filter-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: var(--spacing-md);
    }

    .mobile-reset-btn {
        display: inline-block;
        padding: 0;
        background: none;
        border: none;
        font-size: 13px;
        font-weight: 500;
        color: #004D45;
        cursor: pointer;
        text-decoration: underline;
        white-space: nowrap;
    }

    .mobile-reset-btn:hover {
        color: #003832;
    }
}

/* ===== MOBILE FILTER MODAL ===== */

/* Mobile Filter Button - Hidden on desktop, shown on mobile */
.mobile-filter-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: white;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: var(--spacing-md);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .mobile-filter-btn:hover {
        border-color: #004D45;
        background: rgba(0, 77, 69, 0.05);
    }

    .mobile-filter-btn svg {
        stroke: #004D45;
    }

    /* Hide desktop filter sidebar on mobile */
    .filter-sidebar {
        display: none;
    }
}

/* Filter Modal Overlay */
.filter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filter Modal Panel */
.filter-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.filter-modal.active {
    transform: translateY(0);
}

/* Hide modal on desktop */
@media (min-width: 769px) {
    .filter-modal,
    .filter-modal-overlay {
        display: none;
    }
}

/* Filter Modal Header */
.filter-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
    gap: 12px;
}

.filter-modal__reset-btn,
.filter-modal__apply-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 48px;
}

.filter-modal__reset-btn {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e5e5;
}

.filter-modal__reset-btn:hover {
    background: #f9fafb;
    border-color: #d1d1d1;
}

.filter-modal__apply-btn {
    background: #004D45;
    color: white;
}

.filter-modal__apply-btn:hover {
    background: #003830;
}

.filter-modal__close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: #f9fafb;
    color: #6b7280;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.filter-modal__close-btn:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

/* Filter Modal Content */
.filter-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Scrollbar Styling for Modal */
.filter-modal__content::-webkit-scrollbar {
    width: 8px;
}

.filter-modal__content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.filter-modal__content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-modal__content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== SUBCATEGORY CHIPS ===== */
.subcategory-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 4px;
}

.subcategory-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background: #f0f0f0;
    color: #333;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.subcategory-chip:hover {
    border-color: #004D45;
    color: #004D45;
}

.subcategory-chip.active {
    background: #004D45;
    color: white;
    border-color: #004D45;
}

@media (max-width: 768px) {
    .subcategory-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .subcategory-chips::-webkit-scrollbar {
        display: none;
    }
}

/* ===== CATEGORY SEO TEXT (below products) ===== */
.category-seo-text {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.7;
    color: #4B5563;
}

/* Mobile duplicate hidden on desktop */
.category-seo-text--mobile {
    display: none !important;
}

@media (max-width: 768px) {
    /* Desktop SEO text hidden on mobile — mobile version shown instead */
    .filter-sidebar .category-seo-text {
        display: none !important;
    }
    .category-seo-text--mobile {
        display: block !important;
        margin-top: 16px;
        padding: 12px;
        font-size: 12px;
    }
}
