 @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #ec4899;
            --accent: #f59e0b;
            --background: #0f172a;
            --card-bg: rgba(30, 41, 59, 0.7);
            --text: #f8fafc;
            --success: #22c55e;
            --modal-bg: rgba(15, 23, 42, 0.95);
        }

        [data-theme="light"] {
            --background: #f8fafc;
            --card-bg: rgba(255, 255, 255, 0.9);
            --text: #0f172a;
            --modal-bg: rgba(248, 250, 252, 0.95);
        }

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

        body {
            background: var(--background);
            color: var(--text);
            min-height: 100vh;
            transition: background 0.5s, color 0.5s;
        }

    
  .navbar {
            background: rgba(30, 41, 59, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        [data-theme="light"] .navbar {
            background: rgba(255, 255, 255, 0.95);
        }

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

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

        .nav-links a {
            color: var(--text);
            text-decoration: none;
            font-size: 0.9rem;
            transition: 0.3s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: var(--primary);
            transform: translateY(-2px);
        }


        .whatsapp-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: 0.3s;
            text-decoration: none;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-left: 0.5rem;
        }

        .whatsapp-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .theme-toggle, .notification-btn {
            background: transparent;
            border: none;
            color: var(--text);
            font-size: 1.25rem;
            cursor: pointer;
            transition: 0.3s;
            margin-left: 1rem;
        }

        .menu-toggle {
            display: none;
            font-size: 1.5rem;
            color: var(--text);
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 60px;
                right: 0;
                background: var(--card-bg);
                width: 100%;
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
                max-height: 80vh;
                overflow-y: auto;
            }

            .nav-links.active {
                display: flex;
                flex-wrap: wrap;
                flex-direction: row;
                justify-content: space-between;
            }

            .nav-links a {
                width: 48%;
                margin-bottom: 0.5rem;
            }

            .menu-toggle {
                display: block;
            }

            .nav-auth {
                display: none;
            }

            .nav-links .mobile-auth {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                width: 100%;
            }
        }

        
        .categories-tabs {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 2rem 0;
            flex-wrap: wrap;
            padding: 0 1rem;
        }

        .category-tab {
            background: var(--card-bg);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 2rem;
            color: var(--text);
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            backdrop-filter: blur(10px);
        }

        .category-tab.active {
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }

      
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
            margin: 2rem 1rem;
        }

        .product-card {
            background: var(--card-bg);
            border-radius: 1rem;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            backdrop-filter: blur(10px);
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

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

        .product-image {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.5s, transform 0.5s;
        }

        .product-image.active {
            opacity: 1;
        }

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

        .product-price {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: var(--accent);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
            z-index: 2;
        }

        .product-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: var(--primary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: bold;
            z-index: 2;
        }

        .product-content {
            padding: 1.5rem;
        }

        .product-title {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            color: var(--text);
        }

        .product-description {
            font-size: 0.9rem;
            color: var(--text);
            opacity: 0.8;
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .product-actions {
            display: flex;
            gap: 1rem;
        }

        .product-btn {
            flex: 1;
            padding: 0.75rem;
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            text-decoration: none;
        }

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

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

        .product-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.1);
        }


        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--modal-bg);
            backdrop-filter: blur(10px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 1rem;
        }

        .modal-content {
            background: var(--card-bg);
            border-radius: 1rem;
            padding: 2rem;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

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

        .modal-close {
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.5rem;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .modal-close:hover {
            transform: rotate(90deg);
        }

        .modal-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .modal-gallery img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .modal-gallery img:hover {
            transform: scale(1.05);
        }

        .modal-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .modal-section {
            margin-bottom: 1.5rem;
        }

        .modal-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .features-list {
            list-style: none;
        }

        .features-list li {
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .features-list li i {
            color: var(--success);
        }

        .price-tag {
            font-size: 2rem;
            font-weight: bold;
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .footer {
            background: var(--card-bg);
            padding: 2rem;
            text-align: center;
            margin-top: 4rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: center;
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-links a {
            color: var(--text);
            text-decoration: none;
            font-size: 1rem;
            transition: 0.3s;
        }

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

        .footer-social {
            display: flex;
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .footer-social a {
            color: var(--text);
            font-size: 1.5rem;
            transition: 0.3s;
        }

        .footer-social a:hover {
            color: var(--primary);
        }

        .footer-copyright {
            margin-top: 1rem;
            font-size: 0.9rem;
            color: var(--text);
        }

        .footer-copyright .developer {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-copyright .dev-name {
            font-weight: bold;
            color: var(--primary);
            transition: 0.3s;
            text-decoration: none;
        }

        .footer-copyright .dev-name:hover {
            color: var(--secondary);
            text-decoration: underline;
        }

        .footer-copyright .separator {
            color: var(--text);
            opacity: 0.7;
        }

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

            .modal-content {
                padding: 1rem;
            }

            .product-card {
                margin-bottom: 1rem;
            }
        }

      
        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .modal-content {
            animation: fadeIn 0.3s ease-out;
        }