[75f74d9] | 1 | /* Books Page Layout */
|
---|
| 2 | .books-page {
|
---|
| 3 | display: flex;
|
---|
| 4 | gap: 2rem;
|
---|
| 5 | max-width: 1400px;
|
---|
| 6 | margin: 2rem auto;
|
---|
| 7 | padding: 0 1rem;
|
---|
| 8 | }
|
---|
| 9 |
|
---|
| 10 | /* Filters Sidebar */
|
---|
| 11 | .filters-sidebar {
|
---|
| 12 | flex: 0 0 250px;
|
---|
| 13 | padding-right: 1rem;
|
---|
| 14 | border-right: 1px solid #e0e0e0;
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | .filters-header {
|
---|
| 18 | display: flex;
|
---|
| 19 | justify-content: space-between;
|
---|
| 20 | align-items: center;
|
---|
| 21 | margin-bottom: 1.5rem;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | .filters-header h2 {
|
---|
| 25 | font-size: 1.2rem;
|
---|
| 26 | margin: 0;
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | .clear-filters {
|
---|
| 30 | color: #1a75ff;
|
---|
| 31 | background: none;
|
---|
| 32 | border: none;
|
---|
| 33 | cursor: pointer;
|
---|
| 34 | font-size: 0.9rem;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | .filter-section {
|
---|
| 38 | margin-bottom: 1.5rem;
|
---|
| 39 | padding-bottom: 1.5rem;
|
---|
| 40 | border-bottom: 1px solid #e0e0e0;
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | .filter-section h3 {
|
---|
| 44 | font-size: 1rem;
|
---|
| 45 | margin-bottom: 1rem;
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | .filter-options {
|
---|
| 49 | display: flex;
|
---|
| 50 | flex-direction: column;
|
---|
| 51 | gap: 0.5rem;
|
---|
| 52 | }
|
---|
| 53 |
|
---|
| 54 | .filter-option {
|
---|
| 55 | display: flex;
|
---|
| 56 | align-items: center;
|
---|
| 57 | gap: 0.5rem;
|
---|
| 58 | cursor: pointer;
|
---|
| 59 | font-size: 0.9rem;
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | .show-more {
|
---|
| 63 | color: #1a75ff;
|
---|
| 64 | background: none;
|
---|
| 65 | border: none;
|
---|
| 66 | cursor: pointer;
|
---|
| 67 | font-size: 0.85rem;
|
---|
| 68 | margin-top: 0.5rem;
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | /* Price Range Styles */
|
---|
| 72 | .price-range {
|
---|
| 73 | margin-top: 1rem;
|
---|
| 74 | }
|
---|
| 75 |
|
---|
| 76 | .price-inputs {
|
---|
| 77 | display: flex;
|
---|
| 78 | align-items: center;
|
---|
| 79 | gap: 0.5rem;
|
---|
| 80 | margin-top: 0.5rem;
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | .price-inputs input {
|
---|
| 84 | width: 70px;
|
---|
| 85 | padding: 0.3rem;
|
---|
| 86 | border: 1px solid #e0e0e0;
|
---|
| 87 | border-radius: 4px;
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 | /* Books Content Area */
|
---|
| 91 | .books-content {
|
---|
| 92 | flex: 1;
|
---|
| 93 | }
|
---|
| 94 |
|
---|
| 95 | .books-header {
|
---|
| 96 | display: flex;
|
---|
| 97 | justify-content: space-between;
|
---|
| 98 | align-items: center;
|
---|
| 99 | margin-bottom: 1.5rem;
|
---|
| 100 | }
|
---|
| 101 |
|
---|
| 102 | .results-info h1 {
|
---|
| 103 | font-size: 1.5rem;
|
---|
| 104 | margin: 0 0 0.5rem 0;
|
---|
| 105 | }
|
---|
| 106 |
|
---|
| 107 | .results-count {
|
---|
| 108 | color: #666;
|
---|
| 109 | font-size: 0.9rem;
|
---|
| 110 | }
|
---|
| 111 |
|
---|
| 112 | .sort-options {
|
---|
| 113 | display: flex;
|
---|
| 114 | align-items: center;
|
---|
| 115 | gap: 0.5rem;
|
---|
| 116 | }
|
---|
| 117 |
|
---|
| 118 | .sort-options select {
|
---|
| 119 | padding: 0.5rem;
|
---|
| 120 | border: 1px solid #e0e0e0;
|
---|
| 121 | border-radius: 4px;
|
---|
| 122 | font-size: 0.9rem;
|
---|
| 123 | }
|
---|
| 124 |
|
---|
| 125 | /* Active Filters */
|
---|
| 126 | .active-filters {
|
---|
| 127 | display: flex;
|
---|
| 128 | flex-wrap: wrap;
|
---|
| 129 | gap: 0.5rem;
|
---|
| 130 | margin-bottom: 1.5rem;
|
---|
| 131 | }
|
---|
| 132 |
|
---|
| 133 | .filter-tag {
|
---|
| 134 | background: #f0f0f0;
|
---|
| 135 | padding: 0.3rem 0.8rem;
|
---|
| 136 | border-radius: 20px;
|
---|
| 137 | font-size: 0.85rem;
|
---|
| 138 | display: flex;
|
---|
| 139 | align-items: center;
|
---|
| 140 | gap: 0.5rem;
|
---|
| 141 | }
|
---|
| 142 |
|
---|
| 143 | .remove-filter {
|
---|
| 144 | cursor: pointer;
|
---|
| 145 | color: #666;
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 | /* Books Grid */
|
---|
| 149 | .books-grid {
|
---|
| 150 | display: grid;
|
---|
| 151 | grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
---|
| 152 | gap: 2rem;
|
---|
| 153 | margin-bottom: 2rem;
|
---|
| 154 | }
|
---|
| 155 |
|
---|
| 156 | .book-card {
|
---|
| 157 | display: flex;
|
---|
| 158 | flex-direction: column;
|
---|
| 159 | gap: 0.8rem;
|
---|
| 160 | }
|
---|
| 161 |
|
---|
| 162 | .book-cover {
|
---|
| 163 | width: 100%;
|
---|
| 164 | aspect-ratio: 2/3;
|
---|
| 165 | object-fit: cover;
|
---|
| 166 | border-radius: 4px;
|
---|
| 167 | box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
---|
| 168 | transition: transform 0.3s ease;
|
---|
| 169 | }
|
---|
| 170 |
|
---|
| 171 | .book-card:hover .book-cover {
|
---|
| 172 | transform: scale(1.03);
|
---|
| 173 | }
|
---|
| 174 |
|
---|
| 175 | .book-info {
|
---|
| 176 | display: flex;
|
---|
| 177 | flex-direction: column;
|
---|
| 178 | gap: 0.3rem;
|
---|
| 179 | }
|
---|
| 180 |
|
---|
| 181 | .book-title {
|
---|
| 182 | font-weight: 600;
|
---|
| 183 | font-size: 0.9rem;
|
---|
| 184 | margin: 0;
|
---|
| 185 | }
|
---|
| 186 |
|
---|
| 187 | .book-author {
|
---|
| 188 | color: #666;
|
---|
| 189 | font-size: 0.85rem;
|
---|
| 190 | margin: 0;
|
---|
| 191 | }
|
---|
| 192 |
|
---|
| 193 | .book-price {
|
---|
| 194 | font-weight: 600;
|
---|
| 195 | color: #1a75ff;
|
---|
| 196 | }
|
---|
| 197 |
|
---|
| 198 | /* Pagination */
|
---|
| 199 | .pagination {
|
---|
| 200 | display: flex;
|
---|
| 201 | justify-content: center;
|
---|
| 202 | align-items: center;
|
---|
| 203 | gap: 10px;
|
---|
| 204 | margin-top: 20px;
|
---|
| 205 | }
|
---|
| 206 |
|
---|
| 207 | .pagination-button, .page-button {
|
---|
| 208 | padding: 8px 16px;
|
---|
| 209 | font-size: 14px;
|
---|
| 210 | font-family: Arial, sans-serif;
|
---|
| 211 | color: #444;
|
---|
| 212 | background-color: #f5f5f5;
|
---|
| 213 | border: 1px solid #ccc;
|
---|
| 214 | border-radius: 4px;
|
---|
| 215 | cursor: pointer;
|
---|
| 216 | transition: background-color 0.3s ease, color 0.3s ease;
|
---|
| 217 | }
|
---|
| 218 |
|
---|
| 219 | .pagination-button:disabled {
|
---|
| 220 | cursor: not-allowed;
|
---|
| 221 | opacity: 0.6;
|
---|
| 222 | }
|
---|
| 223 |
|
---|
| 224 | .pagination-button:hover:not(:disabled), .page-button:hover {
|
---|
| 225 | background-color: #00635d;
|
---|
| 226 | color: white;
|
---|
| 227 | border-color: #00635d;
|
---|
| 228 | }
|
---|
| 229 |
|
---|
| 230 | .page-button.active {
|
---|
| 231 | background-color: #00635d;
|
---|
| 232 | color: white;
|
---|
| 233 | border-color: #00635d;
|
---|
| 234 | font-weight: bold;
|
---|
| 235 | }
|
---|
| 236 |
|
---|
| 237 | /* Additional spacing for dynamic page numbers */
|
---|
| 238 | .page-numbers {
|
---|
| 239 | display: flex;
|
---|
| 240 | gap: 5px;
|
---|
| 241 | }
|
---|
| 242 |
|
---|
| 243 |
|
---|
| 244 | .btn {
|
---|
| 245 | padding: 10px 20px;
|
---|
| 246 | border: none;
|
---|
| 247 | border-radius: 4px;
|
---|
| 248 | cursor: pointer;
|
---|
| 249 | font-weight: bold;
|
---|
| 250 | transition: background-color 0.3s;
|
---|
| 251 | }
|
---|
| 252 |
|
---|
| 253 | .btn-primary {
|
---|
| 254 | background-color: #1976d2;
|
---|
| 255 | color: white;
|
---|
| 256 | }
|
---|
| 257 |
|
---|
| 258 | .btn-primary:hover {
|
---|
| 259 | background-color: #1565c0;
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | .btn-btn-primary {
|
---|
| 263 | padding: 10px 20px;
|
---|
| 264 | border: none;
|
---|
| 265 | border-radius: 4px;
|
---|
| 266 | cursor: pointer;
|
---|
| 267 | font-weight: bold;
|
---|
| 268 | transition: background-color 0.3s;
|
---|
| 269 | }
|
---|
| 270 |
|
---|
| 271 | .btn-btn-primary {
|
---|
| 272 | background-color: #1976d2;
|
---|
| 273 | color: white;
|
---|
| 274 | }
|
---|
| 275 |
|
---|
| 276 | .btn-btn-primary {
|
---|
| 277 | background-color: #1565c0;
|
---|
| 278 | }
|
---|