|
| 1 | +* { |
| 2 | + border: 0; |
| 3 | + margin: 0; |
| 4 | + box-sizing: border-box; |
| 5 | +} |
| 6 | + |
| 7 | +body { |
| 8 | + font-family: Arial, sans-serif; |
| 9 | + background: #f0f5ff; /* Light bluish background color */ |
| 10 | + color: #333; |
| 11 | +} |
| 12 | + |
| 13 | +header { |
| 14 | + /* position: sticky; |
| 15 | + top: 0; */ |
| 16 | + display: flex; |
| 17 | + align-items: center; |
| 18 | + justify-content: space-between; |
| 19 | + padding: 1.5em 3em; /* Increased padding */ |
| 20 | + background: linear-gradient( |
| 21 | + to right, |
| 22 | + #61a5ff, |
| 23 | + #98c0ff |
| 24 | + ); /* Gradient background with bluish colors */ |
| 25 | +} |
| 26 | + |
| 27 | +header * { |
| 28 | + cursor: pointer; |
| 29 | +} |
| 30 | + |
| 31 | +.productscontainer { |
| 32 | + display: grid; |
| 33 | + grid-template-columns: repeat( |
| 34 | + auto-fit, |
| 35 | + minmax(300px, 1fr) |
| 36 | + ); /* Adjusted grid item size */ |
| 37 | + gap: 30px; /* Increased gap */ |
| 38 | + padding: 2em; /* Increased padding */ |
| 39 | + background: #e0e8ff; /* Light bluish background */ |
| 40 | + border-radius: 20px; /* Rounded corners */ |
| 41 | + box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1); /* Subtle box shadow */ |
| 42 | +} |
| 43 | + |
| 44 | +.productscontainer .product { |
| 45 | + display: flex; |
| 46 | + flex-direction: column; |
| 47 | + gap: 20px; /* Increased gap */ |
| 48 | + align-items: center; |
| 49 | + background: #cfdfff; /* Lighter bluish background color */ |
| 50 | + padding: 20px; |
| 51 | + border-radius: 15px; |
| 52 | +} |
| 53 | + |
| 54 | +.addtocart { |
| 55 | + background-image: url('https://d3dyfaf3iutrxo.cloudfront.net/general/upload/019055d9d67644ef8231997569a3aab2.png'); |
| 56 | + height: 20px; |
| 57 | + width: 20px; |
| 58 | + |
| 59 | + background-size: contain; |
| 60 | + background-repeat: no-repeat; |
| 61 | + background-position: center; |
| 62 | +} |
| 63 | + |
| 64 | +.ptitle { |
| 65 | + height: 50px; |
| 66 | + overflow-y: auto; |
| 67 | +} |
| 68 | + |
| 69 | +.product img { |
| 70 | + border-bottom: 1px solid #bcc7e3; /* Lighter bluish border */ |
| 71 | +} |
| 72 | + |
| 73 | +.priceandaddtocart { |
| 74 | + display: flex; |
| 75 | + justify-content: space-between; |
| 76 | + width: 100%; |
| 77 | + align-items: center; |
| 78 | +} |
| 79 | + |
| 80 | +.carticon { |
| 81 | + display: flex; |
| 82 | + gap: 16px; |
| 83 | +} |
| 84 | + |
| 85 | +.carticon::after { |
| 86 | + content: attr(items); |
| 87 | +} |
| 88 | + |
| 89 | +.cartui { |
| 90 | + width: 45vw; |
| 91 | + background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */ |
| 92 | + padding: 30px; /* Increased padding */ |
| 93 | + display: flex; |
| 94 | + flex-direction: column; |
| 95 | + position: fixed; |
| 96 | + right: -999px; |
| 97 | + top: 0; |
| 98 | + transition: all 0.5s ease; |
| 99 | + z-index: 99; |
| 100 | + height: 100vh; |
| 101 | + border-left: 1px solid #9bb8ff; /* Border for separation with bluish color */ |
| 102 | +} |
| 103 | + |
| 104 | +.cartopened { |
| 105 | + right: 0; |
| 106 | +} |
| 107 | + |
| 108 | +.cartui .closecart { |
| 109 | + border-bottom: 1px solid #9bb8ff; /* Border for separation with bluish color */ |
| 110 | + margin-bottom: 1.5em; |
| 111 | + cursor: pointer; |
| 112 | +} |
| 113 | + |
| 114 | +.cartui .pccontainer { |
| 115 | + height: 75vh; |
| 116 | + overflow-y: auto; /* Scrollbar for overflow */ |
| 117 | + display: flex; |
| 118 | + flex-direction: column; |
| 119 | + gap: 20px; /* Increased gap */ |
| 120 | +} |
| 121 | + |
| 122 | +.nameandprice { |
| 123 | + display: flex; |
| 124 | + flex-direction: column; |
| 125 | + justify-content: space-between; |
| 126 | + margin: 1.5em 0; /* Increased margin */ |
| 127 | +} |
| 128 | + |
| 129 | +.pnp { |
| 130 | + display: flex; |
| 131 | + gap: 20px; /* Increased gap */ |
| 132 | +} |
| 133 | + |
| 134 | +button { |
| 135 | + cursor: pointer; |
| 136 | + padding: 15px 25px; /* Adjusted padding */ |
| 137 | + border-radius: 10px; |
| 138 | + background: #61a5ff; /* Bluish primary button color */ |
| 139 | + box-shadow: 0px 4px 10px rgba(97, 165, 255, 0.2); /* Soft shadow with bluish color */ |
| 140 | + color: white; |
| 141 | + transition: transform 0.3s ease; |
| 142 | +} |
| 143 | + |
| 144 | +button:hover { |
| 145 | + transform: translateY(-3px); |
| 146 | +} |
| 147 | + |
| 148 | +.overlay { |
| 149 | + background: rgba(51, 51, 51, 0.5); /* Semi-transparent overlay */ |
| 150 | + position: fixed; |
| 151 | + width: 100vw; |
| 152 | + height: 100vh; |
| 153 | + z-index: 99; |
| 154 | + display: none; |
| 155 | +} |
| 156 | + |
| 157 | +.cartproduct { |
| 158 | + display: flex; |
| 159 | + justify-content: space-between; |
| 160 | + align-items: center; |
| 161 | + padding: 15px 0; /* Adjusted padding */ |
| 162 | + border-bottom: 1px solid #bcc7e3; /* Lighter bluish border */ |
| 163 | +} |
| 164 | + |
| 165 | +.pnp .img { |
| 166 | + width: 9rem; |
| 167 | + height: 8rem; |
| 168 | +} |
| 169 | + |
| 170 | +.pnp .img img { |
| 171 | + width: 9rem; |
| 172 | + height: 8rem; |
| 173 | +} |
| 174 | + |
| 175 | +@media screen and (max-width: 700px) { |
| 176 | + .cartui { |
| 177 | + width: 90vw; |
| 178 | + } |
| 179 | +} |
0 commit comments