main {
    margin-top: 50px;
    padding: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* Purchase Popup Styles */
.purchase-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.purchase-popup .popup-content {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.purchase-popup .close-popup {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}


.purchase-popup .close-popup:hover {
    color: #333;
}

.purchase-popup .product-details {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.purchase-popup .product-details h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.purchase-popup .product-details p {
     font-size: 1.5rem;
    color: #ff7433;
    font-weight: bold;
    margin-bottom: 1rem;
}



.purchase-popup label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.purchase-popup input,
.purchase-popup textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.purchase-popup input:focus,
.purchase-popup textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.purchase-popup textarea {
    min-height: 100px;
    resize: vertical;
}

.purchase-popup .submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.purchase-popup .submit-btn:hover {
    background-color: #ff3333;
}
.purchase-header{
    display: flex;
    position: sticky;
    top: 1rem;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 10;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .purchase-popup .popup-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .purchase-popup input,
    .purchase-popup textarea {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}
