/* Products Section */
.products-section {
    padding: 50px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.product-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.product-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-item h3 {
    color: #ffffff;
    font-size: 1.2em;
}

/* Mobile View: Three Products per Row */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px; /* Reduced gap for compact layout */
    }

    .product-item {
        padding: 10px; /* Smaller padding */
    }

    .product-item img {
        max-width: 90%; /* Adjusted image size */
    }

    .product-item h3 {
        font-size: 1rem; /* Slightly smaller text */
    }

    .modal-content {
        flex-direction: column; /* Stack content vertically */
        padding: 15px;
        gap: 15px;
        max-width: 90%; /* Ensure it fits on small screens */
        width: 100%;
    }

    .modal-content img {
        max-height: 200px; /* Smaller image size */
    }

    .modal-info h3 {
        font-size: 1rem; /* Adjust title size */
    }

    .modal-info .preorder-button {
        font-size: 0.9rem; /* Smaller button */
        padding: 8px 15px;
    }
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: #181414;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-content img {
    max-width: 300px;
    border-radius: 10px;
}

.modal-info {
    color: #ffffff;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

.preorder-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.preorder-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}


/* Product Item Hover */
.product-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s, opacity 0.3s;
}

.product-item:hover img {
    transform: scale(1.05);
    cursor: pointer;
}

/* Modal Image Hover */
.modal-content img {
    transition: transform 0.3s, opacity 0.3s;
}

.modal-content img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

