/* Product List Page Styles */

/* Product List Section */
.product-list-section {
    background-color: #ffffff;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Sidebar - Product Category */
.category-sidebar {
    background-color: #ffffff;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid #0066cc;
    letter-spacing: 0.3px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 5px;
}

.category-item.active .category-link {
    background-color: #0066FF;
    color: #ffffff;
}

.category-item.sub-item .category-link {
    padding-left: 30px;
    font-size: 13px;
    color: #666;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-link:hover {
    background-color: #f5f5f5;
    color: #0066FF;
    text-decoration: none;
}

.category-item.active .category-link:hover {
    background-color: #0066FF;
    color: #ffffff;
}

.category-link i {
    font-size: 12px;
}

/* Search Header */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.search-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.search-count {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown span {
    font-size: 14px;
    color: #666;
}

.sort-select {
    width: 180px;
    height: 36px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
}

/* Product Grid */
.product-grid {
    margin-bottom: 40px;
}

.product-card-item {
    display: block;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

.product-card-item:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
    box-shadow:  0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-image-wrapper {
    position: relative;
    background-color: #f1f1f1;
    overflow: hidden;
    aspect-ratio: 0.9;
}

.hot-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0 4px 4px 0;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wishlist-btn i {
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
}

.wishlist-btn:hover i,
.wishlist-btn.active i {
    color: #0066cc;
}

.product-img {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #fff;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-info {
    text-align: center;
    padding: 15px 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #305DAD;
    margin: 0;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    gap: 8px;
}

.page-item .page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    padding: 0;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: #0066FF;
    border-color: #0066FF;
    color: #fff;
}

.page-item .page-link:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #0066FF;
}

.page-item.active .page-link:hover {
    background-color: #0066FF;
    color: #fff;
}
button:focus{
outline:none
}

/* Responsive Styles */
@media (max-width: 991px) {
    .category-sidebar {
        margin-bottom: 30px;
    }
    
    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sort-dropdown {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .product-card-item {
        margin-bottom: 20px;
    }
    
    .sidebar-title {
        font-size: 15px;
    }
    
    .category-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .product-grid .col-sm-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .product-info {
        padding: 10px 5px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 13px;
    }
}
