.product-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

/* שדות כתובת ואזור משלוח יהיו ברוחב מלא */
.shipping-address-field,
.shipping-zone-field {
    grid-column: 1 / -1;
}

.shipping-address-field textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    resize: vertical;
}

.shipping-zone-field select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
}

#product-form, #payment-form{
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    margin-top: 10px;
}

#product-form button, #submit-btn, #PayBt {
    background: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
    width: 100%;
    border-radius: 0;
    margin-top: 10px;
    color: white;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
}

#product-form button:hover, #submit-btn:hover, #PayBt:hover {
    opacity: 0.9;
}

/* בחירת מטבע */
.currency-selection {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    justify-content: center;
}

.currency-selection label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.currency-selection input[type="radio"] {
    margin: 0;
}

#payment-form .row:first-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.product-form-wrap select {
    border: 1px solid var(--e-global-color-primary, #ccc);
    height: 35px;
    border-radius: 4px;
    padding: 8px;
}

#payment-form .row:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.product-form-wrapper {
    position: relative;
}

.custom-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff79;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#loader {
    display: none;
}

.custom-loader .loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--e-global-color-primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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

.nedarim-payments{
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
}

.cardnox-payments{
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 15px 0;
}

/* פירוט מחירים */
.price-breakdown {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.price-breakdown .price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.price-breakdown .price-item.total {
    font-weight: bold;
    font-size: 18px;
    color: var(--e-global-color-primary);
    border-top: 2px solid var(--e-global-color-primary);
    margin-top: 10px;
    padding-top: 15px;
}

.price-breakdown .label {
    color: #666;
}

.price-breakdown .total .label {
    color: var(--e-global-color-primary);
}

/* שיפור נראות השדות */
.product-form-fields input[type="text"],
.product-form-fields input[type="email"],
.product-form-fields input[type="tel"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.product-form-fields input[type="text"]:focus,
.product-form-fields input[type="email"]:focus,
.product-form-fields input[type="tel"]:focus,
.shipping-address-field textarea:focus,
.shipping-zone-field select:focus {
    outline: none;
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.product-form-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* שגיאות */
#errors {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

#errors:not(:empty) {
    display: block;
}

/* Nedarim styling */
#nedarimWrap {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#NedarimFrame {
    border: 1px solid #ddd;
    border-radius: 4px;
}

#OkDiv {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

#ErrorDiv {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-form-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #payment-form .row:nth-child(2) {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .currency-selection {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .price-breakdown .price-item {
        font-size: 14px;
    }
    
    .price-breakdown .price-item.total {
        font-size: 16px;
    }
}

/* כפתורי כמות */
.product-quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.product-qyt-sub,
.product-qyt-add {
    width: 40px;
    height: 40px;
    border: 2px solid var(--e-global-color-primary);
    background: white;
    color: var(--e-global-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-qyt-sub:hover,
.product-qyt-add:hover {
    background: var(--e-global-color-primary);
    color: white;
}

.product-qyt {
    text-align: center;
    min-width: 60px;
}

/* סטטוסים */
.status-success { 
    background: #46b450; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 12px;
}

.status-awaiting-payment,
.status-pending { 
    background: #ffba00; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 12px;
}

.status-error { 
    background: #dc3232; 
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 12px;
}

.status-shipped {
    background: #00a32a;
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 12px;
}

.status-delivered {
    background: #007cba;
    color: white; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 12px;
}