/**
 * Mezo Shop - Complete Dark Mode Stylesheet
 * 
 * Works via [data-theme="dark"] on <html> and .dark-mode on <body>
 *
 * @package MezoShop
 * @version 1.2.0
 */

/* ============================================================
   1. تعريف روت الوضع المظلم (:root Variables in Dark Mode)
   ============================================================ */
:root[data-theme="dark"],
html[data-theme="dark"],
body.dark-mode {
    --brand: #ef4444;
    --brand-hover: #f87171;
    --brand2: #3b82f6;
    --primary: #ef4444;
    --primary-color: #ef4444;
    --primary-dark: #b91c1c;
    --primary-light: #f87171;
    --prime: #ef4444;
    --prime-hover: #f87171;
    
    /* خلفيات وأسطح داكنة متناسقة */
    --bg: #0b0f19;
    --bg-body: #0b0f19;
    --bg2: #161f30;
    --background: #0b0f19;
    --background-alt: #161f30;
    --card: #161f30;
    --card-bg: #161f30;
    --surface: #161f30;
    --surface-card: #161f30;
    --surface-elevated: #1e293b;
    --surface-hover: #1e293b;
    --soft: #161f30;
    --modal-bg: #161f30;
    
    /* نصوص عالية التباين والوضوح */
    --ink: #f8fafc;
    --text: #f8fafc;
    --text-color: #f8fafc;
    --text-light: #94a3b8;
    --muted: #94a3b8;
    
    /* حدود وفواصل هادئة */
    --line: #273549;
    --border: #273549;
    --border-color: #273549;
    --input-border: #273549;
    
    /* حقول الإدخال */
    --input-bg: #0d1424;
    --input-color: #f8fafc;
    --input-focus: #ef4444;
    
    /* ظلال داكنة عميقة */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow2: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* انتقال لوني سلس بين الوضعين */
html, body, .site-header, .cart-sidebar, .mobile-menu, 
.product-card, .pfooter, .ptw-wrapper, .main-card, 
.card, .woocommerce-MyAccount-content {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ============================================================
   2. الألوان العامة والأسطح
   ============================================================ */
[data-theme="dark"] body,
body.dark-mode {
    background-color: #0b0f19 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] a,
body.dark-mode a {
    color: inherit;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f8fafc !important;
}

[data-theme="dark"] p,
body.dark-mode p {
    color: #cbd5e1;
}

/* ============================================================
   3. ترويسة الموقع (Header) وشريط البحث
   ============================================================ */
[data-theme="dark"] .site-header,
body.dark-mode .site-header {
    background: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .desktop-link-item,
body.dark-mode .desktop-link-item {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .desktop-link-item:hover,
body.dark-mode .desktop-link-item:hover {
    color: #ef4444 !important;
    background: #1e293b !important;
}

[data-theme="dark"] .desktop-link-icon svg,
body.dark-mode .desktop-link-icon svg {
    stroke: #94a3b8 !important;
}

[data-theme="dark"] .desktop-link-item:hover .desktop-link-icon svg,
body.dark-mode .desktop-link-item:hover .desktop-link-icon svg {
    stroke: #ef4444 !important;
}

[data-theme="dark"] .icon-btn,
body.dark-mode .icon-btn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

[data-theme="dark"] .icon-btn svg path,
[data-theme="dark"] .icon-btn svg circle,
body.dark-mode .icon-btn svg path,
body.dark-mode .icon-btn svg circle {
    stroke: #cbd5e1 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .icon-btn:hover,
body.dark-mode .icon-btn:hover {
    background: #334155 !important;
}

[data-theme="dark"] .search-bar,
body.dark-mode .search-bar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

[data-theme="dark"] .search-bar input,
[data-theme="dark"] #live-search-input,
body.dark-mode .search-bar input,
body.dark-mode #live-search-input {
    background: #f3f4f6 !important;
    border: 1.5px solid #e5e7eb !important;
    color: #111827 !important;
}

[data-theme="dark"] .search-bar input::placeholder,
body.dark-mode .search-bar input::placeholder {
    color: #9ca3af !important;
}

[data-theme="dark"] .search-results,
body.dark-mode .search-results {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .search-result-item,
body.dark-mode .search-result-item {
    border-bottom: 1px solid #1e293b !important;
}

[data-theme="dark"] .search-result-item:hover,
body.dark-mode .search-result-item:hover {
    background: #1e293b !important;
}

[data-theme="dark"] .search-result-title,
body.dark-mode .search-result-title {
    color: #f8fafc !important;
}

/* محول العملات */
[data-theme="dark"] .x-currency .switch,
[data-theme="dark"] .x-currency .currency-wrap,
body.dark-mode .x-currency .switch,
body.dark-mode .x-currency .currency-wrap {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

/* ============================================================
   4. قائمة الموبايل الجانبية (Mobile Menu)
   ============================================================ */
[data-theme="dark"] .mobile-menu,
body.dark-mode .mobile-menu {
    background: #0f172a !important;
    border-right: 1px solid #1e293b !important;
}

[data-theme="dark"] .mobile-menu-header,
body.dark-mode .mobile-menu-header {
    background: #161f30 !important;
    border-bottom: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .close-mobile-menu,
body.dark-mode .close-mobile-menu {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .mobile-menu-section-title,
body.dark-mode .mobile-menu-section-title {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mobile-menu-item,
body.dark-mode .mobile-menu-item {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .mobile-menu-item:hover,
body.dark-mode .mobile-menu-item:hover {
    background: #1e293b !important;
}

[data-theme="dark"] .mobile-menu-item-title,
body.dark-mode .mobile-menu-item-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .mobile-menu-item-sub,
body.dark-mode .mobile-menu-item-sub {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mobile-menu-item-icon,
body.dark-mode .mobile-menu-item-icon {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

/* ============================================================
   5. سلة المشتريات والـ Mini Cart
   ============================================================ */
[data-theme="dark"] .cart-sidebar,
body.dark-mode .cart-sidebar {
    background: #0f172a !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .cart-header,
body.dark-mode .cart-header {
    background: #161f30 !important;
    border-bottom: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .close-cart,
body.dark-mode .close-cart {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .woocommerce-mini-cart-item,
[data-theme="dark"] .cart_list .mini_cart_item,
body.dark-mode .woocommerce-mini-cart-item,
body.dark-mode .cart_list .mini_cart_item {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .woocommerce-mini-cart-item a,
body.dark-mode .woocommerce-mini-cart-item a {
    color: #f8fafc !important;
}

[data-theme="dark"] .cart-footer,
[data-theme="dark"] .woocommerce-mini-cart__total,
body.dark-mode .cart-footer,
body.dark-mode .woocommerce-mini-cart__total {
    background: #161f30 !important;
    border-top: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .woocommerce-mini-cart__buttons a.button:not(.checkout),
body.dark-mode .woocommerce-mini-cart__buttons a.button:not(.checkout) {
    background: #1e293b !important;
    border: none !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .quantity-controls,
[data-theme="dark"] .mini-cart-qty,
[data-theme="dark"] .qty-wrap,
[data-theme="dark"] .qty-box,
body.dark-mode .quantity-controls,
body.dark-mode .mini-cart-qty,
body.dark-mode .qty-wrap,
body.dark-mode .qty-box {
    background: #0d1424 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .quantity-controls button,
[data-theme="dark"] .mini-cart-qty button,
[data-theme="dark"] .qty-wrap button,
[data-theme="dark"] .qty-box button,
body.dark-mode .quantity-controls button,
body.dark-mode .mini-cart-qty button,
body.dark-mode .qty-wrap button,
body.dark-mode .qty-box button {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .quantity-controls input,
[data-theme="dark"] .mini-cart-qty input,
[data-theme="dark"] .qty-wrap input,
[data-theme="dark"] .qty-box input,
body.dark-mode .quantity-controls input,
body.dark-mode .mini-cart-qty input,
body.dark-mode .qty-wrap input,
body.dark-mode .qty-box input {
    background: transparent !important;
    color: #f8fafc !important;
}

/* ============================================================
   6. الصفحة الرئيسية وبطاقات المنتجات والتبويبات
   ============================================================ */
[data-theme="dark"] .custom-front-page,
body.dark-mode .custom-front-page {
    background: #0b0f19 !important;
}

[data-theme="dark"] .section-bar,
body.dark-mode .section-bar {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .section-title h2,
body.dark-mode .section-title h2 {
    color: #f8fafc !important;
}

[data-theme="dark"] .section-title p,
body.dark-mode .section-title p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .section-chip,
body.dark-mode .section-chip {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .product-card,
body.dark-mode .product-card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .product-card:hover,
body.dark-mode .product-card:hover {
    border-color: #ef4444 !important;
}

[data-theme="dark"] .product-name,
body.dark-mode .product-name {
    color: #f8fafc !important;
}

[data-theme="dark"] .product-price,
body.dark-mode .product-price {
    color: #ef4444 !important;
}

[data-theme="dark"] .social-product-item a,
body.dark-mode .social-product-item a {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .social-product-name,
body.dark-mode .social-product-name {
    color: #f8fafc !important;
}

/* تبويبات PTW */
[data-theme="dark"] .ptw-tabs,
body.dark-mode .ptw-tabs {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .ptw-tab,
body.dark-mode .ptw-tab {
    background: #0f172a !important;
    border: 1px solid #273549 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .ptw-tab:hover,
body.dark-mode .ptw-tab:hover {
    background: #1e293b !important;
}

[data-theme="dark"] .ptw-tab.is-active,
body.dark-mode .ptw-tab.is-active {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .ptw-row,
body.dark-mode .ptw-row {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .ptw-title a,
body.dark-mode .ptw-title a {
    color: #f8fafc !important;
}

[data-theme="dark"] .ptw-title a:hover,
body.dark-mode .ptw-title a:hover {
    color: #ef4444 !important;
}

[data-theme="dark"] .ptw-state,
body.dark-mode .ptw-state {
    background: #161f30 !important;
    border-color: #273549 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .ptw-skel-item,
body.dark-mode .ptw-skel-item {
    background: #161f30 !important;
    border-color: #273549 !important;
}

[data-theme="dark"] .ptw-skel-thumb,
[data-theme="dark"] .ptw-skel-line,
body.dark-mode .ptw-skel-thumb,
body.dark-mode .ptw-skel-line {
    background: linear-gradient(90deg, #1e293b 25%, #273549 37%, #1e293b 63%) !important;
}

/* ============================================================
   7. صفحة المنتج المنفرد (Single Product)
   ============================================================ */
[data-theme="dark"] .main-card,
[data-theme="dark"] .product-main,
[data-theme="dark"] .single-product-container,
body.dark-mode .main-card,
body.dark-mode .product-main,
body.dark-mode .single-product-container {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .prod-title,
[data-theme="dark"] .product_title,
body.dark-mode .prod-title,
body.dark-mode .product_title {
    color: #f8fafc !important;
}

[data-theme="dark"] .prod-short,
[data-theme="dark"] .woocommerce-product-details__short-description,
body.dark-mode .prod-short,
body.dark-mode .woocommerce-product-details__short-description {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .prod-price,
[data-theme="dark"] .single-product .price,
body.dark-mode .prod-price,
body.dark-mode .single-product .price {
    color: #ef4444 !important;
}

/* بطاقة حقول بيانات الدخول */
[data-theme="dark"] .cred-card,
body.dark-mode .cred-card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .cred-title,
body.dark-mode .cred-title {
    color: #f8fafc !important;
}

[data-theme="dark"] .cred-input,
[data-theme="dark"] .cred-select,
[data-theme="dark"] .cred-select-btn,
body.dark-mode .cred-input,
body.dark-mode .cred-select,
body.dark-mode .cred-select-btn {
    background: #0d1424 !important;
    border: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .cred-pill,
[data-theme="dark"] .cred-radio-item,
body.dark-mode .cred-pill,
body.dark-mode .cred-radio-item {
    background: #0f172a !important;
    border: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .cred-pill.is-active,
body.dark-mode .cred-pill.is-active {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

/* بطاقات الرصيد والشبكات */
[data-theme="dark"] .wc-credit-card,
body.dark-mode .wc-credit-card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .wc-credit-head,
body.dark-mode .wc-credit-head {
    background: #1e293b !important;
}

[data-theme="dark"] .wc-credit-field,
[data-theme="dark"] .wc-credit-input,
body.dark-mode .wc-credit-field,
body.dark-mode .wc-credit-input {
    background: #0d1424 !important;
    border-color: #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .wc-credit-network-card,
body.dark-mode .wc-credit-network-card {
    background: #0f172a !important;
    border: 1px solid #273549 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .wc-credit-network-card.active,
body.dark-mode .wc-credit-network-card.active {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
}

/* التقييمات */
[data-theme="dark"] .custom-reviews-section,
[data-theme="dark"] .rv-card,
body.dark-mode .custom-reviews-section,
body.dark-mode .rv-card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .custom-review-item,
[data-theme="dark"] .rv-item,
[data-theme="dark"] .rv-empty,
[data-theme="dark"] #review_form_wrapper,
body.dark-mode .custom-review-item,
body.dark-mode .rv-item,
body.dark-mode .rv-empty,
body.dark-mode #review_form_wrapper {
    background: #0f172a !important;
    border: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .custom-review-author,
body.dark-mode .custom-review-author {
    color: #f8fafc !important;
}

/* ============================================================
   8. صفحة الدفع (Checkout) والتحويل البنكي بالتفصيل
   ============================================================ */
[data-theme="dark"] .woocommerce-checkout,
[data-theme="dark"] #order_review,
body.dark-mode .woocommerce-checkout,
body.dark-mode #order_review {
    color: #f8fafc !important;
}

[data-theme="dark"] #payment,
[data-theme="dark"] #payment.woocommerce-checkout-payment,
body.dark-mode #payment,
body.dark-mode #payment.woocommerce-checkout-payment {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] #payment .payment_box,
body.dark-mode #payment .payment_box {
    background: #0d1424 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .pay-desc,
body.dark-mode .pay-desc {
    background: #0d1424 !important;
    border: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] #bank_instructions,
[data-theme="dark"] .bank-details-card,
[data-theme="dark"] .bank-payment-notice,
[data-theme="dark"] .account-number-section,
[data-theme="dark"] .acc-number-box,
[data-theme="dark"] .custom-bank-select,
body.dark-mode #bank_instructions,
body.dark-mode .bank-details-card,
body.dark-mode .bank-payment-notice,
body.dark-mode .account-number-section,
body.dark-mode .acc-number-box,
body.dark-mode .custom-bank-select {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .inst-example,
[data-theme="dark"] .fee-notice,
[data-theme="dark"] .account-verify-warning,
[data-theme="dark"] .legal-disclaimer,
[data-theme="dark"] .inst-warning,
body.dark-mode .inst-example,
body.dark-mode .fee-notice,
body.dark-mode .account-verify-warning,
body.dark-mode .legal-disclaimer,
body.dark-mode .inst-warning {
    background: #0d1424 !important;
    border: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] #upload_zone,
body.dark-mode #upload_zone {
    background: #0d1424 !important;
    border: 2px dashed #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] #upload_zone:hover,
body.dark-mode #upload_zone:hover {
    border-color: #ef4444 !important;
    background: #161f30 !important;
}

/* ============================================================
   9. لوحة تحكم حسابي (My Account) - كسر الـ !important القديم
   ============================================================ */
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content,
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content fieldset,
[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content fieldset,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .woocommerce-MyAccount-navigation ul,
body.dark-mode .woocommerce-MyAccount-navigation ul {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .woocommerce-MyAccount-navigation li a,
body.dark-mode .woocommerce-MyAccount-navigation li a {
    color: #e2e8f0 !important;
    border-bottom: 1px solid #273549 !important;
}

[data-theme="dark"] .woocommerce-MyAccount-navigation li.is-active a,
body.dark-mode .woocommerce-MyAccount-navigation li.is-active a {
    background: #1e293b !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .dashboard-greeting-card,
[data-theme="dark"] .account-menu-card,
[data-theme="dark"] .wo-card,
[data-theme="dark"] .card,
body.dark-mode .dashboard-greeting-card,
body.dark-mode .account-menu-card,
body.dark-mode .wo-card,
body.dark-mode .card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .account-menu-card:hover,
body.dark-mode .account-menu-card:hover {
    background: #1e293b !important;
    border-color: #ef4444 !important;
}

/* جدول ومفاتيح التراخيص */
[data-theme="dark"] .lmfwc-key,
[data-theme="dark"] .dlm-card,
[data-theme="dark"] .dlm-key-item,
[data-theme="dark"] .woocommerce table.lmfwc-table,
body.dark-mode .lmfwc-key,
body.dark-mode .dlm-card,
body.dark-mode .dlm-key-item,
body.dark-mode .woocommerce table.lmfwc-table {
    background: #0d1424 !important;
    border: 1px solid #273549 !important;
    color: #f8fafc !important;
}

/* المعاملات والمحفظة */
[data-theme="dark"] .transaction-item,
body.dark-mode .transaction-item {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .transaction-item:hover,
body.dark-mode .transaction-item:hover {
    background: #1e293b !important;
}

/* فلاتر الطلبات */
[data-theme="dark"] .wc-orders-scope,
body.dark-mode .wc-orders-scope {
    background: #0b0f19 !important;
}

[data-theme="dark"] .wc-orders-scope .filter-bar,
[data-theme="dark"] .wc-orders-scope .card,
body.dark-mode .wc-orders-scope .filter-bar,
body.dark-mode .wc-orders-scope .card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

/* ============================================================
   10. صفحة السلة (Cart Page)
   ============================================================ */
[data-theme="dark"] .woocommerce-cart .cart-collaterals,
[data-theme="dark"] .woocommerce-cart .wcpa_cart_meta,
[data-theme="dark"] table.shop_table,
body.dark-mode .woocommerce-cart .cart-collaterals,
body.dark-mode .woocommerce-cart .wcpa_cart_meta,
body.dark-mode table.shop_table {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] table.shop_table th,
body.dark-mode table.shop_table th {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] table.shop_table td,
body.dark-mode table.shop_table td {
    border-top: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

/* ============================================================
   11. المدخلات والقوائم المنسدلة (Inputs & Select2)
   ============================================================ */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .select2-container .select2-selection,
[data-theme="dark"] .select2-container .select2-dropdown,
body.dark-mode input[type="text"],
body.dark-mode input[type="password"],
body.dark-mode input[type="email"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="number"],
body.dark-mode input[type="search"],
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .select2-container .select2-selection,
body.dark-mode .select2-container .select2-dropdown {
    background-color: #0d1424 !important;
    border: 1px solid #273549 !important;
    color: #f8fafc !important;
}

/* ============================================================
   12. الفوتر والشريط السفلي (Footer & Mobile Bar)
   ============================================================ */
[data-theme="dark"] .pfooter,
body.dark-mode .pfooter {
    background: #080c14 !important;
    border-top: 1px solid #1e293b !important;
}

[data-theme="dark"] .pfooter:before,
[data-theme="dark"] .pfooter::before,
body.dark-mode .pfooter:before,
body.dark-mode .pfooter::before {
    content: none !important;
    display: none !important;
}

[data-theme="dark"] .pfooter__card,
body.dark-mode .pfooter__card {
    background: #161f30 !important;
    border: 1px solid #273549 !important;
}

[data-theme="dark"] .pfooter__title,
body.dark-mode .pfooter__title {
    color: #f8fafc !important;
}

[data-theme="dark"] .pfooter__text,
body.dark-mode .pfooter__text {
    color: #94a3b8 !important;
}

[data-theme="dark"] .pfooter__badges .badge,
body.dark-mode .pfooter__badges .badge {
    background: #0f172a !important;
    border: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .psocial a,
body.dark-mode .psocial a {
    background: #0f172a !important;
    border: 1px solid #273549 !important;
    color: #cbd5e1 !important;
}

[data-theme="dark"] .psocial a:hover,
body.dark-mode .psocial a:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .plink a,
body.dark-mode .plink a {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .plink a:hover,
body.dark-mode .plink a:hover {
    color: #ef4444 !important;
}

[data-theme="dark"] .mnav,
body.dark-mode .mnav {
    background: #0f172a !important;
    border-top: 1px solid #1e293b !important;
}

[data-theme="dark"] .mnav__item,
body.dark-mode .mnav__item {
    color: #94a3b8 !important;
}

[data-theme="dark"] .mnav__item.is-active,
body.dark-mode .mnav__item.is-active {
    color: #ef4444 !important;
}

/* ============================================================
   13. ضمان التغطية العامة لأي عنصر أبيض صريح (Global Fallback)
   ============================================================ */
[data-theme="dark"] .bg-white,
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background-color:#fff"],
[data-theme="dark"] [style*="background-color: #fff"],
body.dark-mode .bg-white,
body.dark-mode [style*="background:#fff"],
body.dark-mode [style*="background: #fff"],
body.dark-mode [style*="background:#ffffff"],
body.dark-mode [style*="background: #ffffff"] {
    background-color: #161f30 !important;
    color: #f8fafc !important;
    border-color: #273549 !important;
}

/* زر التبديل */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    position: relative;
    user-select: none;
}

.theme-toggle-btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.theme-toggle-btn .icon-sun {
    display: none;
}

.theme-toggle-btn .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn,
body.dark-mode .theme-toggle-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .theme-toggle-btn:hover,
body.dark-mode .theme-toggle-btn:hover {
    background: #334155 !important;
    color: #facc15 !important;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun,
body.dark-mode .theme-toggle-btn .icon-sun {
    display: block;
    color: #facc15;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon,
body.dark-mode .theme-toggle-btn .icon-moon {
    display: none;
}

.mobile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 12px;
}

[data-theme="dark"] .mobile-theme-row,
body.dark-mode .mobile-theme-row {
    background: #161f30 !important;
    border-color: #273549 !important;
}

.mobile-theme-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color, #111827);
}

[data-theme="dark"] .mobile-theme-label,
body.dark-mode .mobile-theme-label {
    color: #f8fafc !important;
}

.mobile-theme-label svg {
    width: 20px;
    height: 20px;
}


/* ==========================================================================
   EXTRA DEDICATED COMPONENT STYLES (Single Product, Questions, Catalog, Modals, 404, Account)
   ========================================================================== */

/* --- Single Product & Related Items --- */
html[data-theme="dark"] .pd-shell,
body.dark-mode .pd-shell {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="dark"] .pd-image,
body.dark-mode .pd-image {
  background: #0f172a !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .breadcrumb,
body.dark-mode .breadcrumb {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .breadcrumb a,
body.dark-mode .breadcrumb a {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .breadcrumb a:hover,
body.dark-mode .breadcrumb a:hover {
  color: #ff5722 !important;
}

html[data-theme="dark"] .pd-title,
body.dark-mode .pd-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .badge,
body.dark-mode .badge {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .badge.brand,
body.dark-mode .badge.brand {
  background: rgba(139,14,14,.25) !important;
  border-color: rgba(239,68,68,.35) !important;
  color: #fca5a5 !important;
}

html[data-theme="dark"] .pd-price,
body.dark-mode .pd-price {
  color: #ff6b6b !important;
}

html[data-theme="dark"] .pd-short,
body.dark-mode .pd-short {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .woocommerce div.product form.cart .variations select,
body.dark-mode .woocommerce div.product form.cart .variations select {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .pd-content,
body.dark-mode .pd-content {
  border-top-color: #334155 !important;
}

html[data-theme="dark"] .pd-content .tab-title,
body.dark-mode .pd-content .tab-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .pd-content .the-content,
body.dark-mode .pd-content .the-content {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .related,
body.dark-mode .related {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}

html[data-theme="dark"] .related h2,
body.dark-mode .related h2 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .r-item,
body.dark-mode .r-item {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .r-item:hover,
body.dark-mode .r-item:hover {
  border-color: #ff5722 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.4) !important;
}

html[data-theme="dark"] .r-thumb,
body.dark-mode .r-thumb {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .r-name,
body.dark-mode .r-name {
  color: #f1f5f9 !important;
}

/* --- Questions & FAQ Component --- */
html[data-theme="dark"] .mezo-bs-tab,
body.dark-mode .mezo-bs-tab {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .mezo-bs-tab.active,
body.dark-mode .mezo-bs-tab.active {
  background: #ff5722 !important;
  border-color: #ff5722 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .mezo-bs-card,
body.dark-mode .mezo-bs-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
}

html[data-theme="dark"] .mezo-bs-card:hover,
body.dark-mode .mezo-bs-card:hover {
  border-color: #ff5722 !important;
}

html[data-theme="dark"] .mezo-bs-thumb,
body.dark-mode .mezo-bs-thumb {
  border-color: #334155 !important;
  background: #0f172a !important;
}

html[data-theme="dark"] .mezo-bs-title,
body.dark-mode .mezo-bs-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .mezo-bs-chip,
body.dark-mode .mezo-bs-chip {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .mezo-bs-arrow,
body.dark-mode .mezo-bs-arrow {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .mezo-bs-card:hover .mezo-bs-arrow,
body.dark-mode .mezo-bs-card:hover .mezo-bs-arrow {
  background: #ff5722 !important;
  border-color: #ff5722 !important;
  color: #ffffff !important;
}

/* --- Product Archive App Rows --- */
html[data-theme="dark"] .app-row,
body.dark-mode .app-row {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
}

html[data-theme="dark"] .app-row:hover,
body.dark-mode .app-row:hover {
    border-color: #ff5722 !important;
}

html[data-theme="dark"] .app-row__title,
body.dark-mode .app-row__title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .app-row__media,
body.dark-mode .app-row__media {
    background: #0f172a !important;
}

/* --- Checkout Review Order Items & Meta --- */
html[data-theme="dark"] .woocommerce-checkout-review-order-container,
body.dark-mode .woocommerce-checkout-review-order-container {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}

html[data-theme="dark"] .cart-items-section,
body.dark-mode .cart-items-section {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .cart-item,
body.dark-mode .cart-item {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .item-image,
body.dark-mode .item-image {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .item-name,
body.dark-mode .item-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .quantity-box,
body.dark-mode .quantity-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .quantity-label,
body.dark-mode .quantity-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .quantity-value,
body.dark-mode .quantity-value {
    color: #ff6b6b !important;
}

html[data-theme="dark"] .toggle-details-btn,
body.dark-mode .toggle-details-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #ff6b6b !important;
}

html[data-theme="dark"] .item-meta,
body.dark-mode .item-meta {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .meta-item,
body.dark-mode .meta-item {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .meta-label,
body.dark-mode .meta-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .meta-value,
body.dark-mode .meta-value {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .order-totals-section,
body.dark-mode .order-totals-section {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .total-label,
body.dark-mode .total-label {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .total-value,
body.dark-mode .total-value {
    color: #ff6b6b !important;
}

/* --- My Account Dashboard Side List --- */
html[data-theme="dark"] .side,
body.dark-mode .side {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.25) !important;
}

html[data-theme="dark"] .side-title,
body.dark-mode .side-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .side-item,
body.dark-mode .side-item {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .side-item:hover,
body.dark-mode .side-item:hover {
    border-color: #ff5722 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.4) !important;
}

html[data-theme="dark"] .side-name,
body.dark-mode .side-name {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .side-icon,
body.dark-mode .side-icon {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .side-icon svg,
body.dark-mode .side-icon svg {
    color: #94a3b8 !important;
}

/* --- Lost Password & Auth Modals --- */
html[data-theme="dark"] body.woocommerce-lost-password,
body.dark-mode.woocommerce-lost-password {
    background: #0b0f19 !important;
}

html[data-theme="dark"] .lp-wrap,
body.dark-mode .lp-wrap {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 25px 70px rgba(0,0,0,0.45) !important;
}

html[data-theme="dark"] .lp-wrap .lp-title h2,
body.dark-mode .lp-wrap .lp-title h2 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .lp-wrap .lp-desc,
body.dark-mode .lp-wrap .lp-desc {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .lp-wrap .lp-label,
body.dark-mode .lp-wrap .lp-label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .lp-wrap .lp-input,
body.dark-mode .lp-wrap .lp-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .lp-wrap .lp-note,
body.dark-mode .lp-wrap .lp-note {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

html[data-theme="dark"] .lp-done .lp-done-head h3,
body.dark-mode .lp-done .lp-done-head h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .lp-done .lp-done-circle,
body.dark-mode .lp-done .lp-done-circle {
    background: rgba(139,14,14,.25) !important;
}

html[data-theme="dark"] .lp-done .lp-done-box,
body.dark-mode .lp-done .lp-done-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* --- Error 404 --- */
html[data-theme="dark"] .error-404-container,
body.dark-mode .error-404-container {
    background: #0b0f19 !important;
}

html[data-theme="dark"] .error-404-subtitle,
body.dark-mode .error-404-subtitle {
    color: #f8fafc !important;
}

html[data-theme="dark"] .error-404-description,
body.dark-mode .error-404-description {
    color: #94a3b8 !important;
}

/* --- Force Modal (User Profile) --- */
html[data-theme="dark"] #wc-force-modal .wc-modal-card,
body.dark-mode #wc-force-modal .wc-modal-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.55) !important;
}

html[data-theme="dark"] #wc-force-modal .wc-modal-head,
body.dark-mode #wc-force-modal .wc-modal-head {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] #wc-force-modal .wc-modal-title,
body.dark-mode #wc-force-modal .wc-modal-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] #wc-force-modal .wc-modal-sub,
body.dark-mode #wc-force-modal .wc-modal-sub {
    color: #94a3b8 !important;
}

html[data-theme="dark"] #wc-force-modal .wc-form-field label,
body.dark-mode #wc-force-modal .wc-form-field label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] #wc-force-modal .wc-form-field input,
body.dark-mode #wc-force-modal .wc-form-field input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] #wc-force-modal .wc-close-btn,
body.dark-mode #wc-force-modal .wc-close-btn {
    background: rgba(255,255,255,.08) !important;
    color: #cbd5e1 !important;
}


/* ==========================================================================
   Mezo Orders ("طلباتي") Dedicated Dark Mode Styles
   ========================================================================== */
html[data-theme="dark"] body.woocommerce-account,
body.dark-mode.woocommerce-account,
html[data-theme="dark"] .woocommerce-account .woocommerce,
body.dark-mode .woocommerce-account .woocommerce,
html[data-theme="dark"] .woocommerce-account .woocommerce-MyAccount-content,
body.dark-mode .woocommerce-account .woocommerce-MyAccount-content,
html[data-theme="dark"] .wc-orders-scope,
body.dark-mode .wc-orders-scope {
    background: #0b0f19 !important;
    color: #f8fafc !important;
}

/* Head & Title */
html[data-theme="dark"] .wc-orders-scope .head h2,
body.dark-mode .wc-orders-scope .head h2 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .wc-orders-scope .filter-toggle,
body.dark-mode .wc-orders-scope .filter-toggle {
    background: #8B0E0E !important;
    border-color: #8B0E0E !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .wc-orders-scope .filter-toggle:hover,
body.dark-mode .wc-orders-scope .filter-toggle:hover {
    background: #ff5722 !important;
    border-color: #ff5722 !important;
}

html[data-theme="dark"] .wc-orders-scope .filter-badge,
body.dark-mode .wc-orders-scope .filter-badge {
    background: #ff5722 !important;
    color: #ffffff !important;
}

/* Filter Modal */
html[data-theme="dark"] .wc-orders-scope .filter-overlay,
body.dark-mode .wc-orders-scope .filter-overlay {
    background: rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .wc-orders-scope .filter-content,
body.dark-mode .wc-orders-scope .filter-content {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .wc-orders-scope .filter-header,
body.dark-mode .wc-orders-scope .filter-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .wc-orders-scope .filter-header h3,
body.dark-mode .wc-orders-scope .filter-header h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .wc-orders-scope .close-filter,
body.dark-mode .wc-orders-scope .close-filter {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .wc-orders-scope .close-filter:hover,
body.dark-mode .wc-orders-scope .close-filter:hover {
    background: rgba(220, 38, 38, 0.25) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .wc-orders-scope .f label,
body.dark-mode .wc-orders-scope .f label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .wc-orders-scope .f input,
html[data-theme="dark"] .wc-orders-scope .f select,
body.dark-mode .wc-orders-scope .f input,
body.dark-mode .wc-orders-scope .f select {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .wc-orders-scope .f input:focus,
html[data-theme="dark"] .wc-orders-scope .f select:focus,
body.dark-mode .wc-orders-scope .f input:focus,
body.dark-mode .wc-orders-scope .f select:focus {
    border-color: #ff5722 !important;
    background: #0b0f19 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2) !important;
}

html[data-theme="dark"] .wc-orders-scope .btn-ghost,
body.dark-mode .wc-orders-scope .btn-ghost {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .wc-orders-scope .btn-ghost:hover,
body.dark-mode .wc-orders-scope .btn-ghost:hover {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

/* Order Cards */
html[data-theme="dark"] .wc-orders-scope .card,
body.dark-mode .wc-orders-scope .card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .wc-orders-scope .card:hover,
body.dark-mode .wc-orders-scope .card:hover {
    border-color: #ff5722 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .wc-orders-scope .top,
body.dark-mode .wc-orders-scope .top {
    background: transparent !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .wc-orders-scope .bag-icon,
body.dark-mode .wc-orders-scope .bag-icon {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .wc-orders-scope .id a,
body.dark-mode .wc-orders-scope .id a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .wc-orders-scope .id a:hover,
body.dark-mode .wc-orders-scope .id a:hover {
    color: #ff5722 !important;
}

html[data-theme="dark"] .wc-orders-scope .sub,
body.dark-mode .wc-orders-scope .sub {
    color: #94a3b8 !important;
}

/* Status Pills */
html[data-theme="dark"] .wc-orders-scope .pill.wc-completed,
body.dark-mode .wc-orders-scope .pill.wc-completed { 
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .wc-orders-scope .pill.wc-processing,
body.dark-mode .wc-orders-scope .pill.wc-processing { 
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    color: #60a5fa !important;
}

html[data-theme="dark"] .wc-orders-scope .pill.wc-on-hold,
body.dark-mode .wc-orders-scope .pill.wc-on-hold { 
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .wc-orders-scope .pill.wc-cancelled,
html[data-theme="dark"] .wc-orders-scope .pill.wc-failed,
body.dark-mode .wc-orders-scope .pill.wc-cancelled,
body.dark-mode .wc-orders-scope .pill.wc-failed { 
    background: rgba(239, 68, 68, 0.2) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .wc-orders-scope .pill.wc-pending,
body.dark-mode .wc-orders-scope .pill.wc-pending { 
    background: rgba(148, 163, 184, 0.2) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .wc-orders-scope .pill.wc-refunded,
body.dark-mode .wc-orders-scope .pill.wc-refunded { 
    background: rgba(168, 85, 247, 0.2) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    color: #c084fc !important;
}

/* Card Mid Details */
html[data-theme="dark"] .wc-orders-scope .mid,
body.dark-mode .wc-orders-scope .mid {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
}

html[data-theme="dark"] .wc-orders-scope .mid-label,
body.dark-mode .wc-orders-scope .mid-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .wc-orders-scope .mid-value,
body.dark-mode .wc-orders-scope .mid-value {
    color: #f8fafc !important;
}

/* Card Bottom Actions */
html[data-theme="dark"] .wc-orders-scope .card-actions,
body.dark-mode .wc-orders-scope .card-actions {
    background: #1e293b !important;
    border-top: 1px solid #334155 !important;
}

html[data-theme="dark"] .wc-orders-scope .order-price,
html[data-theme="dark"] .wc-orders-scope .order-price span,
html[data-theme="dark"] .wc-orders-scope .order-price bdi,
body.dark-mode .wc-orders-scope .order-price,
body.dark-mode .wc-orders-scope .order-price span,
body.dark-mode .wc-orders-scope .order-price bdi {
    color: #ff6b6b !important;
    font-weight: 800 !important;
}

html[data-theme="dark"] .wc-orders-scope .money-icon,
body.dark-mode .wc-orders-scope .money-icon {
    color: #ff6b6b !important;
}

html[data-theme="dark"] .wc-orders-scope .card-actions .btn-primary,
body.dark-mode .wc-orders-scope .card-actions .btn-primary {
    background: #8B0E0E !important;
    border: none !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .wc-orders-scope .card-actions .btn-primary:hover,
body.dark-mode .wc-orders-scope .card-actions .btn-primary:hover {
    background: #ff5722 !important;
}

/* Pagination */
html[data-theme="dark"] .wc-orders-scope .page,
body.dark-mode .wc-orders-scope .page {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .wc-orders-scope .page:hover,
body.dark-mode .wc-orders-scope .page:hover {
    background: #1e293b !important;
    border-color: #ff5722 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .wc-orders-scope .page.active,
body.dark-mode .wc-orders-scope .page.active {
    background: #ff5722 !important;
    border-color: #ff5722 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .wc-orders-scope .dots,
body.dark-mode .wc-orders-scope .dots {
    color: #64748b !important;
}

/* Empty State */
html[data-theme="dark"] .wc-orders-scope .empty,
body.dark-mode .wc-orders-scope .empty {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .wc-orders-scope .empty h3,
body.dark-mode .wc-orders-scope .empty h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .wc-orders-scope .empty p,
body.dark-mode .wc-orders-scope .empty p {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Mezo View Order ("عرض الطلب") Dedicated Dark Mode Styles
   ========================================================================== */
html[data-theme="dark"] .compact-order-details,
body.dark-mode .compact-order-details {
    color: #f8fafc !important;
}

html[data-theme="dark"] .compact-order-details .order-header,
body.dark-mode .compact-order-details .order-header {
    background: linear-gradient(135deg, #8B0E0E 0%, #5c0808 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .compact-order-details .order-title,
body.dark-mode .compact-order-details .order-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .compact-order-details .order-sub,
body.dark-mode .compact-order-details .order-sub {
    color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .compact-order-details .order-total-chip,
body.dark-mode .compact-order-details .order-total-chip {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .compact-order-details .total-label,
body.dark-mode .compact-order-details .total-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .compact-order-details .total-value,
body.dark-mode .compact-order-details .total-value {
    color: #ff6b6b !important;
}

html[data-theme="dark"] .compact-order-details .main-section,
body.dark-mode .compact-order-details .main-section {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .compact-order-details .section-title,
body.dark-mode .compact-order-details .section-title {
    background: #0f172a !important;
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .compact-order-details .product-item,
body.dark-mode .compact-order-details .product-item {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .compact-order-details .product-image,
body.dark-mode .compact-order-details .product-image {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .compact-order-details .product-name,
body.dark-mode .compact-order-details .product-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .compact-order-details .product-total,
body.dark-mode .compact-order-details .product-total {
    color: #ff6b6b !important;
}

html[data-theme="dark"] .compact-order-details .unit-price,
body.dark-mode .compact-order-details .unit-price {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .compact-order-details .order-qty-badge,
body.dark-mode .compact-order-details .order-qty-badge {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .compact-order-details .toggle-order-details-btn,
body.dark-mode .compact-order-details .toggle-order-details-btn {
    background: rgba(139, 14, 14, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .compact-order-details .order-meta-list,
body.dark-mode .compact-order-details .order-meta-list {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .compact-order-details .order-meta-item,
body.dark-mode .compact-order-details .order-meta-item {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .compact-order-details .order-meta-label,
body.dark-mode .compact-order-details .order-meta-label {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .compact-order-details .order-meta-value,
body.dark-mode .compact-order-details .order-meta-value {
    color: #f8fafc !important;
}

/* DLM Keys & Downloads */
html[data-theme="dark"] .dlm-title-wrap,
body.dark-mode .dlm-title-wrap {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .dlm-page-title,
body.dark-mode .dlm-page-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dlm-card,
body.dark-mode .dlm-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .dlm-card:hover,
body.dark-mode .dlm-card:hover {
    border-color: #ff5722 !important;
}

html[data-theme="dark"] .dlm-card-header,
body.dark-mode .dlm-card-header {
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .dlm-product-name,
body.dark-mode .dlm-product-name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .dlm-key-item,
body.dark-mode .dlm-key-item {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .dlm-key-code,
body.dark-mode .dlm-key-code {
    background: #0b0f19 !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

html[data-theme="dark"] .dlm-empty,
body.dark-mode .dlm-empty {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}



/* ==========================================================================
   إخفاء إشعار تأكيد البريد الإلكتروني للطلبات السابقة
   ========================================================================== */
.woocommerce-info:has(a[href*="wc_send_verification"]),
.woocommerce-message:has(a[href*="wc_send_verification"]),
div:has(> a[href*="wc_send_verification"]),
div[role="status"]:has(a[href*="wc_send_verification"]),
a[href*="wc_send_verification"] {
    display: none !important;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (mnav__wrap) Dark Mode
   ========================================================================== */
html[data-theme="dark"] .mnav,
body.dark-mode .mnav {
    background: transparent !important;
    border: none !important;
}

html[data-theme="dark"] .mnav__wrap,
body.dark-mode .mnav__wrap {
    background: rgba(15, 23, 42, 0.90) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .mnav__wrap:before,
body.dark-mode .mnav__wrap:before {
    background: rgba(15, 23, 42, 0.92) !important;
}

html[data-theme="dark"] .mnav__item,
body.dark-mode .mnav__item {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .mnav__item:hover,
body.dark-mode .mnav__item:hover {
    color: #ff5722 !important;
}

html[data-theme="dark"] .mnav__item:hover .mnav__ico,
body.dark-mode .mnav__item:hover .mnav__ico {
    background: rgba(255, 87, 34, 0.12) !important;
}

html[data-theme="dark"] .mnav__item.is-active,
body.dark-mode .mnav__item.is-active {
    color: #ff5722 !important;
}

html[data-theme="dark"] .mnav__item.is-active .mnav__ico,
body.dark-mode .mnav__item.is-active .mnav__ico {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.25), rgba(255, 87, 34, 0.10)) !important;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.25) !important;
}

html[data-theme="dark"] .mnav__item.is-active:after,
body.dark-mode .mnav__item.is-active:after {
    background: #ff5722 !important;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5) !important;
}




/* ==========================================================================
   Mezo Side Cart (السلة الجانبية) Dedicated Dark Mode Styles
   ========================================================================== */
html[data-theme="dark"] .cart-sidebar,
body.dark-mode .cart-sidebar {
    background: #0f172a !important;
    border-right: 1px solid #1e293b !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.75) !important;
}

/* Header */
html[data-theme="dark"] .cart-header,
body.dark-mode .cart-header {
    background: #161f30 !important;
    border-bottom: 1px solid #273549 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .cart-header h3,
body.dark-mode .cart-header h3 {
    color: #f8fafc !important;
}



/* ==========================================================================
   Mezo Shop - Side Cart & Mini Cart Modern Design (No Harsh Borders)
   ========================================================================== */
html[data-theme="dark"] .close-cart,
body.dark-mode .close-cart {
    background: #1e293b !important;
    border: none !important;
    box-shadow: none !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .close-cart:hover,
body.dark-mode .close-cart:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* Mini Cart Items (Cards) */
html[data-theme="dark"] .woocommerce-mini-cart-item,
body.dark-mode .woocommerce-mini-cart-item {
    background: #1e293b !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    border-radius: 14px !important;
}

html[data-theme="dark"] .woocommerce-mini-cart-item:hover,
body.dark-mode .woocommerce-mini-cart-item:hover {
    background: #243248 !important;
    border: none !important;
}

/* Thumbnail */
html[data-theme="dark"] .woocommerce-mini-cart-item > a > img,
html[data-theme="dark"] .woocommerce-mini-cart-item img,
body.dark-mode .woocommerce-mini-cart-item > a > img,
body.dark-mode .woocommerce-mini-cart-item img {
    background: #0f172a !important;
    border: none !important;
    border-radius: 10px !important;
}

/* Quantity Controls Box (Ultra-Refined Pill Capsule) */
.quantity-controls {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    border-radius: 999px !important;
    padding: 3px !important;
    border: none !important;
    box-shadow: none !important;
    height: 32px !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] .quantity-controls,
html[data-theme="dark"] .qty-wrap,
html[data-theme="dark"] .qty-box,
body.dark-mode .quantity-controls,
body.dark-mode .qty-wrap,
body.dark-mode .qty-box {
    background: #0f172a !important;
    border: none !important;
    box-shadow: none !important;
}

/* Quantity Plus / Minus Circular Buttons */
.quantity-controls button,
.quantity-controls .quantity-btn,
.quantity-controls .qty-decrease,
.quantity-controls .qty-increase,
.qty-wrap button,
.qty-box button {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.15s ease !important;
}

html[data-theme="dark"] .quantity-controls button,
html[data-theme="dark"] .quantity-controls .quantity-btn,
html[data-theme="dark"] .woocommerce-mini-cart-item button.qty-minus,
html[data-theme="dark"] .woocommerce-mini-cart-item button.qty-plus,
html[data-theme="dark"] .qty-wrap button,
html[data-theme="dark"] .qty-box button,
body.dark-mode .quantity-controls button,
body.dark-mode .quantity-controls .quantity-btn,
body.dark-mode .woocommerce-mini-cart-item button.qty-minus,
body.dark-mode .woocommerce-mini-cart-item button.qty-plus,
body.dark-mode .qty-wrap button,
body.dark-mode .qty-box button {
    background: #334155 !important;
    color: #f8fafc !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .quantity-controls button:hover:not(:disabled),
body.dark-mode .quantity-controls button:hover:not(:disabled) {
    background: #475569 !important;
    color: #ffffff !important;
}

.quantity-controls button:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* Quantity Number Input */
.quantity-controls input,
.quantity-controls input.qty,
.qty-wrap input,
.qty-box input {
    width: 34px !important;
    height: 26px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

html[data-theme="dark"] .quantity-controls input,
html[data-theme="dark"] .quantity-controls input.qty,
html[data-theme="dark"] .woocommerce-mini-cart-item input.qty,
html[data-theme="dark"] .woocommerce-mini-cart-item input[type="number"],
html[data-theme="dark"] .qty-wrap input,
html[data-theme="dark"] .qty-box input,
body.dark-mode .quantity-controls input,
body.dark-mode .quantity-controls input.qty,
body.dark-mode .woocommerce-mini-cart-item input.qty,
body.dark-mode .woocommerce-mini-cart-item input[type="number"],
body.dark-mode .qty-wrap input,
body.dark-mode .qty-box input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #f8fafc !important;
}

/* Hide any duplicate button injections */
.woocommerce-mini-cart-item .quantity > button.qty-minus,
.woocommerce-mini-cart-item .quantity > button.qty-plus,
.woocommerce-mini-cart-item .quantity > .qty-btn {
    display: none !important;
}

/* Cart Footer & Totals */
html[data-theme="dark"] .cart-footer .woocommerce-mini-cart__total,
html[data-theme="dark"] .cart-footer .total,
body.dark-mode .cart-footer .woocommerce-mini-cart__total,
body.dark-mode .cart-footer .total {
    background: #0f172a !important;
    border: none !important;
    color: #f8fafc !important;
    border-radius: 12px !important;
}

/* Mini Cart Buttons (View Cart & Checkout) */
html[data-theme="dark"] .woocommerce-mini-cart__buttons .button,
body.dark-mode .woocommerce-mini-cart__buttons .button {
    background: #0f172a !important;
    border: none !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .woocommerce-mini-cart__buttons .button.checkout,
body.dark-mode .woocommerce-mini-cart__buttons .button.checkout {
    background: #8B0E0E !important;
    border: none !important;
    color: #ffffff !important;
}



html[data-theme="dark"] .woocommerce-mini-cart__buttons .button:hover,
body.dark-mode .woocommerce-mini-cart__buttons .button:hover {
    background: #1e293b !important;
    border-color: #ff5722 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .woocommerce-mini-cart__buttons .button.checkout,
body.dark-mode .woocommerce-mini-cart__buttons .button.checkout {
    background: #8B0E0E !important;
    border-color: #8B0E0E !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .woocommerce-mini-cart__buttons .button.checkout:hover,
body.dark-mode .woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #ff5722 !important;
    border-color: #ff5722 !important;
}

/* Empty Cart State */
html[data-theme="dark"] .cart-empty-state,
body.dark-mode .cart-empty-state {
    color: #f8fafc !important;
    text-align: center !important;
    padding: 40px 20px !important;
}

html[data-theme="dark"] .cart-empty-icon,
body.dark-mode .cart-empty-icon {
    color: #64748b !important;
    stroke: currentColor !important;
}

html[data-theme="dark"] .cart-empty-state h3,
body.dark-mode .cart-empty-state h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .cart-empty-state p,
body.dark-mode .cart-empty-state p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .cart-empty-state .button,
body.dark-mode .cart-empty-state .button {
    background: #8B0E0E !important;
    border: 1px solid #8B0E0E !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
}

html[data-theme="dark"] .cart-empty-state .button:hover,
body.dark-mode .cart-empty-state .button:hover {
    background: #ff5722 !important;
    border-color: #ff5722 !important;
}

/* Overlay */
html[data-theme="dark"] .cart-overlay,
body.dark-mode .cart-overlay {
    background: rgba(0, 0, 0, 0.75) !important;
}



/* Single Product & Related in Dark Mode */
html[data-theme="dark"] .r-price,
body.dark-mode .r-price {
    color: #ff6b6b !important;
}


/* ==========================================================================
   Mezo Shop - Shop Page Grid, Breadcrumbs & Numbered Pagination
   ========================================================================== */

/* ─── Shop Header Bar ─── */
.custom-shop-page {
    width: 100%;
    min-height: 60vh;
    padding: 20px 0 60px;
    direction: rtl;
}

.custom-shop-page .shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

.shop-bar {
    margin: 10px 0 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .06);
    overflow: hidden;
}

.shop-bar .accent {
    height: 4px;
    background: linear-gradient(90deg, #8B0E0E, #1e5a9e);
}

.shop-bar .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    direction: rtl;
    flex-wrap: wrap;
}

.shop-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fdf2f2;
    border: 1px solid #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B0E0E;
    flex-shrink: 0;
}

.shop-icon svg {
    width: 22px;
    height: 22px;
}

.shop-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
}

.shop-title p {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.shop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-ordering .woocommerce-ordering {
    margin: 0;
    padding: 0;
    float: none;
}

.shop-ordering select.orderby {
    height: 42px;
    padding: 0 14px 0 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

/* ─── 4 Columns Responsive Grid ─── */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products {
    margin: 0 0 30px !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    direction: rtl !important;
    clear: both !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: none !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

/* ─── حوامل المنتجات (Product Item Cards) ─── */
.woocommerce ul.products li.product .product-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 6px 14px rgba(17, 24, 39, .04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
    border-color: rgba(139, 14, 14, .25);
}

.woocommerce ul.products li.product .product-thumb {
    padding: 10px;
    background: #ffffff;
}

.woocommerce ul.products li.product .thumb-inner {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f4;
    background: #ffffff;
}

.woocommerce ul.products li.product .thumb-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .22s ease;
}

.woocommerce ul.products li.product .product-item:hover .thumb-inner img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .product-info {
    padding: 10px 12px 14px;
    direction: rtl;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce ul.products li.product .product-name {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: #111827;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    text-align: center;
}

/* ─── Breadcrumbs (مسار التنقل) ─── */
.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb,
.breadcrumb,
nav.breadcrumb {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 8px 0 18px !important;
    padding: 8px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .03) !important;
    direction: rtl !important;
    line-height: 1.4 !important;
    clear: both !important;
}

.woocommerce-breadcrumb a,
nav.woocommerce-breadcrumb a,
.breadcrumb a,
nav.breadcrumb a {
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.woocommerce-breadcrumb a:hover,
nav.woocommerce-breadcrumb a:hover,
.breadcrumb a:hover,
nav.breadcrumb a:hover {
    color: #8B0E0E !important;
}

.woocommerce-breadcrumb .sep,
.breadcrumb .sep {
    color: #9ca3af !important;
    font-size: 13px !important;
    opacity: 0.7 !important;
    margin: 0 2px !important;
    user-select: none !important;
}

.woocommerce-breadcrumb .current,
.woocommerce-breadcrumb span:last-child,
.breadcrumb span:last-child {
    color: #111827 !important;
    font-weight: 700 !important;
}

/* ─── ترقيم الصفحات (Pagination) ─── */
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination,
.woocommerce-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 40px auto 20px !important;
    padding: 0 !important;
    text-align: center !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers,
ul.page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    white-space: normal !important;
    direction: rtl !important;
    float: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul li,
.woocommerce-pagination ul.page-numbers li,
ul.page-numbers li {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: visible !important;
    background: transparent !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers,
a.page-numbers,
span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    float: none !important;
    font-family: inherit !important;
    
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.04) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li a:hover,
.woocommerce-pagination a.page-numbers:hover,
a.page-numbers:hover {
    background: #fdf2f2 !important;
    color: #8B0E0E !important;
    border-color: #fca5a5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(139, 14, 14, 0.12) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li span.current,
.woocommerce-pagination .page-numbers.current,
span.page-numbers.current {
    background: linear-gradient(135deg, #8B0E0E 0%, #a61212 100%) !important;
    color: #ffffff !important;
    border-color: #8B0E0E !important;
    box-shadow: 0 4px 14px rgba(139, 14, 14, 0.35) !important;
    font-weight: 800 !important;
    transform: scale(1.05) !important;
    cursor: default !important;
}

.woocommerce nav.woocommerce-pagination ul li span.dots,
nav.woocommerce-pagination ul li span.dots,
.woocommerce-pagination .page-numbers.dots,
span.page-numbers.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #9ca3af !important;
    font-size: 16px !important;
    min-width: 28px !important;
    cursor: default !important;
    letter-spacing: 2px !important;
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next,
nav.woocommerce-pagination ul li a.prev,
nav.woocommerce-pagination ul li a.next,
.woocommerce-pagination a.prev,
.woocommerce-pagination a.next {
    padding: 0 16px !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

.woocommerce-pagination .pg-icon {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.5 !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   OSCAR DEV OPTIONS — DARK MODE COMPATIBILITY
   ============================================================ */
html[data-theme="dark"] .oscar-dev-box,
body.dark-mode .oscar-dev-box {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .oscar-dev-attr-title,
body.dark-mode .oscar-dev-attr-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .oscar-dev-option,
body.dark-mode .oscar-dev-option {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .oscar-dev-option:hover,
body.dark-mode .oscar-dev-option:hover {
    border-color: #64748b !important;
    background: #273549 !important;
}

html[data-theme="dark"] .oscar-dev-option.selected,
body.dark-mode .oscar-dev-option.selected {
    background: #8B0E0E !important;
    border-color: #8B0E0E !important;
    box-shadow: 0 4px 14px rgba(139, 14, 14, 0.4) !important;
}

html[data-theme="dark"] .oscar-dev-label,
body.dark-mode .oscar-dev-label {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .oscar-dev-option.selected .oscar-dev-label,
body.dark-mode .oscar-dev-option.selected .oscar-dev-label {
    color: #ffffff !important;
}

html[data-theme="dark"] .oscar-dev-option-price,
body.dark-mode .oscar-dev-option-price {
    color: #f87171 !important;
}

html[data-theme="dark"] .oscar-dev-option.selected .oscar-dev-option-price,
body.dark-mode .oscar-dev-option.selected .oscar-dev-option-price {
    color: rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="dark"] .oscar-dev-option.disabled,
body.dark-mode .oscar-dev-option.disabled {
    background: #0f172a !important;
    border-color: #1e293b !important;
    color: #475569 !important;
    opacity: 0.35 !important;
}

html[data-theme="dark"] .oscar-dev-option.disabled .oscar-dev-label,
html[data-theme="dark"] .oscar-dev-option.disabled .oscar-dev-option-price,
body.dark-mode .oscar-dev-option.disabled .oscar-dev-label,
body.dark-mode .oscar-dev-option.disabled .oscar-dev-option-price {
    color: #64748b !important;
}

html[data-theme="dark"] .oscar-dev-check,
body.dark-mode .oscar-dev-check {
    background: #ffffff !important;
}

html[data-theme="dark"] .oscar-dev-check::after,
body.dark-mode .oscar-dev-check::after {
    border-color: #8B0E0E !important;
}

html[data-theme="dark"] .oscar-dev-resetBtn,
body.dark-mode .oscar-dev-resetBtn {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f87171 !important;
}

html[data-theme="dark"] .oscar-dev-resetBtn:hover,
body.dark-mode .oscar-dev-resetBtn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .oscar-dev-stock-alert,
body.dark-mode .oscar-dev-stock-alert {
    background: #1e293b !important;
    border-color: #dc2626 !important;
    color: #fca5a5 !important;
}
