/* Product Details Modal Styles */
.product-details-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-preview-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.product-preview-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-info-side {
    flex: 1;
    text-align: left;
}

.product-price-tag {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    margin: 10px 0 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

/* Checkout Modal Styles */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-wrapper {
    max-width: 1100px;
    width: 95%;
}

.checkout-container {
    padding: 40px;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step.active .step-number {
    border-color: var(--accent-red);
    background: var(--accent-red);
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 20px;
    margin-bottom: 20px;
    /* Align with circle center roughly */
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.checkout-summary {
    background: rgba(var(--text-main-rgb), 0.02);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.checkout-summary h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.summary-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.qty {
    font-size: 14px;
    color: var(--text-muted);
}

.summary-price {
    margin-left: auto;
    font-weight: 700;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 20px;
    font-weight: 800;
}

.checkout-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 14px;
    background: rgba(var(--text-main-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-red);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.coupon-input {
    display: flex;
    gap: 10px;
}

.btn-apply {
    padding: 0 20px;
    background: rgba(var(--text-main-rgb), 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.btn-apply:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(var(--text-main-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.payment-option input:checked+.option-content {
    border-color: var(--accent-red);
    background: rgba(220, 38, 38, 0.1);
}

.balance-icon {
    width: 24px;
    height: 24px;
    background: #4ade80;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.checkout-terms {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .product-details-content {
        flex-direction: column;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        display: none;
        /* Hide steps on mobile for space */
    }
}

/* Add Funds Modal Styles */
.add-funds-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.add-funds-modal.active {
    opacity: 1;
    visibility: visible;
}

.funds-wrapper {
    max-width: 600px;
    width: 95%;
}

.funds-container {
    padding: 30px;
    background: var(--bg-card);
    text-align: center;
    direction: rtl;
    /* RTL for Arabic */
}

.funds-header {
    margin-bottom: 20px;
    text-align: right;
}

.funds-header h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.funds-select {
    width: 100%;
    padding: 12px;
    background: rgba(var(--text-main-rgb), 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

.instructions-title {
    text-align: right;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 16px;
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-box {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
}

.exchange-info {
    margin-bottom: 20px;
    color: #909296;
    font-size: 14px;
}

.rate-text {
    color: #4ade80;
    /* Green */
    font-weight: bold;
    margin-top: 5px;
}

.wallet-numbers {
    margin-bottom: 20px;
}

.wallet-numbers p {
    margin-bottom: 10px;
    color: var(--text-main);
}

.number-box {
    background: #2f9e44;
    /* Green background */
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
}

.example-text {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 14px;
}

.steps-list {
    text-align: right;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.warning-text {
    font-size: 12px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.red-text {
    color: #fa5252;
}

.gold-text {
    color: #ffd43b;
}

.green-text {
    color: #40c057;
}

.funds-form {
    text-align: right;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: rgba(var(--text-main-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    text-align: right;
}

.btn-pay-gold {
    width: 100%;
    padding: 12px;
    background: #fcc419;
    /* Gold/Yellow */
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn-pay-gold:hover {
    background: #fab005;
}