﻿:root {
    --primary-color: #0F3057;
    --accent-color: #FF8126;
    --bg-color: #e0e0e0;
    --text-color: #333;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Bhoma', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ---  بخش جستجو  --- */
.vsn-search-hero {
    background: linear-gradient(135deg, var(--primary-color), #1a4a7a);
    padding: 80px 20px 100px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

    .vsn-search-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/images/searchbanner.jpg') center/cover;
        opacity: 0.1;
    }

    .vsn-search-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
        font-weight: 800;
        position: relative;
        z-index: 1;
    }

.vsn-history-section {
    background: transparent;
    padding: 0 0 25px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

    .vsn-history-section h3 {
        color: rgba(255,255,255,0.9);
        font-size: 1rem;
        margin-bottom: 15px;
        font-weight: normal;
    }

.vsn-history-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vsn-history-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

    .vsn-history-tag:hover {
        background: var(--accent-color);
        color: #fff;
        transform: translateY(-2px);
    }

.vsn-search-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vsn-search-input-wrapper {
    display: flex;
    background: #e0e0e0;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: var(--transition);
}

    .vsn-search-input-wrapper:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

.vsn-search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
    border-radius: 50px 0 0 50px;
    background: transparent;
    direction: rtl;
}

.vsn-search-btn {
    background: var(--accent-color);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .vsn-search-btn:hover {
        background: #0F3057;
        transform: scale(1.05);
    }

.vsn-results-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 3;
    flex: 1;
}

.vsn-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vsn-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.vsn-product-img {
    height: 250px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .vsn-product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.vsn-product-card:hover .vsn-product-img img {
    transform: scale(1.1);
}

.vsn-product-info {
    padding: 20px;
    text-align: center;
}

.vsn-product-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.vsn-product-price {
    color: #000000;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
}

.vsn-add-to-cart-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

    .vsn-add-to-cart-btn:hover {
        background: var(--primary-color);
        color: #fff;
        border-color: var(--primary-color);
    }

.vsn-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #777;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

    .vsn-no-results i {
        font-size: 4rem;
        color: #ddd;
        margin-bottom: 20px;
    }

 /*   --------------*/
/* ✅ تغییر ۴: استایل‌دهی به لینک جدید */
.cart-btn,
.vsn-view-btn {
    display: block; /* تا کل عرض را بگیرد */
    width: 100%;
    background: var(--accent-color); /* رنگ دکمه */
    color: #fff !important; /* رنگ متن سفید */
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none !important; /* حذف خط زیر لینک */
    margin-top: 10px;
    transition: var(--transition);
    font-weight: bold;
    border: none;
    cursor: pointer;
}

    .cart-btn:hover,
    .vsn-view-btn:hover {
        background: var(--primary-color);
        color: #fff !important;
        transform: translateY(-2px);
    }

/* --- ریسپانسیو --- */
@media (min-width: 768px) {
    .vsn-results-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 80px;
    }

    .vsn-search-hero {
        padding-bottom: 80px;
    }
}

@media (min-width: 1024px) {
    .vsn-results-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vsn-search-hero {
        padding: 60px 15px 70px;
    }

        .vsn-search-hero h1 {
            font-size: 1.6rem;
        }

    .vsn-search-input-wrapper {
        flex-direction: column;
        border-radius: 20px;
    }

    .vsn-search-input {
        border-radius: 20px;
        text-align: center;
    }

    .vsn-search-btn {
        width: 100%;
        border-radius: 15px;
        height: 45px;
        margin-top: 5px;
    }

    .vsn-results-container {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }

    .vsn-header-container {
        flex-direction: column;
        gap: 15px;
    }

    .vsn-nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }
}
