* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #090D16;
    color: #F8FAFC;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* شريط التنقل */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    color: #38BDF8;
    font-size: 1.1rem;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #FFFFFF;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link-btn {
    background: rgba(30, 41, 59, 0.6);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link-btn:hover, .nav-link-btn.active {
    background: #38BDF8;
    color: #090D16;
    border-color: #38BDF8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 35px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1rem;
    color: #94A3B8;
    margin-bottom: 25px;
}

/* شريط الفلترة */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.5);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
}

.product-category {
    font-size: 0.75rem;
    color: #38BDF8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.product-name:hover {
    color: #38BDF8;
}

.product-desc {
    font-size: 0.88rem;
    color: #94A3B8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #38BDF8;
}

.btn-group {
    display: flex;
    gap: 8px;
}

.details-btn, .add-to-cart-btn {
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.details-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
}

.details-btn:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}

.add-to-cart-btn {
    background: #38BDF8;
    color: #090D16;
    border: none;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
}

/* صفحة تفاصيل المنتج المستقلة */
.product-details-container {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    max-width: 650px;
    margin: 0 auto;
}

/* واجهة سلة التسوق الموسعة */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.section-header p {
    color: #94A3B8;
    font-size: 0.95rem;
}

.cart-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .cart-page-content {
        grid-template-columns: 1fr;
    }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-msg {
    color: #64748B;
    text-align: center;
    padding: 40px;
}

.cart-item-row {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 25px;
    height: fit-content;
}

.cart-summary-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #94A3B8;
    font-size: 0.95rem;
}

.summary-row.total {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-row.total span:last-child {
    color: #38BDF8;
}

.summary-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 15px 0;
}

.checkout-main-btn {
    width: 100%;
    background: #38BDF8;
    color: #090D16;
    border: none;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

.checkout-main-btn:hover { opacity: 0.9; }

/* واجهة النجاح والفاتورة */
.success-card {
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.success-card p {
    color: #94A3B8;
    margin-bottom: 25px;
}

.receipt-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 20px;
    text-align: right;
}

/* الفوتر */
.app-footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: #64748B;
    font-size: 0.8rem;
}
