/* ===== پایه ===== */
body {
    background-color: #f8f9fa;
    font-family: "Vazirmatn", sans-serif;
}

.navbar {
    background-color: #343a40;
}

.navbar-brand img {
    height: 40px;
    margin-left: 10px;
}

/* ===== هدر ===== */
.header {
    background: linear-gradient(to left, #ff6a00, #ee0979);
    color: white;
    padding: 100px 80px;
    text-align: center;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== کارت محصولات ===== */
.product-card {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-height: 200px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .card-body a {
    margin-top: auto;
    color: #ee0979;
    font-weight: bold;
}

.product-card .price {
    font-size: 1.2rem;
    color: #28a745;
    font-weight: bold;
}

/* ===== آیکون‌ها همیشه دیده شوند ===== */
.product-icons {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* ===== نوار جستجو ===== */
.search-bar {
    max-width: 400px;
}

.search-input-group {
    position: relative;
    direction: rtl;
    width: auto !important;
}

.search-input-group .search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-input-group .search-icon:hover {
    color: #e40530;
}

.search-input {
    padding-left: 2.5rem;
    border-radius: 50rem;
    background-color: transparent !important;
    border: 1px solid #fff;
    color: #fff;
    box-shadow: none;
}

.search-input::placeholder {
    color: #ccc;
}

.search-input:focus {
    background-color: transparent !important;
    border: 1px solid #fff;
    color: #fff;
    box-shadow: none;
    outline: none;
}

/* ===== نتایج جستجو ===== */
#searchResults a:hover {
    background-color: #f1f1f1;
    border-radius: 0.5rem;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
}

#searchResultsDropdown {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* ===== فوتر ===== */
.footer {
    background-color: #212529;
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* ===== مودال ===== */
.modal-backdrop.show {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.3);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

.modal-body, .modal-header, .modal-footer {
    color: #333;
}

/* ===== ناوبری بلر ===== */
.navbar-blur {
    background-color: rgba(50, 50, 50, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.navbar-blur .navbar-brand,
.navbar-blur .nav-link,
.navbar-blur .bi {
    color: #ccc !important;
}

.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(200%);
}

/* ===== اسلایدر محصول ===== */
.carousel-inner img {
    max-height: 500px;
    object-fit: contain;
}

.thumbnail-img {
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-img.active {
    border-color: #0d6efd;
}

.product-container {
    margin-top: 1.5rem;
}

/* ===== ریسپانسیو جستجو موبایل ===== */
@media (max-width: 576px) {
    .search-input-group input {
        display: none;
    }

    .search-input-group.active input {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
    }

    .search-icon {
        color: white !important;
        cursor: pointer;
        font-size: 1.5rem;
    }
}
