:root {
    --primary: #25b9d7;
    --primary-dark: #1aa6c2;
    --primary-light: #e8f7fa;
    --success: #4caf50;
    --success-light: #edf7ee;
    --warning: #ff9800;
    --warning-light: #fff5e6;
    --danger: #f44336;
    --danger-light: #feeceb;
    --dark: #232323;
    --gray-1: #6c868a;
    --gray-2: #bdc9cb;
    --gray-3: #e7e7e7;
    --gray-4: #f6f6f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --transition: all 0.2s ease;
}

@font-face {
  font-family: 'myoe';
  src: url('myoe.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

[class^="myoe-"]:before, [class*=" myoe-"]:before {
  font-family: "myoe";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.myoe-info-outline:before { content: '\e800'; } /* '' */
.myoe-floppy:before { content: '\e801'; } /* '' */
.myoe-trash:before { content: '\e802'; } /* '' */
.myoe-undo:before { content: '\e803'; } /* '' */
.myoe-warning-empty:before { content: '\e804'; } /* '' */
.myoe-warning:before { content: '\e805'; } /* '' */
.myoe-ok-circle:before { content: '\e806'; } /* '' */
.myoe-doc-add:before { content: '\e807'; } /* '' */
.myoe-basket-circled:before { content: '\e80d'; } /* '' */
.myoe-ok-circled2:before { content: '\e816'; } /* '' */
.myoe-info-circled-alt:before { content: '\f086'; } /* '' */
.myoe-box:before { content: '\f187'; } /* '' */
#addProductModal .modal-content{
	margin:20px auto
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.myorderedit-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}
/* استایل‌های مودال */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.modal-content.large-modal {
    max-width: 600px;
}

.modal .close {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: red;
}

.modal .close:hover {
    color: #333;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-confirm, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-confirm {
    background-color: #25b9d7;
    color: white;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-confirm:hover {
    background-color: #1ea1bd;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.open-modal-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #25b9d7;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.open-modal-btn:hover {
    background-color: #1ea1bd;
}

.add-product-section {
    margin: 20px 0;
    text-align: center;
}


.order-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

.order-badge i {
    color: var(--primary);
    font-size: 20px;
}

/* بنر تفاوت قیمت */
.price-difference-banner {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeIn 0.4s ease;
}

.price-difference-banner.negative {
    background: var(--danger-light);
    border: 1px solid rgba(244, 67, 54, 0.15);

}

.price-difference-banner.positive {
    background: var(--success-light);
    border: 1px solid rgba(76, 175, 80, 0.15);

}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-content i {
    font-size: 55px;
    flex-shrink: 0;
}

.price-difference-banner.negative i {
    color: var(--danger);
}

.price-difference-banner.positive i {
    color: var(--success);
}

.banner-text {
    flex: 1;
	align-items: center;
}

.banner-title {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.banner-amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0;
}

.price-difference-banner.negative .banner-amount {
    color: var(--danger);
}

.price-difference-banner.positive .banner-amount {
    color: var(--success);
}

.banner-status {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

/* بخش‌های اصلی */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 12px 0;
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-3);
}

.section-title i {
    color: var(--primary);
    font-size: 18px;
}

/* نمایش Grid محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    height: auto;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-image {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 12px;

}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details {
    flex: 1;
}

.product-name {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    line-height: 1.3;
}

.product-variants {
    margin: 0 0 10px 0;
    color: var(--gray-1);
    font-size: 12px;
    line-height: 1.4;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    margin-bottom: 12px;
}

/* بخش مدیریت محصول */
.product-actions {
    display: flex;
justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-3);
}

.quantity-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
	max-width: 50px;
}

.quantity-control label {
    font-size: 11px;
    color: var(--gray-1);
    font-weight: 500;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.quantity-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-2);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 185, 215, 0.15);
}

.quantity-display {
    padding: 8px;
    background-color: var(--gray-4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.row-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px 0;
}

.total-label {
    font-size: 11px;
    color: var(--gray-1);
    margin-bottom: 2px;
}

.total-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.remove-btn, .restore-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
	position: absolute;
  top: 0;
  left: 0;
}

.remove-btn {
    color: var(--danger);
}

.remove-btn:hover i {
    background-color: var(--danger-light);
}

.restore-btn {
    color: var(--success);
    display: none;
}

.restore-btn:hover {
    background-color: var(--success-light);
}

/* دکمه‌های اقدام */
.form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.save-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
}

.save-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* بخش افزودن محصول جدید */
.add-product-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-3);
}

.add-product-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .add-product-grid {
        grid-template-columns: 1fr;
    }
}

.search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1px solid var(--gray-2);
    border-radius: var(--radius-md);
    font-size: 16px;
	font-weight: 700;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 185, 215, 0.15);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-1);
    font-size: 16px;
    pointer-events: none;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
    border: 1px solid var(--gray-3);
}

.suggestions-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-3);
}

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

.suggestion-item:hover {
    background-color: var(--primary-light);
}

.suggestion-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--gray-4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.suggestion-info {
    flex: 1;
    overflow: hidden;
}

.suggestion-name {
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-price {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.suggestion-empty, .suggestion-error {
    padding: 12px;
    text-align: center;
    color: var(--gray-1);
    font-size: 12px;
}

.quantity-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
	max-width:50px;
}

.quantity-container label {
    font-size: 11px;
    color: var(--gray-1);
    font-weight: 500;
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    white-space: nowrap;
    font-size: 13px;
}

.add-btn:hover {
    background-color: #3d8b40;
    box-shadow: var(--shadow-md);
}

/* استایل برای محصول حذف شده */
.product-card.removed {
    opacity: 0.7;
    background-color: var(--gray-4);
    border: 1px dashed var(--gray-2);
}

.product-card.removed .product-info,
.product-card.removed .row-total {
    opacity: 0.6;
}

.product-card.removed .remove-btn {
    display: none;
}

.product-card.removed .restore-btn {
    display: flex;
}

/* نوار بازگردانی */
.undo-notification {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--dark);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 10000;
    transition: transform 0.3s ease;
    font-size: 13px;
}

.undo-notification.visible {
    transform: translateX(-50%) translateY(0);
}

.undo-notification button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 12px;
}

.undo-notification button:hover {
    background: var(--primary-dark);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
    min-height: 14px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* در فایل CSS */
.edit-limits-info {

    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.edit-limits-info .material-icons {
    color: #6c757d;
    font-size: 18px;
}
/* رسپانسیو */
@media (max-width: 768px) {
    .myorderedit-modern-container {
        padding: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    

    
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        gap: 8px;
    }
    
    .banner-content i {
        align-self: center;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 120px;
        margin-bottom: 10px;
    }
    
    .undo-notification {
        width: 90%;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
}

/* بخش پرداخت و بازپرداخت */
.payment-section, .refund-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.payment-section p, .refund-section p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.payment-section .btn, .refund-section .btn {
    min-width: 150px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.payment-section .btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
}

.payment-section .btn-primary:hover {
    background-color: #0069d9;
}

.refund-section .btn-success {
    background-color: #28a745;
    border: none;
    color: #fff;
}

.refund-section .btn-success:hover {
    background-color: #218838;
}

/* فرم IBAN */
.refund-section .form-group {
    margin-bottom: 15px;
}

.refund-section label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
	text-align:right
}

.refund-section input[type="text"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.refund-section small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* واکنشگرایی */
@media (max-width: 576px) {
    .payment-section, .refund-section {
        padding: 15px;
    }
    .payment-section .btn, .refund-section .btn {
        width: 100%;
    }
}
