:root {
            --primary-color: #2E7D32;
            --secondary-color: #4CAF50;
            --light-green: #8BC34A;
            --dark-green: #1B5E20;
            --accent-green: #66BB6A;
            --dark-color: #1A1A1A;
            --light-color: #FFFFFF;
            --gray-color: #F5F5F5;
            --text-color: #333333;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Zain", sans-serif;
        }
    .badge {
        color: red;
        background-color: antiquewhite;
        width: 100%;
    }
        body {
            color: var(--text-color);
            background-color: var(--light-color);
        }
        

        /* Header Styles */
        header {
            padding-top: 10px;
            padding-right: 10px;
            padding-bottom: 0px;
            padding-left: 10px;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(31px);
            background-color: var(--primary-color);
            /* background: linear-gradient(145deg, #ffffffb3, #fafafa); */
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo img {
            width: 100%;
            height: 50px;
            object-fit: contain;
        }

        .header-icons {
            display: flex;
            gap: 20px;
            align-items: center;
            padding: 0px 10px;
        }

        .header-icon {
            position: relative;
            font-size: 20px;
            color: var(--dark-color);
        }

        .search-container {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
        }

        #search-input {
            width: 100%;
            padding: 10px 45px 10px 15px;
            border: 1px solid #ddd;
            border-radius: 25px;
            font-size: 14px;
            outline: none;
            transition: all 0.3s;
        }

        #search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
        }

        #search-btn {
            position: absolute;
            left: 10px;
            background: none;
            border: none;
            color: #777;
        }
        
        .fa-magnifying-glass:before, .fa-search:before {
            padding: 8px;
            background-color: black;
            color: white;
            border-radius: 20px;
        }
        .fa-cart-shopping:before, .fa-shopping-cart:before{
            padding: 8px;
            color: white;
        }
        
        .cart-count {
            position: absolute;
            top: -8px;
            left: -8px;
            /* background-color: var(--primary-color); */
            background-color: antiquewhite;
            /* color: var(--light-color); */
            color: black;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
        }

        /* Categories */
        .categories-container {
            padding: 5px 5px;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .categories-container::-webkit-scrollbar {
            display: none;
        }

        .categories {
            display: inline-flex;
            gap: 30px;
        }

        .category-btn {
            padding: 8px 0px;
            background-color: var(--primary-color);
            border: 1px solid var(--primary-color);
            border-radius: 0px;
            font-size: 14px;
            transition: all 0.3s;
            color: white;
        }
        .category-btn:hover{
            background-color: var(--primary-color);
            color: black;
            border-color: var(--primary-color);
        }
        .category-btn.active{
            background-color: var(--primary-color);
            color: var(--light-color);
            border-color: var(--primary-color);
            border-bottom: 2px solid white;
        }
        
        /* Products Section */
        .products-container {
            padding: 10px;
            background-color: #FFFFFF;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 15px;
        }

        .product-card {
            background-color: var(--light-color);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        .product-image-container {
            position: relative;
            width: 100%;
            height: 200px;
            overflow: hidden;
        }

        .product-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .product-card:hover .product-image {
            transform: scale(1.05);
        }

        .discount-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: var(--primary-color);
            color: var(--light-color);
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
        }

        .product-info {
            padding: 5px;
        }

        .product-title {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-price {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .current-price {
            font-weight: bold;
            color: var(--primary-color);
            font-size: 16px;
        }

        .original-price {
            font-size: 12px;
            color: #999;
            text-decoration: line-through;
        }

        .add-to-cart {
            width: 100%;
            padding: 8px;
            background-color: var(--primary-color);
            color: var(--light-color);
            border: none;
            border-radius: 6px;
            font-weight: bold;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .add-to-cart:hover {
            background-color: var(--dark-green);
        }
        .fly-image {
        position: fixed;
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        z-index: 9999;
        transition: all 0.8s cubic-bezier(0.45, 0, 0.55, 1);
        pointer-events: none;
        }

        /* Product Detail Popup */
        .product-popup-overlay {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: center;
        }

        .product-popup {
            background-color: white;
            border-radius: 10px;
            width: 98%;
            height: 99%;
            overflow-y: auto;
            padding: 20px;
            position: relative;
        }

        .popup-close {
            position: absolute;
            top: 15px;
            left: 15px;
            font-size: 24px;
            color:white;
            z-index: 10;
        }
        .fa-times:before {
            background-color: var(--primary-color);
            padding: 6px;
            border-radius: 4px;
        }

        .popup-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .popup-image {
            width: 100%;
            height: 300px;
            object-fit: contain;
            border-radius: 8px;
        }

        .popup-details {
            padding: 10px;
        }

        .popup-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
            color: var(--dark-green);
        }

        .popup-description {
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .popup-price {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .popup-current-price {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
        }

        .popup-original-price {
            font-size: 18px;
            color: #999;
            text-decoration: line-through;
        }

        .popup-discount {
            background-color: var(--primary-color);
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
        }

        .popup-add-to-cart {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .popup-add-to-cart:hover {
            background-color: var(--dark-green);
        }

        /* Cart Sidebar */
        .cart-overlay {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            display: none;
            justify-content: flex-end;
        }

        .cart-sidebar {
            width: 100%;
            max-width: 400px;
            height: 100%;
            background-color: var(--light-color);
            overflow-y: auto;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .cart-overlay.active {
            display: flex;
        }

        .cart-overlay.active .cart-sidebar {
            transform: translateX(0);
        }

        .cart-header {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #eee;
            background-color: var(--primary-color);
            color: white;
        }

        .cart-title {
            font-size: 20px;
            font-weight: bold;
        }

        .close-cart {
            background: none;
            border: none;
            font-size: 24px;
            color: white;
        }

        .cart-items {
            padding: 20px;
            flex-grow: 1;
            overflow-y: auto;
        }

        .cart-item {
            display: flex;
            gap: 12px;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .cart-item-image {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
        }

        .cart-item-details {
            flex: 1;
        }

        .cart-item-title {
            font-size: 14px;
            margin-bottom: 5px;
        }

        .cart-item-price {
            font-size: 14px;
            color: var(--primary-color);
            font-weight: bold;
            margin-bottom: 8px;
        }

        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .quantity-btn {
            width: 25px;
            height: 25px;
            border: 1px solid #ddd;
            background-color: var(--light-color);
            border-radius: 4px;
        }

        .quantity {
            font-size: 14px;
        }

        .remove-item {
            color: #ff4757;
            margin-right: auto;
            font-size: 14px;
        }

        .cart-summary {
            padding: 20px;
            border-top: 1px solid #eee;
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            font-size: 18px;
            font-weight: bold;
        }

        .checkout-btn {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: var(--light-color);
            border: none;
            border-radius: 8px;
            font-weight: bold;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .checkout-btn:hover {
            background-color: var(--dark-green);
        }

        .empty-cart {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }

        /* Customer Form */
        .customer-form {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 9999;
            padding: 20px;
            overflow-y: auto;
            box-sizing: border-box;
            background: white;
        }

        .form-title {
            font-size: 18px;
            margin-bottom: 15px;
            text-align: center;
            color: var(--dark-green);
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .form-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 14px;
        }

        .form-input:focus {
            border-color: var(--primary-color);
            outline: none;
        }

        .form-buttons {
            display: flex;
            gap: 10px;
        }

        .form-btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 5px;
            font-weight: bold;
        }

        .btn-back {
            background-color: #f1f1f1;
            color: #333;
        }

        .btn-submit {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-submit:hover {
            background-color: var(--dark-green);
        }
       
        /* Search no results */
        .no-results {
            text-align: center;
            padding: 40px 20px;
            grid-column: 1 / -1;
        }

        /* Animations */
        @keyframes slideDown {
            from { top: -60px; opacity: 0; }
            to { top: 0; opacity: 1; }
        }

        @keyframes slideUp {
            from { top: 0; opacity: 1; }
            to { top: -60px; opacity: 0; }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        /* Responsive Styles */
        @media (min-width: 768px) {
            .header-top {
                margin-bottom: 0;
                width: auto;
            }
            
            .search-container {
                width: 100%;
            }
            
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .popup-content {
                flex-direction: row;
            }
            
            .popup-image {
                width: 40%;
                height: auto;
            }
            
            .popup-details {
                width: 60%;
            }

            .product-title {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                width: 200px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .badge {
                text-align: center;
                border-radius: 20px;
                font-size: 12px;
            }
            .bdg {
                width: 43%;
            }
        }

        @media (max-width: 480px) {
            .header-top {
                gap: 10px;
            }
            
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .product-image-container {
                height: 200px;
            }

            .product-title {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                width: 170px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .badge {
                font-size: 10px;
                font-weight: bold;
                text-align: center;
                border-radius: 20px;
            }
            .bdg {
                width: 40%;
            }
        }





 