body {
    font-family: Arial, sans-serif;
    background-color: #fafafa;
    background-image: url('background.webp');
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed; /* Make the background texture static */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #dbdbdb;
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 24px;
    font-weight: 500;
    color: #262626;
    margin: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.gallery-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    margin: 20px; /* Increased margin for more spacing between items */
    width: 320px; /* Slightly increased width */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow for a lifted look */
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.5s ease, height 0.5s ease;
    padding: 15px; /* Added padding to give more space inside each card */
    cursor: pointer; /* Make it clear that the card is clickable */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}



.gallery-item:hover {
    transform: scale(1.15); /* Increase the size of the card more significantly on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Create a stronger shadow for a more dramatic lifted effect */
}

.gallery-item.expanded {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    z-index: 200;
    overflow: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); /* Stronger shadow for expanded card */
}

model-viewer {
    width: 100%;
    height: 300px;
    background-color: #ffffff; /* Set background color to black for better contrast */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.gallery-item .content {
    padding: 20px; /* Increased padding for more breathing room */
    text-align: left;
    display: flex;
    align-items: center;
}


.gallery-item .title {
    font-size: 18px; /* Increased font size for titles */
    font-weight: bold;
    margin-bottom: 5px; /* Reduced margin below the title to bring the price closer */
    display: inline-block;
    margin-right: 10px;
}



.gallery-item .description {
    font-size: 16px;
    color: #333;
    margin: 15px 0; /* Increased margin to add more space around description */
    max-height: 150px; /* Limit height to make the description scrollable when expanded */
    overflow-y: auto; /* Make description scrollable when content exceeds max height */
}

.gallery-item .price {
    font-size: 20px;
    font-weight: bold;
    color: #d9534f; /* A contrasting red color for the price */
    background-color: #f9f9f9;
    padding: 8px; /* Increased padding to give more space around price */
    border-radius: 10px;
    display: inline-block;
    vertical-align: middle;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nutrition-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    transition: max-height 0.3s ease;
}



/* JavaScript will be required to handle the click event to add/remove the 'expanded' class */

