/* تحسينات عامة للموقع - ألوان الأحمر والأسود */

/* CSS Variables للثيمات - سيتم تطبيقها ديناميكياً من الثيم النشط */
:root {
    --theme-primary-color: #dc3545;
    --theme-secondary-color: #6c757d;
    --theme-accent-color: #ffc107;
    --theme-background-color: #ffffff;
    --theme-text-color: #212529;
    --theme-link-color: #dc3545;
    --theme-font-family: 'Almarai', sans-serif;
    --theme-font-size-base: 16px;
    --theme-button-radius: 25px;
    --theme-card-radius: 15px;
    --theme-shadow-intensity: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* تأثيرات الحركة */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين الأزرار */
.btn {
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary-color) 90%, black) 0%, color-mix(in srgb, var(--theme-primary-color) 70%, black) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary-color) 90%, black) 0%, color-mix(in srgb, var(--theme-primary-color) 70%, black) 100%);
}

/* تحسين البطاقات */
.card {
    border-radius: var(--theme-card-radius, 15px);
    box-shadow: var(--theme-shadow-intensity, 0 2px 10px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
}

/* تحسين النماذج */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--theme-primary-color, #dc3545);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-primary-color, #dc3545) 25%, transparent);
}

/* تحسين الجداول */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* تحسين التنبيهات */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* تحسين الترقيم */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--theme-primary-color, #dc3545);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    border-color: var(--theme-primary-color, #dc3545);
}

/* تحسين الشريط الجانبي */
.sidebar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

/* تحسين الإحصائيات */
.statisticsCard {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.statisticsCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* تحسين الصور */
.img-fluid {
    border-radius: 10px;
}

/* تحسين العناوين */
.title h3 {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* تحسين الروابط */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* تحسين الأيقونات */
.fas,
.far,
.fab {
    transition: all 0.3s ease;
}

/* تحسين التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--theme-primary-color, #dc3545);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* تحسين الشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .card {
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* تحسين الطباعة */
@media print {

    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* أنماط لوحة التحكم */
.adminPage {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.adminBody {
    padding: 20px;
}

/* أنماط النماذج في لوحة التحكم */
.inputBox {
    margin-bottom: 20px;
}

.inputBox label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input {
    position: relative;
    display: flex;
    align-items: center;
}

.input .icon {
    position: absolute;
    right: 15px;
    color: var(--theme-primary-color, #dc3545);
    z-index: 2;
}

.input input,
.input textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.input input:focus,
.input textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input.area textarea {
    min-height: 100px;
    resize: vertical;
}

/* أنماط رفع الملفات */
.imageUpload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--theme-primary-color, #dc3545);
    border-radius: var(--theme-card-radius, 15px);
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.imageUpload:hover {
    background: #fff5f5;
    border-color: color-mix(in srgb, var(--theme-primary-color, #dc3545) 80%, black);
}

.imageUpload i {
    font-size: 48px;
    color: var(--theme-primary-color, #dc3545);
    margin-bottom: 15px;
}

.imageUpload span {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-color, #333);
    margin-bottom: 10px;
}

.imageUpload p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* أنماط عرض الوسائط */
.mediaView {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.media img,
.media video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--theme-primary-color, #dc3545);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: color-mix(in srgb, var(--theme-primary-color, #dc3545) 90%, black);
    transform: scale(1.1);
}

/* أنماط الأزرار */
.buttons {
    margin-top: 30px;
    text-align: center;
}

.bttn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bttn_primary {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    color: white;
}

.bttn_primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary-color) 90%, black) 0%, color-mix(in srgb, var(--theme-primary-color) 70%, black) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-primary-color, #dc3545) 30%, transparent);
}

.bttn_border {
    background: transparent;
    border: 2px solid var(--theme-primary-color, #dc3545);
    color: var(--theme-primary-color, #dc3545);
}

.bttn_border:hover {
    background: var(--theme-primary-color, #dc3545);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-primary-color, #dc3545) 30%, transparent);
}

/* أنماط رسائل الخطأ */
.text-danger {
    color: var(--theme-primary-color, #dc3545) !important;
    font-size: 14px;
    margin-top: 5px;
}

/* أنماط البطاقات في لوحة التحكم */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-color, #333);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-primary-color, #dc3545);
}

/* تحسين الأيقونات */
[data-lucide] {
    width: 20px;
    height: 20px;
}

/* أنماط إضافية للوحة التحكم */
.adminPage .card {
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
}

.adminPage .card-body {
    padding: 30px;
}

/* تحسين النماذج في لوحة التحكم */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--theme-text-color, #333);
    margin-bottom: 8px;
}

/* أنماط التحديد */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

/* أنماط Bootstrap المفقودة */
.w-100 {
    width: 100% !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-info {
    background-color: var(--theme-primary-color, #dc3545) !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group>.btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group>.btn:not(:first-child) {
    margin-right: -1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group>.btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-outline-primary {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-striped>tbody>tr:nth-of-type(odd)>td {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered> :not(caption)>* {
    border-width: 1px 0;
}

.table-bordered> :not(caption)>*>* {
    border-width: 0 1px;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
}

/* توزيع إحصائيات الشيت والإحصائيات المالية بجانب بعضهم */
@media (min-width: 992px) {
    .sheet-stats-row {
        display: flex;
        gap: 24px;
    }

    .sheet-stats-col {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .sheet-stats-row {
        display: block;
    }

    .sheet-stats-col {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* تحسين شكل المنتجات داخل الطلبات */
.order-products,
.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-item,
.product-detail-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    transition: box-shadow 0.2s;
}

.product-item:hover,
.product-detail-item:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.10);
}

.product-badge {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    margin-right: 4px;
    font-weight: 600;
    margin-left: 4px;
}

.product-item .text-info,
.product-detail-item .text-info {
    font-size: 12px;
    margin-top: 2px;
    color: #17a2b8 !important;
    display: block;
}

.products-list {
    flex-direction: column;
    gap: 12px;
}

.product-detail-item {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #eee;
    background: #fff;
    margin-bottom: 8px;
}

.product-detail-item .badge {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 16px;
}

/* ============================================
   تصميم كارت المنتج الحديث
   ============================================ */
.productCard.modern-card {
    background: var(--theme-background-color, #fff);
    border-radius: var(--theme-card-radius, 16px);
    overflow: hidden;
    box-shadow: var(--theme-shadow-intensity, 0 2px 12px rgba(0, 0, 0, 0.08));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    height: 100%;
    min-height: 400px;
}

.productCard.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary-color, #dc3545) 15%, transparent);
    border-color: var(--theme-primary-color, #dc3545);
}

/* شارة الخصم */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary-color, #dc3545) 30%, transparent);
    font-weight: 700;
}

.discount-badge .discount-percent {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

.discount-badge .discount-label {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* منطقة الصورة */
.productCard.modern-card .imgView {
    position: relative;
    overflow: hidden;
    background: var(--theme-background-color, #f8f9fa);
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.productCard.modern-card .imgView a {
    width: 100%;
    height: 300px;
}

.productCard.modern-card .imgView img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s ease;
    display: block;
}

.productCard.modern-card:hover .imgView img {
    transform: scale(1.08);
}

/* Overlay للعروض */
.offer-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: color-mix(in srgb, var(--theme-primary-color, #dc3545) 95%, transparent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.offer-overlay i {
    font-size: 14px;
}

/* المحتوى */
.productCard.modern-card .content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* شارة القسم */
.category-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--theme-primary-color, #dc3545) 10%, white);
    color: var(--theme-primary-color, #dc3545);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    align-self: flex-start;
}

/* عنوان المنتج */
.productCard.modern-card .product-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--theme-text-color, #333);
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.productCard.modern-card .product-title a {
    color: var(--theme-text-color, #333);
    text-decoration: none;
    transition: color 0.2s;
}

.productCard.modern-card .product-title a:hover {
    color: var(--theme-primary-color, #dc3545);
}

/* قسم السعر */
.price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-primary-color, #dc3545);
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.save-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 13px;
    font-weight: 600;
}

.save-amount i {
    font-size: 14px;
}

/* الأزرار */
.productCard.modern-card .buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
    align-items: stretch;
}

.productCard.modern-card .btn-view {
    flex: 1;
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--theme-button-radius, 10px);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
}

.productCard.modern-card .btn-view:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary-color) 90%, black) 0%, color-mix(in srgb, var(--theme-primary-color) 70%, black) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary-color, #dc3545) 30%, transparent);
    color: #fff;
}

.productCard.modern-card .btn-cart {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--theme-button-radius, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary-color, #dc3545);
    transition: all 0.3s;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.productCard.modern-card .btn-cart:hover {
    background: var(--theme-primary-color, #dc3545);
    color: #fff;
    border-color: var(--theme-primary-color, #dc3545);
    transform: scale(1.05);
}

.productCard.modern-card .btn-cart i {
    font-size: 18px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .productCard.modern-card .product-title {
        font-size: 15px;
        min-height: 40px;
    }

    .current-price {
        font-size: 18px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 5px 10px;
    }

    .discount-badge .discount-percent {
        font-size: 16px;
    }

    .productCard.modern-card .buttons {
        flex-direction: row;
    }

    /* .productCard.modern-card .btn-cart {
        width: 100%;
    } */
}

/* ============================================
   تصميم Footer
   ============================================ */
.footer {
    background: color-mix(in srgb, var(--theme-primary-color, #dc3545) 85%, black);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--theme-primary-color, #dc3545);
}

.footer .container {
    max-width: 1200px;
}

.footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer .brand-name {
    color: #fff !important;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.5px;
}

.footer .item {
    margin-bottom: 15px;
}

.footer .messanger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--theme-button-radius, 25px);
    background: color-mix(in srgb, #fff 15%, transparent);
    border: 2px solid color-mix(in srgb, #fff 30%, transparent);
    transition: all 0.3s ease;
}

.footer .messanger:hover {
    background: #fff;
    color: var(--theme-primary-color, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, #fff 30%, transparent);
}

.footer .messanger i {
    font-size: 20px;
}

.footer .copyRight {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid color-mix(in srgb, #fff 20%, transparent);
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
}

.footer .copyRight span {
    color: #fff;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer .brand-name {
        font-size: 24px;
    }

    .footer h6 {
        font-size: 1rem;
        margin-top: 20px;
    }

    .footer .messanger {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ============================================
   صفحة المنتجات - Filters & Results
   ============================================ */
.filters-sidebar .card {
    border-radius: var(--theme-card-radius, 10px);
    box-shadow: var(--theme-shadow-intensity, 0 2px 10px rgba(0, 0, 0, 0.1));
    border: none;
    margin-bottom: 20px;
}

.filters-sidebar .card-header {
    background: linear-gradient(135deg, var(--theme-primary-color) 0%, color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%);
    color: white;
    border-radius: var(--theme-card-radius, 10px) var(--theme-card-radius, 10px) 0 0;
    padding: 15px;
    font-weight: 700;
}

.filters-sidebar .card-header h5,
.filters-sidebar .card-header h6 {
    color: white;
    margin: 0;
    font-weight: 700;
}

.filters-sidebar .card-body {
    padding: 20px;
}

.stat-item {
    padding: 15px;
    background: var(--theme-background-color, #f8f9fa);
    border-radius: var(--theme-card-radius, 10px);
    margin-bottom: 10px;
}

.stat-item h4 {
    color: var(--theme-primary-color, #dc3545);
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 24px;
}

.stat-item small {
    color: var(--theme-text-color, #666);
    font-size: 12px;
}

.results-header {
    background: var(--theme-background-color, #f8f9fa);
    padding: 15px;
    border-radius: var(--theme-card-radius, 10px);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.results-header h6 {
    color: var(--theme-text-color, #333);
    font-weight: 700;
    margin: 0;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-options .btn {
    margin-left: 5px;
    border-radius: var(--theme-button-radius, 8px);
    padding: 8px 12px;
}

.view-options .btn.active {
    background-color: var(--theme-primary-color, #dc3545);
    border-color: var(--theme-primary-color, #dc3545);
    color: white;
}

.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-products {
    padding: 50px 20px;
    text-align: center;
    background: var(--theme-background-color, #fff);
    border-radius: var(--theme-card-radius, 15px);
    box-shadow: var(--theme-shadow-intensity, 0 2px 10px rgba(0, 0, 0, 0.1));
}

.no-products i {
    color: var(--theme-secondary-color, #6c757d);
    margin-bottom: 20px;
}

.no-products h5 {
    color: var(--theme-text-color, #333);
    font-weight: 700;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--theme-text-color, #666);
    margin-bottom: 20px;
}

/* ============================================
   ProductCard بدون modern-card (للتوافق)
   ============================================ */
.productCard:not(.modern-card) {
    background: var(--theme-background-color, #fff);
    border-radius: var(--theme-card-radius, 10px);
    overflow: hidden;
    box-shadow: var(--theme-shadow-intensity, 0 2px 10px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.productCard:not(.modern-card):hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px color-mix(in srgb, var(--theme-primary-color, #dc3545) 15%, transparent);
}

.productCard:not(.modern-card) .category {
    background: color-mix(in srgb, var(--theme-primary-color, #dc3545) 10%, white);
    color: var(--theme-primary-color, #dc3545);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

/* ============================================
   تصميم Swiper/Slider في صفحة المنتج
   ============================================ */
.productView .images {
    position: relative;
    margin-bottom: 20px;
}

.productView .mainSwiper {
    width: 100%;
    height: 500px;
    border-radius: var(--theme-card-radius, 15px);
    overflow: hidden;
    box-shadow: var(--theme-shadow-intensity, 0 2px 10px rgba(0, 0, 0, 0.1));
    background: var(--theme-background-color, #fff);
}

.productView .mainSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-background-color, #fff);
}

.productView .mainSwiper .imgView {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-background-color, #fff);
}

.productView .mainSwiper .imgView img,
.productView .mainSwiper .imgView video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: var(--theme-card-radius, 15px);
}

.productView .thumbswiper {
    width: 100%;
    height: 100px;
    margin-top: 15px;
}

.productView .thumbswiper .swiper-slide {
    width: auto;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: var(--theme-card-radius, 10px);
    overflow: hidden;
    border: 2px solid transparent;
}

.productView .thumbswiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--theme-primary-color, #dc3545);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-primary-color, #dc3545) 20%, transparent);
}

.productView .thumbswiper .imgView {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-background-color, #fff);
}

.productView .thumbswiper .imgView img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: var(--theme-card-radius, 10px);
}

.productView .thumbswiper .video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.productView .thumbswiper .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: var(--theme-card-radius, 10px);
}

/* Responsive Swiper */
@media (max-width: 768px) {
    .productView .mainSwiper {
        height: 400px;
    }

    .productView .thumbswiper {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .productView .mainSwiper {
        height: 350px;
    }

    .productView .thumbswiper {
        height: 70px;
    }
}