/* === كروت المنتجات === */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.product-card:active {
    transform: scale(0.97);
}

.product-card .product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card .product-info {
    padding: 12px;
}

.product-card .product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-card .product-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card .product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.product-card .product-price small {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.product-card .add-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.product-card .add-btn:active {
    transform: scale(0.85);
    background: var(--primary-dark);
}

/* كارد المنتج المميز (أفقي) */
.featured-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 280px;
    max-width: 280px;
}

.featured-card:active {
    transform: scale(0.97);
}

.featured-card .featured-img {
    width: 110px;
    min-height: 120px;
    object-fit: cover;
}

.featured-card .featured-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.featured-card .featured-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.featured-card .featured-desc {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card .featured-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.featured-card .featured-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

.featured-card .featured-price small {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

/* === كروت الأقسام === */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.category-card:active {
    transform: scale(0.9);
}

.category-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* === البانر === */
.banner-card {
    min-width: calc(100% - 40px);
    padding: 24px;
    border-radius: var(--radius);
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.banner-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.banner-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.banner-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* === الأزرار === */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* === حقول الإدخال === */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    color: var(--text);
    background: var(--bg-card);
    transition: var(--transition);
    direction: rtl;
    outline: none;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(193, 120, 23, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* === عنصر السلة === */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.cart-item-details {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.qty-btn:active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qty-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    min-width: 20px;
    text-align: center;
}

.delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #FDE8E5;
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 4px;
}

.delete-btn:active {
    background: var(--danger);
    color: white;
}

/* === اختيار الحجم === */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    padding: 8px 18px;
    border-radius: 25px;
    border: 2px solid var(--border);
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.size-option.active {
    border-color: var(--primary);
    background: rgba(193, 120, 23, 0.1);
    color: var(--primary);
}

/* === الإضافات === */
.extra-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.extra-item:last-child {
    border-bottom: none;
}

.extra-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.extra-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.extra-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.extra-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.extra-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.extra-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* === ملخص الطلب === */
.order-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* === التوست / إشعار === */
.toast {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 200;
    transition: var(--transition);
    white-space: nowrap;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* === المودال === */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-height: 85%;
    background: var(--bg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* === الصفحة الفارغة === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* === نوع الطلب === */
.order-type-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.order-type {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}

.order-type.active {
    border-color: var(--primary);
    background: rgba(193, 120, 23, 0.05);
}

.order-type i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    transition: var(--transition);
}

.order-type.active i {
    color: var(--primary);
}

.order-type span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* === سكشن العنوان === */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

/* === نافذة النجاح === */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.success-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #E8F8EF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: popIn 0.5s ease;
}

.success-icon i {
    font-size: 45px;
    color: var(--success);
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.success-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* === طلبات الملف الشخصي === */
.order-history-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.order-status.pending {
    background: #FFF3E0;
    color: #E65100;
}

.order-status.done {
    background: #E8F5E9;
    color: #2E7D32;
}

.order-history-items {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}

.order-history-total {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

/* === صورة الملف الشخصي === */
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.profile-avatar i {
    font-size: 36px;
    color: white;
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 24px;
    direction: ltr;
}

/* === قائمة الإعدادات === */
.settings-list {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:active {
    background: var(--bg);
}

.settings-item i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(193, 120, 23, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.settings-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.settings-item .arrow {
    color: var(--text-muted);
    font-size: 12px;
}

.settings-item.danger i {
    background: #FDE8E5;
    color: var(--danger);
}

.settings-item.danger span {
    color: var(--danger);
}
