/**
 * Product Price Filter Styles
 * Theme: สอดคล้องกับ Theme ที่ใช้ในฟังก์ชัน product-term-list ก่อนหน้านี้
 */

 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Sarabun:wght@400;500;700&display=swap');

 /* Container */
 .filter-container {
     background-color: white;
     padding: 24px;
     border-radius: 8px;
     box-shadow: none; /* ลบเงาออก */
     width: 100%;
     max-width: 300px;
     font-family: 'Sarabun', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
     margin-bottom: 30px;
 }
 
 /* Header */
 .filter-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 16px;
 }
 
 .filter-title {
     font-size: 1rem;
     font-weight: 700;
     color: #1a202c;
 }
 
 .filter-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-icon svg {
    width: 12px;
    height: 12px;
}
 
 .filter-icon:hover {
     color: #e53e3e;
 }
 
 /* Checkbox List */
 .price-filter-list {
     list-style: none;
     padding: 0;
     margin: 0;
 }
 
 .price-filter-item {
     margin-bottom: 10px;
 }
 
 /* Custom Checkbox */
 .price-filter-checkbox {
     position: absolute;
     opacity: 0;
     cursor: pointer;
     height: 0;
     width: 0;
 }
 
 .price-filter-label {
     display: flex;
     position: relative;
     padding-left: 35px;
     cursor: pointer;
     font-size: 14px;
     color: #4a5568;
     user-select: none;
     line-height: 25px;
     transition: all 0.3s ease;
 }
 
 .price-filter-label:before {
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     width: 20px;
     height: 20px;
     border: 2px solid #e2e8f0;
     background-color: #fff;
     border-radius: 4px;
     transition: all 0.3s ease;
 }
 
 .price-filter-checkbox:checked + .price-filter-label:before {
     border-color: #D40000;
     background-color: #D40000;
 }
 
 .price-filter-checkbox:checked + .price-filter-label:after {
     content: '';
     position: absolute;
     left: 8px;
     top: 4px;
     width: 5px;
     height: 10px;
     border: solid white;
     border-width: 0 2px 2px 0;
     transform: rotate(45deg);
 }
 
 .price-filter-checkbox:focus + .price-filter-label:before {
     box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.2);
 }
 
 .price-filter-label:hover {
     color: #D40000;
 }
 
 /* Mobile Styles */
 @media (max-width: 768px) {
     .filter-container {
         max-width: 100%;
     }
     
     /* สำหรับการซ่อน/แสดงเมนู */
     .price-filter-list.hidden {
         display: none;
     }
     
     .filter-icon.collapsed svg line:nth-child(1) {
         transform: rotate(90deg);
         transform-origin: center;
     }

     
 }