/*
Theme Name: Blocksy Child
Theme URI:  https://example.com/blocksy-child
Description: قالب طفل لـ Blocksy — يمكن تعديله بدون المساس بالقالب الأصلي.
Author: مساعدك
Author URI: https://example.com
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child
*/

/* هنا يمكنك إضافة أنماط CSS تخص القالب الطفل */






/* التنسيقات العامة */
.my-orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.orders-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* فلترة الحالة */
.filter-container {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.status-filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #444;
    margin-left: 10px;
}

.select-container {
    display: flex;
    align-items: center;
}

.styled-select-container {
    position: relative;
    min-width: 250px;
}

.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.styled-select:focus {
    outline: none;
    border-color: #4d90fe;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

.select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
}

.select-arrow {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #777;
    pointer-events: none;
}

/* شبكة الطلبات */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* بطاقة الطلب */
.order-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #4d90fe;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.order-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fcfcfc;
}

.order-number-date h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.order-label {
    font-weight: 600;
    margin-left: 5px;
}

.order-value {
    color: #1a73e8;
    font-weight: 700;
}

.order-date {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
}

.order-date i {
    margin-left: 5px;
    color: #888;
}

.order-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.order-status-badge i {
    margin-left: 5px;
}

/* ألوان حالات الطلب */
.status-completed {
    background-color: #e6f4ea;
    color: #137333;
}

.status-processing {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.status-on-hold {
    background-color: #fef7e0;
    color: #f9ab00;
}

.status-cancelled {
    background-color: #fce8e6;
    color: #c5221f;
}

/* جسم البطاقة */
.order-card-body {
    padding: 20px;
}

.order-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.detail-label i {
    margin-left: 8px;
    color: #888;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.price-total {
    color: #1a73e8;
    font-size: 16px;
}

/* تذييل البطاقة */
.order-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-order-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.view-order-btn:hover {
    background-color: #0d62c9;
}

.view-order-btn i {
    margin-left: 8px;
}

/* التصفح بين الصفحات */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.pagination-link:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.pagination-link.current {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination-dots {
    margin: 0 5px;
    color: #777;
}

.prev-page, .next-page {
    font-size: 14px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* حالة عدم وجود طلبات */
.no-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.no-orders-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-orders h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 22px;
}

.no-orders p {
    color: #777;
    margin-bottom: 25px;
    font-size: 16px;
}

.shop-now-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.shop-now-btn:hover {
    background-color: #0d62c9;
}

.shop-now-btn i {
    margin-left: 8px;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .my-orders-container {
        padding: 15px;
    }
    
    .status-filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .order-card-header {
        flex-direction: column;
    }
    
    .order-status-badge {
        margin-top: 10px;
        align-self: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-link {
        margin-bottom: 10px;
    }
}