.hardtek-catalog-main {
    --hardtek-blue: #155eef;
    --hardtek-blue-dark: #0f4dcc;
    --hardtek-ink: #172033;
    --hardtek-muted: #667085;
    --hardtek-line: #dbe4f0;
    --hardtek-surface: #f7f9fc;
}

.hardtek-catalog-layout {
    align-items: flex-start !important;
    gap: clamp(1.25rem, 2.2vw, 2rem) !important;
    margin-top: 1.5rem !important;
}

.hardtek-filter-column {
    flex: 0 0 18rem !important;
    min-width: 0;
}

.hardtek-results-column {
    flex: 1 1 auto !important;
    min-width: 0;
}

.hardtek-filter-shell {
    background: #fff;
    border: 1px solid var(--hardtek-line);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(37, 54, 88, 0.06);
    color: var(--hardtek-ink);
    max-height: none;
    overflow: visible;
    padding: 1.1rem;
}

.hardtek-filter-heading-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.hardtek-filter-title {
    color: var(--hardtek-ink);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

.hardtek-filter-mobile-toggle,
.hardtek-filter-mobile-close {
    display: none;
}

.hardtek-filter-chips {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.hardtek-filter-chip {
    align-items: center;
    background: #edf4ff;
    border: 1px solid #bed3ff;
    border-radius: 0.55rem;
    color: var(--hardtek-blue-dark);
    display: flex;
    flex: 0 1 auto;
    font-size: 0.84rem;
    gap: 0.55rem;
    justify-content: space-between;
    line-height: 1.35;
    padding: 0.48rem 0.65rem;
    text-decoration: none;
    white-space: nowrap;
}

.hardtek-filter-chip:hover {
    background: #dfeaff;
}

.hardtek-filter-chip__remove {
    font-size: 1.2rem;
    line-height: 1;
}

.hardtek-filter-clear {
    color: var(--hardtek-blue-dark);
    flex-basis: 100%;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.hardtek-filter-group {
    border: 0;
    border-top: 1px solid var(--hardtek-line);
    margin: 1rem 0 0;
    min-width: 0;
    padding: 1rem 0 0;
}

.hardtek-filter-group__title {
    color: var(--hardtek-ink);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.hardtek-checkbox-list {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.7rem;
}

.hardtek-custom-filters .hardtek-checkbox-option {
    align-items: center !important;
    border-radius: 0.55rem;
    cursor: pointer;
    direction: ltr;
    display: grid !important;
    font-size: 0.88rem;
    gap: 0.6rem !important;
    grid-template-columns: 1.125rem minmax(0, 1fr) auto !important;
    line-height: 1.35;
    margin: 0 !important;
    min-height: 2rem;
    padding: 0.34rem 0.35rem !important;
    text-align: left;
    transition: background-color 150ms ease, color 150ms ease;
    width: 100%;
}

.hardtek-checkbox-option:hover:not(.is-unavailable) {
    background: var(--hardtek-surface);
}

.hardtek-checkbox-option.is-unavailable {
    color: #98a2b3;
    cursor: default;
}

.hardtek-custom-filters .hardtek-checkbox-option input[type="checkbox"] {
    appearance: none !important;
    background: #fff;
    border: 1.5px solid #b9c3d2 !important;
    border-radius: 0.22rem;
    box-shadow: none !important;
    box-sizing: border-box;
    display: block !important;
    grid-column: 1;
    height: 1.125rem !important;
    inset: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    position: relative !important;
    width: 1.125rem !important;
}

.hardtek-custom-filters .hardtek-checkbox-option input[type="checkbox"]:checked {
    background: var(--hardtek-blue);
    border-color: var(--hardtek-blue) !important;
}

.hardtek-custom-filters .hardtek-checkbox-option input[type="checkbox"]:checked::after {
    border: solid #fff;
    border-width: 0 0.12rem 0.12rem 0;
    content: "";
    height: 0.48rem;
    left: 0.34rem;
    position: absolute;
    top: 0.15rem;
    transform: rotate(45deg);
    width: 0.25rem;
}

.hardtek-custom-filters .hardtek-checkbox-option input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.2);
    outline: 2px solid var(--hardtek-blue);
    outline-offset: 2px;
}

.hardtek-checkbox-option__label {
    grid-column: 2;
    min-width: 0;
}

.hardtek-checkbox-option__count {
    color: var(--hardtek-muted);
    font-size: 0.78rem;
    grid-column: 3;
}

.hardtek-checkbox-option.is-unavailable .hardtek-checkbox-option__count {
    color: #98a2b3;
}

.hardtek-range-control {
    height: 1.1rem;
    margin-top: 0.2rem;
    position: relative;
}

.hardtek-range-track {
    background: linear-gradient(
        to right,
        #c4ccd8 0,
        #c4ccd8 var(--range-low),
        var(--hardtek-blue) var(--range-low),
        var(--hardtek-blue) var(--range-high),
        #c4ccd8 var(--range-high),
        #c4ccd8 100%
    );
    border-radius: 999px;
    height: 0.24rem;
    left: 0;
    position: absolute;
    right: 0;
    top: 0.43rem;
}

.hardtek-range-control input[type="range"] {
    appearance: none;
    background: transparent;
    height: 1.1rem;
    left: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.hardtek-range-control input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    border: 0;
    height: 0.24rem;
}

.hardtek-range-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    background: #fff;
    border: 2px solid var(--hardtek-blue);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(23, 32, 51, 0.18);
    cursor: grab;
    height: 1rem;
    margin-top: -0.38rem;
    pointer-events: auto;
    width: 1rem;
}

.hardtek-range-control input[type="range"]::-moz-range-track {
    background: transparent;
    border: 0;
    height: 0.24rem;
}

.hardtek-range-control input[type="range"]::-moz-range-thumb {
    background: #fff;
    border: 2px solid var(--hardtek-blue);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(23, 32, 51, 0.18);
    cursor: grab;
    height: 0.82rem;
    pointer-events: auto;
    width: 0.82rem;
}

.hardtek-range-control input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.2);
    outline: 2px solid var(--hardtek-blue);
}

.hardtek-range-control input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.2);
    outline: 2px solid var(--hardtek-blue);
}

.hardtek-range-fields {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7rem;
}

.hardtek-range-field {
    align-items: center;
    background: #fff;
    border: 1px solid #b9c3d2;
    border-radius: 0.55rem;
    box-sizing: border-box;
    display: flex;
    height: 2.65rem;
    max-width: calc(50% - 0.45rem);
    overflow: hidden;
    padding: 0 0.62rem;
    width: 6.5rem;
}

.hardtek-range-field:focus-within {
    border-color: var(--hardtek-blue);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
}

.hardtek-range-field input[type="number"] {
    appearance: textfield;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--hardtek-ink);
    flex: 1 1 auto;
    font: inherit;
    font-size: 0.92rem;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.hardtek-range-field input[type="number"]::-webkit-inner-spin-button,
.hardtek-range-field input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.hardtek-range-field__unit {
    color: var(--hardtek-muted);
    flex: 0 0 auto;
    font-size: 0.78rem;
    margin-left: 0.3rem;
    pointer-events: none;
    user-select: none;
}

.hardtek-filter-actions {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #c9d9f3;
    border-radius: 0.8rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.16);
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.65rem;
    position: sticky;
    z-index: 8;
}

.hardtek-filter-actions[hidden] {
    display: none;
}

.hardtek-filter-apply {
    align-items: center;
    background: var(--hardtek-blue);
    border: 0;
    border-radius: 0.65rem;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6rem 0.9rem;
}

.hardtek-filter-apply:hover {
    background: var(--hardtek-blue-dark);
}

.hardtek-filter-apply:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.25);
    outline-offset: 2px;
}

.hardtek-filter-result-count {
    color: var(--hardtek-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.hardtek-filter-result-count.is-loading {
    align-items: center;
    display: inline-flex;
    min-height: 1.25rem;
    min-width: 1.25rem;
}

.hardtek-filter-result-count.is-loading::before {
    animation: hardtek-filter-loader 700ms linear infinite;
    border: 2px solid #c8d7f4;
    border-radius: 50%;
    border-top-color: var(--hardtek-blue);
    box-sizing: border-box;
    content: "";
    height: 1rem;
    width: 1rem;
}

@keyframes hardtek-filter-loader {
    to {
        transform: rotate(360deg);
    }
}

.hardtek-filter-visually-hidden {
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

.hardtek-catalog-toolbar {
    border-bottom: 1px solid var(--hardtek-line);
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
}

.hardtek-catalog-toolbar .wc-block-product-results-count {
    color: var(--hardtek-muted);
    font-size: 0.92rem;
}

.hardtek-catalog-toolbar select {
    border: 1px solid var(--hardtek-line);
    border-radius: 0.65rem;
    min-height: 2.65rem;
    padding-inline: 0.75rem 2rem;
}

.hardtek-product-collection .wc-block-product {
    border: 1px solid var(--hardtek-line);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(37, 54, 88, 0.05);
    box-sizing: border-box;
    overflow: hidden;
    padding: 0.9rem;
}

.hardtek-product-collection .wp-block-post-title {
    min-height: 2.7em;
}

.hardtek-product-collection .wp-block-button__link {
    align-items: center;
    background: var(--hardtek-blue);
    border-radius: 0.65rem;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    line-height: 1.2;
    min-height: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

.hardtek-product-collection .wp-block-button__link:hover {
    background: var(--hardtek-blue-dark);
}

@media (max-width: 980px) {
    .hardtek-catalog-layout {
        display: block !important;
    }

    .hardtek-filter-column {
        margin-bottom: 1rem;
        width: 100%;
    }

    .hardtek-filter-mobile-toggle {
        align-items: center;
        background: #fff;
        border: 1px solid var(--hardtek-line);
        border-radius: 0.75rem;
        color: var(--hardtek-ink);
        cursor: pointer;
        display: flex;
        font: inherit;
        font-weight: 700;
        justify-content: space-between;
        min-height: 3rem;
        padding: 0.65rem 0.9rem;
        width: 100%;
    }

    .hardtek-filter-mobile-toggle__icon {
        border-bottom: 2px solid currentColor;
        border-right: 2px solid currentColor;
        height: 0.45rem;
        transform: rotate(45deg) translateY(-0.15rem);
        transition: transform 150ms ease;
        width: 0.45rem;
    }

    .hardtek-custom-filters.is-open .hardtek-filter-mobile-toggle__icon {
        transform: rotate(225deg) translate(-0.1rem, -0.1rem);
    }

    .hardtek-filter-shell {
        display: none;
        margin-top: 0.65rem;
    }

    .hardtek-custom-filters.is-open .hardtek-filter-shell {
        display: block;
    }

    .hardtek-filter-mobile-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--hardtek-ink);
        cursor: pointer;
        display: inline-flex;
        font-size: 1.5rem;
        height: 2rem;
        justify-content: center;
        padding: 0;
        width: 2rem;
    }
}

@media (max-width: 600px) {
    .hardtek-catalog-main {
        padding-inline: 1rem;
    }

    .hardtek-catalog-toolbar {
        align-items: stretch !important;
        display: grid !important;
        gap: 0.75rem !important;
    }

    .hardtek-catalog-toolbar select {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hardtek-checkbox-option,
    .hardtek-filter-mobile-toggle__icon {
        transition: none;
    }

    .hardtek-filter-result-count.is-loading::before {
        animation: none;
        opacity: 0.72;
    }
}
