

 /* To elements */

 .flip {
     transform: rotateX(180deg);
 }

 /* To elements */

 body {
     margin: 0;
     background-color: var(--secondary-bg-color);
     color: var(--primary-color);
 }

 fieldset {
     border: none;
     margin: 0;
     padding: 0;
 }

 .container-fluid{
     padding-top: 6.5rem;
 }

 /* SIDEBAR */
 .sidebar {
     background: var(--primary-bg-color);
     border: 2px solid var(--tertiary-bg-color);
     border-radius: var(--border-radius-button);
     padding: 24px 20px;
 }

 .filter-button {
     appearance: none;
     display: inline-flex;
     align-items: center;
     gap: 0.45rem;
     width:120px;
     padding: 0.7rem 1.2rem;
     border: 1px solid var(--primary-color);
     border-radius: var(--border-radius-button);
     background: transparent;
     color: var(--primary-color);
     font-size: 16px;
     font-weight: 600;
     cursor: pointer;
     transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
 }
 .filter-button.lg {
     width: 200px;
 }


 .filter-button:hover {
     box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
     background-color: var(--primary-bg-color);
 }

 .filter-title {
     width: 100%;
     margin-bottom: 6px;
     padding-bottom: 6px;
     border-bottom: 1px solid var(--tertiary-color);
 }

 .filter-title span {
     font-weight: 600;
     font-size: 18px;
     color: var(--primary-color);
 }

 .filter-toggle {
     display: flex;
     justify-content: space-between;
     align-items: center;
     width: 100%;
     background: none;
     border: none;
     padding: 0;
     cursor: pointer;
 }

 .filter-toggle svg {
     width: 1em;
     height: 1em;
     display: block;
     transition: transform 0.3s ease;
 }

 .filter-option {
     display: flex;
     align-items: center;
     gap: 6px;
     padding: 4px 6px;
     border-radius: var(--border-radius-button-xs);
     cursor: pointer;
 }

 .filter-option input[type="checkbox"] {
     accent-color: var(--accept-bg-color);
 }

 .filter-option span {
     text-decoration: none;
 }

 .filter-option:hover span {
     text-decoration: underline;
     text-underline-offset: 2px;
 }

 .filter-section {
     margin-bottom: 16px;
 }

 .filter-option {
     font-size: 16px;
     margin: 5px 0;
     color: var(--primary-color);
 }

 .filter-option input {
     margin-right: 6px;
 }

 .filter-section label{
     display: flex;
 }

 .filter-range {
     display: flex;
     gap: 8px;
     margin-top: 8px;
 }

 .filter-range input {
     width: 100%;
     padding: 6px 8px;
     border: 1px solid var(--tertiary-color);
     border-radius: var(--border-radius-button-sm);
     font-size: 13px;
 }

 .author-search {
     width: 100%;
     padding: 7px 10px;
     border: 1px solid var(--tertiary-color);
     border-radius: var(--border-radius-button);
     font-size: 13px;
 }

 /* RESULTS AREA */
 .results-area {
     background: var(--primary-bg-color);
     border: 2px solid var(--tertiary-bg-color);
     border-radius: var(--border-radius-button);
     padding: 24px 20px;
 }

 .results-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     padding-bottom: 14px;
     border-bottom: 2px solid var(--tertiary-bg-color);
 }

 .results-header h2 {
     margin: 0 0 8px 0;
     font-size: 18px;
     font-weight: 500;
 }

 .results-link {
     font-size: 16px;
     color: var(--accent-color);
     margin-top: 6px;
     cursor: pointer;
 }

 .results-link:hover{
     text-decoration: underline;
     text-underline-offset: 2px;
 }

 .results-sub {
     font-size: 14px;
     color: var(--primary-color);
     margin-top: 10px;
 }


 .sort-link{
     display:flex;
     align-items:center;
     gap:6px;

     font-size:14px;
     font-weight:500;
     color:var(--primary-color);

     text-decoration:none;
     background:none;
     border:none;
     padding:0;

     cursor:pointer;
 }

 .sort-link:hover{
     text-decoration:underline;
     text-underline-offset:2px;
 }

 /* BOOK CARD */
 .books-container {
     margin-top: 20px;
 }

 .book-card {
     width: 150px;
 }

 .book-cover {
     width: 100%;
     height: 210px;
     object-fit: cover;
     border-radius: var(--border-radius-button);
     border: 1px solid var(--tertiary-color);
 }

 .formats {
     font-size: 11px;
     color: var(--secondary-color);
     margin-top: 6px;
 }

 .book-title {
     font-size: 14px;
     font-weight: 600;
     margin-top: 6px;
 }

 .book-author {
     font-size: 12px;
     color: var(--secondary-color);
     line-height: 1.3;
 }

 .rating-price {
     display: flex;
     justify-content: space-between;
     font-size: 12px;
     margin-top: 6px;
 }

 .rating {
     color: var(--raiting-color);
     font-weight: 600;
 }

 .price {
     font-weight: 600;
 }

 .author-searchbar {
     display: flex;
     flex: 1;
     min-width: 0;
     padding: 8px 6px;
     margin: 6px 0px;
     border-radius: var(--border-radius-button-md);
     border: 1px solid var(--secondary-color);
 }

 .author-searchbar input {
     border: none;
     background: transparent;
     outline: none;
     width: 100%;
     margin-left: 12px;
     font-size: 14px;
 }

 .author-searchbar a {
     display: flex;
     align-items: center;
     cursor: pointer;
 }

 .author-searchbar a svg {
     display: block;
     width: 18px;
 }

 .sort{
     font-size: 14px;
     font-weight: 500;
     color: var(--primary-color);
     cursor: pointer;
 }

 .filter-mobile-wrapper{
     display: none;
     margin: 1rem 0;
 }

 .load-more-wrapper{
     text-align: center;
     margin-top:32px;
 }
 .load-more-wrapper button{
     border:none;
     padding:8px 16px;
     border-radius: var(--border-radius-button-md);
     font-size: 14px;
     font-weight: 500;
     background-color: var(--tertiary-bg-color);
     cursor: pointer;
 }

 .load-more-wrapper button:hover{
     background-color: var(--primary-color);
     color: var(--primary-bg-color);
 }

 @media (max-width: 900px) {
     body{
         background-color: var(--primary-bg-color);
     }
     .results-area{
         border: none;
         padding:20px 15px;
     }
     .sidebar{
         border: none;
         padding: 16px;
     }
     .container-fluid{
        padding-top: 9rem;
    }
     .filter-mobile-wrapper{
         display: flex;
         gap: 12px;
     }
     .sort-link{
         display: none;
     }
 }

