:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --sidebar: #1e1b4b;
    --card-bg: #ffffff;
    --hover: #f1f5f9;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --gray-light: #dfe6e9;
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --gradient-success: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-purple: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* تصميم الشريط الجانبي */
.sidebar {
    background: linear-gradient(180deg, var(--sidebar) 0%, #312e81 100%);
    color: white;
    width: 280px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-right: 4px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-right-color: var(--primary);
}

.sidebar-menu i {
    width: 25px;
    margin-left: 10px;
    font-size: 1.1rem;
}

/* المحتوى الرئيسي */
.main-content {
    direction: rtl;
    /*padding: 30px;*/
    transition: all 0.3s ease;
    margin-top: 15px ;
    min-height: 100vh;
}

.header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.header h1 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
}

.header-actions-category {
    display: flex;
    gap: 15px;
}

/* الكروت */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    margin-bottom: 25px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-icon.primary {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 0.95rem;
}

/* كروت التصنيفات */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-card.main-category {
    border-right: 4px solid var(--primary);
}

.category-card.sub-category {
    margin-right: 30px;
    background-color: #f8fafc;
}

.category-card.sub-category-level2 {
    margin-right: 60px;
    background-color: #f1f5f9;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background-color: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.category-parent {
    font-size: 0.85rem;
    color: #64748b;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.category-actions button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
}

.category-actions button:hover {
    background-color: var(--primary);
    color: white;
}

.category-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.category-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.category-count {
    color: #64748b;
}

/* زر الإضافة العائم */
.floating-add-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
}

.floating-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* المودال */
.modal-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 600;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    right: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--success);
}

input:checked + .toggle-slider:before {
    transform: translateX(-30px);
}

/* شريط البحث */
.search-bar {
    position: relative;
    max-width: 500px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
    }
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: white;
    font-size: 1rem;
    transition: all 0.3s;
    padding-right: 41px;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.search-bar i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* زر القائمة المتحركة */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 3px;
    z-index: 1100;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-top: -20px ;
        /*padding: 20px;*/
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-add-btn {
        left: 20px;
        bottom: 20px;
    }
}

/* تأثيرات دخول للكروت */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ألوان مختلفة للتصنيفات */
.category-color-1 .category-icon { background-color: rgba(99, 102, 241, 0.1); color: #6366f1; }
.category-color-2 .category-icon { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.category-color-3 .category-icon { background-color: rgba(16, 185, 129, 0.1); color: #10b981; }
.category-color-4 .category-icon { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.category-color-5 .category-icon { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }


/*sweet alert start */
.swal-popup-big , .swal {
    font-size: 18px;
    direction: rtl;
}

.swal-title-big {
    font-size: 26px !important;
    direction: rtl;

}

.swal-btn-big {
    font-size: 18px !important;
    padding: 10px 25px !important;
    direction: rtl;

}
/*sweet alert end */

/* start show product page for customer */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(123, 104, 238, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 170, 0.05) 0%, transparent 20%);
    /*min-height: 100vh;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'El Messiri', sans-serif;
    font-weight: 700;
}

.container {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(123, 104, 238, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(123, 104, 238, 0.3);
    transform: rotate(0);
    transition: var(--transition-smooth);
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
}

.logo-text {
    font-family: 'El Messiri', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.action-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(123, 104, 238, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Hero Section */
.hero {
    /*margin-top: 20px;*/
    /*padding: 40px 0 40px;*/
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background:
        radial-gradient(circle at 20% 30%, var(--primary) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, var(--secondary) 0%, transparent 40%);
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    /*background:white;*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Floating Categories */
.floating-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

a {
    text-decoration: none ;
}
.category-chip {
    margin-top: 10px;
    background: white;
    border: 2px solid #eee;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.category-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(123, 104, 238, 0.2);
}

.category-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(123, 104, 238, 0.3);
}

.category-chip-main {
    display: flex;
}

/* Products Grid */
.products-grid {
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));*/
    /*gap: 30px;*/
    margin-bottom: 80px;
}

@media (min-width: 992px) {

    @media (max-width: 1223px) {
        .products-grid {
            gap: 60px;
        }
    }

}
.col-lg-4 {
    margin-bottom: 10px !important;
}

.main-product-card-div {
    margin-bottom: 10px !important;
}
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    margin-bottom: 10px ;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .product-image {
        height: 160px;
    }

    .main-content {
        width: 100%;
    }

}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

/*@media (min-width: 1000px){*/
/*    .product-card {*/
/*        margin-top: 30px !important;*/
/*    }*/
/*}*/

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}

.product-description {
    font-size: 13px;
    color: #666;
    height: 40px;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.add-to-cart {
    background: linear-gradient(45deg, #007bff, #00c6ff);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}

.product-margin {
    margin-bottom: 25px;
}


.product-image {
    width: 100%;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/*.product-card {*/
/*    !*width: 95%;*!*/
/*    padding: 15px;*/
/*    background: white;*/
/*    border-radius: var(--radius-large);*/
/*    overflow: hidden;*/
/*    box-shadow: var(--shadow-soft);*/
/*    transition: var(--transition-smooth);*/
/*    position: relative;*/
/*    opacity: 0;*/
/*    transform: translateY(40px);*/
/*    animation: cardAppear 0.8s forwards;*/
/*}*/

/*.product-margin {*/
/*    margin: 5px ;*/
/*}*/
/*@keyframes cardAppear {*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

/*.product-card:hover {*/
/*    transform: translateY(-20px);*/
/*    box-shadow: var(--shadow-hard);*/
/*}*/

/*.product-card::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 100%;*/
/*    height: 5px;*/
/*    background: var(--gradient-primary);*/
/*    z-index: 2;*/
/*}*/

/*.product-badge {*/
/*    position: absolute;*/
/*    top: 20px;*/
/*    right: 20px;*/
/*    padding: 8px 16px;*/
/*    border-radius: 50px;*/
/*    font-size: 12px;*/
/*    font-weight: 700;*/
/*    color: white;*/
/*    z-index: 2;*/
/*    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
/*}*/

/*.badge-new {*/
/*    background: var(--gradient-primary);*/
/*}*/

/*.badge-sale {*/
/*    background: var(--gradient-secondary);*/
/*}*/

/*.badge-popular {*/
/*    background: linear-gradient(135deg, #00D4AA 0%, #0072FF 100%);*/
/*}*/

/*.product-image {*/
/*    margin-right: auto;*/
/*    margin-left: auto;*/

/*    !*align-self: center;*!*/
/*    height: 190px;*/
/*    overflow: hidden;*/
/*    position: relative;*/
/*    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    width: 70%;*/
/*}*/

/*.product-image .icon-wrapper {*/
/*    margin-left: auto;*/
/*    margin-right: auto;*/
/*    width: 140px;*/
/*    height: 140px;*/
/*    background: white;*/
/*    border-radius: 50%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);*/
/*    transition: var(--transition-smooth);*/
/*}*/

/*.product-card:hover .product-image .icon-wrapper {*/
/*    transform: scale(1.1) rotate(10deg);*/
/*}*/

/*.product-image i {*/
/*    font-size: 70px;*/
/*    background: var(--gradient-primary);*/
/*    -webkit-background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*    transition: var(--transition-smooth);*/
/*}*/

/*.product-info {*/
/*    padding: 25px;*/
/*    position: relative;*/
/*}*/

/*.product-category {*/
/*    display: inline-block;*/
/*    padding: 6px 14px;*/
/*    background: rgba(123, 104, 238, 0.1);*/
/*    color: var(--primary);*/
/*    border-radius: 50px;*/
/*    font-size: 13px;*/
/*    font-weight: 700;*/
/*    margin-bottom: 15px;*/
/*}*/

/*.product-title {*/
/*    font-size: 22px;*/
/*    font-weight: 700;*/
/*    margin-bottom: 10px;*/
/*    color: var(--dark);*/
/*    line-height: 1.3;*/
/*}*/

/*.product-description {*/
/*    color: #666;*/
/*    font-size: 15px;*/
/*    margin-bottom: 20px;*/
/*    line-height: 1.5;*/
/*}*/

/*.product-footer {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    margin-top: 20px;*/
/*}*/

/*.product-price {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

/*.current-price {*/
/*    font-size: 28px;*/
/*    font-weight: 800;*/
/*    color: var(--primary);*/
/*    line-height: 1;*/
/*}*/

/*.old-price {*/
/*    font-size: 16px;*/
/*    color: #999;*/
/*    text-decoration: line-through;*/
/*    margin-top: 5px;*/
/*}*/

/*.product-rating {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 5px;*/
/*    color: #FFC107;*/
/*    font-size: 16px;*/
/*    margin-bottom: 15px;*/
/*}*/

/*.rating-count {*/
/*    color: #777;*/
/*    font-size: 14px;*/
/*    margin-right: 5px;*/
/*}*/

/*.add-to-cart {*/
/*    background: var(--gradient-primary);*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 16px 32px;*/
/*    border-radius: 50px;*/
/*    font-family: 'Tajawal', sans-serif;*/
/*    font-size: 16px;*/
/*    font-weight: 700;*/
/*    cursor: pointer;*/
/*    transition: var(--transition-smooth);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*    box-shadow: 0 10px 25px rgba(123, 104, 238, 0.3);*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.add-to-cart::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);*/
/*    z-index: -1;*/
/*    transition: var(--transition-smooth);*/
/*    opacity: 0;*/
/*}*/

/*.add-to-cart:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 15px 35px rgba(123, 104, 238, 0.4);*/
/*}*/

/*.add-to-cart:hover::before {*/
/*    opacity: 1;*/
/*}*/

/*.add-to-cart:active {*/
/*    transform: translateY(0);*/
/*}*/

/*.cart-container {*/
/*    margin-top: 100px ;*/
/*}*/

/*!* Quick View Modal *!*/
/*.quick-view-modal {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(0, 0, 0, 0.8);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    z-index: 2000;*/
/*    opacity: 0;*/
/*    visibility: hidden;*/
/*    transition: var(--transition-smooth);*/
/*    backdrop-filter: blur(10px);*/
/*}*/

/*.quick-view-modal.active {*/
/*    opacity: 1;*/
/*    visibility: visible;*/
/*}*/

/*.modal-content {*/
/*    background: white;*/
/*    border-radius: var(--radius-large);*/
/*    width: 90%;*/
/*    max-width: 1000px;*/
/*    max-height: 90vh;*/
/*    overflow-y: auto;*/
/*    !*padding: 40px;*!*/
/*    position: relative;*/
/*    transform: translateY(50px);*/
/*    transition: transform 0.5s ease;*/
/*    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);*/
/*}*/

/*.quick-view-modal.active .modal-content {*/
/*    transform: translateY(0);*/
/*}*/

/*.close-modal {*/
/*    position: absolute;*/
/*    top: 20px;*/
/*    left: 20px;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    background: var(--light);*/
/*    border: none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-size: 20px;*/
/*    cursor: pointer;*/
/*    transition: var(--transition-smooth);*/
/*    color: var(--dark);*/
/*}*/

/*.close-modal:hover {*/
/*    background: var(--accent);*/
/*    color: white;*/
/*    transform: rotate(90deg);*/
/*}*/

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(123, 104, 238, 0.3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    padding-right: 10px;
}

.footer-links a i {
    font-size: 12px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}
@media (min-width: 1200px) {
    .cart-container {
        margin-top: 60px ;
    }
}
/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .hero h1 {
        font-size: 56px;
    }

    .cart-container {
        margin-top: 60px ;
    }


}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
    }
    .hero {
        top: 40px ;
    }

    .product-card:hover {
        margin-top: 40px ;
        transform: translateY(-10px);
    }

    .cart-container {
        margin-top: 60px ;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        top: 40px ;
    }

    .hero h1 {
        font-size: 36px;
    }

    .floating-categories {
        gap: 10px;
    }

    .category-chip {
        padding: 12px 20px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cart-container {
        margin-top: 60px ;
    }
}

@media (max-width: 576px) {
    .hero {
        margin-top: 20px;
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .product-card {
        margin-top: 40px ;

        max-width: 100%;
    }

    .product-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .add-to-cart {
        width: 100%;
        justify-content: center;
    }
    .cart-container {
        margin-top: 60px ;
    }
    .main-content {
        width: 100%;
    }
}
.sticky-top {
    z-index : 1;
}

/* end show product page for customer */
/* start */
.paginationItem {
    display: flex;
    justify-content: center;
}

/*start search input */
/* From Uiverse.io by joe-watson-sbf */
.search {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.search__input {
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    border: none;
    color: #646464;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    width: 12em;
    transition: all ease-in-out .5s;
    margin-right: -2rem;
}

.search__input:hover, .search__input:focus {
    box-shadow: 0 0 1em #00000013;
}

.search__input:focus {
    outline: none;
    background-color: #f0eeee;
}

.search__input::-webkit-input-placeholder {
    font-weight: 100;
    color: #ccc;
}

.search__input:focus + .search__button {
    background-color: #f0eeee;
}

.search__button {
    border: none;
    background-color: #f4f2f2;
    margin-top: .1em;
}

.search__button:hover {
    cursor: pointer;
}

.search__icon {
    height: 1.3em;
    width: 1.3em;
    fill: #b4b4b4;
}
/*end search input */
/*start item page for the admin */
.category-card {
    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.badge {
    font-size: 0.75rem;
}

/*end item page for the admin */
/*start style for the table */
.MangaeLevel .table-responsive {
    margin-top: 20px;
    font-size: 1.5rem;
}

.MangaeAcadimicYear .table-responsive {
    margin-top: 20px;
    font-size: 1.5rem;
}
.table-responsive {
    border-radius: var(--border-radius);
    overflow-x: auto;
}
.gs-table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.MangaeLevel .table-responsive {
    margin-top: 20px;
    font-size: 1.5rem;
}

.MangaeAcadimicYear .table-responsive {
    margin-top: 20px;
    font-size: 1.5rem;
}

.table th {
    background: var(--dark);
    color: white;
    font-weight: 600;
    border: none;
    /*text-align: right;*/
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.table td {
    border-color: #eaeaea;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
}

.table tr button {
    margin-left: 5px;
}
.table-responsive {
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px ;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
.product-table th, .product-table td {
    padding: 12px 15px;
    text-align: right; /* محاذاة للنصوص العربية */
    border-bottom: 1px solid #ddd;
}
.product-table th {
    background-color: #f8f9fa; /* لون خلفية فاتح للعناوين */
    color: #333;
    font-weight: bold;
    font-size: 14px;
}
.product-table tr:nth-child(even) {
    background-color: #f2f2f2; /* صفوف متناوبة لسهولة القراءة */
}
.product-table tr:hover {
    background-color: #e9ecef; /* تأثير hover للتفاعل */
}
.product-table .value-cell {
    font-weight: 500;
    color: #007bff; /* لون أزرق للقيم لجعلها بارزة */
}
.product-table .price-cell {
    color: #28a745; /* لون أخضر للأسعار */
    font-weight: bold;
}
/*end style for the table */
/*start manage order */
/*.manage-button {*/
/*    display: flex;*/
/*    gap: 10px ;*/
/*    justify-content: right;*/
/*}*/


@media (max-width: 768px) {
    .manage-button {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-button button {
        width: 100%;
        margin-top: 16px;
    }
}

.manage-button button {
    /*padding: 5px;*/
}
/*end manage order */
.photo-card {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin: 10px;
    transition: transform 0.2s ease;
}

.photo-card:hover {
    transform: scale(1.05);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.main-div {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    !*align-items: center;*!*/

/*}*/
/*.main-content {*/
/*    min-height: 100vh;*/
/*}*/

/* ===== الصفحة ===== */
.main-content {
    /*padding: 30px;*/
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
}

.header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.header-admin h1 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions-category {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.header-actions-category .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header-actions-category .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ===== Cards التصنيفات ===== */
.category-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-icon {
    font-size: 28px;
    color: #007bff;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-name {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.category-parent {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-parent img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    transition: transform 0.3s;
}

.category-parent img:hover {
    transform: scale(1.1);
}

.category-actions {
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    border: none;
    background-color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.btn-delete:hover {
    background-color: #dc3545;
    color: #fff;
    transform: scale(1.1);
}

/* ===== Footer الكارد ===== */
.category-footer {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    font-size: 14px;
    color: #555;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.status-active i {
    color: #28a745;
    margin-right: 5px;
}

.category-count i {
    color: #007bff;
    margin-right: 5px;
}

/* ===== التصنيفات الفرعية ===== */
.sub-category-level2 {
    margin-left: 40px;
    border-left: 3px solid #007bff;
    padding-left: 15px;
    background-color: #f9fafb;
}

.sub-category-level2 .category-icon {
    color: #6c757d;
}

/* ===== زر الإضافة العائم ===== */
.floating-add-btn {
    position: fixed;
    bottom: 30px;
    /*right: 30px;*/
    background-color: #007bff;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.floating-add-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-fav {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-fav:hover {
    background: red;
    color: #fff;
}

/* 🏷️ Discount */
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

/* السعر */
.old-price {
    text-decoration: line-through;
    color: #aaa;
    margin-right: 5px;
}

.new-price {
    color: red;
    font-weight: bold;
}

/* 👁️ Quick view */
.quick-view-btn {
    background: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    cursor: pointer;
}

/*.modern-card {*/
/*    background: #fff;*/
/*    border-radius: 20px;*/
/*    overflow: hidden;*/
/*    transition: 0.4s;*/
/*    box-shadow: 0 5px 25px rgba(0,0,0,0.05);*/
/*}*/

/*.modern-card:hover {*/
/*    transform: translateY(-10px);*/
/*    box-shadow: 0 15px 40px rgba(0,0,0,0.1);*/
/*}*/

/*!* الصورة *!*/
.image-wrapper {

    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .modern-card {
        width: 300px !important;
        /*height: 332px !important;*/

    }


    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 992px) {



    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 768px) {
    .image-wrapper {
        width: 100%;
    }
}
@media (max-width: 576px) {
    .image-wrapper {
        width: 100%;
    }
}





.image-wrapper img {
    border-radius: 20px ;
    object-fit: cover;
    transition: 0.5s;
}


/* البطاقة العامة */
.modern-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* الصورة */
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/*.image-wrapper img {*/
/*    width: 300px;*/
/*    height: 330px;*/
/*    object-fit: cover;*/
/*    transition: transform 0.5s;*/
/*}*/

/*.modern-card:hover .image-wrapper img {*/
/*    transform: scale(1.05);*/
/*}*/

/* شارة الخصم والغير متوفر */
.badge-discount,
.badge-out {
    position: absolute;
    top: 15px;
    /*left: 15px;*/
    padding: 5px 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
}

.badge-out {
    left: 15px;
}

.badge-discount {
    background-color: #e74c3c; /* أحمر للخصم */
}

.badge-out {
    background-color: rgba(0,0,0,0.7);
}

/* زر الإعجاب */
.btn-fav {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 0.3s;
    z-index: 2;
}

.btn-fav:hover {
    background: #ff6b81;
    color: #fff;
}

/* Overlay عند hover */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
    border-radius: 20px;
}

.modern-card:hover .overlay {
    opacity: 1;
}

/* أزرار العرض السريع وإضافة للسلة */
.quick-view-btn,
.btn-cart {
    background: #fff;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.quick-view-btn:hover,
.btn-cart:hover {
    background: #007bff;
    color: #fff;
}

/* تفاصيل البطاقة */
.card-body {
    padding: 15px;
    text-align: center;
}

.category {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.price {
    font-size: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.new-price {
    color: #e74c3c;
    font-weight: bold;
}


/*.modern-card:hover img {*/
/*    transform: scale(1.1);*/
/*}*/

/*!* overlay *!*/
/*.overlay {*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background: rgba(0,0,0,0.4);*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    opacity: 0;*/
/*    transition: 0.3s;*/
/*}*/

/*.modern-card:hover .overlay {*/
/*    opacity: 1;*/
/*}*/

/*!* زر *!*/
/*.btn-cart {*/
/*    background: #fff;*/
/*    color: #000;*/
/*    border: none;*/
/*    padding: 10px 18px;*/
/*    border-radius: 30px;*/
/*    font-size: 14px;*/
/*    cursor: pointer;*/
/*    transition: 0.3s;*/
/*}*/

/*.btn-cart:hover {*/
/*    background: #000;*/
/*    color: #fff;*/
/*}*/

/*.btn-cart:disabled {*/
/*    background: #ccc;*/
/*    cursor: not-allowed;*/
/*}*/

/*!* badge *!*/
/*.badge-out {*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    right: 10px;*/
/*    background: red;*/
/*    color: #fff;*/
/*    padding: 5px 10px;*/
/*    border-radius: 20px;*/
/*    font-size: 12px;*/
/*}*/

/*!* النص *!*/
/*.card-body {*/
/*    padding: 15px;*/
/*    text-align: center;*/
/*}*/

/*.category {*/
/*    font-size: 12px;*/
/*    color: #999;*/
/*}*/

/*.title {*/
/*    font-size: 16px;*/
/*    font-weight: 600;*/
/*    margin: 5px 0;*/
/*    height: 40px;*/
/*    overflow: hidden;*/
/*}*/

/*.price {*/
/*    font-size: 16px;*/
/*    font-weight: bold;*/
/*    color: #000;*/
/*}*/
/* تصميم دائري عصري */
.floating-categories-circle {
    display: flex;
    flex-wrap: nowrap; /* منع انتقال العناصر للسطر الثاني */
    overflow-x: auto; /* إخفاء أي جزء يخرج عن الحاوية */
    gap: 30px;
    padding: 40px 20px;
    border-radius: 60px 60px 40px 40px;
    justify-content: center;

    /* الحركة على محور X */
    animation: floatX 10s linear infinite alternate;
}



.category-circle-item {
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.circle-wrapper {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.category-circle-item:hover .circle-wrapper {
    transform: scale(1.08);
    border-color: #f59e0b;
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.3);
}

.circle-wrapper img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
}

.category-name-circle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #78350f;
    margin-top: 8px;
}

.category-name {
    font-weight: 600;
    font-size: 18px;
}


@media (max-width: 768px) {
    .circle-wrapper {
        width: 90px;
        height: 90px;
    }

    .circle-wrapper img {
        width: 85px;
        height: 85px;
    }

    .category-name-circle {
        font-size: 0.75rem;
    }

    .category-name {
        font-weight: 600;
        font-size: 1rem;
    }
}

/* start item card */

/* style for the cover page start */
.covers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.cover-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.cover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cover-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.cover-card:hover img {
    transform: scale(1.05);
}

.cover-content {
    padding: 15px;
    text-align: center;
}

.cover-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cover-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cover-actions button {
    border: none;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.btn-delete {
    background: #ef4444;
    color: #fff;
}

.no-data {
    text-align: center;
    margin-top: 30px;
    color: #999;
}

/* 📱 موبايل */
@media (max-width: 600px) {
    .covers-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .cover-title {
        font-size: 14px;
    }
}

/* style for the cover page end */

/* for the customer show item start */

/*slider */
/* السلايدر كامل */
#modernSlider .carousel-inner,
#modernSlider .carousel-item {
    height: 70vh;          /* ثابت */
    min-height: 400px;     /* للأجهزة الصغيرة */
}

/* الصورة */
#modernSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* أهم سطر */
    object-position: center;
}

/* Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        to right,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.2),
        rgba(0,0,0,0)
    );
}

/* المحتوى */
.slider-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: black;
    z-index: 2;
}


/* Responsive */
@media (max-width: 768px) {
    #modernSlider .carousel-inner,
    #modernSlider .carousel-item {
        height: 50vh;
    }
}

/* for the button */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;              /* حجم أكبر */
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.7); /* خلفية نصف شفافة */
    border-radius: 50%;       /* شكل دائري */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 5;
}

/* عند Hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(52,152,219,0.8); /* لون مميز */
    transform: translateY(-50%) scale(1.1); /* تكبير خفيف */
}

/* أيقونات الأسهم */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);  /* أبيض */
    width: 25px;
    height: 25px;
}

/* ضبط مكان زر Previous */
.carousel-control-prev {
    left: 15px;
}

/* ضبط مكان زر Next */
.carousel-control-next {
    right: 15px;
}
/* for the customer show item end */
/* for the search start */
#cartSidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: 0.3s ease;
}

#cartSidebar.active {
    transform: translateX(0);
}

#cartSidebar input::placeholder {
    color: #9ca3af;
}

/* for the product in the cart start */
 body {
     background: #f5f7fb;
 }

.cart-container {
    margin-top: 40px;
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

/* كرت المنتج */
.cart-item {
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    transition: 0.3s;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.product-img {
    max-height: 110px;
    object-fit: contain;
    background: #f9fafb;
    padding: 10px;
    border-radius: 12px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.price {
    color: #16a34a;
    font-weight: bold;
}

.discount {
    font-size: 14px;
    color: #ef4444;
}

/* الكمية */
.qty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #e5e7eb;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.qty-number {
    min-width: 35px;
    text-align: center;
    font-weight: bold;
}

/* ملخص الطلب */
.summary-card {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.summary-title {
    font-size: 22px;
    font-weight: 700;
}

.checkout-btn {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    font-weight: bold;
    transition: 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34,197,94,0.3);
}

.remove-btn {
    font-size: 13px;
    padding: 4px 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        text-align: center;
    }
}

.wholesale-box {
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    border-radius: 12px;
    padding: 12px;
}

.wholesale-title {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 6px;
}

.wholesale-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
}

.wholesale-details .label {
    color: #6b7280;
}

.wholesale-details .value {
    font-weight: 600;
    color: #111827;
}

.wholesale-price {
    font-weight: bold;
    color: #16a34a;
    font-size: 16px;
}


/* for the product in the cart end */
/* for the order manage responsive  start  */
@media (max-width: 992px) {
    .products-table table thead {
        display: none;
    }

    .products-table table,
    .products-table tbody,
    .products-table tr,
    .products-table td {
        display: block;
        width: 100%;
    }

    .products-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
        background: #fff;
    }

    .products-table td {
        text-align: right;
        padding: 8px;
        position: relative;
    }

    .products-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #666;
    }
}

@media (max-width: 576px) {
    .header-admin h1 {
        font-size: 1.4rem !important;
    }

    .header-admin p {
        font-size: 0.9rem;
    }
}

/* for the order manage end   */
/* for the sidebar responsive start   */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.sidebar.open + .sidebar-overlay {
    display: block;
}

/* for the sidebar responsive end   */
.profile-card {
    margin-bottom: 15px !important;
}
/* for the category page start  */
/* 🔥 Header */
.header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.header-actions-category {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 📱 موبايل */
@media (max-width: 768px) {
    .header-admin {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions-category {
        width: 100%;
    }

    .header-actions-category button {
        width: 100%;
        justify-content: center;
    }
}

.category-card-modern {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}

.category-card-modern:hover {
    transform: translateY(-5px);
}

/* Header داخل الكرت */
.category-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon-modern img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

/* 📱 موبايل */
@media (max-width: 768px) {
    .category-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-info {
        width: 100%;
    }

    .category-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-actions button,
    .category-actions span {
        flex: 1;
        text-align: center;
    }
}

.subcategories-container {
    background: #f9fbff;
    padding: 15px;
}

.subcategory-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 15px;
    border: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

/* 📱 موبايل */
@media (max-width: 600px) {
    .subcategory-item-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .subcategory-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
}

.floating-add-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    font-size: 20px;
    z-index: 1000;
}

/* 📱 */
@media (max-width: 600px) {
    .floating-add-btn {
        left: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }
}

/* for the category page end  */
.stat-card {
    padding: 15px;
    border-radius: 15px;
    transition: 0.3s;
    background: #fff;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 45px;
    height: 45px;
    margin: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}


/* for the customer show item info start new  */
/*.modern-card {*/
/*    background: #fff;*/
/*    border-radius: 18px;*/
/*    overflow: hidden;*/
/*    transition: 0.3s;*/
/*    box-shadow: 0 10px 25px rgba(0,0,0,0.08);*/
/*    position: relative;*/
/*}*/

/*.modern-card:hover {*/
/*    transform: translateY(-8px);*/
/*    box-shadow: 0 20px 40px rgba(0,0,0,0.12);*/
/*}*/

/*.image-wrapper {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/

/*.image-wrapper img {*/
/*    width: 100%;*/
/*    height: 220px;*/
/*    object-fit: cover;*/
/*    transition: 0.4s;*/
/*}*/

/*.modern-card:hover img {*/
/*    transform: scale(1.08);*/
/*}*/

/*!* overlay *!*/
/*.overlay {*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background: rgba(0,0,0,0.5);*/
/*    display: flex;*/
/*    gap: 10px;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    opacity: 0;*/
/*    transition: 0.3s;*/
/*}*/

/*.modern-card:hover .overlay {*/
/*    opacity: 1;*/
/*}*/

/*!* buttons *!*/
/*.quick-view-btn {*/
/*    background: white;*/
/*    border: none;*/
/*    padding: 8px 14px;*/
/*    border-radius: 8px;*/
/*    font-size: 14px;*/
/*    cursor: pointer;*/
/*}*/

/*.btn-cart {*/
/*    background: #2563eb;*/
/*    color: white;*/
/*    border: none;*/
/*    padding: 10px;*/
/*    border-radius: 50%;*/
/*    cursor: pointer;*/
/*    transition: 0.3s;*/
/*}*/

/*.btn-cart:hover {*/
/*    background: #1d4ed8;*/
/*    transform: scale(1.1);*/
/*}*/

/*.price {*/
/*    margin-top: 10px;*/
/*}*/

/*.old-price {*/
/*    text-decoration: line-through;*/
/*    color: #999;*/
/*    margin-left: 8px;*/
/*}*/

/*.new-price {*/
/*    color: #16a34a;*/
/*    font-weight: bold;*/
/*    font-size: 18px;*/
/*}*/

/*.modern-card {*/
/*    animation: fadeUp 0.5s ease;*/
/*}*/

/*@keyframes fadeUp {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: translateY(20px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

/*.badge-discount {*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    left: 10px;*/
/*    background: red;*/
/*    color: white;*/
/*    padding: 5px 8px;*/
/*    border-radius: 6px;*/
/*    font-size: 12px;*/
/*}*/



/* for the customer show item info end */
