/* Search results page — modern blue / slate UI */

.sr-page {
    --sr-bg: #f1f5f9;
    --sr-card: #ffffff;
    --sr-text: #0f172a;
    --sr-muted: #64748b;
    --sr-line: rgba(148, 163, 184, 0.35);
    --sr-blue: #3b82f6;
    --sr-indigo: #6366f1;
    direction: rtl;
    text-align: right;
    font-family: iransans, yekan, Tahoma, sans-serif;
    color: var(--sr-text);
    padding: 16px 0 40px;
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgba(99, 102, 241, 0.1), transparent 55%),
        radial-gradient(ellipse 50% 35% at 0% 15%, rgba(59, 130, 246, 0.07), transparent 50%),
        var(--sr-bg);
}

.sr-page a { text-decoration: none !important; }

.sr-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--sr-muted);
}

.sr-crumb a {
    color: #4338ca !important;
    font-weight: 600;
}

.sr-crumb a:hover { color: #7c3aed !important; }

.sr-crumb-sep { opacity: 0.4; }

.sr-crumb-current {
    margin: 0;
    display: inline;
    font-family: yekan, iransans;
    font-size: 15px;
    font-weight: 700;
    color: var(--sr-text);
}

.sr-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid var(--sr-line);
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(59, 130, 246, 0.1), transparent 50%),
        var(--sr-card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.sr-hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sr-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(59, 130, 246, 0.14));
    color: #4f46e5;
    font-size: 18px;
}

.sr-hero-text { min-width: 0; }

.sr-hero-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--sr-muted);
}

.sr-hero-title {
    margin: 0;
    font-family: yekan, iransans;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: var(--sr-text);
    word-break: break-word;
}

.sr-hero-title em {
    font-style: normal;
    color: #4f46e5;
}

.sr-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sr-count i { color: #6366f1; }

.sr-empty {
    padding: 48px 24px;
    text-align: center;
    border-radius: 20px;
    background: var(--sr-card);
    border: 1px solid var(--sr-line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.sr-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: #eef2ff;
    color: #6366f1;
    font-size: 28px;
}

.sr-empty-title {
    margin: 0 0 8px;
    font-family: yekan, iransans;
    font-size: 20px;
    font-weight: 700;
}

.sr-empty-desc {
    margin: 0 auto 18px;
    max-width: 360px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--sr-muted);
}

.sr-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #4f46e5);
    color: #fff !important;
    font-family: yekan, iransans;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
}

.sr-empty-btn:hover {
    color: #fff !important;
    opacity: 0.95;
}

.sr-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    border-radius: 18px;
    background: var(--sr-card);
    border: 1px solid var(--sr-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}

.sr-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.sr-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    color: inherit !important;
    min-height: 0;
}

.sr-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.sr-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.sr-badge-special {
    background: #0f172a;
    color: #fff;
}

.sr-badge-service {
    background: #3b82f6;
    color: #fff;
}

.sr-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.sr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.sr-card:hover .sr-thumb img {
    transform: scale(1.04);
}

.sr-card-title {
    margin: 0 0 10px;
    min-height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    font-family: iransans, yekan;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
    text-align: right;
}

.sr-card-price {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.sr-price {
    font-family: iransans, yekan;
    font-size: 20px;
    font-weight: 700;
    color: var(--sr-text);
    line-height: 1.2;
}

.sr-price small {
    margin-right: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sr-muted);
}

.sr-old-price {
    margin-bottom: 2px;
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.sr-unavailable {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.sr-call {
    color: #3b82f6;
    font-size: 13px;
    font-weight: 700;
}

.sr-page .pt-pager {
    margin-top: 16px;
    margin-bottom: 0;
}

@media screen and (max-width: 1100px) {
    .sr-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 800px) {
    .sr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .sr-hero {
        padding: 16px;
    }

    .sr-grid {
        gap: 10px;
    }

    .sr-card {
        padding: 10px;
        border-radius: 14px;
    }

    .sr-price { font-size: 17px; }
}
