/* Price filter container */
.price-filter {
    background: #f8f9fa;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

/* Label */
.price-filter .form-label {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 4px;
}

/* Range slider base */
.price-filter input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(
            to right,
            #0d6efd 0%,
            #0d6efd 50%,
            #dee2e6 50%,
            #dee2e6 100%
    );
    border-radius: 5px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Slider thumb (Chrome, Edge, Safari) */
.price-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.price-filter input[type="range"]::-webkit-slider-thumb:hover,
.price-filter input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

/* Firefox slider */
.price-filter input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.price-filter input[type="range"]::-moz-range-thumb:hover,
.price-filter input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.15);
}

/* Thumb list */
.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Thumbnail images */
.thumb-img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.thumb-img:hover,
.active-thumb {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* Main image */
.main-image {
    max-height: 450px;
    object-fit: contain;
}

/* Specifications list */
.spec-list li {
    margin-bottom: 4px;
}

/* Sticky footer: keep footer at the bottom on short pages */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > footer,
body > .footer {
    margin-top: auto;
}

/* =========================================================
   Related products (same look as the home page shelves)
   ========================================================= */
.related-products{--ind:#4f46e5;--ind2:#7c3aed;margin-bottom:2rem}
.related-products .shelf-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #ececf4}
.related-products .shelf-head h2{margin:0;font-family:"Space Grotesk","Poppins",sans-serif;letter-spacing:-.02em;font-size:clamp(1.2rem,2.6vw,1.65rem);font-weight:700;color:#11112a;display:flex;align-items:center;gap:10px}
.related-products .shelf-head h2:before{content:"";width:6px;height:26px;border-radius:4px;background:linear-gradient(var(--ind),var(--ind2))}
.related-products .shelf-tools{display:flex;gap:8px;align-items:center}
.related-products .shelf-all{margin-right:6px;font-size:.85rem;font-weight:600;color:var(--ind);text-decoration:none}
.related-products .shelf-btn{width:38px;height:38px;border:1px solid #dcdcec;border-radius:50%;background:#fff;color:#222;transition:.2s}
.related-products .shelf-btn:hover{background:var(--ind);border-color:var(--ind);color:#fff}
.related-products .shelf-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:10px 2px 20px}
.related-products .shelf-track::-webkit-scrollbar{display:none}
.related-products .pcard{position:relative;flex:0 0 clamp(170px,22vw,232px);scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid #ececf4;border-radius:18px;background:#fff;color:inherit;overflow:hidden;text-decoration:none;transition:.3s}
.related-products .pcard:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(79,70,229,.15);border-color:#d9d6ff;color:inherit}
.related-products .pcard-img{aspect-ratio:1;background:#f6f6fb;display:grid;place-items:center}
.related-products .pcard-img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .4s}
.related-products .pcard:hover .pcard-img img{transform:scale(1.07)}
.related-products .pcard-off{position:absolute;top:10px;right:10px;padding:3px 9px;border-radius:7px;background:#ef4444;color:#fff;font-size:.72rem;font-weight:700}
.related-products .pcard-cond{position:absolute;top:10px;left:10px;padding:3px 9px;border-radius:7px;background:#fff;font-size:.68rem;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.related-products .pcard-body{padding:14px;display:flex;flex-direction:column;flex:1}
.related-products .pcard-name{font-size:.84rem;font-weight:600;line-height:1.4;color:#1a1a33;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.35em}
.related-products .pcard-brand{margin:6px 0 8px;font-size:.74rem;color:#80819a}
.related-products .pcard-price{margin-top:auto;font-weight:700;font-size:1.02rem;color:var(--ind)}
.related-products .pcard-old{font-size:.76rem;color:#9b9bb0;text-decoration:line-through}
@media(max-width:575px){.related-products .shelf-btn{display:none}}