body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

.main-content {
    text-align: center;
    padding: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    max-width: 100%;
    border-radius: 5px;
}

.product-card h2 {
    font-size: 18px;
    margin: 10px 0;
}

.product-card p {
    font-size: 16px;
    color: #555;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.modal-body img {
    max-width: 40%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 350px;
}

.modal-text {
    flex: 1;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.modal-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.purchase-info {
    font-size: 15px;
    color: #444;
    margin-top: 15px;
    font-weight: 500;
}

.purchase-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.purchase-info a:hover {
    text-decoration: underline;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

.modal .close:hover {
    color: #ff5555;
}

/* Mobile Support */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        padding: 10px;
    }

    .product-card h2 {
        font-size: 16px;
    }

    .product-card p {
        font-size: 14px;
    }

    .modal-body img {
        max-width: 50%;
        max-height: 250px;
    }

    .modal-text h2 {
        font-size: 20px;
    }

    .modal-text p {
        font-size: 14px;
    }

    .modal .close {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 8px;
    }

    .product-card h2 {
        font-size: 14px;
    }

    .product-card p {
        font-size: 12px;
    }

    .modal-body img {
        max-width: 60%;
        max-height: 200px;
    }

    .modal-text h2 {
        font-size: 18px;
    }

    .modal-text p {
        font-size: 12px;
    }

    .modal .close {
        font-size: 20px;
    }
}