body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo img {
    width: 100px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

nav a.login, nav a.register {
    color: #27ae60;
}

nav .cart-btn {
    background-color: #27ae60;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav .cart-btn:hover {
    background-color: #219150;
}

nav .cart-btn img {
    width: 20px;
    margin-right: 8px;
}

.search-section {
    position: relative;
    height: 250px;
    background: url('https://www.alfies.at/config/images/hsud7t263jo_desktop.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 70px 40px 40px;
    text-align: center;
    border-radius: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.background-overlay h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;

}

.search-bar input {
    padding: 10px;
    width: 600px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    height: 40px;
    text-align: center;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    height: 40px;
}

.search-bar button:hover {
    background-color: #219150;
}

.refresh {
    background-color: #27ae60;
    padding: 3px 20px;
    border-radius: 360px;
    font-size: 1.2rem;
    cursor: pointer;
    outline: none;
    border: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    color: white;
    text-decoration: none;
    align-content: center;
}

.refresh:hover {
    background-color: #219150;
    text-decoration: none;
    color: white;
}

.content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: space-between;
}

.recommendations {
    flex: 1;
    margin-right: 20px;
}

.recommendations h2 {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 12px;
    margin-top: 10px;
}

.tags span {
    background-color: #e1e1e1;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.recipes {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 20px;
    justify-content: center
}

.recipe-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
    width: 30%;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: scale(1.05);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-info {
    padding: 15px;
    text-align: center;
    flex: 1;
}

.recipe-info h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: bold;
}

.recipe-info p {
    color: #777;
    margin-bottom: 10px;
}

.recipe-info button {
    padding: 10px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.recipe-info button:hover {
    background-color: #219150;
}

.cart {
    flex: 1;
    max-width: 300px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
}

.cart h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cart p {
    color: #777;
}

.cart ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e1e1e1;
    font-size: 0.9rem;
}

.cart ul li:last-child {
    border-bottom: none;
}

.cart .total {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
}

.cart .checkout-btn {
    display: block;
    margin-top: 20px;
    padding: 10px 0;
    background-color: #27ae60;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cart .checkout-btn:hover {
    background-color: #219150;
}
.messages-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #f5f5f5;
}

.messages-list {
    padding-left: 0;
    margin: 10px auto;
    width: 80%;
}

.message {
    margin-bottom: 15px;
    list-style: none;
}

.message-text {
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.received {
    background-color: #f9f9f9;
    align-self: flex-start;
}

.message-content {
  line-height: 1.5;
}

.message-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.message-content li {
  margin-top: 10px;
}

.recipe {
  margin-bottom: 10px;
}

.category-group {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f4f4f48f;
  box-shadow: 3px 5px 5px #c7c0c0;
}

.category-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    margin-top: 10px;
}


.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 10px;
}

.product-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    text-align: center;
    background-color: white;
    border-radius: 10px;
}

.product-item {
    flex: 1 1 calc(25% - 20px);
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 2;
    min-height: 120px;
}

.product-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-details {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

.product-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.check_box {
    cursor: pointer;
    zoom: 1.7;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px; /* Adjust the spacing as needed */
}

.btn-toggle-checkboxes {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 30%;
    text-align: center;
    margin-right: auto;
}

.btn-toggle-checkboxes:hover {
  background-color: #219150;
}

.price {
    font-weight: bold;
    color: #e74c3c;
    margin-top: 5px;
}

/* Quantity control buttons */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.quantity-controls button {
    background-color: #27ae60;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-controls button:hover {
    background-color: #219150;
}

.btn-filter {
    background-color: #e1e1e1;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    border: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-filter.active {
    background-color: #27ae60;
    color: white;
    border: none;
    outline: none;
    box-shadow: none;
}

.btn-filter:hover {
    background-color: #cfcfcf;
}

.message-input {
  flex: 1;
  border-radius: 0;
  border-right: none;width: 500px;
}

.btn-send {
  border-radius: 0;
}

.btn-add-to-cart {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 30%;
    text-align: center;
    margin-left: auto;
}

.btn-add-to-cart:hover {
    background-color: #219150;
}



::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

/* Style the scrollbar itself */
::-webkit-scrollbar {
    width: 7px;  /* Width of the scrollbar */
    height: 10px; /* Height of the scrollbar (horizontal) */
}

/* Style the thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background-color: #888;  /* Color of the thumb */
    border-radius: 10px;     /* Rounded corners */
}

/* Style the thumb when hovered */
::-webkit-scrollbar-thumb:hover {
    background-color: #555;  /* Darker color on hover */
}


.loader {
    width: 32px;
    height: 32px;
    border: 5px solid green;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    left: 50%;
    margin-top: 50px;
}

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}