/* تنسيقات GS1 لإدارة الباركود */
.gs1-search-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.gs1-search-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gs1-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.gs1-logo i {
    font-size: 2.5rem;
    color: #0066b3;
}

.gs1-logo h2 {
    color: #0066b3;
    font-weight: 700;
    margin: 0;
}

.gs1-search-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
    flex: 1;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon .form-control {
    padding-left: 45px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    font-size: 1.1rem;
}

.input-with-icon .form-control:focus {
    border-color: #0066b3;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 179, 0.25);
}

.search-input-group .btn {
    height: 50px;
    padding: 0 24px;
    border-radius: 8px;
    background: #0066b3;
    border-color: #0066b3;
    font-weight: 600;
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.filter-item .form-select {
    height: 45px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.gs1-search-tips {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #0066b3;
}

.gs1-search-tips h5 {
    color: #0066b3;
    margin-bottom: 0.5rem;
}

.gs1-search-tips ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #6c757d;
}

.gs1-search-tips li {
    margin-bottom: 0.25rem;
}

.gs1-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.gs1-title {
    color: #0066b3;
    font-weight: 700;
    margin: 0;
}

.gs1-results-count .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.gs1-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gs1-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.gs1-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gs1-product-badge {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gs1-product-type, .gs1-verified-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.gs1-product-type {
    background: #e9ecef;
    color: #495057;
}

.gs1-verified-badge {
    background: #d4edda;
    color: #155724;
}

.gs1-product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 1rem;
}

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

.gs1-no-image {
    text-align: center;
    color: #6c757d;
}

.gs1-no-image i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.gs1-product-content {
    padding: 1.5rem;
}

.gs1-product-title {
    color: #212529;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.gs1-barcode-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gs1-code-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
}

.gs1-code-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.gs1-code-value {
    display: block;
    font-family: monospace;
    font-size: 1.1rem;
    color: #212529;
    font-weight: 600;
    direction: ltr;
    text-align: right;
}

.gs1-product-details {
    margin-bottom: 1.5rem;
}

.gs1-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.gs1-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.gs1-detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.gs1-detail-value {
    color: #212529;
    text-align: left;
    max-width: 60%;
}

.gs1-product-meta {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gs1-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.gs1-meta-item:last-child {
    margin-bottom: 0;
}

.gs1-product-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.gs1-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gs1-action-btn:hover {
    background: #0066b3;
    color: #fff;
    border-color: #0066b3;
}

.gs1-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.gs1-no-results-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.gs1-no-results h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.gs1-pagination {
    margin-top: 2rem;
}

.gs1-pagination .pagination {
    justify-content: center;
}

.gs1-pagination .page-item .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: #0066b3;
    border: 1px solid #dee2e6;
}

.gs1-pagination .page-item.active .page-link {
    background: #0066b3;
    border-color: #0066b3;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .gs1-products-grid {
        grid-template-columns: 1fr;
    }
    
    .gs1-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gs1-barcode-codes {
        grid-template-columns: 1fr;
    }
}