[f9c482b] | 1 | /* General Reset and Typography */
|
---|
| 2 | * {
|
---|
| 3 | margin: 0;
|
---|
| 4 | padding: 0;
|
---|
| 5 | box-sizing: border-box;
|
---|
| 6 | font-family: Arial, sans-serif;
|
---|
| 7 | scroll-behavior: smooth;
|
---|
| 8 | list-style: none;
|
---|
| 9 | text-decoration: none;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | /* Body Styling */
|
---|
| 13 | body {
|
---|
| 14 | background-color: #f4f4f4;
|
---|
| 15 | color: #333;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | /* Container for Layout */
|
---|
| 19 | .container {
|
---|
| 20 | display: flex;
|
---|
| 21 | margin-top: 50px;
|
---|
| 22 | background: #fff;
|
---|
| 23 | border-radius: 8px;
|
---|
| 24 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | /* Sidebar Styling */
|
---|
| 28 | .sidebar {
|
---|
| 29 | width: 250px;
|
---|
| 30 | padding: 20px;
|
---|
| 31 | background-color: #ffffff;
|
---|
| 32 | border-right: 1px solid #ddd;
|
---|
| 33 | border-radius: 8px 0 0 8px;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | .sidebar h1 {
|
---|
| 37 | color: #4a148c; /* Dark purple */
|
---|
| 38 | margin-bottom: 20px;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | .sidebar h5 {
|
---|
| 42 | margin-top: 20px;
|
---|
| 43 | font-size: 1.1em;
|
---|
| 44 | color: #444;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | .sidebar label {
|
---|
| 48 | display: block;
|
---|
| 49 | margin: 10px 0 5px;
|
---|
| 50 | font-size: 0.9em;
|
---|
| 51 | }
|
---|
| 52 |
|
---|
| 53 | .sidebar select {
|
---|
| 54 | width: 100%;
|
---|
| 55 | padding: 8px;
|
---|
| 56 | border: 1px solid #ddd;
|
---|
| 57 | border-radius: 4px;
|
---|
| 58 | background-color: #f9f9f9;
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | .checkbox-group label {
|
---|
| 62 | display: inline;
|
---|
| 63 | margin-left: 11px;
|
---|
| 64 | margin-bottom: 8px;
|
---|
| 65 | font-size: 0.9em;
|
---|
| 66 | }
|
---|
| 67 |
|
---|
| 68 | /* Main Content Styling */
|
---|
| 69 | .main-content {
|
---|
| 70 | flex: 1;
|
---|
| 71 | padding: 20px;
|
---|
| 72 | }
|
---|
| 73 |
|
---|
| 74 | .product-list {
|
---|
| 75 | display: flex;
|
---|
| 76 | flex-wrap: wrap;
|
---|
| 77 | gap: 20px;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | .product-card {
|
---|
| 81 | width: calc(25% - 20px); /* Adjust width for 4 products per row */
|
---|
| 82 | background-color: #ffffff;
|
---|
| 83 | border: 1px solid #ddd;
|
---|
| 84 | border-radius: 8px;
|
---|
| 85 | overflow: hidden;
|
---|
| 86 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
---|
| 87 | transition: transform 0.3s ease;
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 | .product-card:hover {
|
---|
| 91 | transform: translateY(-5px);
|
---|
| 92 | }
|
---|
| 93 |
|
---|
| 94 | .product-card img {
|
---|
| 95 | width: 100%;
|
---|
| 96 | height: auto;
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | .product-card h2 {
|
---|
| 100 | font-size: 1.2em;
|
---|
| 101 | margin: 10px 0;
|
---|
| 102 | color: #555;
|
---|
| 103 | }
|
---|
| 104 |
|
---|
| 105 | .product-card p {
|
---|
| 106 | font-size: 1.1em;
|
---|
| 107 | color: #666;
|
---|
| 108 | }
|
---|
| 109 |
|
---|
| 110 | .btn {
|
---|
| 111 | display: inline-block;
|
---|
| 112 | padding: 10px 15px;
|
---|
| 113 | color: #fff;
|
---|
| 114 | background-color: #007bff;
|
---|
| 115 | text-decoration: none;
|
---|
| 116 | border-radius: 4px;
|
---|
| 117 | transition: background-color 0.3s ease;
|
---|
| 118 | }
|
---|
| 119 |
|
---|
| 120 | .btn:hover {
|
---|
| 121 | background-color: #0056b3;
|
---|
| 122 | }
|
---|
| 123 |
|
---|
| 124 | /* Section Styling */
|
---|
| 125 | section {
|
---|
| 126 | padding: 5% 10%;
|
---|
| 127 | }
|
---|
| 128 |
|
---|
| 129 | .products{
|
---|
| 130 | display: grid;
|
---|
| 131 | grid-template-columns: repeat(auto-fit, minmax(250px, auto));
|
---|
| 132 | gap: 2rem;
|
---|
| 133 | }
|
---|
| 134 |
|
---|
| 135 | .row{
|
---|
| 136 | position: relative;
|
---|
| 137 | transition: all .30s;
|
---|
| 138 | height: 336px;
|
---|
| 139 | border: 1px solid gray;
|
---|
| 140 | border-radius: 4px;
|
---|
| 141 | padding: 5px 7px;
|
---|
| 142 | }
|
---|
| 143 |
|
---|
| 144 | .image-container {
|
---|
| 145 | height: 256px;
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 | .image-container img{
|
---|
| 149 | width: 100%;
|
---|
| 150 | max-height: 256px;
|
---|
| 151 | height: auto;
|
---|
| 152 | transition: all .30s;
|
---|
| 153 | }
|
---|
| 154 |
|
---|
| 155 | .image-container img:hover{
|
---|
| 156 | transform: scale(0.7);
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | .product-text h5{
|
---|
| 160 | position: absolute;
|
---|
| 161 | top: 13px;
|
---|
| 162 | left: 13px;
|
---|
| 163 | color: aliceblue;
|
---|
| 164 | font-size: 14px;
|
---|
| 165 | font-weight: 500;
|
---|
| 166 | text-transform: uppercase;
|
---|
| 167 | background-color: greenyellow;
|
---|
| 168 | padding: 3px 10px;
|
---|
| 169 | border-radius: 3px;
|
---|
| 170 | }
|
---|
| 171 |
|
---|
| 172 | .product-name{
|
---|
| 173 | color: #111;
|
---|
| 174 | font-size: 18px;
|
---|
| 175 | text-transform: capitalize;
|
---|
| 176 | font-weight: 400;
|
---|
| 177 | }
|
---|
| 178 |
|
---|
| 179 | .product-price{
|
---|
| 180 | color: #000;
|
---|
| 181 | font-size: 16px;
|
---|
| 182 | font-weight: 600;
|
---|
| 183 |
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 | .icons-container{
|
---|
| 187 | right: 0;
|
---|
| 188 | font-size: 20px;
|
---|
| 189 | }
|
---|
| 190 |
|
---|
| 191 | .bx-cart:hover, .bx-heart:hover{
|
---|
| 192 | color: red;
|
---|
| 193 | }
|
---|
| 194 |
|
---|
| 195 | #filter-search-button {
|
---|
| 196 | margin-top: 24px;
|
---|
| 197 | background-color: transparent;
|
---|
| 198 | padding: 5px 10px;
|
---|
| 199 | border: 1px solid black;
|
---|
| 200 | text-align: left;
|
---|
| 201 | font-size: 1.25em;
|
---|
| 202 | width: 100%;
|
---|
| 203 | text-align: center;
|
---|
| 204 | transition: all 0.2s;
|
---|
| 205 | }
|
---|
| 206 |
|
---|
| 207 | #filter-search-button:hover {
|
---|
| 208 | background-color: black;
|
---|
| 209 | color: white;
|
---|
| 210 | }
|
---|
| 211 |
|
---|
| 212 | .product-name a {
|
---|
| 213 | text-decoration: none;
|
---|
| 214 | color: black;
|
---|
| 215 | } |
---|