/* Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: rgba(0, 0, 0, 0); } html, body { color: #fff; background: rgba(0, 0, 0, 0); } /* Shop Container */ .shop-container { width: 380px; background: rgb(20, 20, 20); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 25px rgba(255, 0, 0, 0.3); border: 1px solid rgba(255, 0, 0, 0.3); display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } /* Shop Header */ .shop-header { background: rgba(255, 0, 0, 0.7); text-shadow: 0 0 10px rgba(255, 0, 0, 0.9); border-bottom: 1px solid rgba(255, 0, 0, 0.5); padding: 12px 16px; position: relative; } .shop-header h1 { font-size: 20px; font-weight: 600; letter-spacing: 0.5px; } .balance-display { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 500; } /* Content Area */ .content-area { position: relative; height: 400px; overflow: hidden; } /* Product List */ .product-list { padding: 12px; height: 100%; overflow-y: auto; transition: opacity 0.3s ease, transform 0.3s ease; } .product-list.hidden { opacity: 0; transform: translateX(-20px); pointer-events: none; } .product-card { display: flex; background: rgba(255, 255, 255, 0.03); border-radius: 6px; margin-bottom: 10px; border: 1px solid rgba(255, 0, 0, 0.2); transition: all 0.2s; overflow: hidden; opacity: 0; transform: translateY(20px); } .product-card:hover { background: rgba(255, 0, 0, 0.1); transform: translateY(-2px); box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2); } .product-image { width: 60px; height: 60px; background-size: cover; background-position: center; border-right: 1px solid rgba(255, 0, 0, 0.2); } .product-info { flex: 1; padding: 12px; } .product-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: #f8f8f8; } .product-price { color: #ff073a; font-size: 13px; font-weight: 500; margin-bottom: 8px; text-shadow: 0 0 5px rgba(255, 7, 58, 0.7); } .quantity-control { display: flex; align-items: center; gap: 5px; } .quantity-btn { width: 24px; height: 24px; background: rgba(255, 0, 0, 0.2); border: none; color: #fff; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .quantity-btn:hover { background: rgba(255, 0, 0, 0.4); } .quantity-input { width: 36px; text-align: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 0, 0, 0.3); color: #fff; border-radius: 4px; padding: 2px; -moz-appearance: textfield; } .quantity-input::-webkit-outer-spin-button, .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .add-to-cart-btn { background: rgba(255, 0, 0, 0.7); color: white; border: none; padding: 0 14px; font-size: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; } .add-to-cart-btn:hover { background: rgba(255, 0, 0, 0.9); box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); } /* Cart UI */ .cart-ui { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 12px; overflow-y: auto; opacity: 0; transform: translateX(20px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; } .cart-ui.active { opacity: 1; transform: translateX(0); pointer-events: all; } .cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 0, 0, 0.3); } .cart-header h1 { font-size: 20px; font-weight: 600; letter-spacing: 0.5px; } .close-button { background: none; border: none; color: white; font-size: 22px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; } .close-button:hover { opacity: 1; background: rgba(255, 0, 0, 0.2); } .cart-items { max-height: 300px; overflow-y: auto; margin-bottom: 12px; } .empty-cart-message { text-align: center; padding: 30px 0; color: rgba(255, 255, 255, 0.3); font-size: 14px; } .cart-item { display: flex; background: rgba(255, 255, 255, 0.03); border-radius: 6px; padding: 10px; margin-bottom: 8px; align-items: center; border: 1px solid rgba(255, 0, 0, 0.2); opacity: 0; transform: translateX(20px); } .cart-item-image { width: 40px; height: 40px; background-size: cover; background-position: center; border-radius: 4px; margin-right: 10px; } .cart-item-details { flex: 1; padding-right: 10px; } .cart-item-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; } .cart-item-price { color: #ff073a; font-size: 12px; font-weight: 500; text-shadow: 0 0 3px rgba(255, 7, 58, 0.7); } .cart-item-quantity { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-right: 10px; } .cart-item-remove { background: none; border: none; color: #ff073a; width: 24px; height: 24px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; } .cart-item-remove:hover { background: rgba(255, 0, 0, 0.1); } .cart-summary { padding: 12px 0; border-top: 1px solid rgba(255, 0, 0, 0.3); } .total-section { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 16px; font-weight: 500; } .total-amount { color: #ff073a; text-shadow: 0 0 5px rgba(255, 7, 58, 0.7); } .checkout-button { width: 100%; background: rgba(255, 0, 0, 0.7); color: white; border: none; padding: 10px; border-radius: 4px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; } .checkout-button:hover { background: rgba(255, 0, 0, 0.9); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); } /* Cart Button */ .cart-button-container { padding: 12px; border-top: 1px solid rgba(255, 0, 0, 0.3); display: flex; justify-content: flex-end; } .cart-button { background: rgba(255, 0, 0, 0.7); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; position: relative; transition: all 0.2s; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); } .cart-button:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 0, 0, 0.5); } .item-count { position: absolute; top: -3px; right: -3px; background: #fff; color: #ff073a; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); } /* Notification */ .notification { position: fixed; top: 20px; right: -400px; width: 300px; background: rgba(255, 255, 255, 0.03); border-radius: 6px; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2); overflow: hidden; border-left: 4px solid #ff073a; transition: right 0.3s ease; z-index: 1000; backdrop-filter: blur(5px); } .notification.show { right: 20px; } .notification-content { padding: 14px; position: relative; } .notification-content h3 { font-size: 15px; margin-bottom: 4px; color: #ff073a; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 5px rgba(255, 7, 58, 0.7); } .notification-content p { font-size: 13px; color: rgba(255, 255, 255, 0.8); padding-left: 24px; } .notification-progress { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: #ff073a; animation: progress 3s linear forwards; box-shadow: 0 0 5px rgba(255, 7, 58, 0.7); } /* Animation Keyframes */ @keyframes progress { from { width: 100%; } to { width: 0%; } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); } 20%, 40%, 60%, 80% { transform: translateX(5px); } } @keyframes bounceIn { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } } @keyframes checkmark { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } } /* Animation Classes */ .fa-spinner.fa-spin { animation: spin 0.8s linear infinite; } .pulse-effect { animation: pulse 1.5s ease-in-out infinite; } .fade-in { animation: fadeIn 0.5s ease-out forwards; } .shake-effect { animation: shake 0.5s ease-in-out; } .bounce-in { animation: bounceIn 0.4s ease-out forwards; } .checkmark { animation: checkmark 0.5s ease-out forwards; } /* Scrollbar */ ::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); } ::-webkit-scrollbar-thumb { background: rgba(255, 0, 0, 0.3); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 0, 0, 0.5); }