/* Products Page Styles - RTL Support */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    direction: rtl;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Search and Filter Styles */
.input-group-text {
    background-color: var(--light-color);
    border-color: #dee2e6;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Products Container Styles */
#productsContainer {
    min-height: 400px;
}

/* Table View Styles */
.products-table {
    margin-bottom: 0;
}

.products-table th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 1rem 0.75rem;
}

.products-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid #dee2e6;
}

.product-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.product-sku {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Grid View Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.product-card-stock {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Stock Status Styles */
.stock-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

.stock-high {
    background-color: var(--success-color);
    color: white;
}

.stock-medium {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.stock-low {
    background-color: var(--danger-color);
    color: white;
}

.stock-out {
    background-color: var(--secondary-color);
    color: white;
}

/* Channel Status Styles */
.channel-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.channel-connected {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.channel-disconnected {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-edit {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-edit:hover {
    background-color: #0bb5d6;
    border-color: #0bb5d6;
    transform: translateY(-1px);
}

.btn-delete {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-delete:hover {
    background-color: #bb2d3b;
    border-color: #bb2d3b;
    transform: translateY(-1px);
}

.btn-out-of-stock {
    background-color: #f8b739;
    border-color: #f8b739;
    color: white;
}

.btn-out-of-stock:hover {
    background-color: #e0a12c;
    border-color: #e0a12c;
    transform: translateY(-1px);
}

.btn-sync {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

.btn-sync:hover {
    background-color: #ffcd39;
    border-color: #ffcd39;
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Search Results Styles */
.search-input-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin-top: 2px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: var(--light-color);
}

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

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid #dee2e6;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-stock {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.search-result-id {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-family: monospace;
}

.search-loading {
    padding: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

.search-error {
    padding: 1rem;
    text-align: center;
    color: var(--danger-color);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Styles */
.toast {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.toast-success {
    background-color: var(--success-color);
    color: white;
}

.toast-error {
    background-color: var(--danger-color);
    color: white;
}

.toast-warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.toast-info {
    background-color: var(--info-color);
    color: white;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Mobile-first navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        color: white !important;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile page header */
    .row.mb-4 .col-md-6 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .row.mb-4 h2 {
        font-size: 1.5rem;
    }
    
    /* Mobile search and filters */
    .card-body .row.g-3 {
        gap: 0.75rem;
    }
    
    .card-body .row.g-3 > div {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Mobile products grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    /* Mobile product cards */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-card-body {
        padding: 1rem;
    }
    
    .product-card-title {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .product-card-price {
        font-size: 1.1rem;
    }
    
    /* Mobile table view */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
    }
    
    .product-image {
        width: 40px;
        height: 40px;
    }
    
    .product-title {
        font-size: 0.875rem;
        line-height: 1.3;
    }
    
    .product-sku {
        font-size: 0.75rem;
    }
    
    /* Mobile action buttons */
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Mobile channel status */
    .channel-status {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .channel-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Mobile modals */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: var(--border-radius);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body .row > div {
        margin-bottom: 1rem;
    }
    
    /* Mobile form inputs */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Mobile search results */
    .search-result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .search-result-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .search-result-info {
        margin: 0;
    }
    
    .search-result-title {
        font-size: 0.9rem;
        white-space: normal;
        text-overflow: initial;
        overflow: visible;
        -webkit-line-clamp: 3;
    }
    
    /* Mobile pagination */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Mobile view mode buttons */
    .btn-group .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Very small screen adjustments */
    .card-body {
        padding: 0.75rem;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.375rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .product-image {
        width: 35px;
        height: 35px;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Smaller buttons on very small screens */
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-action {
        padding: 0.4rem 0.6rem;
    }
    
    /* Compact product cards */
    .product-card-body {
        padding: 0.75rem;
    }
    
    .product-card-title {
        font-size: 0.9rem;
    }
    
    .product-card-price {
        font-size: 1rem;
    }
    
    /* Smaller channel badges */
    .channel-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    /* Compact search results */
    .search-result-item {
        padding: 0.75rem;
    }
    
    .search-result-image {
        width: 60px;
        height: 60px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    .btn, .page-link, .nav-link {
        min-height: 44px; /* Apple's recommended touch target size */
        min-width: 44px;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    .search-result-item {
        min-height: 60px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .product-card:hover,
    .btn:hover,
    .page-link:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .modal,
    .toast-container,
    .action-buttons,
    .pagination {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .card {
        border: 2px solid var(--secondary-color);
    }
    
    .form-control,
    .form-select {
        border: 2px solid var(--secondary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile-specific classes */
.mobile-device .modal-mobile-optimized {
    --bs-modal-margin: 0.5rem;
}

.mobile-device .modal-fullscreen-mobile {
    --bs-modal-margin: 0;
}

.mobile-device .modal-fullscreen-mobile .modal-dialog {
    width: 100vw;
    height: 100vh;
    margin: 0;
    max-width: none;
    max-height: none;
}

.mobile-device .modal-fullscreen-mobile .modal-content {
    height: 100vh;
    border: 0;
    border-radius: 0;
}

.mobile-device .modal-fullscreen-mobile .modal-body {
    overflow-y: auto;
    flex: 1;
}

/* Touch device optimizations */
.touch-device .btn,
.touch-device .page-link,
.touch-device .nav-link,
.touch-device .form-control,
.touch-device .form-select {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.touch-device .search-result-item {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
}

/* Prevent text selection on touch devices for UI elements */
.touch-device .btn,
.touch-device .nav-link,
.touch-device .page-link,
.touch-device .channel-badge {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile loading states */
.mobile-device .loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile toast positioning */
.mobile-device .toast-container {
    position: fixed;
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1080;
}

.mobile-device .toast {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Mobile-optimized search results */
.mobile-device .search-results {
    max-height: 50vh;
    border-radius: var(--border-radius);
}

.mobile-device .search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-device .search-result-item:active {
    background-color: var(--light-color);
}

/* Mobile table improvements */
.mobile-device .table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.mobile-device .products-table {
    font-size: 0.875rem;
}

.mobile-device .products-table th {
    position: sticky;
    top: 0;
    background-color: var(--light-color);
    z-index: 10;
}

/* Mobile form improvements */
.mobile-device .form-floating > label {
    font-size: 0.875rem;
}

.mobile-device .invalid-feedback {
    font-size: 0.8rem;
}

/* Mobile pagination improvements */
.mobile-device .pagination {
    margin: 1rem 0;
}

.mobile-device .page-item {
    margin: 0 0.125rem;
}

.mobile-device .page-link {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}/*
 Search Button Styles */
.input-group .btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
    transition: all 0.2s ease;
}

.input-group .btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

.input-group .btn-outline-primary:active {
    transform: translateY(0);
}

.input-group .btn-outline-primary i {
    font-size: 0.9rem;
}

/* Search Results Positioning Fix */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 2px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    max-height: 300px;
    overflow-y: auto;
}

.search-results.show {
    display: block;
}

.search-results:not(.show) {
    display: none;
}

/* Dropdown Search Results */
.search-results-dropdown {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
}

.search-results-dropdown:empty {
    display: none;
}

/* Search Result Items in Dropdown */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item.selected {
    background-color: #e7f3ff;
    border-color: #0d6efd;
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    color: #212529;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-stock {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.search-result-id {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Loading Spinner for Search */
.search-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search Error State */
.search-error {
    padding: 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    text-align: center;
}

.search-error i {
    margin-left: 5px;
}

/* No Results State */
.no-results {
    padding: 12px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
    text-align: center;
}

.no-results i {
    margin-left: 5px;
}/* Searc
h Prompt Styles */
.search-prompt {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.search-prompt .bi-search {
    display: block;
}

.search-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.375rem;
    color: #856404;
}

.search-warning .bi-exclamation-triangle {
    display: block;
    font-size: 1.5rem;
}

/* Make search results visible */
.search-results.show {
    display: block;
}

.search-results:not(.show) {
    display: none;
}

/* Improve search button hover effect */
.input-group .btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.25);
}

/* Search results item hover */
.search-result-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
    transform: translateX(-2px);
    transition: all 0.2s ease;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

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

/* Search result content */
.search-result-title {
    font-weight: 500;
    color: #212529;
    margin-bottom: 4px;
}

.search-result-price {
    color: #28a745;
    font-weight: 600;
}

.search-result-id {
    color: #6c757d;
    font-size: 0.875rem;
}
/
* Enhanced Search Result Images */
.search-result-image {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    border: 1px solid #dee2e6 !important;
    display: block !important;
}

.search-result-image-placeholder {
    width: 60px !important;
    height: 60px !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 12px !important;
    flex-shrink: 0 !important;
    border: 1px solid #dee2e6 !important;
}

/* Enhanced Search Result Layout */
.search-result-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px !important;
    border-bottom: 1px solid #dee2e6 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.search-result-item:hover {
    background-color: #f8f9fa !important;
}

.search-result-info {
    flex: 1 !important;
    min-width: 0 !important;
    margin-right: 12px !important;
}

.search-result-title {
    font-weight: 500 !important;
    color: #212529 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.search-result-price {
    color: #28a745 !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}

.search-result-stock,
.search-result-id {
    color: #6c757d !important;
    font-size: 0.875rem !important;
    margin-bottom: 0 !important;
}