﻿
 /* جستجو-1 */

/** { margin: 0; padding: 0; box-sizing: border-box; font-family: Tahoma, Arial, sans-serif; }
        body { background: #f0f2f5; direction: rtl; padding: 20px; }
        .container { max-width: 1200px; margin: 0 auto; }*/
        
        /* سربرگ جستجو */
        /*.search-header { 
            background: #fff; 
            padding: 8px 5px; 
            border-radius: 15px 15px 0 0; 
            box-shadow: 0 1px 10px rgba(0,0,0,0.5);
        }*/

        .Psearch-wrapper { position: relative; margin-bottom: 3px}
        .Psearch-input { 
            width: 100%; 
            padding: 5px 50px 5px 20px; 
            font-size: 15px; 
            border: 2px solid #c5d0da; 
            border-radius: 25px; 
            outline: none;
            transition: all 0.3s;
            background: #f8fafc;
        }
        .Psearch-input::placeholder{
            color: #999
        }
        .Psearch-input:focus { 
            border-color: #0288d1; 
            background: white; 
            box-shadow: 0 0 0 4px rgba(2,136,209,0.1);
        }
        .Psearch-icon { 
            position: absolute; 
            right: 20px; 
            top: 54%; 
            transform: translateY(-50%); 
            color: #94a3b8;
            font-size: 18px;
        }
        .Pclear-search { 
            position: absolute; 
            left: 10px; 
            top: 50%; 
            transform: translateY(-50%); 
            cursor: pointer; 
            color: #94a3b8;
            display: none;
            font-size: 18px;
            font-weight: bold;
            background: #eef2f6;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: none;
            /*align-items: center;*/
            justify-content: center;
            line-height: 1.5;
        }
        .Pclear-search:hover { 
            background: #0288d1; 
            color: white; 
        }
        .Psearch-stats {
            color: #64748b; 
            font-size: 13px; 
            margin-top: 10px; 
            padding-right: 15px;
        }

        /* بخش نتایج جستجو */
        .Presults-section {
            background: white;
            border-radius: 10px 10px 15px 15px;
            box-shadow: 0 7px 10px rgba(0,0,0,0.5);
            /*margin-top: 1px;*/
        }

        /* کارت‌های محصول با تصویر لینک‌دار */
        .Pproducts-list {
            display: flex;
            flex-direction: column;
            padding: 10px 10px;
            gap: 15px;
        }

        .Pproduct-card {
            background: #ffffff;
            border: 1px solid #c5d0da;
            border-radius: 12px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        }

        .Pproduct-card:hover {
            border-color: #0288d1;
            box-shadow: 0 4px 12px rgba(2,136,209,0.1);
            transform: translateY(-1px);
        }

        /* تصویر محصول - لینک‌دار */
        .Pproduct-image-link {
            width: 100px;
            height: 100px;
            min-width: 100px;
            border-radius: 8px;
            overflow: hidden;
            background: #f8fafc;
            border: 1px solid #c5d0da;
            display: block;
            transition: all 0.2s;
            text-decoration: none;
        }

        .Pproduct-image-link:hover {
            border-color: #0288d1;
            opacity: 0.9;
            transform: scale(1.02);
        }

        .Pproduct-image-link img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .Pproduct-image-link .Pno-image {
            color: #94a3b8;
            font-size: 12px;
            text-align: center;
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            background: #f8fafc;
        }

        /* اطلاعات محصول */
        .Pproduct-info {
            flex: 1;
        }

        .Pproduct-title {
            font-size: 16px;
            font-weight: 600;
            color: #1e2a3a;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .Pproduct-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s;
        }

        .Pproduct-title a:hover {
            color: #0288d1;
        }

        .Pproduct-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 8px;
        }

        .Pproduct-category {
            color: #0288d1;
            background: #e1f5fe;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

        .Pproduct-brand {
            color: #64748b;
            background: #f1f5f9;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 12px;
        }

        .Pproduct-price {
            color: #059669;
            font-weight: 600;
            background: #e0f2f1;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 13px;
        }

        .Pproduct-description {
            color: #64748b;
            font-size: 13px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 5px;
        }

        .Pproduct-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-right: auto;
        }


        /* پیام‌های وضعیت */
        .Pinitial-message, .Pno-results {
            text-align: center;
            padding: 60px 20px;
            background: #f8fafc;
            border-radius: 12px;
            color: #64748b;
        }

        .Pinitial-message p:first-child {
            font-size: 18px;
            color: #1e2a3a;
            margin-bottom: 10px;
        }

        .Pinitial-message p:last-child {
            font-size: 14px;
            color: #94a3b8;
        }

        .Pno-results p:first-child {
            font-size: 16px;
            color: #1e2a3a;
            margin-bottom: 10px;
        }

        .Ploading {
            text-align: center;
            padding: 40px;
            color: #64748b;
        }

        .Ptyping-indicator {
            position: absolute;
            left: 50px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 12px;
            background: white;
            padding: 0 5px;
        }

        /* نمایش دکمه clear */
        .Psearch-wrapper .Pclear-search.show {
            display: flex;
        }

        /* ریسپانسیو برای موبایل */
        @media (max-width: 768px) {
            .Pproduct-card {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .Pproduct-image-link {
                width: 100%;
                height: 150px;
            }
            
            .Pproduct-actions {
                width: 100%;
                margin-right: 0;
                margin-top: 10px;
            }
        }