.reviews-section { font-family: Arial, sans-serif; max-width: 1000px; margin: 0 auto; padding: 20px; } /* Adjust padding for laptop users (max-width: 1280px) */ @media (max-width: 1280px) { .reviews-section { margin-top:-231px ; /* Adjusted padding for laptops */ } } /* Adjust padding for laptop users (max-width: 1280px) */ @media (max-width: 600px) { .reviews-section { margin-top:31px ; /* Adjusted padding for laptops */ } } /* Adjust padding for phone users (max-width: 768px) */ @media (max-width: 768px) { .reviews-section { padding: 25px; /* Reduced padding for smaller screens */ } } /* Further adjustments for smaller devices (max-width: 480px) */ @media (max-width: 480px) { .reviews-section { padding: 25px; /* Even smaller padding on very small screens */ } } .verification-icon { width: 16px; /* Default size for desktop */ height: auto; /* Maintain aspect ratio */ margin-left: 8px; /* Space between name and icon */ margin-right: 8px; /* Space between icon and name */ position: relative; /* Allow adjustment with top property */ top: -1px; /* Move the icon up by 2px, adjust as needed */ } .review-content h4 { display: flex; align-items: center; /* Aligns items vertically centered */ margin: 0; font-size: 1.2em; } .review-text { font-size: 18px; /* Or any other size you prefer */ line-height: 1.5; /* Optional */ } .rating-summary { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 20px; margin-top: 80px; } /* Media query for screens with a width between 1024px and 1440px (typical laptop resolutions) */ @media screen and (min-width: 1024px) and (max-width: 1440px) { .rating-summary { margin-top: 280px; /* Adjust margin-top for laptop screens */ } } /* Media query for screens with a maximum width of 768px (e.g., phones) */ @media screen and (max-width: 768px) { .rating-summary { margin-bottom: 15px; /* Adjust margin-bottom for smaller screens */ margin-top: -20px; /* Reduce margin-top for smaller screens */ } } .overall-rating { font-size: 2.5em; margin-right: 20px; flex: 1 1 auto; } .rating-breakdown { list-style: none; padding: 0; flex: 2 1 auto; margin: 0; margin-top: 30px; } .rating-breakdown li { display: flex; align-items: center; margin-bottom: 5px; } .bar { background-color: #ddd; height: 10px; width: 300px; margin: 0 10px; position: relative; } .filled { background-color: #433878c0; height: 10px; position: absolute; top: 0; left: 0; } button { margin-left: 10px; padding: 10px 20px; background-color: #f5f5f5; border: 1px solid #ccc; cursor: pointer; flex: 1 1 auto; } .reviews { border-top: 1px solid #ccc; padding-top: 20px; } .review { margin-bottom: 20px; } .review-content { padding-bottom: 10px; } .review h4 { margin: 0; font-size: 1.2em; display: flex; align-items: center; /* Aligns the icon and text vertically */ } .review p { margin: 5px 0; } .star-rating { font-size: 2em; color: #FFD700; } .review-images { display: flex; gap: 10px; margin-top: 10px; } .review-image { width: 30%; max-width: calc(50% - 5px); /* Allows for a small gap between images */ border-radius: 5px; } @media only screen and (max-width: 768px) { .review-image { width: 100%; max-width: calc(50% - 5px); /* Slightly reduced to allow for padding/margin */ border-radius: 5px; } } /* Responsive Design */ @media screen and (max-width: 768px) { .verification-icon { width: 14px; /* Smaller size for tablets */ margin-left: 6px; /* Adjust space */ margin-right: 6px; /* Adjust space */ top: -1px; /* Move the icon up by 1px for tablets */ } .overall-rating { font-size: 2em; margin-right: 10px; } .stars { font-size: 1.2em; } .rating-breakdown { margin-top: 10px; } .rating-breakdown li { margin-bottom: 3px; } .bar { width: 80px; } button { margin-left: 5px; padding: 8px 15px; font-size: 0.9em; } .review-content { padding-bottom: 5px; } .review h4 { font-size: 1.1em; } .star-rating { font-size: 2em; } .review-text { font-size: 16px; /* Adjust text size for tablets */ } } @media screen and (max-width: 480px) { .verification-icon { width: 12px; /* Smaller size for mobile */ margin-left: 4px; /* Adjust space */ margin-right: 4px; /* Adjust space */ top: -1px; /* Move the icon up by 1px for mobile */ } .rating-summary { flex-direction: column; align-items: flex-start; } .overall-rating { margin-bottom: 10px; font-size: 1.8em; } .rating-breakdown { margin-top: 5px; } .bar { width: 250px; } button { width: 100%; margin: 5px 0; } .review h4 { font-size: 1em; } .review p { font-size: 0.9em; } .review-images { flex-direction: column; } .review-image { max-width: 100%; } .review-text { font-size: 14px; /* Adjust text size for mobile */ } } .benefits-container { display: flex; justify-content: center; text-align: center; margin: 0; flex-wrap: nowrap; /* Ensures items stay in one line */ overflow-x: auto; /* Adds horizontal scrolling if needed */ margin-bottom: 25px; margin-right: 136px; } .benefit-item { flex: 1; margin: 0 10px; min-width: 140px; /* Adjust as needed to fit more items */ } .benefit-image img { max-width: 60px; /* Adjust as needed */ height: auto; display: block; margin: 0 auto; } /* Individual image sizes */ .benefit-image img[src="security.png"] { width: 47px;/* Adjust the size as needed */ } .benefit-image img[src="delivery-truck.png"] { width: 49px; } .benefit-image img[src="satisfaction.png"] { width: 47px; } @media only screen and (max-width: 768px) { /* Individual image sizes for phones */ .benefit-image img[src="payment-protection.png"] { width: 30px; /* Adjust the size for mobile */ } .benefit-image img[src="fast-delivery (2).png"] { width: 30px; } .benefit-image img[src="money-back-guarantee copy.png"] { width: 30px; } } .benefit-text h3 { margin: 9px 0 0; font-size: 1.0em; color: #000000; /* Adjust text color as needed */ } /* Mobile styles */ @media (max-width: 768px) { .benefits-container { flex-wrap: nowrap; /* Ensure items stay in one line on mobile */ overflow-x: auto; /* Allows horizontal scrolling if necessary */ margin-bottom: 20px; margin-right: 16px; justify-content: center; text-align: center; } .benefit-item { min-width: 12px; /* Adjust as needed for mobile */ } .benefit-image img { max-width: 40px; /* Adjust image size for mobile */ } .benefit-text h3 { font-size: 0.5em; /* Adjust font size for mobile */ } } .payment-options-image { width: 250px; /* Adjust the width as needed */ height: auto; /* Maintain aspect ratio */ display: block; /* Makes the image a block-level element */ margin: 0 auto; /* Centers the image horizontally */ } h2 { font-size: 2.5rem; /* Adjust the size as needed */ margin-bottom: 1rem; /* Optional: Adjust the bottom margin */ } /* Mobile styles */ @media (max-width: 768px) { /* Adjust the breakpoint as needed */ h2 { font-size: 1.6rem; /* Adjust the size for mobile devices */ margin-bottom: -10px; /* Optional: Adjust the bottom margin for mobile */ } } /* Style for the stars */ .product-rating .stars { color: #FFD700; /* Set the star color to yellow */ font-size: 25px; /* Adjust the size of the stars */ letter-spacing: 2px; /* Optional: Adjust spacing between stars */ font-family: Arial, sans-serif; /* Ensure a font that supports the star symbol */ margin-right: 7px; /* Add some space between the stars and the text */ } .product-rating { display: flex; align-items: center; gap: 8px; /* Adds space between the stars and the text */ } .stars { display: flex; gap: 4px; /* Controls space between individual stars */ } .star { transition: fill 0.3s ease; } .star:hover { fill: #ff5722; /* Changes to a different color when hovered */ } /* CSS for sticky button */ .sticky-container { position: fixed; bottom: 0; left: 0; width: 100%; height: 11%; background-color: #fff; border-top: 1px solid #ddd; box-shadow: 0 -2px 5px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; padding: 10px; /* Padding for better touch targets */ z-index: 1000; transform: translateY(100%); transition: transform 0.3s ease; } .sticky-container.show { transform: translateY(0); } .sticky-info { display: flex; align-items: center; flex-wrap: nowrap; /* Prevent wrapping to keep items in one line */ flex: 1; /* Allows the info section to take available space */ margin-left: 320px; } .sticky-info img { max-width: 70px; /* Adjusted size for mobile */ margin-right: 10px; /* Spacing between image and text */ } .sticky-info .product-details { display: flex; flex-direction: column; flex: 1; /* Allow to take remaining space */ color: #433878; /* Setting color for new price span */ } .sticky-info .product-details h2 { margin: 0; font-size: 16px; /* Adjusted font size for mobile */ margin-bottom: 2px; /* Space below the product name */ } .sticky-info .product-details .product-price { font-size: 16px; /* Adjusted font size */ font-weight: bold; margin: 0; /* Remove margin for better alignment */ color: #ff2525; /* Setting color for new price span */ } .sticky-button { background-color: #433878; color: #fff; border: none; height: 50px; /* Adjusted height for touch targets */ width: auto; /* Allow button to resize based on content */ min-width: 120px; /* Minimum width for button */ max-width: 90%; /* Allow button to take up to 90% of container width */ padding: 0 15px; /* Horizontal padding */ font-size: 16px; /* Font size */ line-height: 50px; /* Vertically center text */ cursor: pointer; display: flex; align-items: center; justify-content: center; margin-right: 200px; border-radius: 5px; } /* Responsive adjustments for mobile */ @media (max-width: 768px) { .sticky-container { height: auto; /* Adjust height based on content */ flex-direction: row; /* Ensure items are in a row */ align-items: center; /* Center align items */ padding: 10px; /* Consistent padding */ } .sticky-button { background-color: #433878; color: #fff; border: none; height: 40px; /* Adjusted height for touch targets */ padding: 0 10px; /* Horizontal padding */ font-size: 10px; /* Font size */ cursor: pointer; display: flex; align-items: center; justify-content: center; margin-right: 20px; } .sticky-info { margin-left: 10px; /* Space between info and left edge */ margin-right: 10px; /* Space between info and button */ flex: 1; /* Allow info section to take available space */ } .sticky-info img { max-width: 0px; /* Adjusted image size for mobile */ margin-right: 10px; /* Spacing between image and text */ } .sticky-info .product-details h2 { font-size: 14px; /* Adjusted font size for mobile */ margin-bottom: 2px; /* Reduced space below the product name */ } .sticky-button { width: auto; /* Keep width auto to fit content */ max-width: 100%; /* Allow button to take full width */ margin-left: auto; /* Push button to the right edge */ } } @media (max-width: 350px) { .sticky-container { height: auto; /* Adjust height based on content */ flex-direction: row; /* Ensure items are in a row */ align-items: center; /* Center align items */ padding: 10px; /* Consistent padding */ } .sticky-button { background-color: #433878; color: #fff; border: none; height: 50px; /* Adjusted height for touch targets */ padding: 0 0px; /* Horizontal padding */ font-size: 10px; /* Font size */ cursor: pointer; display: flex; align-items: center; justify-content: center; margin-right: 2px; } } .header-offer { background-color: #ffcccb; padding: 1px; text-align: center; font-size: 18px; font-weight: bold; font-family: Arial, sans-serif; } .offer-text { color: #d9534f; } @media (max-width: 600px) { .header-offer { background-color: #ffcccb; text-align: center; font-size: 15px; font-weight: bold; font-family: Arial, sans-serif; } .offer-text { color: #d9534f; } } .banner { width: 77.8%; padding: 13px calc(16px); border: 0px solid rgb(197, 200, 209); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 20px !important; margin-bottom: 20px !important; background: #93ff8462; position: relative; } .icon-container { display: flex !important; align-items: center; justify-content: center; padding: 3px; margin-right: 4px; border-radius: 4px; background-color: #ddffed; /* Keeps the soft green background */ } .icon { height: 32px; width: 32px; display: flex !important; } .text-container { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; flex: 1; gap: 3px; } .title { display: block; font-weight: 600; font-size: 16px; color: #090909; margin: 0; line-height: 1; word-wrap: break-word; max-width: 100%; } .subheading { display: block; font-size: 14px !important; color: #5a5a5a !important; font-weight: 400; margin: 0; text-align: left; line-height: 1; word-wrap: break-word; max-width: 100%; } /* Adjustments for phone users only */ @media (max-width: 480px) { .banner { padding: 10px 16px; gap: 8px; margin-top: 16px !important; width: 100%; margin-bottom: 16px !important; } .icon-container { background-size: 24px; } .icon { height: 24px; width: 24px; } .title { font-size: 14px; } .subheading { font-size: 12px !important; } } .btn.custom-button { font-weight: bold; margin-left: 1px; font-size: 30px; height: 60px; /* Adjust the height as needed */ width: 490px; /* Adjust the width as needed */ padding: 0 20px; /* Optional: horizontal padding */ border: none; /* Optional: remove border */ border-radius: 5px; /* Optional: rounded corners */ background-color: #433878; /* Change the background color */ color: white; /* Change the text color */ cursor: pointer; /* Change the cursor to a pointer on hover */ transition: background-color 0.3s; /* Optional: smooth background color change */ } .btn.custom-button:hover { background-color: #333333; /* Darker shade on hover */ } @media (max-width: 600px) { /* Adjust the max-width as needed for your design */ .btn.custom-button { height: 50px; /* Adjust height for mobile */ width: 100%; /* Full width on mobile */ font-size: 22px; /* Adjust font size for mobile */ padding: 0 10px; /* Optional: adjust padding for mobile */ } } /* Keyframes for pulse animation */ @keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.02); } } /* Styling for view count */ .view-count { display: flex; align-items: center; margin-bottom: 8px; font-size: 13px; } .eye-icon { margin-right: 5px; fill: #ff6b6b; animation: blink 2s infinite; } /* Blinking eye effect */ @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .icon-container { background-color: #f0f0f000; /* Replace with desired color */ width: 48px; height: 48px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; /* Optional: make the background circular */ } /* Low Stock Banner Styling */ .low-stock-banner { display: flex; align-items: center; justify-content: space-between; background-color: #ff5a5a; /* Slightly deeper red for better contrast */ color: #ffffff; padding: 3.7px 5px; /* Increased padding for a more spacious layout */ border-radius: 5px; font-size: 1rem; /* Larger font for better readability */ font-weight: bold; box-shadow: 0 0px 0px rgba(0, 0, 0, 0.15); position: relative; max-width: 600px; margin: 0px auto; transition: background-color 0.8s ease, transform 0.3s ease; animation: backgroundPulse 5s infinite alternate; margin-left: 7px; height: 30px; /* Ensure consistent height */ } /* Discount Styling */ .discount { display: flex; align-items: center; justify-content: center; background-color: #f89f2a80; /* Eye-catching yellow */ color: #000; padding: 1.7px 5px; /* Match padding */ border-radius: 5px; font-weight: bold; height: 30px; /* Ensure consistent height */ width: 40px; } /* Media Queries */ @media screen and (max-width: 767px) { .low-stock-banner, .discount { padding: 2px 3px; /* Adjusted padding for smaller screens */ font-size: clamp(0.2rem, 2.6vw, 0.9rem); /* Smaller font on mobile */ height: 30px; /* Adjust height for smaller screens */ } } @media screen and (max-width: 767px) { .discount { display: flex; align-items: center; justify-content: center; background-color: #f89f2a80; /* Eye-catching yellow */ color: #000; padding: 1.7px 5px; /* Match padding */ border-radius: 5px; font-size: 0.9rem; /* Match font size */ font-weight: bold; height: 30px; /* Ensure consistent height */ width: 40px; } } /* Low Stock Banner Hover Effect */ .low-stock-banner:hover { transform: translateY(-5px); /* Adds a hover effect */ } /* Low Stock Banner Content */ .low-stock-banner .content { display: flex; align-items: center; gap: 12px; /* Increased gap for better spacing */ } .low-stock-banner .low-stock-text { margin: 0; animation: fadeIn 0.8s ease-in-out; } @media screen and (max-width: 320px) { .low-stock-banner .low-stock-text { font-size: 8px; } } .low-stock-banner .timer { font-size: 0.85rem; margin: 0; color: #ffd9d9; /* Softer shade for better contrast */ } .low-stock-banner .line-animation { position: absolute; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, #ffeb3b60, #ff5a5a59); animation: loadLine 8.5s infinite; border-radius: 4px 4px 0 0; } .low-stock-banner .stock-icon { color: #ffd700; font-size: 1.2rem; /* Slightly larger for better emphasis */ } .low-stock-banner .buy-now-button { background-color: #ffeb3b; /* Softer yellow for better harmony */ color: #333; border: none; padding: 8px 20px; /* Larger button for better interaction */ border-radius: 6px; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; animation: pulse 2.5s infinite; } .low-stock-banner .buy-now-button:hover { background-color: #ffe75c; transform: scale(1.1); /* Slight scale on hover */ } /* Keyframes */ @keyframes fadeIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } } @keyframes loadLine { 0% { width: 0; } 50% { width: 100%; } 100% { width: 0; } } @keyframes backgroundPulse { 0% { background-color: #ff5a5a; } 50% { background-color: #ff7070; } 100% { background-color: #ff5a5a; } } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } /* Utility Container */ .discount-low-stock-container { display: flex; align-items: center; /* Centers both items vertically */ justify-content: space-between; /* Adds space between the items */ gap: 1px; }