h3.qof-search-title {
    display: none;
}

.qof-search-hint {
    font-size: 12px;
    padding-right: 10px;
    color: darkorange;
}

.qof-summary-separator {
    display: none;
}

.qof-summary-item {
    font-family: 'YekanBakh-k';
    font-size: 12px;
    font-weight: normal;
    background-color: #f1f1f1;
    padding: 5px;
    border-radius: 8px !important;
}

button#qof-add-to-cart {
    background-color: #138b96;
    color: #fff;
    font-weight: normal;
}

button#qof-clear-list {
    font-weight: normal;
}
/* استایل کلی مینیمال */
.qof-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'YekanBakh-k';
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* هدر */
.qof-header {
    margin-bottom: 30px;
    text-align: center;
}

.qof-main-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.qof-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* باکس جستجو */
.qof-search-box {
    position: relative;
    margin-bottom: 30px;
}

.qof-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    background: #fafafa;
    color: #333;
}

.qof-search-input:focus {
    border-color: #007cba;
    background: white;
}

.qof-search-input::placeholder {
    color: #999;
}

/* نتایج جستجو */
.qof-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.qof-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.qof-result-item:hover {
    background-color: #f9f9f9;
}

.qof-result-item:last-child {
    border-bottom: none;
}

.qof-result-image {
    width: 50px;
    height: 50px;
    margin-left: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.qof-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qof-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
}

.qof-result-info {
    flex-grow: 1;
    min-width: 0;
}

.qof-product-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* Publisher در نتایج */
.qof-publisher {
    margin: 6px 0;
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qof-publisher-label {
    font-weight: 600;
    color: #666;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 11px;
}

.qof-publisher-value {
    color: #333;
}

.qof-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

.qof-price {
    font-weight: 600;
    color: #2e7d32;
}

.qof-sku {
    color: #666;
    padding: 2px 6px;
    background: #f5f5f5;
    border-radius: 3px;
}

.qof-stock {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.qof-stock.instock {
    color: #2e7d32;
    background: #e8f5e9;
}

.qof-stock.outofstock {
    color: #c62828;
    background: #ffebee;
}

/* دکمه افزودن */
.qof-add-btn {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.qof-add-btn:hover:not(.qof-btn-disabled) {
    background: #005a87;
    color: #fff;
}

#qof-view-cart {
    display: none;
}

.qof-add-btn.qof-btn-disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* محصولات انتخاب شده */
.qof-selected-products {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
}

.qof-selected-header {
    margin-bottom: 20px;
}

.qof-selected-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.qof-selected-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.qof-stat-item {
    padding: 2px 8px;
    background: white;
    border-radius: 3px;
    border: 1px solid #eee;
}

/* لیست محصولات */
.qof-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qof-item-main {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #eee;
}

.qof-item-info {
    margin-bottom: 12px;
}

.qof-item-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.qof-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
}

.qof-item-index {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Publisher در لیست */
.qof-item-publisher {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-right: 2px solid #007cba;
}

.qof-item-publisher .qof-publisher-label {
    font-weight: 600;
    color: #555;
}

/* مدیریت تعداد و قیمت */
.qof-item-details {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 16px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 640px) {
    .qof-item-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.qof-item-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qof-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qof-qty-btn:hover:not(:disabled) {
    border-color: #007cba;
    color: #007cba;
}

.qof-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qof-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.qof-qty-input:focus {
    border-color: #007cba;
    outline: none;
}

.qof-item-price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.qof-item-price {
    font-weight: 600;
    color: #2e7d32;
    font-size: 15px;
}

.qof-item-total {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.qof-item-actions {
    display: flex;
    justify-content: center;
}

.qof-remove-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qof-remove-btn:hover {
    background: #c82333;
}

/* لیست خالی */
.qof-empty-list {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.qof-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.qof-empty-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
}

.qof-empty-hint {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* دکمه‌های عملیات */
.qof-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qof-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.qof-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qof-btn:hover {
    transform: translateY(-1px);
}

.qof-btn:active {
    transform: translateY(0);
}

.qof-btn-primary {
    background: #007cba;
    color: white;
}

.qof-btn-primary:hover {
    background: #005a87;
}

.qof-btn-secondary {
    background: #6c757d;
    color: white;
}

.qof-btn-secondary:hover {
    background: #545b62;
}

.qof-btn-success {
    background: #28a745;
    color: white;
}

.qof-btn-success:hover {
    background: #218838;
}

.qof-action-hint {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* نوتیفیکیشن */
.qof-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    border-left: 3px solid;
}

.qof-notification.show {
    transform: translateX(0);
}

.qof-notification-success {
    border-left-color: #28a745;
    background: #f0f9f0;
}

.qof-notification-error {
    border-left-color: #dc3545;
    background: #fef0f0;
}

.qof-notification-warning {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.qof-notification-info {
    border-left-color: #17a2b8;
    background: #f0f8ff;
}

.qof-notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.qof-notification-content {
    flex-grow: 1;
}

.qof-notification-text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.qof-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.qof-notification-close:hover {
    background: #f0f0f0;
    color: #666;
}

/* اسپینر */
.qof-spinner, .qof-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: qof-spin 1s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}

@keyframes qof-spin {
    to { transform: rotate(360deg); }
}

.qof-loading {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.qof-loading .qof-spinner {
    border: 2px solid rgba(0, 124, 186, 0.2);
    border-top-color: #007cba;
    width: 24px;
    height: 24px;
    margin: 0 auto 12px auto;
}

/* خطا و حالت‌های مختلف */
.qof-no-results, .qof-error {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.qof-no-results-icon, .qof-error-icon {
    font-size: 32px;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
}

/* فوتر */
.qof-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.qof-footer-info {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qof-footer-icon {
    font-size: 14px;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .qof-container {
        margin: 20px 15px;
        padding: 15px;
    }
    
    .qof-main-title {
        font-size: 20px;
    }
    
    .qof-description {
        font-size: 13px;
    }
    
    .qof-search-results {
        position: fixed;
        top: 50%;
        left: 15px;
        right: 15px;
        transform: translateY(-50%);
        max-height: 70vh;
    }
    
    .qof-result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .qof-result-image {
        margin: 0 0 12px 0;
    }
    
    .qof-publisher {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
    
    .qof-add-btn {
        width: 100%;
        margin-top: 12px;
    }
    
    .qof-item-details {
        grid-template-columns: 1fr;
    }
    
    .qof-action-buttons {
        grid-template-columns: 1fr;
    }
    
    .qof-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .qof-item-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .qof-item-index {
        align-self: flex-end;
    }
    
    .qof-item-quantity {
        justify-content: center;
    }
    
    .qof-remove-btn {
        width: 100%;
        justify-content: center;
    }
}

/* کلاس‌های کمکی */
.qof-hidden {
    display: none !important;
}

.qof-mt-10 {
    margin-top: 10px;
}

.qof-mb-10 {
    margin-bottom: 10px;
}

/* دکمه‌های غیرفعال */
.qof-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* خط‌های جداکننده */
.qof-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
    border: none;
}