/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header */
.header {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Categories Section */
.categories {
    padding: 20px;
    text-align: center;
}

.category-list {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    scrollbar-width: thin; /* Custom scrollbar for Firefox */
}

.category-list::-webkit-scrollbar {
    height: 8px; /* Height of scrollbar */
}

.category-list::-webkit-scrollbar-thumb {
    background: #222; /* Scrollbar thumb color */
    border-radius: 4px;
}

.category-list::-webkit-scrollbar-track {
    background: #f4f4f4; /* Scrollbar track color */
}

.category {
    flex: 0 0 auto; /* Prevent shrinking and ensure proper width */
    background: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    width: 200px;
    transition: transform 0.2s;
}

.category:hover {
    transform: scale(1.05);
}

.category img {
    width: 100%;
    border-radius: 8px;
}


/* Products Section */
.products {
    padding: 20px;
    text-align: center;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product {
    display: block;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: calc(33.33% - 20px); /* Adjust for responsive layout */
    max-width: 300px;
    min-width: 200px;
    box-sizing: border-box;
}

.product img {
    width: 100%;
    border-radius: 8px;
}

.product h3, .product p {
    margin: 10px 0;
}

.product button {
    padding: 10px 15px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product button:hover {
    background-color: #444;
}


.product {
    position: relative;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Footer */
.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 10px 0;
}

/* Custom Alert Modal */
.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.alert-box {
    background: #fff;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    animation: slideIn 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.alert-box h2 {
    margin: 0 0 10px;
    font-size: 1.8em;
    color: #222;
}

.alert-box p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #555;
}

.alert-box a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.alert-box a:hover {
    text-decoration: underline;
}

.close-btn {
    margin-top: 20px;
    padding: 10px 15px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    

    .product {
        width: calc(50% - 20px); /* Show two products per row */
    }
}

@media (max-width: 480px) {
    .product {
        width: 100%; /* Show one product per row */
    }

    .alert-box h2 {
        font-size: 1.5em; /* Adjust modal text size for smaller screens */
    }

    .alert-box p {
        font-size: 1em;
    }
}



.back{
    text-align: center;
    margin: 20px;
  
    
}

.back button{
    color: white;
    background-color: red;
    border: none;
    font-family: sans-serif;
    cursor: pointer;
    padding: 10px;
    font-size: 1.2rem;
}

