/* ===== RESET / BASE ===== */
* {
    box-sizing: border-box;
}

/* ===== FILTER CARD ===== */
.filter-card {
    width: 100%;
    flex-shrink: 0;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.range-inputs input {
    /*width: 70px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;*/
}

.range-go {
    /*padding: 4px 8px;
    font-size: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;*/
}

.range-go:hover {
    /*background: #1d4ed8;*/
}

.filter-header {
    /*font-weight: 600;
    font-size: 18px;
    margin: 16px 0;*/
}

/* filter grid layout */
.filter-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* each filter block */
.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    /*font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;*/
}

/* checkbox list */
.filter-options {
    /*display: flex;
    flex-direction: column;
    gap: 6px;*/
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.filter-checkbox {
    cursor: pointer;
}

/* buttons */
.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#apply-filters {
    /*flex: 1;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;*/
}

#reset-filters {
    /*flex: 1;
    background: #f3f4f6;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;*/
}

/* ===== RANGE SLIDER (FIXED DUAL HANDLE 🔥) ===== */
.range-wrapper {
    /*width: 100%;
    margin-top: 6px;
*/}

.range-slider {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: #ddd;
}

/* BOTH INPUTS OVERLAY */
.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
}

/* REMOVE DEFAULT TRACK */
.range-slider input::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
}

.range-slider input::-moz-range-track {
    background: transparent;
    height: 6px;
}

/* THUMBS */
.range-slider input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    margin-top: -5px;
}

.range-slider input::-moz-range-thumb {
    pointer-events: auto;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
}

/* VALUE TEXT */
.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

/* ===== SERIES GRID ===== */
#series-grid-container {
    flex: 1;
}

.serial-data {
    margin-bottom: 20px;
}

/* card */
.serial-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    transition: 0.25s;
}

.serial-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}





/* ===== PRODUCT LISTING (DETAIL VIEW) ===== */
#serial-result {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px;
}







.video-item iframe,
.video-item video {
    border-radius: 8px;
}



.category-description {
    margin-bottom: 15px;
}

.category-tools-bar {
    /*display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 20px 0;*/
}

/* left text */
.tool-hint {
    font-size: 13px;
    color: #666;
}

.tool-hint {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-hint-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  background: #fff;
}

.tool-hint-text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.tool-hint-text strong {
  font-weight: 600;
  color: #222;
}





.empty-serial-filter-data {
  text-align: center;
  padding: 20px;
}

@media (max-width: 767px) {
    .filter-header {
        border-bottom: 1px solid #e8e8e8; 
        padding-bottom: 0.5rem; 
        margin: 1rem 0; 
        display: flex; 
        align-items: center; 
        justify-content: space-between;
        cursor: pointer; 
    }
    
    .filter-header:after {
        content: "+";
        font-size: 28px;
        font-weight: 300;
        color: #111;
        line-height: 0.8;
        width: auto;
        height: auto;
        border: none;
    } 
    
    .filter-header.active:after {
        content: "-";
    }

    .filter-content {
        display: none !important;
    }

    .filter-content.show {
        display: flex !important;
    }
}
