/* صفحة المنتجات في لوحة الأدمن */
.admin-content .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background-color: var(--primary-color);
    color: white;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: rgba(0,0,0,0.03);
}

.admin-table .btn-sm {
    padding: 6px 10px;
    margin: 0 5px;
    border-radius: 4px;
}

.admin-table .btn-edit {
    background-color: var(--secondary-color);
    color: white;
}

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

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* نموذج إضافة المنتج */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal .close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 4rem 5% 0; /* Changed bottom padding to 0 */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.8;
    mix-blend-mode: overlay;
}

.hero-content {
    max-width: 1000px;
    margin: 6rem auto 0; /* Increased top margin to move text further down */
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.service-card .btn-primary:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services {
    padding: 8rem 5%;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.8rem;
}

/* About Section */
.about {
    padding: 8rem 5%;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
    direction: rtl; /* الاتجاه الصحيح للنص العربي */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-sections {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section, .footer-info {
    flex: 0 1 250px;
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط المحتوى أفقياً */
}

.footer-section h4, .footer-info h3 {
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    text-align: center;
    width: 100%;
}

.footer-section ul, .footer-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط العناصر */
    width: 100%;
}

.footer-section ul li, .footer-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center; /* توسيط العناصر داخل العنصر */
    width: 100%;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-section ul li i {
    margin-left: 10px;
    color: #3498db;
}

.footer-info p {
    color: #bdc3c7;
    margin-bottom: 15px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    color: #bdc3c7;
}

@media (max-width: 768px) {
    .footer-sections {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section, .footer-info {
        width: 100%;
        margin-bottom: 20px;
    }
}

.footer-ltr .footer-content,
.footer-ltr .footer-grid {
    text-align: left;
}

.footer-rtl .footer-content,
.footer-rtl .footer-grid {
    text-align: right;
}

.footer-ltr .footer-column {
    align-items: flex-start;
}

.footer-rtl .footer-column {
    align-items: flex-end;
}

.footer-ltr .footer-heading::after {
    left: 0;
}

.footer-rtl .footer-heading::after {
    right: 0;
}

.footer-ltr .brand-column {
    align-items: flex-start;
    text-align: left;
}

.footer-rtl .brand-column {
    align-items: flex-end;
    text-align: right;
}

.footer-ltr .brand-column .footer-logo {
    margin-left: 0;
    margin-right: 0;
}

.footer-rtl .brand-column .footer-logo {
    margin-right: 0;
    margin-left: auto;
}

.footer-ltr .brand-column .footer-description {
    margin-left: 0;
    margin-right: 0;
}

.footer-rtl .brand-column .footer-description {
    margin-right: 0;
    margin-left: auto;
}

.footer-ltr .brand-column .social-icons {
    justify-content: flex-start;
}

.footer-rtl .brand-column .social-icons {
    justify-content: flex-end;
}

.footer-ltr .social-icons {
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
}

.footer-rtl .social-icons {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
}

/* Auth Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.auth-form .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1rem;
}

.auth-links a:hover {
    color: var(--accent-color);
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alert-error {
    background-color: #ffe6e6;
    color: #d63031;
    border: 1px solid #ff7675;
}

.alert-success {
    background-color: #e6ffe6;
    color: #00b894;
    border: 1px solid #55efc4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links .cta-button {
        margin: 0.5rem auto;
        display: inline-block;
    }
}

/* Dashboard Styles */
.admin-dashboard {
    background-color: #f8f9fa;
    padding-top: 100px; /* إضافة مسافة من أعلى */
}

.admin-container {
    margin-top: 20px; /* مسافة إضافية تحت شريط العنوان */
    padding: 0 20px;
    position: relative;
}

.admin-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-right: 20px; /* إبعاد عن الشريط الجانبي */
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
}

td {
    color: var(--text-color);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.actions button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.add-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .admin-container {
        margin-top: 60px;
    }

    .admin-sidebar {
        top: 60px;
        width: 100%;
        height: auto;
        position: static;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-sections {
        grid-template-columns: 1fr;
    }
}

/* Products Page Styles */
.products-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.products-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 3px;
}

.products-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.product-icon {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.1));
    opacity: 0.7;
}

.product-content {
    padding: 2rem;
    position: relative;
}

.product-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-category {
    display: inline-block;
    color: white;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--accent-color);
    margin-bottom: 1.5rem;
}

.product-description {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f5f5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price::before {
    content: 'KWD';
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.product-footer .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .products-container {
        margin: 2rem auto;
    }

    .products-header h2 {
        font-size: 2.5rem;
    }

    .category-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0.5rem;
    }

    .product-content {
        padding: 1.5rem;
    }

    .product-content h3 {
        font-size: 1.5rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-footer .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    padding-top: 60px; /* مساحة لشريط التنقل العلوي */
    background: #f5f6fa;
}

.admin-sidebar {
    width: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    transition: width 0.3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.admin-sidebar h3 {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar ul li {
    margin: 0;
    transition: all 0.3s ease;
}

.admin-sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px 0;
    cursor: pointer;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li.active a {
    background-color: #4fcf70;
    color: white;
    transform: translateX(-5px);
}

.admin-sidebar ul li a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.admin-sidebar ul li:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-sidebar ul li.active,
.admin-sidebar ul li a:hover {
    color: white;
    background-color: rgba(255,255,255,0.2);
}

.admin-sidebar ul li.active a {
    font-weight: bold;
    border-right: 4px solid white;
}

.logout-link {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: white !important;
    background-color: rgba(0,0,0,0.1);
}

.admin-sidebar .logout-link {
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.admin-sidebar .logout-link:hover {
    background-color: white;
    color: #2c3e50;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Main Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-logo i {
    margin-left: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Settings Form */
.settings-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.settings-form input:focus,
.settings-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.settings-form textarea {
    resize: vertical;
    min-height: 100px;
}

.settings-form .form-actions {
    margin-top: 2rem;
    text-align: left;
}

.settings-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.settings-form .btn-primary i {
    margin-left: 0.5rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* زر تسجيل الخروج */
.logout-link {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-left: 10px;
}

.logout-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.logout-link i {
    margin-left: 5px;
}

/* زر تسجيل الخروج في لوحة التحكم الإدارية */
.admin-sidebar .logout-link {
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.admin-sidebar .logout-link:hover {
    background-color: white;
    color: #2c3e50;
}

/* صفحة الملف الشخصي */
.profile-page {
    background-color: #f4f7f6;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    margin-top: 80px; /* زيادة الهامش العلوي لتجنب التداخل مع الهيدر */
}

.profile-page .container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 2rem;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 2rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.profile-info h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.profile-stats .stat {
    text-align: center;
}

.profile-stats .stat span {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-stats .stat strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.profile-tabs .tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 2rem;
}

.profile-tabs .tab-link {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tabs .tab-link i {
    margin-left: 0.5rem;
}

.profile-tabs .tab-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.profile-tabs .tab-content {
    display: none;
}

.profile-tabs .tab-content.active {
    display: block;
}

.profile-tabs .form-group {
    margin-bottom: 1rem;
}

.profile-tabs .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.profile-tabs .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.profile-tabs .form-group input:read-only {
    background-color: #f4f4f4;
    cursor: not-allowed;
}

/* صورة المنتج المصغرة */
.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-thumbnail.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--border-color);
    color: white;
    font-size: 1.5rem;
}

.no-products {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-products i {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-products p {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* تصميم بطاقات المنتجات */
.products-grid {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 20px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.product-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
}

.product-details {
    padding: 15px;
    text-align: right;
}

.product-details h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-meta i {
    margin-left: 5px;
    color: var(--primary-color);
}

.product-stock {
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.product-actions .btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.product-actions .btn-edit:hover {
    color: var(--secondary-color);
}

.product-actions .btn-delete:hover {
    color: var(--danger-color);
}

.no-products {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.no-products-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-products h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.no-products p {
    color: var(--text-color);
    opacity: 0.7;
}

/* تحسين التفاعل */
button, 
.btn,
a.btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.btn:hover,
a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* تحسين التفاعل مع الجداول */
table tr {
    transition: all 0.3s ease;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* تحسين النماذج */
input, select, textarea {
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: #4fcf70;
    box-shadow: 0 0 0 2px rgba(79, 207, 112, 0.2);
}

/* صفحة الملف الشخصي */
.profile-page {
    background-color: #f4f7f6;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    margin-top: 80px; /* زيادة الهامش العلوي لتجنب التداخل مع الهيدر */
}

.profile-page .container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 30px;
}

.profile-avatar {
    margin-left: 30px;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.profile-info h1 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.profile-info p {
    margin: 0 0 15px;
    opacity: 0.8;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stats .stat {
    text-align: center;
}

.profile-stats .stat span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.profile-stats .stat strong {
    font-size: 1.5rem;
}

.profile-tabs {
    display: flex;
    background-color: #f9f9f9;
}

.tabs {
    width: 250px;
    background-color: #f1f1f1;
    padding: 20px 0;
    border-left: 1px solid #e0e0e0;
}

.tab-link {
    display: block;
    width: 100%;
    text-align: right;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-link i {
    margin-left: 10px;
    color: #3498db;
}

.tab-link:hover, .tab-link.active {
    background-color: #e6e6e6;
}

.tab-link.active {
    border-right: 4px solid #3498db;
    color: #3498db;
}

.tab-content {
    display: none;
    padding: 30px;
    width: 100%;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .tabs {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .tab-link {
        text-align: center;
    }

    .tab-link.active {
        border-right: none;
        border-bottom: 4px solid #3498db;
    }
}

.main-content {
    position: relative;
    z-index: 1;
    padding-top: 100px; /* زيادة التباعد العلوي */
}

/* تنسيقات الصفحة الشخصية الجديدة */
.profile-page {
    background-color: #f4f7f6;
    min-height: calc(100vh - 80px);
    padding-top: 100px;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.profile-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.profile-avatar-wrapper {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.profile-avatar-wrapper h2 {
    margin: 10px 0 5px;
    font-size: 1.5rem;
}

.user-email {
    opacity: 0.8;
    font-size: 0.95rem;
}

.profile-nav {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
    text-align: right;
}

.nav-link i {
    margin-left: 10px;
    width: 20px;
    color: #3498db;
}

.nav-link:hover {
    background-color: #f8f9fa;
}

.nav-link.active {
    background-color: #3498db;
    color: white;
}

.nav-link.active i {
    color: white;
}

.profile-stats-wrapper {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.stat-card:last-child {
    margin-bottom: 0;
}

.stat-card i {
    font-size: 1.5rem;
    margin-left: 15px;
    color: #3498db;
}

.stat-info {
    flex-grow: 1;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.profile-content {
    flex-grow: 1;
}

.content-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-card h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.content-card h3 i {
    margin-left: 10px;
    color: #3498db;
}

.form-content {
    max-width: 600px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
}

/* الأمان */
.security-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: #f1f1f1;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: #e1f0fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #3498db;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin: 0 0 5px;
    color: #2c3e50;
}

.item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* الإشعارات */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.notification-item.unread {
    background: #e1f0fa;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #3498db;
}

.notification-content {
    flex-grow: 1;
}

.notification-content p {
    margin: 0 0 5px;
    color: #2c3e50;
}

.notification-time {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.notification-action {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 5px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-outline {
    border: 2px solid #3498db;
    color: #3498db;
    background: none;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-text {
    background: none;
    color: #3498db;
    padding: 5px 10px;
}

.btn-text:hover {
    background: #f1f1f1;
}

/* إعدادات التبديل */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        width: 100%;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .item-icon {
        margin: 0 auto;
    }
}

/* Cart Button Styles */
.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cart-button:hover {
    transform: scale(1.1);
}

.cart-button i {
    color: white;
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.cart-item-quantity button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px 10px;
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
}

.cart-item-actions {
    margin-left: 10px;
}

.delete-cart-item-btn {
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-cart-item-btn:hover {
    background: #ff0000;
}

.cart-dropdown-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
}

.cart-total {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: left;
}

.checkout-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.checkout-button:hover:before {
    left: 100%;
}

.checkout-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-button i {
    font-size: 1.2rem;
}

.checkout-button.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.checkout-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.checkout-button.disabled:before {
    display: none;
}

.cart-empty-message {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #64b5f6;
}

.footer-ltr .social-icons {
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
}

.footer-rtl .social-icons {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
}
