.els-store, .els-cart-page, .els-orders-page, .els-wallet-page {
    font-family: "Tajawal", "Cairo", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    color: #1e2530;
}

/* Categories */
.els-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.els-cat-link {
    padding: 8px 18px;
    background: #f1f3f7;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s ease;
}
.els-cat-link:hover, .els-cat-link.active {
    background: linear-gradient(135deg,#0f5fdc,#3b82f6);
    color: #fff;
}

/* Product grid */
.els-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}
.els-product-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(15,95,220,.04);
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}
.els-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15,95,220,.10);
}
.els-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f8fa;
    margin-bottom: 10px;
}
.els-product-image img { width: 100%; height: 100%; object-fit: cover; }
.els-no-image { width: 100%; height: 100%; background: #eceff3; }
.els-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 11px; padding: 3px 8px; border-radius: 6px;
    background: #ef4444; color: #fff;
}
.els-product-name { font-size: 15px; font-weight: 700; margin: 4px 0; min-height: 40px; }
.els-product-price { font-size: 16px; font-weight: 800; color: #0f5fdc; margin-bottom: 10px; }
.els-add-to-cart {
    width: 100%; border: 0; padding: 10px 0; border-radius: 10px;
    background: linear-gradient(135deg,#0f5fdc,#3b82f6); color: #fff;
    font-weight: 700; cursor: pointer; transition: opacity .2s;
}
.els-add-to-cart:hover { opacity: .9; }
.els-add-to-cart:disabled { background: #cbd2dc; cursor: not-allowed; }
.els-out-of-stock .els-product-image { opacity: .55; }
.els-empty { grid-column: 1/-1; text-align: center; color: #8b93a1; padding: 40px 0; }

/* Cart */
.els-cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.els-cart-item {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 10px 14px;
}
.els-cart-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.els-cart-item-info { flex: 1; }
.els-cart-item-name { font-weight: 700; }
.els-cart-item-price { color: #0f5fdc; font-weight: 700; }
.els-qty-control { display: flex; align-items: center; gap: 6px; }
.els-qty-control button {
    width: 28px; height: 28px; border-radius: 6px; border: 1px solid #dde1e8;
    background: #f7f8fa; cursor: pointer;
}
.els-remove-item { color: #ef4444; cursor: pointer; background: none; border: none; font-size: 13px; }

.els-cart-summary {
    background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 18px; text-align: center;
}
.els-cart-total { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.els-payment-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; text-align: right; }
.els-btn-primary {
    display: inline-block; border: 0; padding: 12px 32px; border-radius: 10px;
    background: linear-gradient(135deg,#0f5fdc,#3b82f6); color: #fff; font-weight: 800;
    cursor: pointer; text-decoration: none; font-size: 15px;
}
#els-checkout-message { margin-top: 14px; font-weight: 700; }
#els-checkout-message.success { color: #16a34a; }
#els-checkout-message.error { color: #ef4444; }

/* Orders */
.els-order-card { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.els-order-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.els-status { padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.els-status-completed { background: #dcfce7; color: #16a34a; }
.els-status-pending, .els-status-processing { background: #fef9c3; color: #ca8a04; }
.els-status-failed { background: #fee2e2; color: #ef4444; }
.els-order-item { padding: 8px 0; border-top: 1px dashed #eee; }
.els-serial-box {
    background: #f7f8fa; border: 1px dashed #cbd2dc; padding: 8px 10px; border-radius: 8px;
    font-family: monospace; margin-top: 6px; direction: ltr; text-align: left;
}
.els-serial-pending { color: #ca8a04; margin-top: 6px; }

/* Wallet */
.els-wallet-balance { font-size: 22px; font-weight: 800; background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.els-wallet-table { width: 100%; border-collapse: collapse; background: #fff; }
.els-wallet-table th, .els-wallet-table td { padding: 10px; border-bottom: 1px solid #eef0f4; text-align: right; font-size: 14px; }

@media (max-width: 600px) {
    .els-products-grid { grid-template-columns: repeat(2, 1fr); }
}
