.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 2rem;
}

/* Navigation */
.product-navigation {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-link i {
    margin-right: 8px;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(160, 74, 226, 0.4);
}

.product-card {
    background-color: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.24);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-title {
    font-size: 2.5rem;
    color: white;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.page-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.452);
    width: 100%;
    margin-top: -10px;
    margin-bottom: 10px;
    border: none;
    display: block;
}

.product-description {
    margin-bottom: 1.5rem;
}

.product-description h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Purchase section */
.product-purchase {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.price-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.price-label {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.purchase-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: auto;
    text-align: center;
}

.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(160, 74, 226, 0.4);
}

/* PayPal specific styles */
#paypal-button-container {
    width: 80%;
    max-width: 600px;
    min-height: auto;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    box-sizing: border-box;
    margin: 0 auto;
}

/* PayPal iframe container */
.paypal-buttons-context-iframe {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 10px;
}

/* Override PayPal's inline styles to ensure proper width */
iframe[title^="PayPal"] {
    max-width: 100% !important;
    width: 100% !important;
}

/* PayPal button text color fixes */
.paypal-button.paypal-button-card .paypal-button-text,
.paypal-button.paypal-button-card .paypal-button-card-text {
    color: #000 !important;
    font-weight: bold !important;
    text-shadow: none !important;
}

/* PayPal buttons */
.paypal-buttons {
    min-width: 100% !important;
    min-height: 40px !important;
}

/* PayPal debit/credit card section container */
.paypal-card-form-container {
    background-color: #fff !important;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #000 !important;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

/* Fix PayPal tagline color */
.paypal-button-tagline {
    color: #6c7378 !important;
}

/* Loading indicator styles */
.paypal-loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}

.paypal-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #0070ba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallback payment styles */
#payment-fallback {
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
    box-sizing: border-box;
    margin: 0 auto;
}

#payment-fallback p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Custom styles for PayPal iframe container */
.paypal-card-fields-container {
    background-color: #fff !important;
    color: #000 !important;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Add custom style to ensure text fields are visible */
.paypal-card-form-container input,
.paypal-card-form-container label,
.paypal-card-form-container text {
    color: #000 !important;
    background-color: #fff !important;
}

/* Style for the billing address section */
.billing-address-heading {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 15px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Discount Codes */
.discount-form {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discount-input {
    background-color: #222;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 5px;
    width: 60%;
    margin-right: 10px;
}

.apply-btn {
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

.discount-message {
    margin-top: 10px;
    font-size: 0.9em;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.discounted-price {
    color: #33ffa0;
    font-weight: bold;
}

@media screen and (min-width: 1920px) and (max-width: 1921px) {
    .product-container {
        margin-top: -25px;
    }

    .product-card {
        height: 100%;
        width: 94%;
        overflow: visible;
    }

    .product-title {
        font-size: 4rem;
    }

    .back-link {
        font-size: 2rem;
    }

    .product-description h2 {
        font-size: 3rem;
    }

    .product-description p {
        font-size: 2rem;
    }

    .price-label {
        font-size: 2.5rem;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .payment-fallback p {
        font-size: 1.6rem !important;
        margin-bottom: 25px !important;
    }

    .purchase-btn {
        font-size: 2rem;
    }

    .donation-form label {
        font-size: 2rem !important;
    }

    .currency-symbol {
        margin-top: 5px;
        font-size: 2rem !important;
    }

    .donation-amount-container input {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .product-container {
        margin: 0;
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .price-section {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .product-description {
        margin-bottom: 0px;
    }
    
    .price-value {
        font-size: 2rem;
        margin-top: 0;
    }

    .product-card {
        max-width: 90% !important;
        margin-bottom: 25px;
    }

    .purchase-btn {
        transform: translateX(-9%);
        font-size: 0.8rem;
        white-space: nowrap;
        border: none;
    }
    
    #paypal-button-container {
        width: 95%;
    }
    
    .paypal-loader,
    #payment-fallback {
        width: 95%;
    }
}