@font-face { font-family: RB-Bold; src: url('fonts/RB-Bold.ttf'); } body { margin: 0; padding: 0; overflow: hidden; height: 100%; width: 100%; direction: rtl; text-shadow: 1px 1px 2px #000; font-family: RB-Bold; /* background-color: rgba(0, 0, 0, 0.7); */ } .center-align { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } #wrapper { display: none; height: 80vh; width: 80vw; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); overflow-y: auto; background-color: rgba(52, 70, 97, 0.74); border-radius: 10px; padding: 20px; } /* Shop header styling */ .shop-header { color: white; font-size: 24px; margin-bottom: 20px; text-align: center; font-weight: bold; } /* Item grid layout */ .items-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; padding: 10px; } /* Individual item card styling */ .item { background-color: rgb(52, 70, 97); border-radius: 8px; padding: 15px; display: flex; flex-direction: column; align-items: center; transition: transform 0.2s; } .item:hover { transform: scale(1.02); } .item-image { width: 100px; height: 100px; object-fit: contain; margin-bottom: 10px; } .item-name { color: #ffa500; font-size: 18px; font-weight: bold; margin-bottom: 5px; text-align: center; } .item-price { color: #00bb00; font-size: 18px; font-weight: bold; margin-bottom: 5px; } .item-level { color: orange; font-size: 16px; margin-bottom: 5px; } .item-stock { color: #3498db; font-size: 16px; margin-bottom: 10px; } /* Add to cart button */ .add-to-cart-btn { background-color: #3498db; color: white; border: none; border-radius: 4px; padding: 8px 15px; cursor: pointer; font-family: RB-Bold; width: 100%; text-align: center; } .add-to-cart-btn:hover { background-color: #2980b9; } /* Cart styling */ #cart { display: none; width: 50vw; height: auto; max-height: 80vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(20, 20, 20, 0.95); border-radius: 10px; overflow: hidden; padding: 0; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); z-index: 100; } .cart-header { background-color: rgba(30, 30, 30, 0.9); color: white; padding: 15px 20px; font-size: 22px; text-align: center; border-bottom: 1px solid rgba(80, 80, 80, 0.3); position: relative; } #cart-close { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background-color: #2980b9; color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; } /* Cart items container with scrollbar */ #cart-items { max-height: 400px; /* Controls how tall the items section can get before scrolling */ overflow-y: auto; padding: 0 5px; } .cart-item-container { padding: 20px; background-color: rgba(35, 35, 35, 0.7); margin: 15px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; } .cart-item-details { display: flex; align-items: center; } .cart-item-image { width: 70px; height: 70px; margin-left: 15px; object-fit: contain; } .cart-item-info { display: flex; flex-direction: column; } .cart-item-name { color: #ffa500; font-size: 18px; font-weight: bold; margin-bottom: 5px; } .cart-item-price { color: #40c940; font-size: 16px; margin-bottom: 5px; } .cart-item-stock { color: #3498db; font-size: 14px; } .cart-item-quantity { display: flex; align-items: center; } .quantity-btn { background-color: #333; color: white; border: none; width: 30px; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; } .quantity-btn:hover { background-color: #555; } .quantity-input { width: 40px; height: 30px; text-align: center; margin: 0 5px; background-color: #222; border: 1px solid #444; color: white; font-size: 16px; border-radius: 5px; } .cart-summary { background-color: rgba(25, 25, 25, 0.9); padding: 15px 20px; } .summary-row { display: flex; justify-content: space-between; padding: 8px 0; } .summary-label { color: white; font-size: 16px; text-align: right; } .summary-value { color: white; font-size: 16px; text-align: left; } .summary-total { border-top: 1px solid rgba(80, 80, 80, 0.3); padding-top: 15px; margin-top: 8px; } .summary-total .summary-label { font-size: 18px; font-weight: bold; } .summary-total .summary-value { color: #40c940; font-size: 18px; font-weight: bold; } .cart-actions { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; padding: 15px 20px 20px; } .cart-action-btn { padding: 12px; text-align: center; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.2s; border: none; color: white; } .checkout-btn { background-color: #27ae60; } .checkout-btn:hover { background-color: #2ecc71; } .clear-cart-btn { background-color: #c0392b; } .clear-cart-btn:hover { background-color: #e74c3c; } .save-btn { background-color: #2c3e50; } .save-btn:hover { background-color: #34495e; } .repeat-btn { background-color: #d35400; } .repeat-btn:hover { background-color: #e67e22; } .bulk-purchase { display: flex; align-items: center; margin-top: 10px; padding-right: 10px; } .bulk-purchase input[type="checkbox"] { margin-left: 8px; } .bulk-purchase label { color: #ffa500; font-size: 14px; } /* Buy button (replacing cart icon) */ .buy-button { display: none; position: fixed; top: 150px; left: 15px; background-color: #00682b; color: white; border-radius: 5px; padding: 10px 20px; font-size: 16px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); transition: all 0.2s; } .buy-button:hover { background-color: #2ecc71; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .line { height: 2px; background: rgb(255, 255, 255); width: 100%; background: -webkit-gradient(linear, 0 0, 100% 0, from(#181818), to(#181818), color-stop(50%, white)); } /* width */ ::-webkit-scrollbar { width: 8px; } /* Track */ ::-webkit-scrollbar-track { background: rgba(30, 30, 30, 0.9); border-radius: 10px; } /* Handle */ ::-webkit-scrollbar-thumb { background: rgba(100, 100, 100, 0.8); border-radius: 10px; } /* Handle on hover */ ::-webkit-scrollbar-thumb:hover { background: rgba(150, 150, 150, 0.8); } /* Legacy elements (keeping for compatibility) */ #payment { display: none; width: 1600px; height: 50px; font-size: 14px; text-align: right; color: #fff; background-color: #000000; position: absolute; top: 940px; overflow: auto; right: 160px; } #blocklol { width: 1600px; height: 20px; color: #fff; position: absolute; display: none; right: 5px; font-family: RB-Bold; font-weight: bold; top: 952.5px; font-size: 17.5px; right: 250px; margin-left: 5px; border: 1.5px solid #ffffff; padding: 5px 3px; border-radius: 5px; }