/* --- General & Common Styles --- */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #000000; --secondary-color: #d67e27; --tertiary-color: #d1c4b6; --text-primary: #000000; --text-secondary: #333333; --text-light: #666666; --bg-main: #ffffff; --bg-light: #f9f9f9; --bg-order: #fdfaf6; /* Background for order page */ --bg-footer: #f2f2f2; /* 5% darker than #ffffff */ --border-color: #e0e0e0; --border-orange: #f0e6dd; --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1); --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15); --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2); --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --danger-color: #dc3545; /* Red for errors/warnings */ --danger-bg: rgba(220, 53, 69, 0.1); --danger-border: rgba(220, 53, 69, 0.2); --cancel-btn-bg: #6c757d; /* Grey for cancel button */ --cancel-btn-hover-bg: #5a6268; --loader-bg-alpha: 0.6; --loader-blur-px: 8px; --header-height: 70px; /* Adjust as needed */ } body { font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-primary); background: var(--bg-light); padding-top: var(--header-height); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; /* Prevent horizontal scrollbars */ } main#appMainContent { flex-grow: 1; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } .hidden { display: none !important; } /* --- Header Styles --- */ #appHeader { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background: var(--bg-main); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 1000; border-bottom: 1px solid var(--border-color); } .header-logo-name { display: flex; align-items: center; } .header-logo-name img { height: 45px; margin-right: 10px; } .header-logo-name .site-name { font-size: 1.6rem; font-weight: 700; } .site-name .tech-part { color: var(--primary-color); } .site-name .bikreta-part { color: var(--secondary-color); } #toggleLangBtn { background: #ffffff; border: 1px solid var(--secondary-color); color: var(--secondary-color); padding: 8px 15px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; transition: var(--transition); } #toggleLangBtn:hover { background: var(--secondary-color); color: #ffffff; } /* --- Footer Styles --- */ #appFooter { width: 100%; background: var(--bg-footer); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 0.9rem; border-top: 1px solid var(--border-color); margin-top: auto; } #appFooter p { margin: 0; line-height: 1.5; } .footer-link { color: var(--text-primary); text-decoration: none; font-weight: 600; transition: var(--transition); } .footer-link:hover { color: var(--secondary-color); text-decoration: underline; } .footer-br { display: block; } @media (min-width: 600px) { .footer-br { display: none; } #appFooter p { display: inline; } } /* --- Loader Styles --- */ .loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, var(--loader-bg-alpha)); backdrop-filter: blur(var(--loader-blur-px)); -webkit-backdrop-filter: blur(var(--loader-blur-px)); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; opacity: 1; transition: opacity 0.3s ease-in-out; } .loader-overlay.hidden { opacity: 0; pointer-events: none; } .loader-dots { display: flex; gap: 10px; } .loader-dots .dot { width: 15px; height: 15px; background-color: var(--secondary-color); border-radius: 50%; animation: jump 1.5s infinite ease-in-out; } .loader-dots .dot:nth-child(1) { animation-delay: 0s; } .loader-dots .dot:nth-child(2) { animation-delay: 0.1s; } .loader-dots .dot:nth-child(3) { animation-delay: 0.2s; } .loader-dots .dot:nth-child(4) { animation-delay: 0.3s; } .loader-dots .dot:nth-child(5) { animation-delay: 0.4s; } @keyframes jump { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-15px); } } .loader-text { margin-top: 20px; font-size: 1.2rem; color: var(--bg-main); font-weight: 600; } /* --- Product Page Styles (#productPage) --- */ #productPage .container { max-width: 1200px; } .product-card { background: var(--bg-main); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 0; transition: var(--transition); } .product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); } .product-images { position: relative; background: var(--tertiary-color); padding: 40px; display: flex; flex-direction: column; align-items: center; } .main-image { width: 100%; max-width: 400px; border-radius: 15px; overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-md); position: relative; aspect-ratio: 1 / 1; } .main-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); } .main-image:hover img { transform: scale(1.05); } .thumbnail-container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .thumbnail { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: var(--transition); opacity: 0.7; aspect-ratio: 1 / 1;} .thumbnail:hover, .thumbnail.active { border-color: var(--secondary-color); opacity: 1; transform: scale(1.05); } .thumbnail img { width: 100%; height: 100%; object-fit: cover; } .product-content { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; } .product-header { margin-bottom: 30px; } .product-title { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .brand-link { color: var(--secondary-color); text-decoration: none; font-weight: 500; font-size: 1.1rem; transition: var(--transition); } .brand-link:hover { color: var(--primary-color); text-decoration: underline; } .pricing { margin-top: 20px; padding: 20px; background: linear-gradient(135deg, var(--tertiary-color), rgba(209, 196, 182, 0.5)); border-radius: 15px; border-left: 5px solid var(--secondary-color); } .old-price { color: var(--text-light); text-decoration: line-through; font-size: 1.1rem; margin-bottom: 5px; } .new-price { font-size: 2rem; font-weight: 700; color: var(--primary-color); } .discount { display: inline-block; background: var(--secondary-color); color: white; padding: 5px 10px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; margin-left: 10px; } /* MODIFIED: Sales and Rating Summary Styles */ .sales-rating-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 15px 20px; margin: 20px 0; background-color: var(--bg-light); border: 1px solid var(--border-orange); border-radius: 12px; } .sold-count { font-size: 1rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; } .rating-summary-stars { display: flex; align-items: center; gap: 10px; } .rating-summary-stars .stars i { color: var(--secondary-color); font-size: 1.2rem; } .rating-summary-stars .rating-text { font-weight: 600; color: var(--text-primary); } .rating-summary-stars .rating-text .review-count-num { font-weight: 500; color: var(--text-light); font-size: 0.9em; margin-left: 5px; } .product-details { margin: 30px 0; } .details-title { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); margin-bottom: 15px; position: relative; } .details-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 50px; height: 3px; background: var(--secondary-color); border-radius: 2px; } .description-wrapper { position: relative; margin-bottom: 20px; } .description-wrapper .description { color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; margin-bottom: 0; transition: max-height 0.4s ease-out; overflow: hidden; } .description-wrapper.collapsed .description { max-height: var(--collapsed-height); } .description-wrapper.collapsed::after { content: ''; position: absolute; bottom: var(--fade-bottom-offset, 30px); left: 0; right: 0; height: 3.5em; background: linear-gradient(to bottom, transparent, var(--bg-main) 90%); pointer-events: none; z-index: 0; } .description-wrapper .read-more-btn { display: none; padding: 6px 12px; background-color: var(--secondary-color); color: white; text-decoration: none; border-radius: 5px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; margin-top: 10px; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; position: relative; z-index: 1; } .description-wrapper.collapsed .read-more-btn { display: block; } .description-wrapper.expanded .description { max-height: 2000px; } /* Ensure this is large enough */ .description-wrapper.expanded .read-more-btn { display: block; } .specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; } .spec-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--bg-light); border-radius: 10px; border: 1px solid var(--border-color); transition: var(--transition); } .spec-item:hover { background: var(--tertiary-color); transform: translateY(-2px); } .spec-label { font-weight: 600; color: var(--text-secondary); } .spec-value { font-weight: 500; color: var(--primary-color); } .spec-item-shipping-details { grid-column: 1 / -1; justify-content: center; } .spec-item-shipping-details .spec-value { font-weight: bold; } .spec-item-shipping-details .spec-value .bdt-amount { font-family: Arial, 'Segoe UI', Tahoma, sans-serif; font-weight: bold; } .purchase-section { margin: 30px 0; padding: 25px; background: var(--bg-light); border-radius: 15px; border: 2px solid var(--tertiary-color); } #productPage .quantity-selector-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; } #productPage .quantity-label { font-weight: 600; color: var(--text-secondary); margin-right: 5px; } #productPage .quantity-controls { display: flex; align-items: center; border: none; border-radius: 8px; overflow: hidden;} #productPage .quantity-btn { background-color: var(--tertiary-color); color: var(--primary-color); border: none; padding: 10px 12px; cursor: pointer; font-size: 1.2rem; line-height: 1; transition: background-color 0.2s; } #productPage .quantity-btn:hover { background-color: var(--secondary-color); color: white; } #productPage .quantity-btn:active { background-color: #b86420; } #productPage .quantity-input { width: 60px; padding: 10px; border: none; border-left: 2px solid var(--border-color); border-right: 2px solid var(--border-color); text-align: center; font-size: 1.1rem; font-weight: 600; -moz-appearance: textfield; background-color: #fff; } #productPage .quantity-input::-webkit-outer-spin-button, #productPage .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } #productPage .quantity-input:focus { outline: none; } .action-buttons { display: flex; gap: 15px; flex-wrap: wrap; } .btn { padding: 15px 30px; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px; text-decoration: none; text-align: center; justify-content: center; min-width: 150px; } #productPage .btn-primary { background: linear-gradient(135deg, var(--secondary-color), #e08d35); color: white; box-shadow: var(--shadow-sm); } #productPage .btn-primary:hover { background: linear-gradient(135deg, #e08d35, var(--secondary-color)); transform: translateY(-2px); box-shadow: var(--shadow-md); } #productPage .btn-primary.out-of-stock { background: var(--danger-color) !important; color: white !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; } #productPage .btn-primary.out-of-stock:hover { background: var(--danger-color) !important; } .social-share { margin-top: 30px; padding-top: 30px; border-top: 2px solid var(--tertiary-color); } .share-title { font-weight: 600; color: var(--text-secondary); margin-bottom: 15px; } .social-links { display: flex; gap: 15px; flex-wrap: wrap; } .social-link { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition); font-size: 1.2rem; } .social-link.facebook { background: #3b5998; } .social-link.twitter { background: #1da1f2; } .social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } .social-link.whatsapp { background: #25d366; } .social-link.pinterest { background: #bd081c; } .social-link:hover { transform: translateY(-3px) scale(1.1); box-shadow: var(--shadow-md); } .status-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); } .status-badge.in-stock { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); } .status-badge.in-stock.bn { background: rgba(16, 185, 129, 0.1); color: #059669; } .status-badge.low-stock { background: var(--danger-bg); color: var(--danger-color); border: 1px solid var(--danger-border); } /* --- ADDED: Reviews Section Styles --- */ #reviewsSection { padding: 40px 0; background-color: var(--bg-main); border-top: 1px solid var(--border-color); margin-top: 20px; } .reviews-main-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 40px; position: relative; } .reviews-main-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--secondary-color); border-radius: 2px; } .review-list { display: flex; flex-direction: column; gap: 25px; } .review-card { background-color: #fff; border: 1px solid var(--border-orange); border-radius: 12px; padding: 25px; box-shadow: var(--shadow-sm); transition: var(--transition); } .review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); } .review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; } .review-author-info { display: flex; flex-direction: column; } .review-author-name { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); } .review-author-location { font-size: 0.9rem; color: var(--text-light); } .review-date { font-size: 0.85rem; color: var(--text-light); font-weight: 500; } .review-ratings { margin-bottom: 15px; display: flex; flex-direction: column; gap: 8px; } .review-ratings i.fa-star { color: var(--secondary-color); } .review-stars-product, .review-stars-delivery { display: flex; align-items: center; gap: 8px; } .review-ratings strong { font-weight: 600; color: var(--text-secondary); min-width: 80px; /* Aligns the labels */ } .review-body p { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); margin: 0; white-space: pre-wrap; /* To respect line breaks in reviews */ } .no-reviews-message { text-align: center; font-size: 1.1rem; color: var(--text-light); padding: 40px 20px; background-color: var(--bg-light); border: 1px dashed var(--border-color); border-radius: 12px; } /* --- Order Page Styles (#orderPage) --- */ #orderPage .container { max-width: 550px; padding: 40px 20px; } #orderPage .card { background: #ffffff; border: 1px solid var(--border-orange); border-radius: 16px; padding: 40px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(80, 60, 40, 0.08); transition: var(--transition); overflow: hidden; } #orderPage .card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(80, 60, 40, 0.12); } #orderPage .section-title { font-size: 28px; font-weight: 700; color: #8c5a1f; margin-bottom: 35px; text-align: center; border-bottom: 2px solid var(--secondary-color); padding-bottom: 15px; display: inline-block; width: auto; } #orderPage .section-title-container { text-align: center; margin-bottom: 35px; } #orderPage .warning-note { color: var(--danger-color); background-color: var(--danger-bg); border: 1px solid var(--danger-border); padding: 15px; margin-bottom: 25px; border-radius: 8px; font-size: 14px; font-weight: 500; text-align: center; } #orderPage .form-group { margin-bottom: 25px; } #orderPage .form-label { display: block; margin-bottom: 10px; font-weight: 700; color: #8c5a1f; font-size: 15px; } #orderPage .form-input { width: 100%; padding: 15px 18px; border: 1px solid #e6b78a; border-radius: 8px; background: #ffffff; font-size: 16px; color: #5a4a3e; transition: var(--transition); box-shadow: inset 0 1px 3px rgba(0,0,0,0.03); } #orderPage .form-input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(214, 126, 39, 0.15); } #orderPage .form-input::placeholder { color: #b5a69a; } #orderPage .form-input[readonly] { background-color: #f9f5f0; cursor: not-allowed; color: #a09080; } #orderPage .form-input:disabled, #orderPage select:disabled, #orderPage textarea:disabled { background-color: #f3f3f3 !important; cursor: not-allowed !important; opacity: 0.6 !important; border-color: #e0e0e0 !important; } #orderPage .checkbox-input:disabled + .checkbox-label { color: #a0a0a0 !important; cursor: not-allowed !important; } #orderPage .checkbox-input:disabled { cursor: not-allowed !important; accent-color: #cccccc !important; } #orderPage .btn:disabled, #orderPage button:disabled, #orderPage .btn.otp-button-disabled { background: #cccccc !important; background-image: none !important; color: #666666 !important; cursor: not-allowed !important; opacity: 0.7 !important; box-shadow: none !important; transform: none !important; border: 1px solid #b0b0b0 !important; } #orderPage .order-actions { display: flex; gap: 15px; justify-content: space-between; margin-top: 20px;} #orderPage .btn { padding: 16px 20px; border-radius: 8px; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); min-width: auto; flex-grow: 1; } #orderPage .btn-primary { background: linear-gradient(135deg, #e08a38 0%, #d67e27 100%); color: white; border: 1px solid #b86420; } #orderPage .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #d67e27 0%, #b86420 100%); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(214, 126, 39, 0.3); } #orderPage .btn-primary.otp-button-disabled { background: #cccccc !important; color: #666666 !important; cursor: not-allowed !important; opacity: 0.7 !important; pointer-events: none !important; border: 1px solid #b0b0b0 !important; } #orderPage .btn-primary.otp-button-disabled:hover { background: #cccccc !important; transform: none !important; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important; } #orderPage .btn-cancel { background: var(--cancel-btn-bg); color: white; border: 1px solid #545b62; } #orderPage .btn-cancel:hover:not(:disabled) { background: var(--cancel-btn-hover-bg); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } #orderPage #otpSection { /* display: none; Removed direct display:none here, JS will control it via style.display */ margin-top: 20px; padding: 25px; background: #fff8f0; border: 1px solid var(--border-orange); border-radius: 12px; text-align: center; } #orderPage #otpSection.show { /* This class is added by JS to show with animation */ display: block !important; /* Ensure it overrides inline style if JS sets display:none */ animation: slideDown 0.4s ease-out; } @keyframes slideDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } } #orderPage #otpSection .otp-success-message { background: #fdf0e6; border-color: #ffcba3; color: #b86420; padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; border: 1px solid #ffcba3; } #orderPage #otpSection .form-label { margin-bottom: 8px; font-weight: 600; color: #8c5a1f; } #orderPage .otp-input { text-align: center; font-size: 28px; letter-spacing: 12px; font-weight: bold; padding: 15px; font-family: 'Courier New', Courier, monospace; margin-bottom: 15px; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } } #orderPage .order-summary { background: #fff8f0; border: 1px solid var(--border-orange); border-radius: 12px; padding: 25px; margin-bottom: 30px; } #orderPage .summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 400; font-size: 16px; color: #5a4a3e; } #orderPage .summary-row span:first-child { color: #a09080; } #orderPage .summary-row span:last-child { font-weight: 700; } #orderPage .summary-row.total-row { font-weight: 700; font-size: 20px; color: var(--secondary-color); border-top: 1px solid var(--border-orange); padding-top: 15px; margin-bottom: 0; } #orderPage .checkbox-group { display: flex; align-items: flex-start; gap: 15px; margin: 30px 0; padding: 20px; background: #fff8f0; border: 1px solid var(--border-orange); border-radius: 8px; } #orderPage .checkbox-input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--secondary-color); cursor: pointer; } #orderPage .checkbox-label { font-size: 14px; line-height: 1.6; color: #5a4a3e; cursor: pointer; } #orderPage .success-message { background: #f0f5e6; border: 1px solid #c1d9a3; color: #4a661e; padding: 25px; border-radius: 12px; text-align: center; margin-bottom: 20px; font-weight: 500; } #orderPage .success-message h3 { margin-bottom: 10px; font-size: 22px; } #orderPage .success-message p { font-size: 16px; line-height: 1.5; } #orderPage .payment-method-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-orange); } #orderPage .payment-method-row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #5a4a3e; } #orderPage .payment-method-row span:first-child { color: #a09080; font-weight: 400; } #orderPage .payment-method-value { display: flex; align-items: center; font-weight: 700; } #orderPage .payment-method-value input[type="radio"] { width: 18px; height: 18px; accent-color: var(--secondary-color); margin-right: 8px; cursor: not-allowed; } /* --- Custom Alert Box Styles --- */ .custom-alert-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .custom-alert-overlay:not(.hidden) { opacity: 1; pointer-events: all; } .custom-alert-box { background: var(--bg-order); color: var(--text-primary); padding: 40px 30px 30px 30px; border-radius: 16px; box-shadow: var(--shadow-lg); text-align: center; width: 90%; max-width: 450px; /* Slightly wider for confirmation details */ transform: scale(0.9); transition: transform 0.3s ease; border: 2px solid var(--border-orange); } .custom-alert-overlay:not(.hidden) .custom-alert-box { transform: scale(1); } #customAlertMessage { font-size: 18px; line-height: 1.6; margin-bottom: 30px; color: #5a4a3e; font-weight: 500; } /* Styles for confirmation popup details */ #customAlertMessage .confirmation-popup-details { text-align: left; font-size: 15px; /* Adjusted for better fit */ line-height: 1.7; max-height: 60vh; /* Limit height for scrollability */ overflow-y: auto; /* Add scroll if content overflows */ padding-right: 10px; /* Space for scrollbar */ } #customAlertMessage .confirmation-popup-details p { margin-bottom: 8px; word-break: break-word; /* Ensure long addresses break */ } #customAlertMessage .confirmation-popup-details p strong { color: var(--secondary-color); margin-right: 5px; display: inline-block; /* Ensures consistent alignment */ min-width: 100px; /* Adjust as needed for label alignment */ } #customAlertMessage .confirmation-popup-details p.total-bill-popup strong{ color: var(--primary-color); /* Emphasize total bill */ font-size: 1.1em; } #customAlertMessage .confirmation-popup-details hr.popup-divider { margin: 12px 0; border: none; border-top: 1px solid var(--border-orange); } .custom-alert-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; } .custom-alert-buttons .btn { padding: 10px 25px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); } .custom-alert-buttons .btn-primary { background: var(--secondary-color); color: white; border: 1px solid #b86420; } .custom-alert-buttons .btn-primary:hover { background: #b86420; transform: translateY(-2px); box-shadow: var(--shadow-md); } .custom-alert-buttons .btn-cancel { background: var(--cancel-btn-bg); color: white; border: 1px solid #545b62; } .custom-alert-buttons .btn-cancel:hover { background: #5a6268; transform: translateY(-2px); box-shadow: var(--shadow-md); } /* --- Responsive Styles --- */ @media (max-width: 768px) { .product-card { grid-template-columns: 1fr; } .product-title { font-size: 2rem; } .new-price { font-size: 1.5rem; } .specs { grid-template-columns: 1fr; } .action-buttons { flex-direction: column; } #productPage .btn { width: 100%; justify-content: center; } #productPage .quantity-selector-wrapper { flex-direction: column; align-items: flex-start; gap: 8px;} #productPage .quantity-controls { width: auto; } #orderPage .order-actions { flex-direction: column; } .header-logo-name .site-name { font-size: 1.3rem; } .header-logo-name img { height: 35px; } #appHeader { padding: 0 15px; } #orderPage #sendOtpActualBtn, #orderPage #otpSection button { width: 100%; } .custom-alert-box { max-width: 90%; padding: 30px 20px 20px 20px;} #customAlertMessage .confirmation-popup-details p strong { min-width: 80px; } } @media (max-width: 480px) { .product-title { font-size: 1.5rem; } #orderPage .section-title { font-size: 22px; } .header-logo-name .site-name { font-size: 1.1rem; } .header-logo-name img { height: 30px; margin-right: 5px;} #toggleLangBtn { padding: 6px 10px; font-size: 12px; } #appHeader { padding: 0 10px; } #appFooter { font-size: 0.8rem; } #orderPage .card { padding: 25px; } #orderPage #otpSection { padding: 20px; } #orderPage .otp-input { font-size: 24px; letter-spacing: 8px; padding: 12px; } .custom-alert-box { padding: 25px 15px 15px 15px;} #customAlertMessage { font-size: 16px; margin-bottom: 20px;} #customAlertMessage .confirmation-popup-details { font-size: 14px;} #customAlertMessage .confirmation-popup-details p strong { min-width: auto; display: block; margin-bottom: 2px;} /* Stack labels on very small screens */ .custom-alert-buttons .btn { padding: 10px 15px; font-size: 14px; } .sales-rating-summary { flex-direction: column; align-items: flex-start; } } /* --- Scroll to Top Button --- */ #scrollToTopBtn { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background-color: var(--secondary-color); color: white; border: none; border-radius: 8px; box-shadow: var(--shadow-md); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 1010; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; } #scrollToTopBtn:hover { background-color: #b86420; transform: translateY(-2px); } #scrollToTopBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); } /* --- WhatsApp Sticky Button & Help Message --- */ .sticky-whatsapp-container { position: fixed; bottom: 30px; left: 30px; z-index: 1010; display: flex; align-items: center; } #whatsappStickyBtn { width: 50px; height: 50px; background-color: #25D366; color: white; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; text-decoration: none; transition: transform 0.3s ease; position: relative; } #whatsappStickyBtn:hover { transform: scale(1.1); } #whatsappStickyBtn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; background-color: #25D366; border-radius: 50%; z-index: -1; opacity: 0.7; animation: pulseGlow 2s infinite ease-out; } @keyframes pulseGlow { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; } } .whatsapp-help-message { margin-left: 12px; background-color: #ffffff; color: #333333; padding: 8px 12px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); white-space: nowrap; font-size: 0.85rem; font-weight: 500; opacity: 0; transform: translateX(-20px) scaleX(0.8); transform-origin: left center; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out; pointer-events: none; } .whatsapp-help-message.visible { opacity: 1; transform: translateX(0) scaleX(1); } /* Add these styles to your existing index.css file */ /* Style for the link to switch verification methods */ #orderPage .verification-toggle-link { text-align: center; margin-bottom: 20px; font-size: 14px; } #orderPage .verification-toggle-link a { color: var(--secondary-color); text-decoration: underline; cursor: pointer; font-weight: 600; } #orderPage .verification-toggle-link a:hover { color: var(--primary-color); } /* Optional: a class to visually indicate an optional field */ #orderPage .form-label.optional-label::after { content: ' (Optional)'; font-weight: 400; color: var(--text-light); font-size: 0.9em; margin-left: 5px; } /* Visually hidden class for screen reader-only text */ .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } /* --- AI Chat Widget Styles --- */ .chat-widget-container { position: fixed; bottom: 30px; left: 30px; z-index: 1020; display: flex; flex-direction: column; align-items: center; } .main-fab { background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); cursor: pointer; transition: all 0.3s ease; position: relative; z-index: 2; } .main-fab:hover { transform: scale(1.1); background-color: #128C7E; } .main-fab .main-icon, .main-fab .close-icon { transition: transform 0.3s ease, opacity 0.3s ease; position: absolute; } .main-fab .close-icon { transform: scale(0); opacity: 0; } .chat-widget-container.open .main-fab { transform: rotate(360deg); background-color: #dc3545; } .chat-widget-container.open .main-fab .main-icon { transform: scale(0); opacity: 0; } .chat-widget-container.open .main-fab .close-icon { transform: scale(1); opacity: 1; } .live-dot { position: absolute; top: 5px; right: 5px; width: 12px; height: 12px; background-color: #00ff00; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 5px #00ff00; } .fab-options { position: absolute; bottom: 75px; left: 5px; display: flex; flex-direction: column; gap: 15px; transition: all 0.3s ease; opacity: 0; transform: translateY(20px); pointer-events: none; } .chat-widget-container.open .fab-options { opacity: 1; transform: translateY(0); pointer-events: all; } .fab-option { width: 50px; height: 50px; border-radius: 50%; border: none; color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); cursor: pointer; transition: all 0.3s ease; text-decoration: none; } .fab-option:hover { transform: scale(1.1) rotate(15deg); } .whatsapp-fab { background-color: #25D366; } .ai-fab { background: linear-gradient(45deg, #d67e27, #e08d35); font-weight: bold; font-size: 20px; } /* AI Chat Box */ .ai-chat-box { position: fixed; bottom: 100px; left: 30px; width: 350px; max-width: calc(100vw - 60px); height: 4500px; max-height: calc(100vh - 120px); background-color: #f0f2f5; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom left; transition: transform 0.3s ease, opacity 0.3s ease; transform: scale(0); opacity: 0; z-index: 1010; } .ai-chat-box:not(.hidden) { transform: scale(1); opacity: 1; } .chat-header { background: #cc914e; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-top-left-radius: 15px; border-top-right-radius: 15px; } .chat-header-info { display: flex; align-items: center; gap: 10px; } .chat-header .ai-pfp { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; } .chat-title { font-weight: 700; font-size: 1.1rem; } .ai-status { font-size: 0.8rem; opacity: 0.9; } .close-chat-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; } .close-chat-btn:hover { opacity: 1; } .chat-messages { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; } .chat-message { display: flex; align-items: flex-end; gap: 10px; max-width: 85%; } .message-bubble { padding: 10px 15px; border-radius: 18px; line-height: 1.5; font-size: 0.95rem; } .message-time { font-size: 0.7rem; color: #999; margin-top: 5px; text-align: right; } /* User Message */ .user-message { align-self: flex-end; flex-direction: row-reverse; } .user-message .message-bubble { background-color: #dcf8c6; color: #333; border-bottom-right-radius: 4px; } .user-message .pfp { background-color: #ccc; } /* AI Message */ .ai-message { align-self: flex-start; } .ai-message .message-bubble { background-color: #fff; color: #333; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); } .pfp { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; } .pfp img { width: 100%; height: 100%; object-fit: cover; } .pfp.default-user-pfp { background-color: #b3e5fc; color: #01579b; font-weight: bold; } /* Typing Indicator */ .typing-indicator .message-bubble { display: flex; gap: 5px; align-items: center; padding: 12px 15px; } .typing-dot { width: 8px; height: 8px; background-color: #888; border-radius: 50%; animation: typing-pulse 1.4s infinite ease-in-out; } .typing-dot:nth-child(1) { animation-delay: 0s; } .typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; } @keyframes typing-pulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } } /* Chat Input Area */ .chat-input-area { display: flex; padding: 15px; border-top: 1px solid #ddd; background-color: #fff; } .chat-input { flex-grow: 1; border: 1px solid #ccc; border-radius: 20px; padding: 10px 15px; font-size: 1rem; outline: none; transition: border-color 0.2s; } .chat-input:focus { border-color: var(--secondary-color); } .send-chat-btn { background-color: var(--secondary-color); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; margin-left: 10px; font-size: 1.1rem; cursor: pointer; transition: background-color 0.2s; flex-shrink: 0; } .send-chat-btn:hover { background-color: #b86420; } .ai-bot { height: 20px; width: 20px; } @media (max-width: 480px) { .ai-chat-box { left: 15px; bottom: 90px; width: calc(100vw - 30px); height: calc(100vh - 110px); } .chat-widget-container { bottom: 20px; left: 20px; } } /* --- New Animations --- */ @keyframes green-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } } @keyframes text-roll-in { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes text-roll-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-100%); opacity: 0; } } /* --- Chat Widget Modifications --- */ /* Adjust main container layout */ #chat-widget-container { flex-direction: column; /* Revert to column for layout */ align-items: flex-start; /* Align items to the left */ } /* Wrapper for main FAB and its text */ .main-fab-wrapper { display: flex; align-items: center; gap: 15px; } /* Add pulse animation to the main button */ .main-fab { animation: green-pulse 2s infinite; flex-shrink: 0; /* Prevent button from shrinking */ } /* Stop pulse and rotate when menu is open */ .chat-widget-container.open .main-fab { animation: none; transform: rotate(360deg); } /* Container for the rolling text */ .main-fab-text-container { background-color: white; color: var(--text-secondary); padding: 10px 20px; border-radius: 25px; font-weight: 600; box-shadow: var(--shadow-sm); overflow: hidden; display: none; /* Initially hidden, controlled by JS */ } .main-fab-text-container span { display: inline-block; animation-duration: 0.4s; animation-fill-mode: forwards; } .main-fab-text-container span.rolling-in { animation-name: text-roll-in; } .main-fab-text-container span.rolling-out { animation-name: text-roll-out; } /* Reposition FAB options to appear above main FAB */ .fab-options { bottom: 75px; left: 5px; /* Relative to the container */ } /* Wrapper for the option buttons and their sliding labels */ .fab-option-with-label { display: flex; align-items: center; gap: 15px; } /* The sliding label style */ .fab-label { background-color: white; color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-sm); white-space: nowrap; transform-origin: left; /* Animate from the left edge */ transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; transform: scaleX(0); opacity: 0; } /* Show the label when the menu is open */ .chat-widget-container.open .fab-label { transform: scaleX(1); opacity: 1; } /* Adjust chat box position */ .ai-chat-box { bottom: 30px; left: 100px; /* Position it to the right of the main FAB */ } @media (max-width: 480px) { .ai-chat-box { left: 15px; bottom: 90px; width: calc(100vw - 30px); } .main-fab-text-container { display: none !important; /* Hide rolling text on small screens */ } }