﻿:root {
    --mainBackgroundColor: #F0F0F0;
    --hederBackgroundColoe: #333333;
    --dropdownBackgroundHover: #444444;
    --elementWidth: 300px;
    --elementHeight: 50px;
    --btnBackgroundColor: #007bff;
    --btnBackgroundColorHover: #0056b3;
    --btnBackgroundColorProductAdded: #4CAF50;
    --btnBackgroundColorProductAddedHover: #45a049;
    --btnRed: #dc3545;
    --btnRedHover: #c82333;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
}
    


/* Loading*/
.lodingContainer {
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: black;
    z-index: 1000;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.1);
}

.lodingContainer {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Catogry Card */
/* category */
.divCategory{
    margin:0;
}
.category {
    display: flex;
    flex: 0 0 100%;
    font-size: 1.25rem;
    box-sizing: border-box;
    height: 50px;
    align-items: flex-end;
    padding-left: 0.4rem;
}

.categoryLinkIndex {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3436;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
    .categoryLinkIndex:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        background: #fff;
        color: #007bff;
    }
    .categoryLinkIndex.pe-none{
        cursor: default;
        color: #059669;
    }
/* product */
.mainProductsCard {
    display: flex;
    flex-wrap: nowrap; /* لا تلتف العناصر */
    overflow-x: auto; /* يسمح بالتمرير الأفقي */
    overflow-y: hidden;
    gap: 16px;
    padding: 20px;
    scroll-padding-left: 20px;
    scroll-snap-type: x mandatory;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 18px;
    margin-bottom: 20px;
}


.productsCard {
    flex: 0 0 auto;
    width: 280px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    scroll-snap-align: start;
    white-space: normal;
}

    .productsCard img {
        width: 90%; 
        height: 300px; 
        object-fit: contain;
        margin-bottom: 10px;
        transition: transform 0.2s ease;
        object-fit: cover;
    }

        .productsCard img:hover {
            transform: scale(1.05);
            cursor: pointer;
        }
    /* Show all individually */
    .main {
        padding: 1rem;
        height: 100vh;
    }

.productItems {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.cardProduct {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

    .cardProduct:hover {
        transform: translateY(-5px);
    }

    .cardProduct img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        cursor:pointer;
    }

.btnProduct1, .btnProductAdded1 {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btnProduct1 {
    background-color: #007BFF;
    color: white;
}

    .btnProduct1:hover {
        background-color: #0056b3;
    }

.btnProductAdded1 {
    background-color: #28a745;
    color: white;
}

    .btnProductAdded1:hover {
        background-color: #218838;
    }

.QuantityInput {
    width: 60px;
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-align: center;
}
/* loggo in Seiten */
.logoDiv {
    width: 100%;
    margin-top: 100px;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    /* product card */
    .mainProductsCard {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 16px;
        padding: 16px;
        margin-bottom: 30px;
        overflow: unset;
    }
    .productsCard img {
        width: 100%; 
        height: 150px; 
        object-fit: contain; 
    }
    .productsCard {
        width: 100%;
        margin: 0;
    }

    .productsCart {
        justify-content: center;
        
    }

    /* Show all individually */
    .productItems {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 480px) {
    .mainProductsCard {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        overflow: unset; /* Horizontales Scrollen entfernen */
    }

    .productsCard {
        width: 100%; 
        margin: 0;
    }

        .productsCard img {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }

    .productItems {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
}

