/* Featured Products Page Styles */
.besa-child-featured-products-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.besa-child-featured-page-header {
    margin-bottom: 30px;
    text-align: center;
}

.besa-child-featured-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3338;
    margin: 0 0 10px 0;
}

.besa-child-featured-page-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    position: relative;
}

/* Sidebar Styles */
.besa-child-featured-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.besa-child-sidebar-section {
    padding: 25px;
    border-bottom: 1px solid #f0f0f1;
}

.besa-child-sidebar-section:last-child {
    border-bottom: none;
}

.besa-child-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3338;
    margin: 0 0 20px 0;
}

.besa-child-section-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

/* Filter Groups */
.besa-child-filter-group {
    margin-bottom: 25px;
}

.besa-child-filter-group:last-child {
    margin-bottom: 0;
}

.besa-child-filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3338;
    margin: 0 0 12px 0;
}

/* Search Filter */
.besa-child-search-filter,
.besa-child-category-search,
.besa-child-tag-search {
    position: relative;
    width: 100%;
}

.besa-child-search-filter input,
.besa-child-category-search-input,
.besa-child-tag-search-input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.besa-child-search-clear,
.besa-child-category-search-clear,
.besa-child-tag-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price Filter */
.besa-child-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.besa-child-price-inputs input {
    width: 70px;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
}

.besa-child-price-separator {
    color: #64748b;
    font-weight: 600;
}

.besa-child-apply-price-filter {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
    width: 100%;
}

.besa-child-apply-price-filter:hover {
    background: #2563eb;
}

/* Checkbox Filters */
.besa-child-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    transition: color 0.2s;
}

.besa-child-filter-checkbox:hover {
    color: #2c3338;
}

.besa-child-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

.besa-child-filter-checkbox input:checked + .besa-child-checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.besa-child-filter-checkbox input:checked + .besa-child-checkbox-custom::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
}

/* Rating Stars */
.besa-child-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.besa-child-star {
    color: #e2e8f0;
    font-size: 12px;
}

.besa-child-star.filled {
    color: #f59e0b;
}

/* Category and Tag Lists */
.besa-child-category-list,
.besa-child-tag-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.besa-child-category-item,
.besa-child-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.besa-child-category-item:hover,
.besa-child-tag-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.besa-child-category-item.active,
.besa-child-tag-item.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.besa-child-category-name,
.besa-child-tag-name {
    font-weight: 500;
}

.besa-child-category-count,
.besa-child-tag-count {
    background: #94a3b8;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-left: auto;
}

.besa-child-category-item.active .besa-child-category-count,
.besa-child-tag-item.active .besa-child-tag-count {
    background: #1e40af;
}

/* Load More Buttons */
.besa-child-load-more-categories,
.besa-child-load-more-tags {
    background: #64748b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
    width: 100%;
}

.besa-child-load-more-categories:hover,
.besa-child-load-more-tags:hover {
    background: #475569;
}

/* Clear Filters */
.besa-child-clear-filters {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
    width: 100%;
}

.besa-child-clear-filters:hover {
    background: #b91c1c;
}

/* Main Content */
.besa-child-featured-main-content {
    min-height: 500px;
}

/* Top Controls */
.besa-child-featured-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.besa-child-results-text {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.besa-child-sort-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    color: #2c3338;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%2364748b' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
}

/* Products Grid - Using Besa's Styles */
.besa-child-featured-products-container .products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Ensure Besa product cards look good */
.besa-child-featured-products-container .product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
     gap: 20px;
}

.besa-child-featured-products-container .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Pagination */
.besa-child-featured-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.besa-child-pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.besa-child-pagination-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
}

.besa-child-pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.besa-child-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.besa-child-pagination-info {
    margin: 0 15px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Loading States */
.besa-child-products-loading {
    text-align: center;
    padding: 60px 20px;
}

.besa-child-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: besa-child-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes besa-child-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Products */
.besa-child-no-products {
    text-align: center;
    padding: 60px 20px;
}

.besa-child-no-products-message {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* Mobile Filter Button */
.besa-child-mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.besa-child-toggle-filters {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.5rem;
    bottom: 100px;
}

/* Responsive Design */

@media (max-width: 768px) {
    .besa-child-featured-page-content {
        grid-template-columns: 1fr;
    }
    
    .besa-child-featured-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .besa-child-featured-sidebar.active {
        left: 0;
    }
    
    .besa-child-mobile-filter-btn {
        display: block;
    }
    
    .besa-child-featured-products-container .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .besa-child-featured-top-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .besa-child-featured-products-container .products {
        grid-template-columns: 1fr;
    }
    
    .besa-child-featured-page-title {
        font-size: 2rem;
    }
}

/* Overlay for mobile sidebar */
.besa-child-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.besa-child-sidebar-overlay.active {
    display: block;
}