
/* Search and Filter Section */
.search-filter-section {
    margin-bottom: 1.5rem;
}

.search-categories-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-container input {
    width: 100%;
    height: 42px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(118, 75, 162, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-container input:focus {
    outline: none;
    border-color: rgba(118, 75, 162, 0.6);
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: rgba(118, 75, 162, 0.1);
}

.categories-dropdown {
    position: relative;
    width: 38%;
    transition: all 0.3s ease;
}

.categories-select {
    width: 100%;
    height: 42px;
    padding: 0.5rem 1rem 0.5rem 3rem;
    border-radius: 8px;
    border: 2px dashed rgba(118, 75, 162, 0.7);
    background: rgba(255, 255, 255, 0.97);
    color: #764ba2;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"), 
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left 1rem center, right 1rem center;
    text-align: right;
    direction: rtl;
}

/* Style for dropdown options */
.categories-select option {
    text-align: right;
    direction: rtl;
    padding: 8px 10px;
    color: #764ba2;
    background-color: white;
}

/* Improve dropdown styling for RTL */
.categories-select option:checked,
.categories-select option:hover {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
}

.categories-select::-ms-expand {
    display: none;
}

.categories-select:hover {
    border-color: rgba(118, 75, 162, 0.9);
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
    /* Remove transform animation */
}

.categories-select:focus {
    outline: none;
    border-color: rgba(118, 75, 162, 0.9);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}



.categories-select:hover {
    border-color: rgba(118, 75, 162, 0.8);
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.2);
}

.categories-select:focus {
    outline: none;
    border-color: rgba(118, 75, 162, 0.8);
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}



@keyframes highlight-pulse {
    /* Animation removed */
}

@keyframes float {
    /* Animation removed */
}

/* Top categories as pills */
.top-categories-container {
    margin-top: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
}

.top-categories-container::-webkit-scrollbar {
    height: 6px;
}

.top-categories-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.top-categories-container::-webkit-scrollbar-thumb {
    background: rgba(118, 75, 162, 0.3);
    border-radius: 10px;
}

.top-categories-container::-webkit-scrollbar-thumb:hover {
    background: rgba(118, 75, 162, 0.5);
}

.top-categories-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(118, 75, 162, 0.1));
    pointer-events: none;
    border-radius: 0 12px 12px 0;
}

.top-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    min-width: min-content;
    padding: 0.25rem 0.5rem;
    justify-content: center;
}


@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}


/* Top categories as pills */
.top-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-pill {
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(118, 75, 162, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.category-pill:hover {
    background: linear-gradient(to bottom, #fff, rgba(233, 221, 244, 0.5));
    border-color: rgba(118, 75, 162, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(118, 75, 162, 0.2);
}

.category-pill.active {
    background: linear-gradient(135deg, #764ba2, #8e62c1);
    color: white;
    border-color: #e3c8ff;
    font-weight: 600;
    transform: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(255, 255, 255, 0.3);
    border-width: 1px;
}

/* Products Section */
.products-section {
    margin-top: 2rem;
}


#sectionTitle {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#sectionSubtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

.view-details-btn {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #764ba2;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.price-range {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Load More Button */
#loadMoreContainer {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#loadMoreBtn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(118, 75, 162, 0.2);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Results Message */
#noResults {
    padding: 3rem 0;
}

#noResults .display-1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Product Card Enhancements */
.product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 180px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.product-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.product-card .card-text {
    flex-grow: 1;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .btn {
    align-self: flex-end;
    margin-top: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-pills {
        flex-wrap: wrap;
    }
    
    .nav-pills .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    #noResults .display-1 {
        font-size: 3rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Load More Button mobile spacing */
    #loadMoreContainer {
        margin-bottom: 4rem;
        padding-bottom: 1.5rem;
    }
    
    /* Adjust search and categories row for mobile */
    .search-categories-row {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-dropdown {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .search-filter-section .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    /* Extra mobile spacing for load more button */
    #loadMoreContainer {
        margin-bottom: 5rem;
        padding-bottom: 2rem;
    }
    
    /* Full width search and dropdown for very small screens */
    .search-container {
        width: 100%;
    }
    
    .categories-dropdown {
        width: 100%;
        margin-top: 0.75rem;
    }
    
    /* Add a mobile-specific style for the dropdown (no animation) */
    .categories-select {
        text-align: right;
        font-weight: 700;
    }
    
    /* Removed mobile-highlight animation */
    
    /* Adjust the top categories container for mobile */
    .top-categories-container {
        margin-top: 0.75rem;
        padding: 0.4rem;
    }
    
    .top-categories {
        gap: 0.4rem;
    }
    
    .category-pill {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
} 