.fade-search-module {
    text-align: center;
    padding: 10px;
}

.custom-search-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    cursor: pointer;
    margin-top: 10px;
}

.search-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-size: cover;
    margin-bottom: 5px;
}

.search-text {
    font-size: 13px;
    font-weight: 400;
}

.search-toggle {
    display: none; /* مخفی کردن checkbox */
}

.search-card {
    position: fixed;
    bottom: 81px;
    left: 10px;
    right: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

#search-toggle:checked ~ .search-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
    background-size: cover;
}

.search-module-container {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

/* استایل‌های JShopping Search Plus */
.search-module-container .ajaxsearch {
    width: 100%;
    border-collapse: collapse;
}

.search-module-container .itemsearch {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.search-module-container .aj_img {
    width: 40px;
    padding-right: 10px;
}

.search-module-container .aj_img img {
    max-width: 100%;
    height: auto;
}

.search-module-container .aj_det {
    flex-grow: 1;
}

.search-module-container .titlesearch {
    font-weight: bold;
    color: #333;
}

.search-module-container .pricesearch {
    color: #e74c3c;
    font-size: 14px;
}

/* جلوگیری از تداخل */
.search-module-container * {
    box-sizing: border-box;
}