/* Modern Blackmarket Style */ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; background: transparent !important; color: #ffffff; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 100vh; } .hidden { display: none !important; } #blackmarket-container { width: 90%; max-width: 1400px; height: 85vh; background: linear-gradient(145deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%) !important; border-radius: 0 !important; /* Hård kant behålls för huvudcontainern */ backdrop-filter: blur(20px); border: none !important; display: flex; flex-direction: column; overflow: hidden; box-shadow: none !important; } .blackmarket-header { display: flex; justify-content: flex-start; align-items: center; padding: 1.2rem 2rem; background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-shrink: 0; border-radius: 8px 8px 0 0; /* Rundade hörn längst upp */ } .logo-container { display: flex; align-items: center; margin-right: 15px; } .market-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; /* Rundade hörn för logotypen */ } .blackmarket-header h1 { font-size: 1.8rem; font-weight: 600; color: #ffffff; letter-spacing: 1px; } .close-btn { background: rgba(255, 255, 255, 0.1); border: none; width: 35px; height: 35px; border-radius: 6px !important; /* Rundade hörn för stängningsknappen */ color: #ffffff; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(10px); margin-left: auto; } .close-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); } .blackmarket-content { flex: 1; padding: 2rem 2rem 1.5rem; overflow: hidden; display: flex; flex-direction: column; min-height: 0; } .top-section { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; margin-top: 1rem; flex-shrink: 0; } .search-container { width: 100%; } #search-input { width: 100%; padding: 0.8rem 1.2rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px !important; /* Rundade hörn för sökrutan */ color: white; font-size: 0.9rem; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; } #search-input:focus { outline: none; border-color: #6366f1; background: rgba(255, 255, 255, 0.08); } #search-input::placeholder { color: rgba(255, 255, 255, 0.5); } .categories { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; } .category-btn { padding: 0.6rem 1.2rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px !important; /* Ändrat från 20px till 6px för mer subtilt rundade hörn */ color: rgba(255, 255, 255, 0.8); cursor: pointer; transition: all 0.3s ease; font-weight: 400; font-size: 0.85rem; font-family: 'Poppins', sans-serif; white-space: nowrap; } .category-btn:hover, .category-btn.active { background: #6366f1; border-color: #6366f1; color: white; transform: translateY(-1px); } .main-content { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; flex: 1; overflow: hidden; min-height: 0; position: relative; } .items-section { display: flex; flex-direction: column; overflow: hidden; min-height: 0; margin-right: 340px; margin-top: 1.5rem; } .items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; overflow-y: auto; padding-right: 0.5rem; flex: 1; align-content: start; margin-top: 1rem; } .item-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px !important; /* Rundade hörn för produktkort */ padding: 1rem; text-align: center; transition: all 0.3s ease; cursor: pointer; height: fit-content; } .item-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); } .item-image { width: 50px; height: 50px; margin: 0 auto 0.8rem; background: rgba(255, 255, 255, 0.1); border-radius: 8px !important; /* Rundade hörn för produktbilder */ display: flex; align-items: center; justify-content: center; font-size: 1.3rem; } .item-image img { width: 30px; height: 30px; border-radius: 4px; /* Lätt rundade hörn för bilder inuti ramen */ } .item-name { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; } .item-price { font-size: 1rem; font-weight: 600; color: #10b981; margin-bottom: 0.8rem; } .add-to-cart-btn { background: #6366f1; border: none; padding: 0.5rem 0.8rem; border-radius: 6px !important; /* Rundade hörn för knappar */ color: white; cursor: pointer; font-weight: 500; font-size: 0.8rem; transition: all 0.3s ease; width: 100%; font-family: 'Poppins', sans-serif; } .add-to-cart-btn:hover { background: #5855eb; transform: translateY(-1px); } .cart-container { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px !important; /* Rundade hörn för varukorgen */ padding: 1.2rem; display: flex; flex-direction: column; height: fit-content; max-height: 400px; overflow: hidden; position: absolute; bottom: 0; right: 0; width: 320px; } .cart-header { display: flex; flex-direction: column; margin-bottom: 1rem; flex-shrink: 0; } .cart-header h2 { font-size: 1.1rem; font-weight: 600; color: #ffffff; margin-bottom: 0.2rem; } .cart-header p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); } .cart-items { flex: 1; margin-bottom: 1rem; max-height: 200px; overflow-y: auto; min-height: 0; } .cart-item { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem; background: rgba(255, 255, 255, 0.03); border-radius: 6px !important; /* Rundade hörn för varukorgsvaror */ margin-bottom: 0.4rem; transition: all 0.3s ease; } .cart-item:hover { background: rgba(255, 255, 255, 0.06); } .cart-item-info { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; } .cart-item-image { width: 30px; height: 30px; background: rgba(255, 255, 255, 0.1); border-radius: 6px !important; /* Rundade hörn för varukorgsbilder */ display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; } .cart-item-image img { width: 18px; height: 18px; filter: brightness(0) invert(1); border-radius: 3px; /* Lätt rundade hörn för bilder i varukorgen */ } .cart-item-details { min-width: 0; flex: 1; } .cart-item-details h4 { font-size: 0.8rem; font-weight: 500; margin-bottom: 0.1rem; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cart-item-details p { font-size: 0.7rem; color: #10b981; font-weight: 500; } .quantity-controls { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; } .quantity-btn { background: rgba(255, 255, 255, 0.1); border: none; width: 20px; height: 20px; border-radius: 4px !important; /* Rundade hörn för kvantitetsknappar */ color: white; cursor: pointer; font-size: 0.7rem; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; } .quantity-btn:hover { background: rgba(255, 255, 255, 0.2); } .quantity { font-weight: 500; min-width: 16px; text-align: center; font-size: 0.8rem; background: rgba(255, 255, 255, 0.05); padding: 0.1rem 0.3rem; border-radius: 4px !important; /* Rundade hörn för kvantitetsvisaren */ } .remove-btn { background: rgba(239, 68, 68, 0.2); border: none; width: 20px; height: 20px; border-radius: 4px !important; /* Rundade hörn för ta bort-knapp */ color: #ef4444; cursor: pointer; font-size: 0.7rem; transition: all 0.3s ease; margin-left: 0.3rem; flex-shrink: 0; } .remove-btn:hover { background: rgba(239, 68, 68, 0.3); } .empty-cart { text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; padding: 1.5rem 0.5rem; } .cart-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; flex-shrink: 0; } .total-price { text-align: left; margin-bottom: 1rem; font-size: 1rem; color: rgba(255, 255, 255, 0.7); padding-left: 53px; } .total-price span:last-child { font-size: 1.2rem; font-weight: 600; color: #10b981; margin-left: 0.5rem; } .payment-buttons { display: flex; flex-direction: column; gap: 0.6rem; } .pay-btn { padding: 0.7rem 0.8rem; border: none; border-radius: 6px !important; /* Rundade hörn för betalningsknappar */ font-weight: 500; cursor: pointer; transition: all 0.3s ease; font-size: 0.85rem; font-family: 'Poppins', sans-serif; } .pay-btn.card { background: #6366f1; color: white; } .pay-btn.card:hover { background: #5855eb; transform: translateY(-1px); } .pay-btn.cash { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); } .pay-btn.cash:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); } /* Scrollbar styling */ ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 2px !important; /* Lätt rundade hörn för scrollbar-track */ } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 2px !important; /* Lätt rundade hörn för scrollbar-thumb */ } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } /* Responsive design */ @media (max-width: 1200px) { #blackmarket-container { width: 95%; height: 90vh; } .main-content { grid-template-columns: 1fr; gap: 1rem; } .items-section { margin-right: 0; margin-top: 1rem; } .cart-container { position: static; order: -1; max-height: 250px; width: 100%; border-radius: 8px !important; /* Behåll rundade hörn i responsivt läge */ } .top-section { gap: 1.2rem; margin-top: 0.5rem; } } @media (max-width: 768px) { .blackmarket-content { padding: 0.8rem; } .items-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; } .categories { justify-content: center; margin-top: 0.8rem; } .category-btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; } .main-content { gap: 0.8rem; } .cart-container { padding: 1rem; } }