body { margin: 0; padding: 0; width: 100vw; height: 100vh; overflow: hidden; font-family: 'Segoe UI', 'Arial', sans-serif; } #market-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; background: rgba(18, 19, 28, 0.92); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border-radius: 18px; box-shadow: 0 0 40px 0 #000a; } #market-header { width: 100%; display: flex; justify-content: space-between; align-items: center; background: transparent; padding: 24px 48px 10px 48px; box-sizing: border-box; border-bottom: none; box-shadow: none; } #market-header h1 { margin: 0; font-size: 2.1rem; font-weight: 800; color: #ffcb52; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 8px #0008; } #market-header h1::before { content: '\1F6D2'; font-size: 2rem; margin-right: 8px; } #close-btn { background: #e74c3c; color: #fff; border: none; font-size: 1.1rem; padding: 7px 16px; border-radius: 7px; cursor: pointer; transition: background 0.15s; font-weight: 600; box-shadow: 0 2px 8px 0 #e74c3c33; } #close-btn:hover { background: #c0392b; } #category-bar { width: 90%; margin: 0 auto 18px auto; display: flex; justify-content: flex-start; gap: 16px; padding: 0 0 8px 0; } .category-btn { background: #23243a; color: #fff; border: none; border-radius: 10px; padding: 10px 22px; font-size: 1.08rem; font-weight: 600; box-shadow: 0 2px 8px 0 #0005; transition: background 0.13s, color 0.13s; display: flex; align-items: center; gap: 8px; outline: none; border: 2px solid transparent; } .category-btn.active, .category-btn:hover { background: #ffcb52; color: #23243a; border: 2px solid #ffcb52; } #market-content { display: flex; width: 92vw; height: 60vh; margin-top: 0; gap: 32px; align-items: flex-start; justify-content: center; } #item-list { flex: 2; background: transparent; border-radius: 0; padding: 0 0 0 0; overflow-y: auto; overflow-x: hidden; overflow: visible; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; box-shadow: none; border: none; min-width: 0; align-content: start; } #item-list::-webkit-scrollbar { width: 10px; background: #23243a; border-radius: 8px; } #item-list::-webkit-scrollbar-thumb { background: #181926; border-radius: 8px; box-shadow: 0 2px 8px 0 #0005; } .item { background: rgba(30, 32, 48, 0.98); border-radius: 18px; padding: 18px 18px 16px 18px; min-width: 180px; max-width: 180px; min-height: 260px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 24px 0 #0007; border: 1.5px solid #23243a; transition: transform 0.14s, box-shadow 0.14s, border 0.14s; position: relative; gap: 8px; } .item:hover { transform: scale(1.06); box-shadow: 0 12px 32px 0 #ffcb5233; border: 1.5px solid #ffcb52; z-index: 20; } .item-img { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; background: #23243a; border: 1.5px solid #23243a; box-shadow: 0 2px 8px 0 #0005; margin-bottom: 8px; } .item-info { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; } .item-label { font-size: 1.08rem; margin-bottom: 2px; font-weight: 700; color: #ffcb52; text-align: center; letter-spacing: 0.2px; text-shadow: 0 2px 8px #0008; } .item-price { color: #7fff7f; margin-bottom: 8px; font-size: 1.05rem; font-weight: 600; text-align: center; text-shadow: 0 2px 8px #0008; } .add-btn { background: linear-gradient(90deg, #23243a 0%, #ffcb52 100%); color: #23243a; border: none; padding: 10px 22px; border-radius: 20px; cursor: pointer; font-size: 1.08rem; font-weight: 700; box-shadow: 0 2px 8px 0 #ffcb5233; transition: background 0.12s, color 0.12s, transform 0.10s; margin-top: 8px; width: 100%; max-width: 140px; } .add-btn:hover { background: linear-gradient(90deg, #ffcb52 0%, #23243a 100%); color: #fff; transform: scale(1.07); } #basket { background: rgba(30, 32, 48, 0.98); border-radius: 18px; box-shadow: 0 4px 24px 0 #0007; padding: 18px 18px 18px 18px; min-width: 270px; border: 1.5px solid #23243a; display: flex; flex-direction: column; align-items: flex-start; height: fit-content; position: sticky; top: 30px; } #basket h2 { margin-top: 0; font-size: 1.15rem; font-weight: 800; color: #ffcb52; letter-spacing: 0.3px; display: flex; align-items: center; gap: 8px; text-shadow: 0 2px 8px #0008; } #basket h2::before { content: '\1F6D2'; font-size: 1.1rem; margin-right: 6px; } #basket-list { list-style: none; padding: 0; width: 100%; margin-bottom: 20px; } .basket-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .basket-label { flex: 2; } .basket-count { flex: 1; text-align: center; } .remove-btn { background: #c0392b; color: #fff; border: none; padding: 4px 10px; border-radius: 5px; cursor: pointer; font-size: 0.9rem; } .basket-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; margin-right: 10px; vertical-align: middle; background: #23243a; border: 1px solid #23243a; box-shadow: 0 1px 4px 0 #0005; } #basket-total { font-size: 1.2rem; margin-bottom: 20px; } #pay-buttons button { margin-right: 10px; padding: 10px 22px; font-size: 1.05rem; border: none; border-radius: 20px; cursor: pointer; font-weight: 700; box-shadow: 0 2px 8px 0 #ffcb5233; transition: background 0.12s, color 0.12s, transform 0.10s; } #pay-cash { background: #7fff7f; color: #23243a; } #pay-cash:hover { background: #ffcb52; color: #23243a; transform: scale(1.07); } #pay-bank { background: #2980b9; color: #fff; } #pay-bank:hover { background: #ffcb52; color: #23243a; transform: scale(1.07); } #bottom-bar { width: 90%; margin: 24px auto 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(30, 32, 48, 0.98); border-radius: 14px; box-shadow: 0 2px 16px 0 #0007; padding: 16px 32px; border: 1.5px solid #23243a; } .balance-group { display: flex; gap: 16px; } .balance-box { background: #181926; color: #7fff7f; border-radius: 8px; padding: 8px 18px; font-size: 1.08rem; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px 0 #7fff7f22; } #search-bar { background: #23243a; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-size: 1.08rem; font-weight: 500; outline: none; width: 260px; box-shadow: 0 2px 8px 0 #0005; transition: background 0.13s, color 0.13s; } #search-bar:focus { background: #181926; color: #ffcb52; }