
#searchModal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://markaa.in/img/abstract-banner.png);
    background-repeat: no-repeat; 
    background-size: cover;       
    background-position: center;  
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.search-modal-content {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    border-radius: 1rem;
    flex-direction: column;
    padding: 20px;
}

.search-close-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    color: #333;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-btn:hover {
    color: #006bb4 ;
    transform: rotate(90deg);
}

.search-modal-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem;
    animation: slideUp 0.5s ease 0.2s both;
}

.search-modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #111;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #006bb4 ;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.search-modal-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #006bb4  0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.search-modal-header .subtitle {
    color: #555;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

#searchBox {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid #006bb4 ;
    border-radius: 2.2rem;
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#searchBox:focus {
    border-color: #006bb4 ;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    outline: none;
    background-color: #f9f9f9;
}

#searchBox::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.25rem;
    bottom: 8px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #222;
}

.results-count {
    font-size: 0.9rem;
    color: #666;
}

.sort-options {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn.active {
    background: #006bb4 ;
    color: white;
    border-color: #006bb4 ;
}

.sort-btn:hover:not(.active) {
    background: #f0f0f0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.search-product-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(6px);
    border: 1px solid #eaeaea;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: scale-down;
}

.product-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-name a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: #006bb4 ;
}

.product-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.view-details {
    padding: 0.5rem 1rem;
    background: #006bb4 ;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.view-details:hover {
    background: #1d4ed8;
    color: #fff;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #7cb61f;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    color: #6a9a1c;
    border: 1px solid #6a9a1c;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #777;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #ddd;
    border-radius: 50%;
    border-top-color: #006bb4 ;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-modal-header h1 {
        font-size: 1.3rem;
    }

    .search-modal-header .subtitle {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-btn {
        flex: 1;
        text-align: center;
    }
    
    .search-close-btn {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .product-content {
        padding: 1rem;
    }
    
    .search-modal-container {
        padding: 1rem 0.5rem;
    }
}

.search-nav-item a {
    color: #012970;
    text-decoration: none;
    transition: color 0.3s;
}

.search-nav-item a:hover {
    color: #006bb4 ;
    border-radius: 50%;
}