/* ui/style.css */ @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap'); body { font-family: 'Cairo', sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: rgba(0, 0, 0, 0); /* Transparent for FiveM NUI */ overflow: hidden; /* Hide scrollbars */ } .shop-container { width: 95vw; /* Adjust width as needed */ height: 90vh; /* Adjust height as needed */ background-color: #1a1a1d; /* Dark background */ border-radius: 12px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; color: #f0f0f0; border: 1px solid #333; } /* Header */ .shop-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #2e2e2e; } .shop-header .user-info { display: flex; align-items: center; gap: 15px; width: 250px; /* Adjust as needed */ } .shop-header .user-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #5a3d99; /* Purple border */ object-fit: cover; } .shop-header .user-details p { margin: 0; font-size: 15px; color: #bbb; } .shop-header .user-details span { font-weight: bold; color: #f0f0f0; } .shop-header .header-center h1 { margin: 0; font-size: 28px; color: #e0e0e0; font-weight: 700; text-align: center; flex-grow: 1; } .shop-header .header-right { display: flex; align-items: center; gap: 20px; } .search-bar { position: relative; display: flex; align-items: center; } .search-bar input { background-color: #2a2a2e; border: 1px solid #444; border-radius: 20px; padding: 8px 15px; padding-left: 40px; /* Make space for icon */ color: #f0f0f0; font-size: 14px; width: 250px; outline: none; transition: border-color 0.2s; } .search-bar input::placeholder { color: #888; } .search-bar input:focus { border-color: #6a4b9c; } .search-icon { position: absolute; right: auto; /* Adjust for RTL */ left: 15px; /* Icon on the left for RTL */ color: #888; font-size: 16px; } .close-btn { background-color: #f44336; /* Red */ border: none; border-radius: 50%; width: 40px; height: 40px; color: white; font-size: 20px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background-color 0.2s; flex-shrink: 0; } .close-btn:hover { background-color: #da3328; } /* Shop Controls (Sorting) */ .shop-controls { display: flex; justify-content: flex-start; /* Aligned left for RTL */ align-items: center; margin-bottom: 25px; gap: 20px; } .sort-dropdown label { font-size: 15px; color: #bbb; margin-left: 10px; /* Space between label and select */ } .sort-dropdown select { background-color: #2a2a2e; border: 1px solid #444; border-radius: 8px; padding: 8px 12px; color: #f0f0f0; font-size: 14px; outline: none; cursor: pointer; appearance: none; /* Hide default arrow */ -webkit-appearance: none; -moz-appearance: none; background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M6%208L0%200H12L6%208Z%22%20fill%3D%22%23F0F0F0%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */ background-repeat: no-repeat; background-position: left 10px center; /* Position for RTL */ padding-right: 30px; /* Space for custom arrow */ } /* Car Grid */ .car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Responsive grid */ gap: 25px; overflow-y: auto; /* Scroll for car items */ padding-right: 15px; /* Space for scrollbar */ } .car-grid::-webkit-scrollbar { width: 8px; } .car-grid::-webkit-scrollbar-track { background: #2a2a2a; border-radius: 10px; } .car-grid::-webkit-scrollbar-thumb { background: #5a3d99; border-radius: 10px; } .car-grid::-webkit-scrollbar-thumb:hover { background: #4a2d8a; } .car-item { background-color: #2a2a2e; border-radius: 10px; padding: 15px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #333; position: relative; } .car-item:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px #6a4b9c; /* Highlight on hover */ } .car-image { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; border: 1px solid #444; } .car-name { font-size: 18px; font-weight: bold; margin-bottom: 5px; color: #e0e0e0; text-align: center; } .car-year { font-size: 14px; color: #bbb; margin-bottom: 10px; } .car-price { font-size: 18px; font-weight: 700; color: #4CAF50; /* Green for price */ margin-bottom: 15px; } .buy-btn { background-color: #5a3d99; /* Purple */ color: white; border: none; border-radius: 8px; padding: 10px 20px; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background-color 0.2s, transform 0.1s; width: calc(100% - 30px); /* Adjust for padding */ justify-content: center; } .buy-btn:hover { background-color: #4a2d8a; transform: translateY(-2px); } .buy-btn:active { transform: translateY(0); } .buy-btn i { font-size: 18px; } /* Purchase Feedback */ .purchase-feedback { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.8); color: white; padding: 12px 25px; border-radius: 8px; font-size: 16px; text-align: center; z-index: 1000; min-width: 300px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); border: 1px solid #444; } .purchase-feedback #feedback-message { margin: 0; }