html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.kram-quantity-cart-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}

.kram-quantity-cart-sm {
    width: 2rem;
    height: 2rem;
}






.kram-filter-section {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.kram-filter-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: bold;
    padding: 5px 0;
    cursor: pointer;
}

.kram-filter-content {
    display: none;
    padding: 5px 0 10px 0;
}

.kram-filter-section.active .kram-filter-content {
    display: block;
}

.kram-filter-content label {
    display: block;
    font-size: 14px;
    margin: 4px 0;
    cursor: pointer;
}

.kram-price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.kram-price-input {
    width: 50%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.kram-price-input:focus {
    outline: 2px solid rgba(55,103,253,0.15);
}

.kram-slider-wrap {
    position: relative;
    height: 44px;
    --min-percent: 0%;
    --max-percent: 100%;
}

/* base track (always visible) */
.kram-slider-wrap::after {
    content: "";
    position: absolute;
    height: 8px;
    top: 18px;
    left: 0;
    right: 0;
    background: #ddd; /* light gray background track */
    border-radius: 6px;
    z-index: 0;
}

/* fill between thumbs */
.kram-slider-wrap::before {
    content: "";
    position: absolute;
    height: 8px;
    top: 18px; /* positions the fill line */
    left: var(--min-percent);
    width: calc(var(--max-percent) - var(--min-percent));
    background: linear-gradient(90deg, #376ffd 0%, #376ffd 100%);
    border-radius: 6px;
    z-index: 1;
}

/* invisible track for ranges; only thumbs are visible */
.kram-price-range {
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 24px;
    background: transparent;
    pointer-events: none; /* allow only the thumb to be interactive */
    z-index: 1;
}

/* WebKit thumb */
.kram-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #376ffd;
    cursor: pointer;
    pointer-events: auto; /* make thumb clickable */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.kram-price-range::-webkit-slider-runnable-track {
    height: 8px;
}

/* Firefox thumb */
.kram-price-range::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #376ffd;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.kram-price-range::-moz-range-track {
    height: 8px;
    background: transparent;
}

/* active thumb in front while dragging */
.kram-price-range.active-thumb {
    z-index: 3;
}

/* small responsive tweak */
@media (max-width:480px) {
    .kram-price-range-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .kram-price-input {
        width: 100%;
    }
}

.kram-sidebar {
    background: #fff;
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
}

/* On desktop: static, visible */
@media (min-width: 992px) {
    .kram-sidebar {
        top: 0;
        transform: none !important;
    }
}

/* On mobile/tablet: hidden off-canvas by default */
@media (max-width: 991.98px) {
    .kram-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 80%;
        max-width: 320px;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        overflow: auto;
    }



    body.kram-sidebar-open .kram-sidebar {
        transform: translateX(0);
    }

    /* Optional overlay when sidebar open */
    body.kram-sidebar-open::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }
}