/* ملف تنسيقات المتجر */
body {
    font-family: 'Tajawal', Arial, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #fff0f6 0%, #fce4ec 100%);
    color: #3a003a;
    min-height: 100vh;
    margin: 0;
    transition: background 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* شريط التنقل */
.main-header {
    background: linear-gradient(90deg, #fff0f6 60%, #fce4ec 100%);
    box-shadow: 0 2px 10px #f8bbd0;
    border-bottom: 2px solid #e91e63;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    padding: 19px 0 13px 0;
    font-family: 'Tajawal', Arial, sans-serif;
}
.main-nav a {
    color: #e91e63;
    font-size: 1.16rem;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 22px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px #f8bbd04d;
}
.main-nav a:hover, .main-nav a.active {
    background: #e91e63;
    color: #fff;
    box-shadow: 0 4px 18px #f062921a;
}

/* بطاقات المنتجات */
.product-mini-card, .product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 18px #f8bbd0a8;
    padding: 18px 12px 12px 12px;
    margin: 7px 4px 18px 4px;
    transition: box-shadow 0.2s, transform 0.18s;
    display: inline-block;
    min-width: 170px;
    max-width: 220px;
    vertical-align: top;
    position: relative;
}
.product-mini-card:hover, .product-card:hover {
    box-shadow: 0 8px 32px #e91e63a8;
    transform: translateY(-4px) scale(1.03);
}
.mini-img-wrap img, .product-card img {
    width: 100%;
    max-width: 140px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px #f8bbd05e;
    margin: 0 auto 10px auto;
    display: block;
}
.mini-title, .product-title {
    font-size: 1.1rem;
    color: #ad1457;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: center;
}
.mini-price, .product-price {
    color: #222;
    background: #fff4fa;
    border-radius: 14px;
    padding: 6px 22px;
    font-size: 1.22rem;
    font-weight: 900;
    display: inline-block;
    margin: 10px auto 0 auto;
    box-shadow: 0 2px 10px #f8bbd04d;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px #fff, 0 2px 8px #f8bbd028;
}
.products-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

/* أزرار عصرية */
button, input[type="submit"], .btn {
    background: linear-gradient(90deg, #e91e63 60%, #ce93d8 100%);
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 12px #f8bbd04d;
    transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
button:hover, input[type="submit"]:hover, .btn:hover {
    background: #ad1457;
    color: #fff;
    box-shadow: 0 8px 24px #ad14574d;
    transform: translateY(-2px) scale(1.04);
}

/* الحقول */
input, select, textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 14px;
    width: 100%;
    font-size: 1rem;
    transition: border 0.17s, box-shadow 0.17s;
    box-shadow: 0 1px 4px #f8bbd01a;
}
input:focus, select:focus, textarea:focus {
    border: 1.5px solid #e91e63;
    outline: none;
    box-shadow: 0 2px 12px #e91e6340;
}

/* الجداول */
.admin-table, .order-products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px #f8bbd04d;
    margin: 18px 0;
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th, .admin-table td, .order-products-table th, .order-products-table td {
    border: 1px solid #f8bbd0;
    padding: 12px 8px;
    text-align: center;
}
.admin-table th, .order-products-table th {
    background: #fce4ec;
    color: #e91e63;
    font-weight: bold;
}

/* رسائل التنبيه */
.msg-success, .msg-error {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: bold;
    text-align: center;
    font-size: 1.08rem;
}
.msg-success {
    background: #d4edda;
    color: #155724;
}
.msg-error {
    background: #f8d7da;
    color: #721c24;
}

/* تأثيرات عامة */
::-webkit-scrollbar {
    width: 8px;
    background: #fce4ec;
}
::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 8px;
}

/* الوضع الليلي */
@media (prefers-color-scheme: dark) {
    body { background: linear-gradient(135deg, #2d0036 0%, #4a148c 100%); color: #fff; }
    .main-header { background: linear-gradient(90deg, #6a1b9a 60%, #ad1457 100%); box-shadow: 0 2px 10px #6a1b9a; }
    .main-nav a { color: #fff; background: #6a1b9a; }
    .main-nav a:hover, .main-nav a.active { background: #e91e63; color: #fff; }
    .product-mini-card, .product-card, .admin-table, .order-products-table { background: #2d0036; color: #fff; box-shadow: 0 2px 18px #ad1457a8; }
    .mini-title, .product-title { color: #fff; }
    .mini-price, .product-price { background: linear-gradient(90deg, #ad1457 60%, #6a1b9a 100%); color: #fff; }
    .msg-success { background: #1e4620; color: #d4edda; }
    .msg-error { background: #721c24; color: #f8d7da; }
}

/* تحسين التجاوب */
@media (max-width: 900px) {
    .container { max-width: 98vw; }
    .products-row { gap: 7px; }
    .product-mini-card, .product-card { min-width: 130px; max-width: 170px; padding: 10px 4px; }
}
@media (max-width: 700px) {
    .main-nav { flex-direction: column; gap: 7px; padding: 10px 0; }
    .main-nav a { font-size: 1rem; padding: 8px 10vw; }
    .container { padding: 7px 2vw; }
    .products-row { flex-direction: column; align-items: center; }
}

/* تحسين الفوتر */
footer {
    background: #e91e63;
    color: #fff;
    text-align: center;
    padding: 22px 0 10px 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    font-size: 1.05rem;
    margin-top: 32px;
    box-shadow: 0 -2px 18px #f8bbd04d;
}

/* شريط الإشعارات */
.notification-bar {
    background: linear-gradient(90deg, #e91e63 60%, #ce93d8 100%);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #fff0f6;
}

