/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header Styling */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo img {
    max-height: 60px; /* Adjust the logo height */
    display: block;
}

/* Navigation Styling */
.category-nav {
    background-color: #007bff;
    padding: 10px 20px;
}

.category-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.category-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.category-nav ul li a:hover {
    text-decoration: underline;
}

/* Product Section Styling */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    width: 100%; /* Ensure images fit within the container */
    max-width: 300px; /* Maintain the image width limit */
    height: auto;
    margin-bottom: 15px;
}

/* Main Product Image Styling */
.main-product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Stock Status Colors */
.stock-status {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 10px;
}

.stock-status.in_stock {
    color: green;
}

.stock-status.out_of_stock {
    color: red;
}

.stock-status.on_backorder {
    color: orange;
}

/* Additional Images Styling */
.additional-images {
    display: flex;
    gap: 15px;  /* Increased gap between images */
    flex-wrap: wrap;
    margin-top: 10px; /* Added margin to separate from heading */
    flex-direction: row; /* Align images below the heading */
}

.additional-image {
    width: 100px; /* Adjusted thumbnail size */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.additional-image:hover {
    transform: scale(1.1);
}

.image-container {
    position: relative;
    display: inline-block;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 24px;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* Modal Styling */
.full-size-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.full-size-image-container img {
    max-width: 90%; /* Ensure image fits within the modal */
    max-height: 90%; /* Maintain image aspect ratio within modal */
    border-radius: 8px;
    object-fit: contain; /* Adjust image size within modal */
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 24px;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-links, .language-switcher {
        margin-top: 10px;
    }

    .category-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .logo {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 10px;
    }

    .language-switcher {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 10px;
    }

    .additional-images {
        justify-content: center; /* Center images on small screens */
        flex-direction: row; /* Align thumbnails horizontally */
    }

    .additional-image {
        width: 70px; /* Smaller size for mobile screens */
        max-width: 70px;
    }
}
