/* Checkout Page Specific Styles */

.checkout-progress {
    background: #f8fafc;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.completed .step-icon {
    background: #22c55e;
    color: white;
}

.step.active .step-icon {
    background: #6366f1;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.step.completed .step-label,
.step.active .step-label {
    color: #1e293b;
}

.step-line {
    width: 100px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
}

.step-line.completed {
    background: #22c55e;
}

.checkout-section {
    padding: 60px 0;
    min-height: 60vh;
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 5rem;
}

.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 700px;
}

.checkout-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 425px;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #6366f1;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group label.required::after {
    content: " *";
    color: #ef4444;
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366f1;
}

.form-group input:not([type="checkbox"]):not([type="radio"]).error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

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

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

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

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method:hover {
    border-color: #6366f1;
}

.payment-method.selected {
    border-color: #6366f1;
    background: #f0f9ff;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon {
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-icon.paypal {
    color: #003087;
}

.payment-icon.stripe {
    color: #635bff;
}

.payment-icon.binance {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.payment-details p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Payment Forms */
.payment-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.payment-form.active {
    display: block;
}

/* Card Input Styling */
.card-element {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.card-element.focused {
    border-color: #6366f1;
}

.card-element.error {
    border-color: #ef4444;
}

/* Order Summary */
.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 48px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.item-price {
    font-size: 0.875rem;
    color: #64748b;
}

.item-quantity {
    font-weight: 600;
    color: #1e293b;
    margin-left: 1rem;
}

/* Summary Totals */
.summary-totals {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
}

.discount-amount {
    color: #059669;
}

/* Place Order Button */
.place-order-btn {
    width: 100%;
    margin-top: 2rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.place-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.place-order-btn.processing {
    background: #64748b;
}

/* Security & Trust Indicators */
.security-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

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

.security-text {
    font-size: 0.875rem;
    color: #166534;
    margin: 0;
}

/* Processing State */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.processing-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    margin: 0 2rem;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.processing-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.processing-subtext {
    color: #64748b;
    font-size: 0.875rem;
}

/* Empty Checkout */
.empty-checkout {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-checkout-icon {
    font-size: 5rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.empty-checkout h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.empty-checkout p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .progress-steps {
        padding: 0 1rem;
    }

    .step-line {
        width: 60px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .checkout-summary {
        order: 1;
        position: static;
    }
    
    .checkout-form {
        order: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .security-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .checkout-section {
        padding: 40px 0;
    }

    .checkout-form,
    .checkout-summary {
        padding: 1.5rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-line {
        width: 40px;
        margin: 0 0.5rem;
    }

    .payment-method {
        padding: 0.75rem;
    }

    .payment-method-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .processing-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .empty-checkout {
        padding: 3rem 1.5rem;
    }

    .empty-checkout-icon {
        font-size: 4rem;
    }

    .empty-checkout h2 {
        font-size: 1.5rem;
    }
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.terms-row .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    width: auto;
}

.terms-row input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    flex-shrink: 0;
}

.terms-row a {
    color: #6366f1;
    text-decoration: none;
}

.terms-row a:hover {
    text-decoration: underline;
}

/* Binance Payment Styles */
.binance-details {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 1rem;
}

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

.copy-field {
    display: flex;
    gap: 0.5rem;
}

.copy-input {
    flex: 1;
    background: white;
    border: 1px solid #e5e7eb;
}

.copy-btn {
    padding: 12px 16px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #5c6ac4;
}

.copy-btn.copied {
    background: #22c55e;
}

.payment-instructions {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #f59e0b;
}

.payment-instructions h5 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-weight: 600;
}

.payment-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.payment-instructions li {
    margin-bottom: 0.5rem;
    color: #374151;
}

.total-amount {
    font-weight: 700;
}

/* Coming Soon Notice */
.coming-soon-notice {
    text-align: center;
    padding: 2rem;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
}

.coming-soon-notice i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.coming-soon-notice p {
    margin: 0;
    font-weight: 500;
}

/* PayPal disabled state */
.payment-method[data-method="paypal"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-method[data-method="paypal"]:hover {
    border-color: #e5e7eb;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-success i {
    color: #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error i {
    color: #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info i {
    color: #3b82f6;
}

/* Order Success Page Styles */
.success-hero {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.success-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.success-hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.order-number {
    background: rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    backdrop-filter: blur(10px);
}

.order-details-section {
    padding: 60px 0;
    background: #f8fafc;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.order-summary-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.order-summary-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.details-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.customer-details-card,
.payment-details-card,
.delivery-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.customer-details-card h3,
.payment-details-card h3,
.delivery-info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-details-card h3 i,
.payment-details-card h3 i,
.delivery-info-card h3 i {
    color: #6366f1;
}

.success-order-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.success-order-item:last-child {
    border-bottom: none;
}

.success-order-item .item-image {
    width: 60px;
    height: 48px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.success-order-item .item-details {
    flex: 1;
}

.success-order-item .item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.success-order-item .item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.success-order-item .item-total {
    font-weight: 600;
    color: #1e293b;
}

.totals-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.total-row.final-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.total-label {
    color: #64748b;
}

.total-value {
    font-weight: 600;
    color: #1e293b;
}

.total-value.discount {
    color: #059669;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    align-items: start;
}

.info-item label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
}

.info-item span {
    color: #1e293b;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.payment-method-info .payment-icon {
    font-size: 1.5rem;
    color: #6366f1;
}

.payment-method-info .payment-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.payment-method-info .payment-details p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.payment-details-grid {
    display: grid;
    gap: 0.75rem;
}

.payment-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-detail label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.875rem;
}

.trx-id {
    font-family: monospace;
    font-size: 0.875rem;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: #dcfce7;
    color: #166534;
}

.status-badge.processing {
    background: #fef3c7;
    color: #92400e;
}

.delivery-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-status {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
}

.delivery-status i {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.delivery-status h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.delivery-status p {
    margin: 0;
    color: #374151;
    font-size: 0.875rem;
}

.email-notice {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: #dbeafe;
    border-radius: 8px;
}

.email-notice i {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.email-notice p {
    margin: 0;
    color: #1e293b;
    font-size: 0.875rem;
}

.success-actions {
    text-align: center;
    margin-bottom: 3rem;
}

.success-actions .btn {
    margin: 0 0.5rem;
}

.important-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.important-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.important-info h3 i {
    color: #f59e0b;
}

.important-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.important-info .info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.important-info .info-item i {
    color: #6366f1;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.important-info .info-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.important-info .info-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* No Order Section */
.no-order-section {
    padding: 80px 0;
    text-align: center;
}

.no-order-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-order-icon {
    font-size: 5rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.no-order-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.no-order-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.no-order-actions .btn {
    margin: 0 0.5rem;
}

@media (max-width: 1024px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .important-info .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .binance-info-row {
        grid-template-columns: 1fr;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .success-hero {
        padding: 40px 0;
    }
    
    .success-hero h1 {
        font-size: 2rem;
    }
    
    .order-details-section {
        padding: 40px 0;
    }
    
    .order-summary-card,
    .customer-details-card,
    .payment-details-card,
    .delivery-info-card,
    .important-info {
        padding: 1.5rem;
    }
    
    .info-item {
        grid-template-columns: 80px 1fr;
    }
    
    .important-info .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .success-actions .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
}