-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
684 lines (593 loc) · 13.6 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", system-ui, sans-serif; /* Updated to include Poppins font */
background: #f0f4ff;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
background: #8a8dc5;
}
.logo h1 {
font-size: 36px;
font-weight: bold;
color: #fffefe;
}
.search-bar input {
padding: 10px 20px;
border-radius: 20px;
border: 1px solid #ccc;
width: 400px;
}
nav ul {
/* text-decoration: none; */
list-style: none;
display: flex;
gap: 20px;
}
nav ul li {
font-size: 18px;
color: #fefafa;
cursor: pointer;
}
.profile {
font-size: 14px;
background-color: #eee;
padding: 10px;
border-radius: 50px;
}
footer {
background-color: black;
color: white;
padding: 20px 40px;
display: flex;
justify-content: space-between;
}
.footer-links a {
color: white;
margin-right: 20px;
text-decoration: none;
}
.footer-logo {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.typing {
display: inline-block; /* Keep it inline for the typing effect */
overflow: hidden; /* Hide the overflow to create the typing effect */
border-right: 4px solid black; /* Create a cursor effect */
white-space: nowrap; /* Prevent text from wrapping */
animation: typing 4s steps(30, end), blink-caret 0.75s step-end infinite; /* Typing animation */
}
@keyframes typing {
from {
width: 0; /* Start with width 0 */
}
to {
width: 100%; /* Expand to full width */
}
}
@keyframes blink-caret {
from,
to {
border-color: transparent; /* Hide the caret */
}
50% {
border-color: black; /* Show the caret */
}
}
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: flex-start;
padding: 10px; /* Adjust padding for smaller screens */
}
.search-bar input {
width: 100%; /* Make search bar full width */
margin: 10px 0; /* Add margin for spacing */
}
nav ul {
flex-direction: column; /* Stack nav items */
align-items: flex-start; /* Align to the start */
gap: 10px; /* Smaller gap */
}
.grid {
grid-template-columns: repeat(2, 1fr); /* 2 boxes per row */
}
main {
flex-direction: column; /* Stack intro and art grid */
padding: 20px; /* Adjust padding */
}
}
@media (max-width: 480px) {
header {
padding: 10px; /* Further reduce padding */
}
.intro h2 {
font-size: 32px; /* Smaller heading */
}
.intro p {
font-size: 16px; /* Smaller paragraph */
}
.art-box {
width: 100%; /* Full width for art boxes */
height: auto; /* Automatic height */
}
.grid {
grid-template-columns: 1fr; /* 1 box per row */
}
footer {
flex-direction: column; /* Stack footer items */
align-items: center; /* Center footer items */
text-align: center; /* Center text within each item */
}
.footer-links {
margin-bottom: 10px; /* Add some spacing */
}
}a{
text-decoration: none;
color: #ffffff;
}
a:hover {
color:inherit;
text-decoration:none;
color: black;
cursor:pointer;
}
#browse-button:hover{
color: black;
}
.bottom-link:hover{
color:inherit;
text-decoration:none;
cursor:pointer;
color: rgb(255, 255, 255);
}
.profile {
font-size: 14px;
background-color: #ffffff;
padding: 10px;
border-radius: 50px;
}
/* Thumbnails and Main Image */
.thumbnail {
width: 100px;
height: auto;
border: 2px solid transparent;
transition: border-color 0.3s ease;
}
#main-product-image:hover{
border-color: #FFD700; /* Gold highlight on hover */
transform: scale(1.1); /* Slight zoom-in effect */
}
.thumbnail:hover {
border-color: #FFD700; /* Gold highlight on hover */
}
#main-product-image {
max-width: 400px;
height: auto;
border-radius: 10px;
}
/* Thumbnails and Main Image */
.thumbnail {
width: 100px;
height: auto;
border: 2px solid transparent;
transition: border-color 0.3s ease, transform 0.3s ease;
}
.thumbnail:hover {
border-color: #FFD700; /* Gold highlight on hover */
transform: scale(1.1); /* Slight zoom-in effect */
}
/* Main Product Image */
#main-product-image {
max-width: 400px;
height: auto;
border-radius: 10px;
transition: transform 0.4s ease; /* Smooth transition for scaling */
}
#main-product-image:hover {
transform: scale(1.05); /* Zoom-in effect on hover */
}
body{
background-image: url("https://img.freepik.com/premium-photo/white-background-with-pattern-lines_662214-45629.jpg");
}
.product-card {
position: relative;
padding: 10px;
border: 1px solid #fcfcfc;
margin: 10px;
text-align: center;
transition: transform 0.3s ease;
}
.suggested-products{
background-color: #ffffff;
}
.product-card{
border-color: rgb(0, 0, 0); /* Sets the border color to blue */
border-radius: 10px; /* Adds a 10px rounded corner to all sides */
}
.product-card {
position: relative;
padding: 10px;
border: 1px solid #ccc;
margin: 10px;
text-align: center;
transition: transform 0.3s ease;
}
.product-card:hover {
transform: scale(1.05);
}
.popup-info {
display: none;
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
background-color: #ffffff;
color: #000000;
padding: 10px;
border-radius: 5px;
z-index: 10;
width: 200px;
text-align: center;
}
.product-card:hover .popup-info {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.product-images {
display: flex;
gap: 10px;
justify-content: space-around;
}
.product-images img {
width: 100px;
height: 100px;
object-fit: cover;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.product-images img:hover {
transform: scale(1.1); /* Scale up slightly on hover */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow effect */
}
.product-images {
display: flex;
gap: 10px;
justify-content: center;
}
.product-images img {
width: 100px;
height: 100px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
border-radius: 5px;
}
.product-images img:hover {
transform: scale(1.3); /* Zoom effect */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.product-card:hover .popup-info {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.suggested-products {
padding: 40px;
}
.suggested-products h2 {
font-size: 28px;
margin-bottom: 20px;
}
.suggested-products .grid {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.suggested-products .product-card {
text-align: center;
flex: 1 1 200px;
}
.suggested-products img {
width: 150px;
height: 150px;
object-fit: cover;
}
.product-card h3 {
font-size: 18px;
margin: 10px 0;
}
.product-card .price {
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
.product-card .discount {
color: red;
}
.product-card .original-price {
text-decoration: line-through;
color: #aaa;
}
/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
}
.product-images img {
width: 60px;
height: 80px;
}
.main-image img {
max-width: 100%;
}
.product-info {
text-align: center;
max-width: 100%;
}
.size-options {
justify-content: center;
}
.quantity {
justify-content: center;
}
.suggested-products .grid {
justify-content: center;
}
.suggested-products img {
width: 120px;
height: 120px;
}
}
.suggested-products{
background-color: #fdfcfc;
}
h3{
color: #000000;
}
.xyz{
color: #000000;
}
.product-card {
text-align: center; /* Centers the text and image within the card */
/* Add any additional styling here */
}
/* General Styles */
body {
font-family: "Poppins", system-ui, sans-serif;
background-color: #f0f4ff;
margin: 0;
padding: 0;
}
/* Header */
header {
background-color: #D291BC;
padding: 20px;
text-align: center;
color: white;
}
/* Main Section */
main {
padding: 20px;
max-width: 800px;
margin: auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Ingredients Section */
.ingredients-section {
margin-top: 20px;
}
.vegan-status {
font-size: 14px;
margin-left: 10px;
border-radius: 12px;
padding: 2px 8px;
background-color: #e0f7e9; /* Light green for vegan */
}
.non-vegan .vegan-status {
background-color: #f8d7da; /* Light red for non-vegan */
}
/* Vegan Indicator Circles */
.green-circle, .red-circle {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
}
.green-circle {
background-color: green;
}
.red-circle {
background-color: red;
}
/* Preservatives Section */
.preservatives-section {
margin-top: 20px;
}
/* Footer */
footer {
background-color: black;
color: white;
padding: 20px;
text-align: center;
margin-top: 20px;
}
/* Base styling adjustments */
body {
font-family: 'Baloo Bhai 2', cursive;
margin: 0;
padding: 0;
}
/* For screens smaller than tablets */
@media (max-width: 1024px) {
header {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 15px;
}
/* Logo should scale down */
.logo h1 {
font-size: 2rem;
}
.search-bar input {
width: 80%;
padding: 8px;
margin-top: 10px;
border-radius: 5px;
}
/* Navigation links in single column */
nav ul {
display: flex;
flex-direction: column;
align-items: center;
padding: 0;
}
nav ul li {
margin: 10px 0;
}
/* Grid elements in single column */
.container {
grid-template-columns: 1fr;
padding: 15px;
}
/* Product image and thumbnails adjust */
.flex {
flex-direction: column;
align-items: center;
}
.thumbnail {
width: 60px;
height: 60px;
}
#main-product-image {
width: 100%;
max-width: 400px;
height: auto;
}
/* Adjust the product details for readability */
.grid-cols-2 {
grid-template-columns: 1fr;
text-align: center;
margin: 10px 0;
}
.bg-green-700, .bg-green-600, .bg-green-500 {
padding: 15px;
margin-bottom: 10px;
}
/* Adjust font sizes */
h2 {
font-size: 1.5rem;
}
p, li {
font-size: 1rem;
}
/* Video thumbnail sizing */
.video-thumbnail img {
width: 100%;
max-width: 300px;
height: auto;
}
.video-thumbnail a {
font-size: 1rem;
padding: 8px 15px;
}
/* Suggested products should stack vertically */
.suggested-products .grid {
grid-template-columns: 1fr;
}
.product-card img {
width: 100px;
height: auto;
}
/* Footer styles */
footer {
text-align: center;
padding: 15px 0;
}
.footer-links {
display: flex;
flex-direction: column;
align-items: center;
}
.footer-links a {
margin: 8px 0;
}
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
background: #593c8f;
}
.abcd{
background-color:#a6aada ;
}
/* Container for the entire product section */
.suggested-products {
width: 100%;
padding: 20px;
}
/* Grid layout for product cards */
.product-grid {
display: flex;
justify-content: space-between; /* Ensures equal spacing between product cards */
gap: 20px; /* Adds space between items */
flex-wrap: wrap; /* Allows wrapping if needed */
}
/* Styling for individual product cards */
.product-card {
flex: 1; /* Each card takes equal space */
text-align: center; /* Centers the text */
background-color: #f8f8f8; /* Background color for product card */
padding: 20px;
border-radius: 10px;
transition: transform 0.2s ease; /* Smooth hover effect */
}
/* Image styles */
.product-card img {
width: 100%;
max-width: 150px; /* Adjust max width for image */
height: auto; /* Keep aspect ratio */
margin-bottom: 10px;
}
/* Title styling */
.product-card h3 {
font-size: 16px;
color: #333;
}
/* Hover effect for product cards */
.product-card:hover {
transform: scale(1.05); /* Slight zoom on hover */
}