/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #2d5a3d, #4a7c59);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    flex-shrink: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.product-image-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.product-image-large i {
    font-size: 3rem;
    color: white;
}

.modal-title {
    text-align: center;
    margin: 0 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.modal-subtitle {
    text-align: center;
    opacity: 0.9;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
}

.product-details {
    margin-bottom: 2rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5a3d;
    text-align: center;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-benefits {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.product-benefits h4 {
    color: #2d5a3d;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: #4a5568;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #68d391;
    font-weight: bold;
    font-size: 1.2rem;
}

.checkout-form {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h4 {
    color: #2d5a3d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.form-section h4 i {
    margin-right: 0.5rem;
    color: #68d391;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d5a3d;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #68d391;
    box-shadow: 0 0 0 3px rgba(104, 211, 145, 0.1);
}

.form-group.error input {
    border-color: #e53e3e;
}

.form-group .error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.checkout-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2d5a3d, #4a7c59);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 90, 61, 0.3);
}

.checkout-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.checkout-button .loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

.checkout-button.loading .loading-spinner {
    display: inline-block;
}

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

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #68d391;
    font-size: 0.875rem;
}

.security-badge i {
    font-size: 1rem;
}

.product-status {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-status.available {
    background: #c6f6d5;
    color: #2f855a;
}

.product-status.coming-soon {
    background: #fed7d7;
    color: #c53030;
}

/* Error and Success Messages */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert.success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
} 